Skip to contentSkip to conversation

ramdisks, anyone?

DISCUSSION Mayan Moudgill 3 participants 3 messages Feb 24, 1999 – Feb 25, 1999

lore
Share & tools
lore
#0 lore raw

I am trying to build a small initrd, with a linuxrc that does something. Does somebody have such a ramdisk.image available?
Or even some suggestions on what to do?

I started off by trying to make bash my /linuxrc. Bash required ld.so.1, which required libc.so.2, etc....

This occupied more the 4MB. At that point the /dev/ram on the machine I was building the ramdisk started giving problems - If I built a bigger /dev/ram, after umount, dd would only read the first 4MB. is there something magical about 4M for ramdisks?

So I'm stuck..............

HELP!!!!!!!

:)
Mayan

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

#1 lore raw
Quoted 5 lines · Mayan Moudgill

I am trying to build a small initrd, with a linuxrc that does something. Does somebody have such a ramdisk.image available?
Or even some suggestions on what to do?

Quoted 7 lines

I started off by trying to make bash my /linuxrc. Bash required ld.so.1, which required libc.so.2, etc....

This occupied more the 4MB. At that point the /dev/ram on the machine I was building the ramdisk started giving problems - If I built a bigger /dev/ram, after umount, dd would only read the first 4MB. is there something magical about 4M for ramdisks?

Yes. If you want more than 4M, let's say 8M, you have to boot with a kernel argument ramdisk_size=8192. If you have kernel sources installed, you can read about this in /usr/src/linux/Documentation/ramdisk.txt.

--
Martin

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]

#2 lore raw
In reply to Mayan Moudgill

I vaugely remember a kernel argument called "ramdisk_size", so (if
you use bootx, but it in the line at bottom) try "ramdisk_size=8192" that will make the ramdisk 8 megs, or whatever your fancy....

ani

Quoted 14 lines · Mayan Moudgill

I am trying to build a small initrd, with a linuxrc that does something. Does somebody have such a ramdisk.image available?
Or even some suggestions on what to do?

I started off by trying to make bash my /linuxrc. Bash required ld.so.1, which required libc.so.2, etc....

This occupied more the 4MB. At that point the /dev/ram on the machine I was building the ramdisk started giving problems - If I built a bigger /dev/ram, after umount, dd would only read the first 4MB. is there something magical about 4M for ramdisks?

Quoted 7 lines

So I'm stuck..............

HELP!!!!!!!

:)
Mayan

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]] [[ the message 'unsubscribe' to [email protected] ]]