[U-Boot-Users] Simple bootloader in the kernel and PPCBoot

Petter Larsen pla at morecom.no
Tue Feb 25 11:23:22 CET 2003


Hello

We have managed to boot Linux on a MPC855T board using PPCBoot 2.0 and a
kernel 2.4.17 patched up by MontaVista.

It is one thing that I am not sure of. Do I need to link in the 
arch/ppc/boot/simple files in the kernel when I am using PPCBoot?

As I understand this is a simple bootloader and should not be necessary
when using PPCBoot. Am I right?

If I do a "make pImage", it is not included, but I can not boot this
image. 
If I do a "make zImage", a zImage.embedded is created with the 
arch/ppc/boot/simple bootloader files linked in. This image can I boot
if I set the entry point to 10000 when i attach the header with the
mkimage command.




Booting Linux with the code in arch/ppc/boot/simple linked in. The
vmlinux 
is compressed, but the code in arch/ppc/boot/simple is compiled later
and 
linked in, and this part is not compressed. We then have to say that the
kernel image is uncompressed when making the header with "mkimage", and 
also the entry point must be set to 10000.
Booting from flash...
=>bootm 0c100000
## Booting image at 0c100000 ...
   Image Name:   Image test 1
   Image Type:   PowerPC Linux Kernel Image (uncompressed)
   Data Size:    767776 Bytes = 749.8 kB
   Load Address: 00000000
   Entry Point:  00010000
   Verifying Checksum ... OK
OK
## Current stack ends at 0x03F0FC20 => set upper limit to 0x00800000
## cmdline at 0x007FFF00 ... 0x007FFF00
bd address  = 0x03F0FFC4
memstart    = 0x00000000
memsize     = 0x04000000
flashstart  = 0x0C000000
flashsize   = 0x00800000
flashoffset = 0x00090000
sramstart   = 0x00000000
sramsize    = 0x00000000
immr_base   = 0xFF000000
bootflags   = 0x00000001
intfreq     =     50 MHz
busfreq     =     50 MHz
ethaddr     = 00:08:74:11:11:11
IP addr     = 172.16.21.223
baudrate    = 115200 bps
No initrd
## Transferring control to Linux (at address 00010000) ...

loaded at:     00010000 000BD1F4
relocated to:  00400000 004AD1F4
board data at: 004AA124 004AA164
relocated to:  00405338 00405378
zimage at:     00405960 004A9871
avail ram:     004AE000 04000000

Linux/PPC load: console=ttyS0,115200 console=tty0 root=/dev/nfs 
nfsroot=172.16.21.218:/exports/rpx855/2.4.7-timesys-3.1.254





Trying to boot a pImage without the code in arch/ppc/boot/simple
=>bootm 0c100000
## Booting image at 0c100000 ...
   Image Name:   Linux-2.4.17_mvl21
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    671503 Bytes = 655.8 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Current stack ends at 0x03F0FC20 => set upper limit to 0x00800000
## cmdline at 0x007FFF00 ... 0x007FFF00
bd address  = 0x03F0FFC4
memstart    = 0x00000000
memsize     = 0x04000000
flashstart  = 0x0C000000
flashsize   = 0x00800000
flashoffset = 0x00090000
sramstart   = 0x00000000
sramsize    = 0x00000000
immr_base   = 0xFF000000
bootflags   = 0x00000001
intfreq     =     50 MHz
busfreq     =     50 MHz
ethaddr     = 00:08:74:11:11:11
IP addr     = 172.16.21.223
baudrate    = 115200 bps
No initrd
## Transferring control to Linux (at address 00000000) ...



Best regards
Petter Larsen
moreCom as
Cand. Scient.




More information about the U-Boot mailing list