From owner-freebsd-hardware Tue Aug 31 9:25:47 1999 Delivered-To: freebsd-hardware@freebsd.org Received: from sasami.jurai.net (sasami.jurai.net [63.67.141.99]) by hub.freebsd.org (Postfix) with ESMTP id AF3CC14E84; Tue, 31 Aug 1999 09:25:36 -0700 (PDT) (envelope-from winter@jurai.net) Received: from localhost (winter@localhost) by sasami.jurai.net (8.8.8/8.8.7) with ESMTP id MAA09821; Tue, 31 Aug 1999 12:24:34 -0400 (EDT) Date: Tue, 31 Aug 1999 12:24:33 -0400 (EDT) From: "Matthew N. Dodd" To: Andy Farkas Cc: freebsd-hackers@FreeBSD.ORG, freebsd-hardware@FreeBSD.ORG Subject: Re: FreeBSD & MCA In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, 1 Sep 1999, Andy Farkas wrote: > Righty-o, I've finally got a kernel to boot on my MCA box! Yay! > > Its a rather large "Apricot FTs 486" with the Panther Rev F MB: > > http://www.mitsubishi-computers.com/insight/en/products/servers/fts/ftsmain.htm Ah! This is good since it means that Int 0x15 Func 0xc0 detects non-PS/2 machines correctly. The 'BIOS SDT: ...' lines are what we're looking at for this. Since you were good enough to capture an entire verbose boot and transcribed the config of all your cards I'll be able to get working on the Buslogic probe/attach bits. > It is currently running NT4 (SP5) with all the adapters in it recognised > and supported. It is also known to run OS/2 Warp 4, and I once briefly > had Solaris 2.4 (x86) on it. > > Here is what happened while trying to boot FreeBSD... > > Firstly, the keyboard did not work! It loaded the kernel, and then asked > for the mfs disk and said 'press enter to continue' but the keyboard > doesn't do anything. The num-lock and caps-locks LEDs do not toggle > either. > > Ok, so I boot using a serial console... yay! I can continue with loading > the mfs disk! It loads, then says "booting in n seconds...", I press > enter, it starts probing! Yay! Oh, hang on, its hanged :( > > Hmmm. It hangs while probing npx. > > Ok... vi src/sys/i386/isa/npx.c ... hmmm, lets bypass that > "if ((status & 0xb8ff) == 0)" bit and just return 0 - we'll > use the emulator... Weird. I have no idea what the deal is there. > Tada!!! > > Well, almost... it doesn't grok the AHA-1640 and no disks are found. I > will play with your driver over the next couple of days. Hummm... I know there are some issues with DMA channels. Did I maybe forget to mention adding the line to sys/i386/conf/files.i386? i386/mca/aha_mca.c optional mca aha Add that and make sure you have: controller aha0 to your config file. I should probably compile the MCA bus support as a module and compile the drivers as modules as well to make testing a tad easier. > In case it helps, here is what is in the machine: > > Motherboard - 8Mb RAM, com1, lpt1, standard VGA > > slot 1 - Hypertec HyperPort [3 serial, 1 parallel] > port: 2f8 irq 3 [only com2 is enabled] > > slot 2 - AHA-1640 SCSI Host Adapter > port: 330 irq 15 dma 4 rom dc00 > > slot 3 - Hyperam MC 32/16 [32Mb RAM] > EMS window: c000-c3ff > > slot 4 - 3Com EtherLink/MC > port: 300 irq 12 rom c800 > > slot 5 - Hyperam MC 32/16 [23Mb RAM] > EMS window: c400-c7ff > > slot 6 - BusLogic 32bit BusMaster MCA-to-SCSI Host Adapter (v1.42a) > port: 334 irq 14 dma 5 > > slot 7 - BusLogic...[same as above] > port: 234 irq 11 dma 6 > > slot 8 - BusLogic...[same as above] > port: 134 irq 10 dma 7 > > [there are 11 scsi disks spread across the 4 controllers] > > > And now finally to the nitty-gritty: > > Here is the output from a successfull boot: > > [options KBDIO_DEBUG, NPX_DEBUG, DIAGNOSTIC, DEBUG are also in kernel] > > [start script] > Console: serial port > BIOS drive A: is disk0 > BIOS drive C: is disk1 > BIOS drive D: is disk2 > > FreeBSD/i386 bootstrap loader, Revision 0.7 639/63488kB > (jkh@cathair, Tue May 18 03:22:02 GMT 1999) > kernel text=0x1289fb data=0x1c478+0x19d5c syms=[0x4+0x1e780+0x4+0x201fb] > > Please insert MFS root floppy and press enter: > > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [kernel] in 9 seconds... > > Type '?' for a list of commands, 'help' for more detailed help. > disk0s4a:> > disk0s4a:> boot -v > Copyright (c) 1992-1999 The FreeBSD Project. > Copyright (c) 1982, 1986, 1989, 1991, 1993 > The Regents of the University of California. All rights reserved. > FreeBSD 4.0-CURRENT #4: Tue Aug 31 17:39:32 EST 1999 > root@doohan.af.speednet.com.au:/fast1/src/sys/compile/MCA > Calibrating clock(s) ... i8254 clock: 1193221 Hz > CLK_USE_I8254_CALIBRATION not specified - using default frequency > Timecounter "i8254" frequency 1193182 Hz > CPU: i486 DX2 (486-class CPU) > Origin = "GenuineIntel" Id = 0x435 Stepping = 5 > Features=0x3 > real memory = 66060288 (64512K bytes) > Physical memory chunk(s): > 0x00001000 - 0x0009efff, 647168 bytes (158 pages) > 0x00589000 - 0x03efdfff, 60248064 bytes (14709 pages) > avail memory = 58454016 (57084K bytes) > BIOS SDT: model 0xf8, submodel 0x1b, bios_rev 0x00 > BIOS SDT: features 0xf6 > MicroChannel Architecture System detected. > Other BIOS signatures found: > ACPI: 00000000 > Preloaded elf kernel "kernel" at 0xc0570000. > Preloaded mfs_root "/mfsroot" at 0xc057009c. > Math emulator present > npx_probe: start > npx_probe1: start > npx_probe1: device_set_desc > npx_probe1: fnstsw > npx_probe1: status $0 > npx_probe1: end > npx_probe: end > npx0: on motherboard > npx0: 387 emulator > mca_probe... > POS REG 00 01 02 03 04 05 06 07 > ----------------------------------- > mca slot 1: 8f 60 b1 02 fd 60 ff ff > mca slot 2: 1f 0f 01 3b ff b4 ff ff > mca slot 3: 07 70 03 bf 88 ff 08 00 > mca slot 4: 42 60 09 01 ff ff ff ff > mca slot 5: 07 70 45 bf c9 ff 08 00 > mca slot 6: 08 07 1d 03 f7 c5 ff ff > mca slot 7: 08 07 17 02 00 46 00 30 > mca slot 8: 08 07 15 01 00 47 00 30 > mca0: on motherboard > mca0: unknown card (id 0x608f, enabled) at slot 1 > mca0: unknown card (id 0x0f1f, enabled) at slot 2 > mca0: unknown card (id 0x7007, enabled) at slot 3 > mca0: unknown card (id 0x6042, enabled) at slot 4 > mca0: unknown card (id 0x7007, enabled) at slot 5 > mca0: unknown card (id 0x0708, enabled) at slot 6 > mca0: unknown card (id 0x0708, enabled) at slot 7 > mca0: unknown card (id 0x0708, enabled) at slot 8 > isa0: on motherboard > fdc0: at port 0x3f0-0x3f7 irq 6 drq 2 on isa0 > fdc0: FIFO enabled, 8 bytes threshold > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > aha0: INQUIRE failed 28 > aha0: Geometry Register test failed 0x15 > aha0: status reg test failed ff > aha0: Geometry Register test failed 0x15 > aha0: status reg test failed ff > aha0: Geometry Register test failed 0x15 > atkbdc0: at port 0x60-0x6f on isa0 > atkbd0: irq 1 on atkbdc0 > atkbd: the current kbd controller command byte 0065 > kbdc: new command byte:0064 (set_controller...) > atkbd: keyboard ID 0x41ab (2) > kbdc: RESET_KBD return code:00fa > kbdc: RESET_KBD status:00aa > kbdc: new command byte:0065 (set_controller...) > kbd0: atkbd0, AT 101/102 (2), config:0x0, flags:0x1d0000 > psm0: current command byte:0065 > kbdc: new command byte:0054 (set_controller...) > kbdc: TEST_AUX_PORT status:0000 > kbdc: RESET_AUX return code:00fe > kbdc: RESET_AUX return code:00fe > kbdc: RESET_AUX return code:00fe > kbdc: DIAGNOSE status:0055 > kbdc: TEST_KBD_PORT status:0000 > kbdc: new command byte:0065 (set_controller...) > psm0: failed to reset the aux device. > vga0: at port 0x3b0-0x3df iomem 0xa0000-0xbffff on isa0 > fb0: vga0, vga, type:VGA (5), flags:0x7007f > fb0: port:0x3b0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000 > fb0: init mode:24, bios mode:3, current mode:24 > fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k > VGA parameters upon power-up > 50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 > bf 1f 00 4f 0d 0e 00 00 07 80 9c 8e 8f 28 1f 96 > b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c > 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff > VGA parameters in BIOS for mode 24 > 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 > bf 1f 00 4f 06 07 00 00 00 00 9c 8e 8f 28 1f 96 > b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c > 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff > EGA/VGA parameters to be used for mode 24 > 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 > bf 1f 00 4f 06 07 00 00 00 00 9c 8e 8f 28 1f 96 > b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c > 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff > sc0: on isa0 > sc0: VGA <16 virtual consoles, flags=0x0> > sc0: fb0 kbd0 > sio0: irq maps: 0x1 0x11 0x1 0x1 > sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 > sio0: type 16550A, console > sio1: irq maps: 0x1 0x9 0x1 0x1 > sio1 at port 0x2f8-0x2ff irq 3 on isa0 > sio1: type 16450 > ppc: parallel port found at 0x3bc > ppc: chipset forced to generic > ppc0: SPP > ppc0 at port 0x3bc-0x3c3 irq 7 flags 0x40 on isa0 > isa_compat: didn't get ports for ppc > ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode > plip: irq 7 > plip0: on ppbus 0 > bpf: lp0 attached > lpt0: on ppbus 0 > lpt0: Interrupt-driven port > ppi0: on ppbus 0 > BIOS Geometries: > 0:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors > 1:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors > 2:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors > 3:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors > 4:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors > 5:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors > 6:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors > 7:00000000 0..0=1 cylinders, 0..0=1 heads, 1..0=0 sectors > 0 accounted for > Device configuration finished. > Considering MFS root f/s. > bpf: sl0 attached > bpf: ppp0 attached > new masks: bio 40080040, tty 4003009a, net 4007009a > bpf: lo0 attached > rootfs is 2880 Kbyte compiled in MFS > start_init: trying /sbin/init > start_init: trying /sbin/oinit > start_init: trying /sbin/init.bak > start_init: trying /stand/sysinstall > /stand/sysinstall running as init on serial console > > These are the predefined terminal types available to > sysinstall when running stand-alone. Please choose the > closest match for your particular terminal. > > 1 ...................... Standard ANSI terminal. > 2 ...................... VT100 or compatible terminal. > 3 ...................... FreeBSD system console (color). > 4 ...................... FreeBSD system console (monochrome). > > Your choice: (1-4) > > > > -- > > :{ andyf@speednet.com.au > > Andy Farkas > System Administrator > Speednet Communications > http://www.speednet.com.au/ > > > -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | This Space For Rent | ISO8802.5 4ever | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message