Subject: Vairous stuff, compile woes and current- probs.
To: None <port-arm32@NetBSD.ORG>
From: Jasper Wallace <jasper@ivision.co.uk>
List: port-arm32
Date: 12/11/1996 11:59:17
The atapi patches on the ftp site fail with -current. I can apply the
patches that fail by hand but to get it to compile i'd have to write some of
the code myself!

cc  -Werror -Wreturn-type -O2 -I. -I../../../../arch -I../../../.. -nostdinc -DMACHINE_NONCONTIG -DEXEC_AOUT -DEXEC_SCRIPT -DTIMEZONE="0" -DDST="0" -DSWAPPAGER  -DVNODEPAGER -DDEVPAGER -DNTP -DCPU_ARM7 -DCPU_LATE_ABORT -DARMFPE -DFFS -DCD9660 -DMSDOSFS -D
FDESC -DFIFO -DKERNFS -DPROCFS -DUNION -DNFSCLIENT -DNFSSERVER -DINET -DCOMPAT_43 -DCOMPAT_12 -DTCP_COMPAT_42 -DSYSVMSG -DSYSVSEM -DSYSVSHM -DSHMMAXPGS="0x400" -DDIAGNOSTIC -DKTRACE -DIRQSTATS -DPOSTMORTEM -DKSHELL -DDDB -DGENERIC -DMAXUSERS=32 -D_KERNEL 
 -Darm32 -Wcomment  -c
../../../../arch/arm32/mainbus/wd.c
../../../../arch/arm32/mainbus/wd.c: In function wdcreset':
../../../../arch/arm32/mainbus/wd.c:929: wdresethack' undeclared (first use this function)
../../../../arch/arm32/mainbus/wd.c:929: (Each undeclared identifier is reported only once
../../../../arch/arm32/mainbus/wd.c:929: for each function it appears in.)
../../../../arch/arm32/mainbus/wd.c: In function wdcunwedge':
../../../../arch/arm32/mainbus/wd.c:971: wdctimeout' undeclared (first use this function)
../../../../arch/arm32/mainbus/wd.c:979: structure has no member named sc_state'
../../../../arch/arm32/mainbus/wd.c:980: structure has no member named sc_state'
../../../../arch/arm32/mainbus/wd.c:987: RECOVERYTIME' undeclared (first use this function)
../../../../arch/arm32/mainbus/wd.c: In function wdcwait':
../../../../arch/arm32/mainbus/wd.c:1006: WDCNDELAY' undeclared (first use this function)
../../../../arch/arm32/mainbus/wd.c:1008: WDCDELAY' undeclared (first usebthis function)
../../../../arch/arm32/mainbus/wd.c: At top level:
../../../../arch/arm32/mainbus/wd.c:1025: wdctimeout' used prior to declaration
../../../../arch/arm32/mainbus/wd.c: In function wdctimeout':
../../../../arch/arm32/mainbus/wd.c:1032: structure has no member named sc_drives'
cc1: warnings being treated as errors
../../../../arch/arm32/mainbus/wd.c:1036: warning: passing arg 1 of wderror' from incompatible pointer type
../../../../arch/arm32/mainbus/wd.c:1040: structure has no member named sc_nblks'
../../../../arch/arm32/mainbus/wd.c:1040: structure has no member named sc_blkno'
../../../../arch/arm32/mainbus/wd.c:1043: warning: passing arg 1 of wderror' from incompatible pointer type
../../../../arch/arm32/mainbus/wd.c: In function wderror':
../../../../arch/arm32/mainbus/wd.c:1049: syntax error before *'
../../../../arch/arm32/mainbus/wd.c:1052: argument d_link' doesn't match prototype
../../../../arch/arm32/mainbus/wdlink.h:136: prototype declaration
../../../../arch/arm32/mainbus/wd.c:1053: invalid type argument of ->'
../../../../arch/arm32/mainbus/wd.c:1054: dev' undeclared (first use this function)
../../../../arch/arm32/mainbus/wd.c:1059: syntax error before wd'
*** Error code 1

Stop.

wdresethack isn't initialised any where - the only places its used is in a
couple of if's - it appears to have been removed in -current code. I fixed
some of the syntax errors, but to be honest I'd rather get the real code
that write my own.

secondly compiling a kernel with no ppp fails:

line 563 or irqhandler.c is:

#ifdef NPPP

since NPPP is defined as 0 in kernels with no ppp support this #ifdef is
passed, and the kernel fails to link.

change to:

#if NPPP > 0 


Thirdly I've come up against a rather wierd problem  - I can only boot in
about 1 out of every 10 tries in all the others booting gets to:

com0 at mainbus0 base 0xf6210fe0-0xf6210fff irq 10: ns16550a, working fifo
quadmouse0 at mainbus0 base 0xf6000000
beep0 at mainbus0 base 0xf6000000

and then hangs with all the keyboard lights flashing rapidly on and off. It
has only started happening with -current kernels, and I have a non-acorn
keyboard (tho it has worked up till now). last night I left is hanging
whilst I was doing something else and approximatly 10/15mins (quite a while
anyway!) later the boot continued. Unless anyone knows anything obvious
I'll play about with the source.

finally:

sd0(ptsc0:5:0): medium error, info = 406532 (decimal), data = 01 7c 01 0c 00
00 00 00 00 00 00 00 00 00

sector 406528 is naff'd - I've tried to get badsect to work but I can't -
has this happened to any one else? (This should probably go to netbsd-users)

-- 
Jasper Wallace-Internet Vision | Caving-Acorn-RiscBSD-Chocolate-Banks-Fish
My opinions != IVisions's      | PovRay-FVWM-Perl-C-Mono-Food-Wired-?
E-Mail:jasper@ivision.co.uk    | This is the Internet, untamed and free,
Tel: +44 171 589 4500 (work)   | Where you can be anything you want to be