Subject: Re: IBM 400
To: None <garbled@netbsd.org>
From: Charles Fultz <fultz@fermat.genomics.purdue.edu>
List: port-prep
Date: 11/25/2000 16:39:31
> It probably just looked like it did nothing..  The "com0" part is that it
> sends all output to the attached serial port.  (com1)  Obviously, if you
> aren't listening, you miss out.
>
> The right way to do it.. is to hook up a standard PC NULL-MODEM cable to the
> serial port 1 (com0) and to another machine.  On the other machine.. run any
> serial communications program you want to (tip, cu, kermit, minicom, whatever
> ).  The firmware menus are available via this comport as well.

That's what I did.  I even tried it again, and it didn't work with either image
in the snapshot tree.
 
> >There is no OpenFirmware-like interface, as far as I know.  I can get
> >into something that resembles a PC BIOS, and do some things in there,
> >just like a PC.
> 
> Yeah.. thats what I'd like to see a log of.

Here is some information.  Since I have no way of logging from the Firmware
I'll type what I see here.  If I get a digital camera soon, I'll take some
shots and post them for you to see.  If you need more info, don't hesitate to
ask for it.
--------------------------------------------------------------------------------
Power Personal System Firmware						12:10:59
Version 1.28, built on 10/05/95 at 11:49:35				11/25/00
(C)Copyright IBM Corporation, 1994.  All rights reserved.
			   System Management Services

 Select one:
  1. Manage Configuration
  2. Select Boot Devices
  3. Test the Computer
  4. Utilities









     Enter         Esc=Quit         F1=Help        F3=Reboot       F9=Start OS
--------------------------------------------------------------------------------

> The data you provided me in your last email is very useful.. Some additional
> info however, would also help me out.
> 
> 1) lsresource -a bus0

% lsresource -a -l bus0
TYPE DEVICE ATTRIBUTE      S G CURRENT                
B    bus0   rmalloc_heap       0x00ff8000 - 0x00ffffff
B    ent0   bus_mem_addr       0x000e4000 - 0x000e7fff
B    gga0   bus_mem_start      0x01000000 - 0x01ffffff
O    bus0   IBM000B_16_0             0x00000808       
O    bus0   IBM0008_13_0             0x00000077       
O    bus0   IBM0008_13_1       0x00000074 - 0x00000075
O    bus0   IBM0007_12_0             0x0000081c       
O    bus0   IBM0007_12_1             0x00000814       
O    bus0   PNP0100_11_0             0x00000061       
O    bus0   PNP0100_11_1       0x00000040 - 0x00000043
O    bus0   PNP0B00_7_0        0x00000070 - 0x00000071
O    bus0   PNP0000_3_0        0x000004d0 - 0x000004d1
O    bus0   PNP0000_3_1        0x000000a0 - 0x000000a1
O    bus0   PNP0000_3_2        0x00000020 - 0x00000021
O    bus0   PNP0200_2_0              0x000004d6       
O    bus0   PNP0200_2_1        0x00000481 - 0x0000048b
O    bus0   PNP0200_2_2        0x00000410 - 0x0000043f
O    bus0   PNP0200_2_3        0x0000040a - 0x0000040b
O    bus0   PNP0200_2_4        0x000000c0 - 0x000000df
O    bus0   PNP0200_2_5        0x00000080 - 0x0000009f
O    bus0   PNP0200_2_6        0x00000000 - 0x0000000f
O    bus1   PNP0A00_4_0        0x00000880 - 0x000008ff
O    bus1   PNP0A00_4_1        0x00000834 - 0x0000087f
O    bus1   PNP0A00_4_2        0x00000800 - 0x0000082f
O    bus1   PNP0A00_4_3        0x00000398 - 0x00000399
O    fda0   bus_io_addr        0x000003f0 - 0x000003f5
O    fda0   bus_io_addr2             0x000003f7       
O    sa0    bus_io_addr        0x000003f8 - 0x000003ff
O    sa1    bus_io_addr        0x000002f8 - 0x000002ff
O    sioka0 bus_io_addr    1         0x00000060       
O    sioma0 bus_io_addr    1         0x00000060       
O    sioka0 bus_io_addr_1  2         0x00000064       
O    sioma0 bus_io_addr_1  2         0x00000064       
O    paud0  bus_io_addr        0x00000830 - 0x00000833
O    ppa0   bus_io_addr        0x000003bc - 0x000003be
O    ent0   bus_io_addr        0x00000300 - 0x0000031f
O    scsi0  bus_io_addr        0x01000000 - 0x010000ff
N    fda0   bus_intr_lvl                  6    (A0)   
N    sa0    bus_intr_lvl                  4    (A0)   
N    sa1    bus_intr_lvl                  3    (A0)   
N    sioka0 bus_intr_lvl                  1    (A0)   
N    sioma0 bus_intr_lvl                 12    (A0)   
N    paud0  bus_intr_level               10    (A0)   
N    ent0   bus_intr_lvl                 11    (A0)   
N    scsi0  bus_intr_lvl                 13    (A0)   
A    fda0   dma_lvl                       2           
A    paud0  cap_dma_level                 7           
A    paud0  play_dma_level                6           
 
> 2) there is a program called "lspci"  available at:
> ftp://atrey.karlin.mff.cuni.cz/pub/linux/pci/pciutils-2.1.8.tar.gz
> 
> Please compile this under AIX, and run it with the following options:
> 
> (assuming the "pci.ids" file that it comes with is in the current directory)
> 
> lspci -vvv -x -b -i pci.ids

% lspci -vvv -x -b -i pci.ids
00:0b.0 Class 0000: 8086:0484 (rev 03)
	Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 0
00: 86 80 84 04 0f 00 00 02 03 00 00 00 00 00 00 00
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

00:0c.0 Class 0000: 1000:0001 (rev 01)
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 128
	Interrupt: pin A routed to IRQ 13
	Region 0: I/O ports at 1000000
	Region 1: Memory at 80000000 (32-bit, non-prefetchable) [disabled]
00: 00 10 01 00 45 00 00 02 01 00 00 00 00 80 00 00
10: 01 00 00 01 00 00 00 80 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 00 00 00 00 00 00 00 00 00 00 0d 01 00 00

00:0e.0 Class 0300: 100e:9100
	Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Interrupt: pin A routed to IRQ 0
	Region 0: Memory at 01000000 (32-bit, non-prefetchable)
00: 0e 10 00 91 82 00 00 02 00 00 00 03 00 00 00 00
10: 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
30: 00 00 0c 00 00 00 00 00 00 00 00 00 00 01 00 00

 
> And send me the output of both.  The latter utility runs a PCI scan, and tells
> me which devices are located on your system.
> 
> As for compiling prep kernels there are some powerpc cross packages in
> pkgsrc/cross that should get you started..

As soon as I get RAM for my development machine, I'll get NetBSD installed
on it and begin work on a kernel.

Thanks,
Charles Fultz
fultz