[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] devfs and init
From:       Glenn McGrath <bug1 () optushome ! com ! au>
Date:       2001-02-26 23:47:44
[Download RAW message or body]

Im using devfs and bb init, one problem i get is the message "Bummer,
cant write to log on /dev/tty5!", /dev/tty5 is /dev/vc/4 under devfs i
think.

There are some hard coded devices that dont apply to devfs, it would be
nicer if there was a more transarent way of assigning devices that wasnt
specific to tradition devices or devfs.

from init.c
#define VT_PRIMARY   "/dev/tty1"     /* Primary virtual console */
#define VT_SECONDARY "/dev/tty2"     /* Virtual console */
#define VT_THIRD     "/dev/tty3"     /* Virtual console */
#define VT_FOURTH    "/dev/tty4"     /* Virtual console */
#define VT_LOG       "/dev/tty5"     /* Virtual console */
#define SERIAL_CON0  "/dev/ttyS0"    /* Primary serial console */
#define SERIAL_CON1  "/dev/ttyS1"    /* Serial console */

I dont have a deep understanding of init yet, but maybe these #defined
devices could be fetched from inittab instead... but maybe they are just
there incase nothing is defined in inittab... anyway, i will try and
understand init better and see what i can work out.

Also i was thinking of either making up and inittab.devfs or putting
some comments in the existing example inittab script with equivalent
devfs devices.


Glenn



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic