Linux MIPS Architecture development
 help / color / mirror / Atom feed
* How to build a kernel for the malta board?
@ 2001-08-08 16:11 Shuanglin Wang
  2001-08-08 15:31 ` Lars Munch Christensen
  0 siblings, 1 reply; 4+ messages in thread
From: Shuanglin Wang @ 2001-08-08 16:11 UTC (permalink / raw)
  To: linux-mips

[-- Attachment #1: Type: text/plain, Size: 342 bytes --]

Hi everyone,

I want to compile Linux Kernel (2.4.3) for a Malta board.  I downloaded
both MIPS Linux distribution and cross-compiler tools. Now, the problem
is how to configure the Linux kernel  for malta boards.

Thanks in advance.

--
Shuanglin Wang
Atmel Multimedia & Communications
3800 Gateway Centre, Suite 311
Morrisville, NC 27560



[-- Attachment #2: Type: text/html, Size: 473 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: How to build a kernel for the malta board?
@ 2001-08-08 15:38 Andrew Thornton
  2001-08-08 15:38 ` Andrew Thornton
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Thornton @ 2001-08-08 15:38 UTC (permalink / raw)
  To: linux-mips

Shuanglin,

This is what I did.

Download the Linux kernel source from the MIPS ftp site and extract it on
the development host:

 % tar -xzf linux-2.4.3.mips-src-01.00.tar.gz
 % cd linux-2.4.3

I patched this kernel to make the FPU emulator more reliable using patches
from this list's archive.

Setup the configuration file:

 % cp .config.malta .config
 % chmod +w .config

For little endian mode, edit this file changing the line:

 # CONFIG_CPU_LITTLE_ENDIAN is not set
to:
 CONFIG_CPU_LITTLE_ENDIAN=y

Setup the make file:

 % chmod +w Makefile

Edit this file changing the line:

 CROSS_COMPILE   =
to:
 CROSS_COMPILE   = mipsel-linux-

Build and install the kernel:

 % make oldconfig
 % make dep
 % make

To use TFTP to boot the kernel:

 % mipsel-linux-objcopy -O srec vmlinux vmlinux.srec
 % cp vmlinux.srec /tftpboot/mipsel-2.4.3

Andrew Thornton

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-08-08 15:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-08 16:11 How to build a kernel for the malta board? Shuanglin Wang
2001-08-08 15:31 ` Lars Munch Christensen
  -- strict thread matches above, loose matches on Subject: below --
2001-08-08 15:38 Andrew Thornton
2001-08-08 15:38 ` Andrew Thornton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox