hi, all
I am new to busybox, i am porting linux-2.6.27 to atmel board at91sam9260ek, 
when kernel run up and mount fs, i can go into busybox's init indicated by: 
init started: BusyBox v1.7.0 (2009-01-05 11:34:46 CST)
starting pid 333, tty '': '/etc/init.d/rcS', after this, it go to login 
process, but when i enter the loginname and password,  i  got:
process  '/sbin/getty  115200  ttyS0 '  (pid  334)  exited.  Scheduling  it  
for  restart. what's wrong?  I created a user and it's password on host and 
copy the passwd and shadow file to target board's etc diretory. here, i changed 
username to root.
/etc/inittab:
# /etc/inittab
::sysinit:/etc/init.d/rcS
::respawn:/sbin/getty 115200 ttyS0
::ctrlaltdel:/sbin/reboot
::shutdown:/bin/umount -a -r
::restart:/sbin/init

/etc/passwd:
root:x:0:0:root:/:/bin/sh
/etc/group:
root:x:0:
/etc/shadow:
root:$1$c4WUbvCW$IoxMjQvkvdQywXk38j4xL1:14248:0:99999:7:::

when i change "::respawn:/sbin/getty 115200 ttyS0"  to  
"ttyS0::askfirst:-/bin/sh",  I  got  :
Please press Enter to activate this console. 
starting pid 334, tty '/dev/ttyS0': '/bin/sh'
process '-/bin/sh' (pid 334) exited. Scheduling it for restart. 
Busybox was built with its default configuration.
any advise will be appreciated !
Best regards,
Tony Zheng

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to