[9fans] kernel panic with fresh sources



Hello all,

I wanted to try out the recent changes regarding usb, so I've pulled
for the first time yesterday with bin/rc/pull and it seems like it
went fine.

However, the new 9pcf kernel I built out of the recently pulled
sources panics. I don't know what would be relevant for you so I have
not copied anything yet, I have just noted that it complains that
/boot/kfs does not exist.
My currently working kernel was built with a customized (by Eric)
sdiahci.c (attached to the mail) that would work with my sata drive
(on a Lenovo T61), and I don't know if those changes were merged into
the sdiahci.c from the distribution. So it is only a guess, but could
it be that the default driver doesn't find my drive, hence can't find
my fossil partition either and finally defaults to /boot/kfs and
fails at it as well?
I'm also using a 9load that Eric gave me for that driver to work, it
is attached as well.
Just for kicks, I have tried rebuilding another kernel with the fresh
sources and this modified sdiahci.c but it fails with the errors
attached in build.txt.

It's no hurry because I still have a working system with my previous
kernel but it would be nice if I could build a kernel that is both
recent enough to have the latest usb changes and capable of working
with my drive in sata mode.

Thanks,
Mathieu.

--
GPG key on subkeys.pgp.net:

KeyID: | Fingerprint:
683DE5F3 | 4324 5818 39AA 9545 95C6 09AF B0A4 DFEA 683D E5F3

Attachment: 9load
Description: Binary data

Attachment: sdiahci.c
Description: Binary data

rc ../port/mkdevc pcf > pcf.c
8a $AFLAGS l.s
8a $AFLAGS plan9l.s
8c -FVw cga.c
8c -FVw i8253.c
8c -FVw i8259.c
8c -FVw kbd.c
8c ../port/initcode.c
8c init9.c
8l -l -R1 -o init.out init9.8 initcode.8 /386/lib/libc.a
strip init.out
{echo 'uchar initcode[]={'
cat init.out | xd -1x |
sed -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
echo '};'} > init.h
8a rebootcode.s
8l -l -s -T0x11000 -R4 -o reboot.out rebootcode.8
{echo 'uchar rebootcode[]={'
xd -1x reboot.out |
sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
echo '};'} > reboot.h
8c -FVw memory.c
8c -FVw mmu.c
8c -FVw random.c
8c -FVw trap.c
8c -FVw -I. ../port/print.c
8c -FVw ether82557.c
8c -FVw uarti8250.c
8c -FVw etherwavelan.c
8c -FVw ether2000.c
8c -FVw -I. ../port/devtls.c
8c -FVw etherec2t.c
8c -FVw vgax.c
8c -FVw etherelnk3.c
8c -FVw vgamga4xx.c
8c -FVw ether79c970.c
8c -FVw vgabt485.c
8c -FVw -I. ../port/devmouse.c
8c -FVw dma.c
8c -FVw -I. ../port/devpnp.c
8c -FVw -I. ../ip/arp.c
8c -FVw ether8169.c
8c -FVw ether83815.c
8c -FVw vgaclgd542x.c
8c -FVw vgacyber938x.c
8c -FVw screen.c
8c -FVw -I. ../port/cis.c
8c -FVw -I. ../ip/loopbackmedium.c
8c -FVw -I. ../ip/ipmux.c
8c -FVw mouse.c
8c -FVw pci.c
8c -FVw etherigbe.c
8c -FVw vga.c
8c -FVw ether2114x.c
8c -FVw wavelan.c
8c -FVw vgargb524.c
8c -FVw devi82365.c
8c -FVw ether8139.c
8c -FVw -I. ../port/devenv.c
8c -FVw -I. ../ip/tcp.c
8c -FVw ethersink.c
8c -FVw devarch.c
8c -FVw vga3dfx.c
8c -FVw vgaet4000.c
8c -FVw -I. ../port/devcons.c
8c -FVw apic.c
8c -FVw sdmylex.c
8c -FVw vgavesa.c
8c -FVw -I. ../port/devaudio.c
8a $AFLAGS ptclbsum386.s
8c -FVw -I. ../ip/pktmedium.c
8c -FVw vgaark2000pv.c
8c -FVw vgamach64xx.c
8c -FVw -I. ../port/devfs.c
8c -FVw vganeomagic.c
8c -FVw -I. ../port/devssl.c
8c -FVw -I. ../ip/icmp6.c
8c -FVw realmode.c
8c -FVw -I. ../ip/esp.c
8c -FVw sdata.c
8c -FVw -I. ../port/devmnt.c
8c -FVw vgas3.c
8c -FVw etherdp83820.c
8c -FVw -I. ../port/devdup.c
8c -FVw usbuhci.c
8c -FVw -I. ../ip/ipifc.c
8c -FVw ether82543gc.c
8c -FVw pcmciamodem.c
8c -FVw -I. ../port/devsrv.c
8c -FVw -I. ../ip/chandial.c
8c -FVw ethervgbe.c
8c -FVw -I. ../port/devproc.c
8c -FVw ethersmc.c
8c -FVw -I. ../ip/ethermedium.c
8c -FVw devrtc.c
8c -FVw devfloppy.c
8c -FVw vgatvp3026.c
8c -FVw -I. ../ip/ipv6.c
8c -FVw devpccard.c
8c -FVw vganvidia.c
8c -FVw -I. ../port/devuart.c
8c -FVw vgact65545.c
8c -FVw devusb.c
8c -FVw ether589.c
8a apbootstrap.s mem.h
8l -o apbootstrap.out -T0xF0003000 -R4 -l -s apbootstrap.8
{echo 'uchar apbootstrap[]={'
xd -1x apbootstrap.out |
sed -e '1,2d' -e 's/^[0-9a-f]+ //' -e 's/ ([0-9a-f][0-9a-f])/0x\1,/g'
echo '};'} > apbootstrap.h
apbootstrap.s:
mem.h:
8c -FVw -I. ../port/devkprof.c
8c -FVw -I. ../port/devpipe.c
8a $AFLAGS apmjump.s
8c -FVw sdiahci.c
warning: sdiahci.c:203 format mismatch ux ULONG, arg 3
warning: sdiahci.c:203 format mismatch ux ULONG, arg 4
warning: sdiahci.c:203 format mismatch ux ULONG, arg 5
warning: sdiahci.c:203 format mismatch ux ULONG, arg 6
sdiahci.c:356 incompatible types: "IND UINT" and "IND ULONG" for op "AS"
warning: sdiahci.c:350 used and not set: cmd
warning: sdiahci.c:398 format mismatch ux ULONG, arg 2
warning: sdiahci.c:434 format mismatch ux ULONG, arg 2
warning: sdiahci.c:468 format mismatch ux ULONG, arg 2
sdiahci.c:593 incompatible types: "IND UINT" and "IND ULONG" for op "AS"
warning: sdiahci.c:616 format mismatch x ULONG, arg 2
warning: sdiahci.c:589 used and not set: p
sdiahci.c:684 incompatible types: "IND UINT" and "IND ULONG" for op "AS"
warning: sdiahci.c:680 used and not set: p
sdiahci.c:754 incompatible types: "IND ULONG" and "IND UINT" for op "AS"
warning: sdiahci.c:792 format mismatch ux ULONG, arg 2
warning: sdiahci.c:977 format mismatch ux ULONG, arg 4
warning: sdiahci.c:985 format mismatch ux ULONG, arg 4
warning: sdiahci.c:985 format mismatch ux ULONG, arg 5
warning: sdiahci.c:987 format mismatch ux ULONG, arg 4
warning: sdiahci.c:1011 format mismatch ux ULONG, arg 5
warning: sdiahci.c:1177 format mismatch ux ULONG, arg 3
warning: sdiahci.c:1177 format mismatch x ULONG, arg 4
warning: sdiahci.c:1197 format mismatch ux ULONG, arg 3
warning: sdiahci.c:1253 format mismatch ux ULONG, arg 4
warning: sdiahci.c:1989 format mismatch ux ULONG, arg 4
warning: sdiahci.c:1989 format mismatch ux ULONG, arg 5
warning: sdiahci.c:1989 format mismatch ux ULONG, arg 6
warning: sdiahci.c:1989 format mismatch ux ULONG, arg 8
warning: sdiahci.c:1989 format mismatch ux ULONG, arg 9
warning: sdiahci.c:1989 format mismatch ux ULONG, arg 10
warning: sdiahci.c:1989 format mismatch 04x ULONG, arg 11
warning: sdiahci.c:2180 format mismatch ux ULONG, arg 7
warning: sdiahci.c:2180 format mismatch ux ULONG, arg 8
warning: sdiahci.c:2180 format mismatch ux ULONG, arg 9
warning: sdiahci.c:2180 format mismatch ux ULONG, arg 11


Relevant Pages