* Use jffs2-formatted initrd from RAM (not Flash)
@ 2006-06-18 10:55 Sebastian Haag
2006-06-22 11:13 ` Sebastian Haag
0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Haag @ 2006-06-18 10:55 UTC (permalink / raw)
To: linux-mtd
Hi,
I have a minimal linux system which consists of a bzImage (kernel 2.6.16.5) and
a rootfs (initrd). The rootfs is formatted with ext2. The kernel and initrd is
stored on a bootp server and is loaded at system startup into the system RAM.
Kernel gets extracted, mounts the rootfs and executes init.
Everything works fine.
To save memory in RAM, I want to compress the rootfs. I decided to use jffs2 as
filesystem, because its writable.
My kernel supports jffs2 filesystems and mtd devices (I hope so).
What I did:
- mkfs.jffs2 -l -o ../jffs_root.img
- test in qemu:
-----------------------------------
INITRD=jffs_root.img
qemu $INITRD -kernel bzImage -initrd $INITRD -net nic,vlan=0 -net
tap,vlan=0,ifname=tap0 -append "root=/dev/mtdblock0 rw blkmtd_device=/dev/ram0
rootfstype=jffs2"
-----------------------------------
I added the whole "-append thing", but I´m not absolutely sure what I did ;-)
But I´m sure, it doesn´t work...
I get the following messages:
RAMDISK driver initialized: 1 RAM disks of 4096K size 1024 blocksize
blkmtd: version $Revision: 1.27 $
blkmtd: mtd1: [/dev/ram0] erase_size = 128KiB
block2mtd: version $Revision: 1.30 $
...
RAMDISK: Couldn´t find valid RAM disk image starting at 0.
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 104k freed
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
Do you have an idea which kernel parameters are needed to mount this
jffs2-rootfs properly?
Thanks,
Sebastian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Use jffs2-formatted initrd from RAM (not flash)
@ 2006-06-18 10:57 Sebastian Haag
0 siblings, 0 replies; 4+ messages in thread
From: Sebastian Haag @ 2006-06-18 10:57 UTC (permalink / raw)
To: linux-mtd
Hi,
I have a minimal linux system which consists of a bzImage (kernel 2.6.16.5) and
a rootfs (initrd). The rootfs is formatted with ext2. The kernel and initrd is
stored on a bootp server and is loaded at system startup into the system RAM.
Kernel gets extracted, mounts the rootfs and executes init.
Everything works fine.
To save memory in RAM, I want to compress the rootfs. I decided to use jffs2 as
filesystem, because its writable.
My kernel supports jffs2 filesystems and mtd devices (I hope so).
What I did:
- mkfs.jffs2 -l -o ../jffs_root.img
- test in qemu:
-----------------------------------
INITRD=jffs_root.img
qemu $INITRD -kernel bzImage -initrd $INITRD -net nic,vlan=0 -net
tap,vlan=0,ifname=tap0 -append "root=/dev/mtdblock0 rw blkmtd_device=/dev/ram0
rootfstype=jffs2"
-----------------------------------
I added the whole "-append thing", but I´m not absolutely sure what I did ;-)
But I´m sure, it doesn´t work...
I get the following messages:
RAMDISK driver initialized: 1 RAM disks of 4096K size 1024 blocksize
blkmtd: version $Revision: 1.27 $
blkmtd: mtd1: [/dev/ram0] erase_size = 128KiB
block2mtd: version $Revision: 1.30 $
...
RAMDISK: Couldn´t find valid RAM disk image starting at 0.
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 104k freed
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
Do you have an idea which kernel parameters are needed to mount this
jffs2-rootfs properly?
Thanks,
Sebastian
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-06-23 5:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-18 10:55 Use jffs2-formatted initrd from RAM (not Flash) Sebastian Haag
2006-06-22 11:13 ` Sebastian Haag
2006-06-23 5:43 ` Nishanth Menon
-- strict thread matches above, loose matches on Subject: below --
2006-06-18 10:57 Use jffs2-formatted initrd from RAM (not flash) Sebastian Haag
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.