Skip to contentSkip to conversation

ramdisk problem

DISCUSSION somshekar chandrashekar kadam 2 participants 2 messages Jun 13, 2002

lore
Share & tools
lore
#0 lore raw

hi Denk,

i use kernel provided bootloader to load image,
i am using binary form of zImage
i didnt get u denk ,i dont know abt this elf what u have said ,i
am not sure abt it ,i will check it

Quoted 23 lines · On Thu, 13 Jun 2002 Wolfgang Denk wrote :

In message <[email protected]>

Quoted 6 lines · you

after compiling zImage i give command make zImage.initrd so that r4,r5 contain initrd offset and size
i am getting initrd offset as 9099b

initrd_load routine is called ,he is checking at this loaction

for

Quoted 1 line

start of ramdisk image ,he is not getting it, so he says

couldnt

Quoted 3 lines

find valid ramdisk image

what can be the problem

How do you load the image? Linux uses a special segment in the ELF
file for the initrd image; maybe your bot loader does not understand
this, and drops it?

Wolfgang Denk

Quoted 7 lines

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email:
[email protected]
"Have you lived in this village all your life?" "No, not
yet."

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

#1 lore raw
Quoted 2 lines · In message <[email protected]> you wrote:

i use kernel provided bootloader to load image,

This is not what I mean. You must have some sort of firmware running on this board. Obviously it is not PPCBoot, because then things were very simple.

There are firmware implementations which can load ELF images, but either load only "conventional" segments (text, data) or those which have the "LOAD" flag set. The "zImage.initrd" contains non-standard segments ("image" and "initrd"), which don't have the "LOAD" flag set. Maybe your firmware does not load all segments...

Quoted 3 lines

i am using binary form of zImage
i didnt get u denk ,i dont know abt this elf what u have said ,i
am not sure abt it ,i will check it

Maybe reading the "Linux for PowerPC Embedded Systems HOWTO" gives some additional information, see
http://penguinppc.org/embedded/howto/PowerPC-Embedded-HOWTO.html

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] Do not simplify the design of a program if a way can be found to make it complex and wonderful.

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