mount of JFFS2 as root device
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
Hi,
1. I don't have the utility 'rdev' in the o.s that I use, what are the alternatives to mount JFFS2 as root device ?
2. Is there a better compression ration I can achieve when using flash ?
Thanks, Amit.
Re: mount of JFFS2
In reply to a message not in the archiveHi,
When trying to mount JFFS2 as root on a malta board with mips5kc, I have passed the kernel the mount device by:
'go . root=/dev/mtdblock1'
after copying the file system to that device and I got the following:
jffs_scan_flash(): Leaving...jffs_find_file(): ino: 1jffs_find_file(): Didn't find file with ino 1. jffs_add_virtual_root(): Creating a virtual root directory. jffs_insert_file_into_hash(): f->ino: 1 jffs_possibly_delete_file(): ino: 1 jffs_remove_redundant_nodes(): ino: 1, name: "", newest_type: 1 jffs_insert_file_into_tree(): name: ""jffs_find_file(): ino: 0jffs_find_file(): Didn't find file with ino 0. jffs_build_file(): ino: 1, name: ""jffs_update_file(): ino: 1, version: 0
JFFS: Dumping the file system's hash table...
*** c->hash[1]: "" (ino: 1, pino: 0)
/ (ino: 1, highest_version: 0, size: 0)jffs_read_inode(): inode->i_ino == 1read_inode(): down biglockjffs_find_file(): ino: 1jffs_find_file(): Found file with ino 1. (name: "") read_inode(): up biglock
JFFS: GC thread pid=8.
JFFS: Successfully mounted device 1f:01.
amit: JFFS: Successfully mounted device 1f:01.
VFS: Mounted root (jffs filesystem) readonly.
Freeing prom memory: 956kb freed
Freeing unused kernel memory: 76k freedjffs_lookup(): dir: 0x810b0c40, name: "dev"lookup(): down biglockjffs_find_child()jffs_find_child(): Didn't find the file "dev". jffs_lookup(): Couldn't find the file. f = 0x00000000, name = "dev", d = 0x811f1lookup(): up biglock
Warning: unable to open an initial console.jffs_lookup(): dir: 0x810b0c40, name: "sbin"lookup(): down biglockjffs_find_child()jffs_find_child(): Didn't find the file "sbin". jffs_lookup(): Couldn't find the file. f = 0x00000000, name = "sbin", d = 0x8111lookup(): up biglockjffs_lookup(): dir: 0x810b0c40, name: "etc"lookup(): down biglockjffs_find_child()jffs_find_child(): Didn't find the file "etc". jffs_lookup(): Couldn't find the file. f = 0x00000000, name = "etc", d = 0x811f1lookup(): up biglockjffs_lookup(): dir: 0x810b0c40, name: "bin"lookup(): down biglockjffs_find_child()jffs_find_child(): Didn't find the file "bin". jffs_lookup(): Couldn't find the file. f = 0x00000000, name = "bin", d = 0x811f1lookup(): up biglock
Kernel panic: No init found. Try passing init= option to kernel.
Any ideas ???
Thanks, amit.
Re: mount of JFFS2
Quoted 3 lines · [email protected] said:
after copying the file system to that device and I got the following:
VFS: Mounted root (jffs filesystem) readonly.
You've mounted it as JFFS not JFFS2.
--
dwmw2
boot kernel off an mtd device
Is there a way to boot the linux kernel from CFI using mtd drivers ?
I use the MIPS-5kc and I have just seen this link that talks about x86 systems,
http://www.EmbeddedLinuxWorks.com/articles/rolo_guide.html
Thanks for information,
Amit.
Re: boot kernel off an mtd device
Quoted 1 line · [email protected] said:
Is there a way to boot the linux kernel from CFI using mtd drivers ?
No. The MTD drivers run in Linux and cannot be used before Linux is running.
Quoted 2 lines
I use the MIPS-5kc and I have just seen this link that talks about x86 systems, http://www.EmbeddedLinuxWorks.com/articles/rolo_guide.html
ROLO is x86-only, I believe. Try RedBoot. Is it this board?
http://sources.redhat.com/ecos/boards/atlas-5K.html
--
dwmw2