[BusyBox] several questions and a quick patch
Ray Lehtiniemi
rayl at otii.com
Sun Dec 16 14:15:37 UTC 2001
On Sun, Dec 16, 2001 at 02:20:31AM -0700, Erik Andersen wrote:
> On Wed Dec 12, 2001 at 09:56:02AM -0700, Ray Lehtiniemi wrote:
> >
> > - why does init ignore items with non-null or non-console if there
> > is a serial console in use?
>
> If there is a serial console in use, then there are no
> virtual consoles available.
i guess i've confused the console id in the inittab entries with the
controlling terminal of the process started by that line. i was trying to
start a getty/login on my second (non-console) serial port. the login
prompt from getty shows up okay. however, login prints the password prompt
on the first (console) serial port.
i'd thought that changing the id in the inittab entry would solve this,
but maybe i'm barking up the wrong tree... maybe my login process from
tinylogin is confused about his terminal/stdin/stdout..
> getty should not complain. Traditional sysvinit does indeed mess
> with the utmp file (see man 5 utmp for details), but busybox init
> ignores the utmp file.
ok, so if i understand correctly:
- busybox/pwd_grp/getty.c looks for LOGIN_PROCESS to define SYSV_STYLE, which
then causes getty to look for utmp entries
- LOGIN_PROCESS is defined in
uClibc/libc/sysdeps/linux/arm/bits/utmp.h
which we see via
- busybox/pwd_grp/getty.c
- #include <utmp.h>
- #include <bits/utmp.h>
is there some configury i'm not seeing that i can tweak to remove the sysv
defines from the uclibc utmp headers, or convince getty to ignore them?
> > finally, here's a quick patch for busybox/Makefile that helps DODEBUG
> > work better for me:
>
> Sure, no problem,
btw, this patch isn't just for added verbosity. without something in STRIPCMD,
Makefile line 217 in the busybox target attempts to execute PROG instead of
stripping it. maybe the correct solution is to change the busybox target?
regards
--
---------------------------------------------------------------------------
Ray Lehtiniemi <rayl at mail.com> <rayl at otii.com>
More information about the busybox
mailing list