1 |
Hi all, |
2 |
|
3 |
Im building an x86 embedded distro using gentoo. Now i have been rather |
4 |
successful. I have built the whole system and it works, while only |
5 |
taking up 9mb (when gzipped). |
6 |
|
7 |
Now my question is how to get linux to load the gzipped image file into |
8 |
a ramdisk and use it as a root filesystem. |
9 |
|
10 |
Running the system directly from the CF card works great, but when |
11 |
trying to get it to run it in ram it fails |
12 |
with "kernel panic: VFS: Unable to mount root fs on unknown-block(1,0)". |
13 |
|
14 |
My attempt at running the system from ram is as follows: |
15 |
|
16 |
(grub config file): |
17 |
|
18 |
kernel /vmlinuz initrd=/rootfs.gz root=/dev/ram0 |
19 |
|
20 |
the rootfs.gz file is ~10Mb, and when uncompressed is an 100mb image |
21 |
(most of the image is free space to |
22 |
allow for future additions, this is a test bed). |
23 |
|
24 |
|
25 |
Now I presume this is probably what is incorrect, in which case can |
26 |
anyone help me regarding how to use |
27 |
ramdisks as root devices. (googling about tells me that the initrd image |
28 |
is not the root image, but rather |
29 |
a pre-root mounting fs to prepare the system for booting). |
30 |
|
31 |
P.S Please CC me as this mailinglist doesnt play nice with my email |
32 |
account. thanks! |
33 |
|
34 |
-- |
35 |
gentoo-user@g.o mailing list |