Re: [OpenWrt-Devel] preinit-problem with current trunk

2010-12-08 Thread Alexey Loukianov
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

05.12.2010 17:36, Marcus Osdoba wrote:
 Unfortunatly I get the following error message and the system hangs:
 [..]
 Freeing init memory: 100K
 /etc/preinit: line 1: can't open : no such file
 Kernel panic - not syncing: Attempted to kill init!
 [..]

Check if your image contain correct symlink from /bin/sh to busybox or to any
other POSIX-complaint shell (ash/bash/whatever-you-use-in-your-build).

- -- 
Best regards,
Alexey Loukianov  mailto:mooro...@mail.ru
System Engineer,Mob.:+7(926)218-1320
*nix Specialist

-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJM/1xGAAoJEPB9BOdTkBULXyMIAKwHXcGrpHVv3eN2PhYBbg1d
P/5gudBNrV6AjYwE/ex77Nx1lduPP8FgCD0z8g6F+T/XokIfBXzjRl4VexqlkoRd
iImPo4q9upkI68mNKoj5trIVLPuCZh+rdhcKlu3ANnbeEjP+YwNml6SAotuZwzpQ
HK2tYUOrrQd6OPF1QgTMjZ8iB4UYTImitZlITys024EknGuDdiaPvGhFmfTbpf3I
A4P9dJsmxRzdy2NCcp2S2xBBmzvc7ng28JDmWA3AxPpvVynjz8Ktfa5MYQwU+s2L
DCx0TWi18YzO5FtzrEtNanyObeTrrOod22VDTyr1FxFGCGlDazND9R7bIJDodXU=
=U/By
-END PGP SIGNATURE-
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] preinit-problem with current trunk

2010-12-08 Thread Marcus Osdoba

Am 08.12.2010 11:21, schrieb Alexey Loukianov:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

05.12.2010 17:36, Marcus Osdoba wrote:

Unfortunatly I get the following error message and the system hangs:
[..]
Freeing init memory: 100K
/etc/preinit: line 1: can't open : no such file
Kernel panic - not syncing: Attempted to kill init!
[..]


Check if your image contain correct symlink from /bin/sh to busybox or to any
other POSIX-complaint shell (ash/bash/whatever-you-use-in-your-build).

That was my first action. And yes, ash and sh are pointing correct to 
the busybox executable.

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] preinit-problem with current trunk

2010-12-06 Thread Mark Vels
On 05/12/10 15:36, Marcus Osdoba wrote:
 Hello mailinglist,
 
 I'm compiling kirkwood images for my dockstar out of the current trunk
 (r24217). Everything seems to work fine. Jffs2 is expanding and the
 system tries to enter init process.
 
 Unfortunatly I get the following error message and the system hangs:
 [..]
 Freeing init memory: 100K
 /etc/preinit: line 1: can't open : no such file
 Kernel panic - not syncing: Attempted to kill init!
 [..]

What I would do is handcraft/modify a filesystem:
- rename the existing /etc/preinit to /etc/preinit_impl or something
- Create a new script called /etc/preinit with first and only line containing: 
/bin/sh -x /etc/preinit_impl

This works at least if you're using the ash shell and will print out each line 
of script before executing it. It might
give you just a little bit more context to look further...

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] preinit-problem with current trunk

2010-12-05 Thread Marcus Osdoba

Hello mailinglist,

I'm compiling kirkwood images for my dockstar out of the current trunk 
(r24217). Everything seems to work fine. Jffs2 is expanding and the 
system tries to enter init process.


Unfortunatly I get the following error message and the system hangs:
[..]
Freeing init memory: 100K
/etc/preinit: line 1: can't open : no such file
Kernel panic - not syncing: Attempted to kill init!
[..]


I had a look into the tar.gz and didn't see anything suspicious. The 
preinit skript looked like the one on several positive tries before. 
bin/sh is present, the export should work, too diag.sh is present so is 
functions.sh.

sbin/init points to busybox...

Do you have any hint where I may find the cause?

Thanks in advance.

Regards,
Marcus
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel