public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* jffs2 root
@ 2001-08-28 16:49 Kenneth Johansson
  2001-08-28 16:54 ` David Woodhouse
  0 siblings, 1 reply; 5+ messages in thread
From: Kenneth Johansson @ 2001-08-28 16:49 UTC (permalink / raw)
  To: mtd

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. 


-- 
Kenneth Johansson	
Ericsson Business Innovation AB   Tel: +46 8 404 71 83
Viderögatan 3                     Fax: +46 8 404 72 72
164 80 Stockholm                  kenneth.johansson@inn.ericsson.se

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: jffs2 root
  2001-08-28 16:49 jffs2 root Kenneth Johansson
@ 2001-08-28 16:54 ` David Woodhouse
  2001-08-28 17:13   ` Kenneth Johansson
  0 siblings, 1 reply; 5+ messages in thread
From: David Woodhouse @ 2001-08-28 16:54 UTC (permalink / raw)
  To: Kenneth Johansson; +Cc: mtd

kenneth.johansson@inn.ericsson.se said:
>  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. 

Odd. Are you 100% sure you haven't got 'init=' on the command line?

--
dwmw2

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: jffs2 root
  2001-08-28 16:54 ` David Woodhouse
@ 2001-08-28 17:13   ` Kenneth Johansson
  2001-08-28 17:17     ` David Woodhouse
  0 siblings, 1 reply; 5+ messages in thread
From: Kenneth Johansson @ 2001-08-28 17:13 UTC (permalink / raw)
  To: David Woodhouse; +Cc: mtd

David Woodhouse wrote:
> 
> kenneth.johansson@inn.ericsson.se said:
> >  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.
> 
> 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.

???

-- 
Kenneth Johansson	
Ericsson Business Innovation AB   Tel: +46 8 404 71 83
Viderögatan 3                     Fax: +46 8 404 72 72
164 80 Stockholm                  kenneth.johansson@inn.ericsson.se

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: jffs2 root
  2001-08-28 17:13   ` Kenneth Johansson
@ 2001-08-28 17:17     ` David Woodhouse
  2001-08-28 17:35       ` Kenneth Johansson
  0 siblings, 1 reply; 5+ messages in thread
From: David Woodhouse @ 2001-08-28 17:17 UTC (permalink / raw)
  To: Kenneth Johansson; +Cc: mtd

kenneth.johansson@inn.ericsson.se 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: jffs2 root
  2001-08-28 17:17     ` David Woodhouse
@ 2001-08-28 17:35       ` Kenneth Johansson
  0 siblings, 0 replies; 5+ messages in thread
From: Kenneth Johansson @ 2001-08-28 17:35 UTC (permalink / raw)
  To: David Woodhouse; +Cc: mtd

David Woodhouse wrote:
> 
> kenneth.johansson@inn.ericsson.se 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

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.


-- 
Kenneth Johansson	
Ericsson Business Innovation AB   Tel: +46 8 404 71 83
Viderögatan 3                     Fax: +46 8 404 72 72
164 80 Stockholm                  kenneth.johansson@inn.ericsson.se

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-08-28 17:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-28 16:49 jffs2 root Kenneth Johansson
2001-08-28 16:54 ` David Woodhouse
2001-08-28 17:13   ` Kenneth Johansson
2001-08-28 17:17     ` David Woodhouse
2001-08-28 17:35       ` Kenneth Johansson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox