Skip to contentSkip to conversation

ppcboot, linux , hang at the last step

DISCUSSION Omanakuttan 2 participants 2 messages Nov 26, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines · caixupeng

but, can you tell me the detail?

Does it mean the kernel has build in ramdisk ?

No. The kernel does not have a built in ramdisk. but it uses the ramdisk image passed for modules and the like. correct me if I am wrong.

Quoted 1 line

or you have to give a ramdisk separately to the kernel boot args?

initrd='ramdisk image' is the option I gave.
I am not very much conversant with linux booting procedure, but I believe that the initrd image takes all the dependent modules and link them properly when the kernel is booting up. So even if you choose fs support in modular format, it will be loaded by the initrd image.

Quoted 3 lines
Quoted 1 line

when I passed the initrd option into the kernel.

the option is " root=/dev/ram ", right?

Frankly, I am not sure. someone else might be able to help you.

Thanks and regards,
Om.

Quoted 20 lines · caixupeng

very very thanks.

but, can you tell me the detail?

I didn't choose advanced partion features.

and I chose ext2 fs support, and initrd support too.

there is a size of ramdisk set in linux config,

Does it mean the kernel has build in ramdisk ?
or you have to give a ramdisk separately to the kernel boot args?

Quoted 1 line

when I passed the initrd option into the kernel.

the option is " root=/dev/ram ", right?

thank you very much!

Quoted 34 lines

edmoon

----- Original Message -----
From: "Omanakuttan" <[email protected]>
To: "caixupeng" <[email protected]>
Sent: Tuesday, November 26, 2002 1:03 PM
Subject: Re: ppcboot, linux , hang at the last step

Quoted 22 lines
Quoted 7 lines · caixupeng

When I boot a linux image use "bootm ffa00000 ffb00000"

VFS: Cannot open root device "" or 16:01
Please append a correct "root=" boot option

Kernel panic: VFS: Unable to mount root fs on 16:01

I have set the "bootargs=root=/dev/ram"

I faced the same problem, not on ebony.
My configuration was wrong.
1. i did not compile in the advanced partition features and consequently kernel could not recognize my hda.
2. The problem still persisted. I found out the file system support was absent. I compiled ext2 fs support into the kernel and tried.
3. I had to create an initrd image using mkinitrd, and all worked fine when I passed the initrd option into the kernel.

HTH.
Om.

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

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

No. The kernel does not have a built in ramdisk. but it uses the ramdisk image passed for modules and the like. correct me if I am wrong.

Please do not confuse the usage of a ramdisk image with standard distributions like RedHat etc. With Embedded Systems a ramdisk image usually severs a bit a different purpose.

Quoted 2 lines
Quoted 1 line

or you have to give a ramdisk separately to the kernel boot args?

initrd='ramdisk image' is the option I gave.

This may be correct with some boot loader like LILO, bot it i s not a valid kernel boot argument.

Quoted 2 lines
Quoted 1 line

the option is " root=/dev/ram ", right?

Frankly, I am not sure. someone else might be able to help you.

Yes, "root=/dev/ram" (or usually "root=/dev/ram rw") is the correct kernel boot argument for booting with an initial ramdisk image.

Best regards,

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] "The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." - Joseph Weizenbaum, _Computer Power and Human Reason_

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