Good news. The pcmcia patch I made for OSKit seems to work, of course including some bugs. The patches for OSKit and gnumach are here [1].
I have two major problems found so far. First the hda geometry scan will _only_ work if the console output goes over the serial line. Booting without any attached null model cabel will result in wrong hda geometry scan which prevents further booting. Unfortunately I could not use gdb to debug because if gdb is attached I see a SIGTRAP in copyout_retry(). While trying to isolate this trap, I found that this is triggered by the first Load_context call. I guess that gdb points somehow after this call on a page which not avaible anymore. This trap is always triggered when I try to do remote debugging, even then when I set a breakpoint with gdb_breakpoint in the source code after this Load_context call. In short I can't use the debugger after this point. Therefore I don't know how to haunt down the other bug. (gdb) target remote /dev/ttyS0 Remote debugging using /dev/ttyS0 0x128f9c in main (argc=172256, argv=0x1) at ../../gnumach/oskit/x86/main.c:90 Breakpoint 1 at 0x1368af: file ../../gnumach/i386/i386/pcb.c, line 286. (gdb) c Continuing. Welcome to GNUmach 1.90! Breakpoint 1, load_context (new=0x8070994) at ../../gnumach/i386/i386/pcb.c:286 (gdb) bt #0 load_context (new=0x8070994) at ../../gnumach/i386/i386/pcb.c:286 #1 0x115604 in cpu_launch_first_thread (th=0x8070994) at ../../gnumach/kern/startup.c:300 #2 0x115478 in setup_main () at ../../gnumach/kern/startup.c:170 #3 0x129110 in main (argc=1, argv=0x1000000) at ../../gnumach/oskit/x86/main.c:215 #4 0x13b657 in multiboot_main (boot_info_pa=172256) at ../../../oskit-20020317+pcmcia/kern/x86/pc/base_multiboot_main.c:96 (gdb) n 2 multiboot modules task loaded: /hurd/ext2fs.static --multiboot-command-line=/home/wagi/kernel --host-priv-port=1 --device-master-port=2 --exec-server-task=3 -T typed device:hd0s5 Program received signal SIGTRAP, Trace/breakpoint trap. 0x13a412 in copyout_retry () (gdb) Second problem is a panic, triggered by not very heavy lot on the net device. A simple 'ls -lR' on a mounted nfs filesystem will caused it. I haven't looked into that one yet. (device driver) EMERGENCY: assertion `FDEV_LINUX_local_irq_count[0] ==0' failed in file ../../../../oskit-20020317+pcmcia/linux/dev/softintr.c, line 121 assertion `FDEV_LINUX_local_irq_count[0] == 0' failed in file ../../../../oskit-20020317 +pcmcia/linux/dev/softintr.c, line 121 panic in device driver! Backtrace: fp=299d54 0020f2da 00128551 0012856c 0015ca8b 00128caa 00128a2b 0011268c 0013a6ce 0015170a 001510c2 00156fdc 001285bc 00139d59 001576f3 0012be3c 0012a361 _exit(1) called; rebooting... And this is how it looks like when it's working: Welcome to GNUmach 1.90! (device driver): PCI: Probing PCI hardware (device driver): scsi : 0 hosts. (device driver): scsi : detected total. (device driver): Linux PCMCIA Card Services 3.1.33 (device driver): kernel build: 2.2.12 unknown (device driver): options: [pci] [cardbus] (device driver): PCI routing table version 1.0 at 0xfdf40 (device driver): 00:03.0 -> irq 11 (device driver): 00:03.1 -> irq 11 (device driver): Intel ISA/PCI/CardBus PCIC probe: (device driver): TI 1251B rev 00 PCI-to-CardBus at slot 00:03, mem 0x10000000 (device driver): host opts [0]: [pci + serial irq] [pci irq 11] [lat 168/17] (device driver): host opts [1]: [pci only] [pci irq 11] [lat 168/176] [bus ] (device driver): PCI card interrupts, PCI status changes (device driver): watching 2 sockets 2 multiboot modules 5 c 1 (device driver): PIIX4: not 100% native mode: will probe irqs later (device driver): ide0: BM-DMA at 0x10c0-0x10c7, BIOS settings: hda:pio, hdbo (device driver): ide1: BM-DMA at 0x10c8-0x10cf, BIOS settings: hdc:pio, hddo (device driver): initializing socket 1 (device driver): cs: memory probe 0xa0000000-0xa0ffffff: clean. (device driver): socket 1: 3Com 572/574 Fast Ethernet (device driver): product info: "3Com", "OfficeConnect 572B", "B", "001" (device driver): manfid: 0x0101, 0x0574 function: 6 (network) (device driver): cs: IO port probe 0x0100-0x04ff: excluding 0x170-0x177 0x1f0-07 (device driver): cs: IO port probe 0x0178-0x01ef: clean. (device driver): cs: IO port probe 0x01f8-0x036f: clean. (device driver): cs: IO port probe 0x0378-0x03bf: clean. (device driver): cs: IO port probe 0x03e0-0x03ef: clean. (device driver): cs: IO port probe 0x0400-0x04cf: clean. (device driver): cs: IO port probe 0x04d8-0x04ff: clean. (device driver): cs: IO port probe 0x0800-0x08ff: clean. (device driver): cs: IO port probe 0x0a00-0x0a00: clean. (device driver): cs: IO port probe 0x0c00-0x0cff: excluding 0xcf8-0xcff (device driver): eth0: OfficeConnect 572B at io 0x300, irq 11, hw_addr 00:50:da. (device driver): ASIC rev 1, 64K FIFO split 1:1 Rx:Tx, autoselect MII interfa. (device driver): Socket 0: empty (device driver): Socket 1: 3Com 572/574 Fast Ethernet (device driver): 1 network 3c574_cs 0 eth0 (device driver): (device driver): hda: IBM-DARA-212000, ATA DISK drive intnull(15) (device driver): hdc: CRN-8241B, ATAPI CDROM drive intnull(15) intnull(15) (device driver): ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 (device driver): ide1 at 0x170-0x177,0x376 on irq 15 (device driver): hda: IBM-DARA-212000, 11513MB w/418kB Cache, CHS=1467/255/63, A (device driver): hdc: ATAPI 24X CD-ROM drive, 128kB Cache (device driver): Uniform CDROM driver Revision: 2.55 (device driver): Partition check: (device driver): hda: hda1 hda2 < hda5 hda6 hda7 hda8 hda9 > (device driver): NCR53c406a: no available ports found (device driver): EATA0: address 0x1f0 in use, skipping probe. (device driver): EATA0: address 0x170 in use, skipping probe. (device driver): scsi: <fdomain> Detection failed (no card) (device driver): Failed initialization of WD-7000 SCSI card! (device driver): <6>Floppy drive(s): fd0 is 1.44M (device driver): FDC 0 is a National Semiconductor PC87306 (device driver): 3c59x.c:v0.99H 11/17/98 Donald Becker http://cesdis.gsfc.nasa.l (device driver): io: 0x210 (device driver): io: 0x240 (device driver): io: 0b Automatic boot in progress... Sat Nov 9 15:39:31 CET 2002 (device driver): io: 0x210 (device driver): io: 0x240 (device driver): io: 0s cleaning up left over files...done Starting system log daemon: syslogd. Starting base networking daemons: inetd. Sat Nov 9 15:39:35 CET 2002 GNU 0.3 (hurd) (console) Most of the programs included with the Debian GNU/Hurd system are freely redistributable; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright Debian GNU/Hurd comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Use `login USER' to login, or `help' for more information. login> login root -bash: mesg: command not found hurd:~# settrans -fgap /servers/socket/2 /hurd/pfinet -i eth0 -a 192.168.2.10 -g 192.168.2.1 -m 255.255.255.0 (device driver): io: 0x210 (device driver): io: 0x240 (device driver): io: 0x280 (device driver): io: 0x2c0 (device driver): io: 0x200 (device driver): io: 0x320 (device driver): io: 0x340 (device driver): io: 0x360 hurd:~# ping 192.168.2.1 hurd:~# ping 192.168.2.1 PING 192.168.2.1 (192.168.2.1): 56 data bytes 64 bytes from 192.168.2.1: icmp_seq=0 ttl=255 time=30.000 ms 64 bytes from 192.168.2.1: icmp_seq=1 ttl=255 time=10.000 ms 64 bytes from 192.168.2.1: icmp_seq=2 ttl=255 time=10.000 ms 64 bytes from 192.168.2.1: icmp_seq=3 ttl=255 time=10.000 ms ... [1] http://www.vis.ethz.ch/~wagi/oskit _______________________________________________ Bug-hurd mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-hurd