[BusyBox] init_main() problem

David Siorpaes david.siorpaes at st.com
Thu Dec 18 10:42:09 UTC 2003


Hi,

I am developing on a ST Nomadik platform based on ARM926.
I have succesfully made busybox run on it but I needed to apply little
modification to init.c in order to have the login prompt on serial line


diff -urN busybox-1.00-pre4-orig/init/init.c busybox-1.00-pre4/init/init.c
--- busybox-1.00-pre4-orig/init/init.c    Fri Sep 26 12:45:55 2003
+++ busybox-1.00-pre4/init/init.c    Thu Dec 18 11:22:12 2003
@@ -1092,9 +1092,11 @@
     console_init();
 
     /* Close whatever files are open, and reset the console. */
+#if 0
     close(0);
     close(1);
     close(2);
+#endif
 
     if (device_open(console, O_RDWR | O_NOCTTY) == 0) {
         set_term(0);




init is launched as /linuxrc and this is my inittab:


::sysinit:/etc/init.d/rcS
::respawn:/sbin/getty -n -L ttyAMA0 38400 vt100
::shutdown:/etc/init.d/rcH


Any hint on what is happening?
thanks


david siorpaes




More information about the busybox mailing list