Re: Trouble building NanoBSD image for Soekris 5501 (sio.c error)

2009-03-30 Thread Mel Flynn
On Monday 30 March 2009 23:44:24 Dave Pascoe wrote:
> Hi-
>
> I am trying to build a NanoBSD image for a Soekris net5501 from
> FreeBSD-7.1 stable.
>
> Build world finishes but the kernel build fails trying to compile sio.c
> (see error below)

I don't see a note in UPDATING about tty in -STABLE, but -HEAD contains an 
entry about the new tty stack. It is possible these changes have now been 
backported as the errors point there.
You may want to check the -stable mailing list.

From -HEAD's UPDATING:
20080820:
The TTY subsystem of the kernel has been replaced by a new
implementation, which provides better scalability and an
improved driver model. Most common drivers have been migrated to
the new TTY subsystem, while others have not. The following
drivers have not yet been ported to the new TTY layer:

PCI/ISA:
cy, digi, rc, rp, sio

USB:
ubser, ucycom

Line disciplines:
ng_h4, ng_tty, ppp, sl, snp

Adding these drivers to your kernel configuration file shall
cause compilation to fail.

-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Trouble building NanoBSD image for Soekris 5501 (sio.c error)

2009-03-30 Thread Dave Pascoe
Hi-

I am trying to build a NanoBSD image for a Soekris net5501 from
FreeBSD-7.1 stable.

Build world finishes but the kernel build fails trying to compile sio.c
(see error below)

Kernel config file also included below.

Thanks in advance,
Dave


This is the line from the kernel config:

device  sio # 8250, 16[45]50 based serial ports

kernel build error:

/usr/src/sys/dev/sio/sio.c: In function 'sysctl_machdep_comdefaultrate':
/usr/src/sys/dev/sio/sio.c:356: error: 'struct tty' has no member named
't_init_in'
/usr/src/sys/dev/sio/sio.c:356: error: 'struct tty' has no member named
't_init_in'
/usr/src/sys/dev/sio/sio.c:357: error: 'struct tty' has no member named
't_lock_in'
/usr/src/sys/dev/sio/sio.c:357: error: 'struct tty' has no member named
't_lock_in'
/usr/src/sys/dev/sio/sio.c:358: error: 'struct tty' has no member named
't_init_out'
/usr/src/sys/dev/sio/sio.c:358: error: 'struct tty' has no member named
't_init_out'
/usr/src/sys/dev/sio/sio.c:359: error: 'struct tty' has no member named
't_lock_out'
/usr/src/sys/dev/sio/sio.c:359: error: 'struct tty' has no member named
't_lock_out'
/usr/src/sys/dev/sio/sio.c:361: error: 'struct tty' has no member named
't_state'
/usr/src/sys/dev/sio/sio.c:361: error: 'TS_ISOPEN' undeclared (first use
in this function)
/usr/src/sys/dev/sio/sio.c:361: error: (Each undeclared identifier is
reported only once
/usr/src/sys/dev/sio/sio.c:361: error: for each function it appears in.)
cc1: warnings being treated as errors
/usr/src/sys/dev/sio/sio.c: In function 'siodetach':
/usr/src/sys/dev/sio/sio.c:400: warning: implicit declaration of
function 'ttyfree'
/usr/src/sys/dev/sio/sio.c:400: warning: nested extern declaration of
'ttyfree'
/usr/src/sys/dev/sio/sio.c: In function 'sioattach':
/usr/src/sys/dev/sio/sio.c:928: warning: implicit declaration of
function 'ttyalloc'
/usr/src/sys/dev/sio/sio.c:928: warning: nested extern declaration of
'ttyalloc'
/usr/src/sys/dev/sio/sio.c:928: warning: assignment makes pointer from
integer without a cast
/usr/src/sys/dev/sio/sio.c:929: error: 'struct tty' has no member named
't_oproc'
/usr/src/sys/dev/sio/sio.c:930: error: 'struct tty' has no member named
't_param'
/usr/src/sys/dev/sio/sio.c:931: error: 'struct tty' has no member named
't_stop'
/usr/src/sys/dev/sio/sio.c:932: error: 'struct tty' has no member named
't_modem'
/usr/src/sys/dev/sio/sio.c:933: error: 'struct tty' has no member named
't_break'
/usr/src/sys/dev/sio/sio.c:934: error: 'struct tty' has no member named
't_close'
/usr/src/sys/dev/sio/sio.c:935: error: 'struct tty' has no member named
't_open'
/usr/src/sys/dev/sio/sio.c:936: error: 'struct tty' has no member named
't_sc'
/usr/src/sys/dev/sio/sio.c:943: warning: implicit declaration of
function 'ttyconsolemode'
/usr/src/sys/dev/sio/sio.c:943: warning: nested extern declaration of
'ttyconsolemode'
/usr/src/sys/dev/sio/sio.c:944: error: 'struct tty' has no member named
't_init_in'
/usr/src/sys/dev/sio/sio.c:1081: error: 'struct tty' has no member named
't_pps'
/usr/src/sys/dev/sio/sio.c:1118: warning: implicit declaration of
function 'ttycreate'
/usr/src/sys/dev/sio/sio.c:1118: warning: nested extern declaration of
'ttycreate'
/usr/src/sys/dev/sio/sio.c:1118: error: 'TS_CALLOUT' undeclared (first
use in this function)
/usr/src/sys/dev/sio/sio.c: In function 'comopen':
/usr/src/sys/dev/sio/sio.c:1129: error: 'struct tty' has no member named
't_sc'
/usr/src/sys/dev/sio/sio.c:1181: warning: implicit declaration of
function 'ISCALLOUT'
/usr/src/sys/dev/sio/sio.c:1181: warning: nested extern declaration of
'ISCALLOUT'
/usr/src/sys/dev/sio/sio.c:1182: warning: implicit declaration of
function 'ttyld_modem'
/usr/src/sys/dev/sio/sio.c:1182: warning: nested extern declaration of
'ttyld_modem'
/usr/src/sys/dev/sio/sio.c: In function 'comclose':
/usr/src/sys/dev/sio/sio.c:1194: error: 'struct tty' has no member named
't_sc'
/usr/src/sys/dev/sio/sio.c:1210: error: 'struct tty' has no member named
't_cflag'
/usr/src/sys/dev/sio/sio.c:1218: error: 'struct tty' has no member named
't_actout'
/usr/src/sys/dev/sio/sio.c:1220: error: 'struct tty' has no member named
't_init_in'
/usr/src/sys/dev/sio/sio.c:1221: error: 'struct tty' has no member named
't_state'
/usr/src/sys/dev/sio/sio.c:1221: error: 'TS_ISOPEN' undeclared (first
use in this function)
/usr/src/sys/dev/sio/sio.c:1223: warning: implicit declaration of
function 'ttydtrwaitstart'
/usr/src/sys/dev/sio/sio.c:1223: warning: nested extern declaration of
'ttydtrwaitstart'
/usr/src/sys/dev/sio/sio.c:1234: error: 'struct tty' has no member named
't_actout'
/usr/src/sys/dev/sio/sio.c:1235: error: 'struct tty' has no member named
't_actout'
/usr/src/sys/dev/sio/sio.c:1236: warning: implicit declaration of
function 'TSA_CARR_ON'
/usr/src/sys/dev/sio/sio.c:1236: warning: nested extern declaration of
'TSA_CARR_ON'
/usr/src/sys/dev/sio/sio.c:1236: warning: passing argument 1 of 'wakeup'
makes pointer from integer without a cast
/usr/src/sys/dev/sio/sio.c: In functi