jffs2 root
This is the last lines of a boot.
---
VFS: Mounted root (jffs2 filesystem) readonly. Mounted devfs on /dev
Freeing unused kernel memory: 56k init 4k openfirmware Starting userspace with /sbin/init
Kernel panic: No init found. Try passing init= option to kernel.
Rebooting in 180 seconds..
-----
What dose this mean?? It mounts jffs2 and I know /sbin/init is there.
The exact same kernel booting a ramdisk then mounting jffs2 works and a diff of /sbin/init shows it to be correct.
Signature · 4 lines
Kenneth Johansson Ericsson Business Innovation AB Tel: +46 8 404 71 83 Viderögatan 3 Fax: +46 8 404 72 72 164 80 Stockholm [email protected]
Quoted 3 lines · [email protected] said:
What dose this mean?? It mounts jffs2 and I know
/sbin/initis there.
The exact same kernel booting a ramdisk then mounting jffs2 works and a diff of/sbin/initshows it to be correct.
Odd. Are you 100% sure you haven't got 'init=' on the command line?
--
dwmw2
Quoted 7 lines · David Woodhouse
Quoted 3 lines · [email protected] said:
What dose this mean?? It mounts jffs2 and I know
/sbin/initis there.
The exact same kernel booting a ramdisk then mounting jffs2 works and a diff of/sbin/initshows it to be correct.Odd. Are you 100% sure you haven't got 'init=' on the command line?
yes this is what happens with init=/bin/bash
--------
VFS: Mounted root (jffs2 filesystem) readonly. Mounted devfs on /dev
Freeing unused kernel memory: 56k init 4k openfirmware Starting userspace with /bin/bash
Starting userspace with /sbin/init
Kernel panic: No init found. Try passing init= option to kernel.
---------
I have booted from jffs2 one time (the first time I tried) but I had syslogd starting in the init script and jffs2 creates data everytime something happens that syslogd saves that creates more log ... Well I could not do much before the disk was full so I did this steps.
erased the flash with erase /dev/mtd/0 0 128 (I have 8MB flash)
mounted /dev/mtdblock/0 on /mnt/mtd
Created the filesystem with (yes I know cp has -x option)
find / -type d -xdev -exec mkdir /mnt/mtd/{} \; find / -type f -xdev -exec cp -dpvf {} /mnt/mtd/{} \;
It is not possible to boot from the result of this.
???
Signature · 4 lines
Kenneth Johansson Ericsson Business Innovation AB Tel: +46 8 404 71 83 Viderögatan 3 Fax: +46 8 404 72 72 164 80 Stockholm [email protected]
Quoted 2 lines · [email protected] said:
find / -type d -xdev -exec mkdir
/mnt/mtd/{}\; find / -type f -xdev -exec cp -dpvf {}/mnt/mtd/{}\;
$ ldd /bin/bash libtermcap.so.2 => /lib/libtermcap.so.2 (0x40029000) libdl.so.2 => /lib/libdl.so.2 (0x4002d000) libc.so.6 => /lib/i686/libc.so.6 (0x40031000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
All those are symlinks not real files, hence won't have been copied onto your filesystem by the 'find -type f' command.
--
dwmw2
Quoted 11 lines · David Woodhouse
Quoted 2 lines · [email protected] said:
find / -type d -xdev -exec mkdir
/mnt/mtd/{}\; find / -type f -xdev -exec cp -dpvf {}/mnt/mtd/{}\;$ ldd /bin/bash libtermcap.so.2 => /lib/libtermcap.so.2 (0x40029000) libdl.so.2 => /lib/libdl.so.2 (0x4002d000) libc.so.6 => /lib/i686/libc.so.6 (0x40031000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
Quoted 5 lines
All those are symlinks not real files, hence won't have been copied onto your filesystem by the 'find -type f' command.
--
dwmw2
obviously :) if only my retarded brain had done "chroot /mnt/mtd/ /bin/bash"
It works much better when I copy the entire file system. Since all this is done in script I'am a little confused how I got it to work once.
Signature · 4 lines
Kenneth Johansson Ericsson Business Innovation AB Tel: +46 8 404 71 83 Viderögatan 3 Fax: +46 8 404 72 72 164 80 Stockholm [email protected]