Hi,

I'm porting Sigma EM85XX patches from 2.4.17 to 2.6.24 kernel. The
kernel is configured as

#
# Input device support
#
# CONFIG_INPUT is not set

#
# Character devices
#
# CONFIG_VT is not set
# CONFIG_SERIAL_NONSTANDARD is not set

#
# Serial drivers
#
# CONFIG_SERIAL_8250 is not set

#
# Non-8250 serial port support
#
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=4

CONFIG_SERIAL_JASPER=y
CONFIG_SERIAL_JASPER_CONSOLE=y
CONFIG_SERIAL_JASPER_SERIAL_BAUDRATE=38400

and uses serial console during boot (console=ttyS0). I can see all
boot messages until the warning "unable to open an initial console",
but then only errors are displayed. My init script in the intiramfs
looks like:

mount -t proc proc /proc
mount -t sysfs sysfs /sys
busybox --install -s
mknod /dev/null c 1 3
mknod /dev/console c 5 1
mdev -s
exec sh

and etc/inittab has a line

::respawn:getty -L ttyS0 38400

I've added debug output to exec() and can see that the commands are
executed

exec: (/init) /init | exec code: 0
exec: (/bin/sh) mount -t proc proc /proc | exec code: 0
exec: (/bin/sh) mount -t sysfs sysfs /sys | exec code: 0
exec: (busybox) busybox --install -s | exec failed code -2
exec: (/bin/busybox) busybox --install -s | exec code: 0
exec: (/bin/sh) mknod /dev/null c 1 3 | exec code: 0
exec: (/bin/sh) mknod /dev/console c 5 1 | exec code: 0
exec: (/bin/sh) mdev -s | exec code: 0
exec: (/bin/sh) sh | exec code: 0

but it results in

Kernel panic - not syncing: Attempted to kill init!

Any ideas what I did wrong?

-- 
Best regards,
 Andrei                          mailto:[email protected]

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to