Re: [iPAQ] Problem about linuxargs: "init=/linuxrc"

From: Philip Blundell <pb_at_reciva.com>
Date: Mon, 28 Feb 2005 13:34:34 +0000

This is the expected behaviour. If you set init=/linuxrc and supply
a /linuxrc script, it must either end with something like
"exec /sbin/init" or include some other code to perform init's duties.
Init must never exit: as you have discovered, the machine will crash if
it does.

p.

On Sun, 2005-02-27 at 00:18 +0800, chaochinhung_at_ntu.edu.tw wrote:
> But when I created a "\linuxrc" with some simple commands like:
>
> #!/bin/sh
> /bin/echo "##############################################"
> /bin/echo "##############################################"
> /bin/echo "##############################################"
>
> And set "linuxargs" to:
> "root=/dev/mtdblock1 init=/linuxrc noinitrd console=ttyS0",
> The /linuxrc was excuted without problems, but system panicked
> with the following error messages:
>
> NET4: Linux TCP/IP 1.0 for NET4.0
> IP Protocols: ICMP, UDP, TCP, IGMP
> IP: routing cache hash table of 512 buckets, 4Kbytes
> TCP: Hash tables configured (established 4096 bind 4096)
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
> mtdblock_open
> ok
> VFS: Mounted root (jffs2 filesystem).
> Mounted devfs on /dev
> Freeing init memory: 68K
> ##############################################
> ##############################################
> ##############################################
> Kernel panic: Attempted to kill init!
>
> Am I missing some boot parameters or something?
> Thanks in advance!
Received on Mon Feb 28 2005 - 08:36:43 EST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:25:07 EDT