Skip to contentSkip to conversation

Limon & PowerQUICC II, Booting the kernel

DISCUSSION [email protected] 3 participants 3 messages Sep 3, 2000 – Sep 26, 2000

lore
Share & tools
lore
#0 lore raw

Hi

I have Limon up and running. I managed to set up the host in order to serv the linux kernel.
The kernel I download is the ordinary kernel from Montavista HH1.2. I prepared the zImage in the following way:
1. I stripped off the elf header. (dd if=zImage of=stripZImage bs=64k skip=1)
2. I run it through mklimon to add the limon specific header.

After I've loaded the kernel I can see the kernel in the RAM from addr 0.

When I issue the 'run' command the target crashes.

---------------- Linux Monitor 1.4.2-SBC-8260 ---------------- limon>
limon>
limon> load
BOOTP/TFTP from server 10.1.20.2; our IP address is 10.1.20.1. Filename '/usr/src/nfs/limonZImage'.
Loading: >.................................................................< done.
limon>
limon> debug
limon> dw

00000000   48000005  7c6b1b78  7cb92b78  38600040  H...|k.x|.+x8`.@
00000010   7c600124  3c800040  60840000  7c6802a6  |`.$<..@`...|h..
00000020   3863fffc  7c681b78  7c032000  40820028  8c..|h.x|. .@..(
00000030   3c800040  60840000  3ca00040  60a5b274  <..@`...<..@`..t
00000040   38a50003  7ca42850  54a5f0be  7ca72b78  8...|.(PT...|.+x

limon>
limon>
limon> run
... crash

Question:

1. Is my kernel image munging correct?

2. Is the start address 0 correct?

3. Some data are transferred from limon to the kernel.
- Does Limon handle this correctly?
- Where are these data located?

Thank you for any help

Ruedi

#2 lore raw
Quoted 1 line · [email protected] wrote:

After I've loaded the kernel I can see the kernel in the RAM from addr 0.

I don't know what limon does, but zImage doesn't load at address 0......

Quoted 7 lines

limon> debug
limon> dw

00000000   48000005  7c6b1b78  7cb92b78  38600040  H...|k.x|.+x8`.@
00000010   7c600124  3c800040  60840000  7c6802a6  |`.$<..@`...|h..
00000020   3863fffc  7c681b78  7c032000  40820028  8c..|h.x|. .@..(
00000030   3c800040  60840000  3ca00040  60a5b274  <..@`...<..@`..t
00000040   38a50003  7ca42850  54a5f0be  7ca72b78  8...|.(PT...|.+x

If this is really address zero, these instructions are left over from the last kernel boot.

Quoted 1 line

2. Is the start address 0 correct?

No.

Quoted 3 lines

3. Some data are transferred from limon to the kernel.
- Does Limon handle this correctly?
- Where are these data located?

I don't know. On the PQ-II (8260), the zImage should be loaded at or above 0x900000, then jump to that address. The code will relocate, uncompress and start the kernel.

	-- Dan

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/