IBM X24 and PCMCIA

Kevin Oberman oberman at es.net
Fri Aug 1 09:31:17 PDT 2003


> From: Lutz Bichler <Lutz.Bichler at unibw-muenchen.de>
> Date: Fri, 1 Aug 2003 11:28:58 +0200
> Sender: owner-freebsd-mobile at freebsd.org
> 
> On Thursday 31 July 2003 19:58, Kevin Oberman wrote:
> > You probably need to add:
> > hw.cbb.start_memory="0x20000000"
> > to /boot/loader.conf. You might also need
> > hw.pci.allow_unsupported_io_range="1" and
> > hw.ata.atapi_dma="1"
> > (The last is not related to this problem, but is important if you want
> > to get decent performance from a CD reader.)
> >
> > Use NEWCARD. I am guessing that you meant pccardd on the fatal
> > message. If that's the case, don't worry on NEWCARD as pccardd is not
> > used with NEWCARD. You do still need pccard_enable="YES" in rc.config.
> >
> > If you still can't get things working, be sure to include your dmesg
> > in further inquiries.
> 
> Hi,
> 
> i have done the things you suggested but it still does not work. I
> have the demsg attached. The drive is a Hitachi DVD-ROM, Model
> No. GDR-8081N in an IBM Portable Drive Bay 2000. This combination
> worked under 4.8 using the PCMCIA adapter. Alternatively i can
> attach the drive using USB. But then i get
> 
> umass0: USB to IDE USB to IDE, rev 1.10/2.60, addr 2
> (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 
> (probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
> (probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
> (probe0:umass-sim0:0:0:0): error code 64 at block no. 134217984 (decimal)
> (probe0:umass-sim0:0:0:0): No Recovery Action Needed
> 
> 
> and things do not work. Any more ideas what i could try?

There have been VERY significant updates to da and the usb code this
week. Your best chance of getting this to work is the latest CURRENT.

> acpi0: <IBM    TP-1D   > on motherboard
> pcibios: BIOS version 2.10
> Using $PIR table, 14 entries at 0xc00fdeb0
>     ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.FDC_._INI] (Node 0xc25f3ac0), AE_NOT_EXIST
>     ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__._INI] (Node 0xc25ec8c0), AE_NOT_EXIST
> acpi0: power button is handled as a fixed feature programming model.
> Timecounter "ACPI-fast"  frequency 3579545 Hz
> acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0
> acpi_cpu0: <CPU> on acpi0
> acpi_tz0: <thermal zone> port 0x530-0x537 on acpi0
> acpi_lid0: <Control Method Lid Switch> on acpi0
>     ACPI-1287: *** Error: Method execution failed [\\_SB_.LID_._PSW] (Node 0xc0eb7480), AE_NOT_EXIST
> acpi_button0: <Sleep Button> on acpi0

Hmm. ACPI on ThinkPads has been less than perfect. You might want to
try it with APM and see if things work better.

> pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
> pci0: <ACPI PCI bus> on pcib0
> agp0: <Intel 82830 host to AGP bridge> mem 0xd0000000-0xdfffffff at device 0.0 on pci0
> pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
> pci1: <ACPI PCI bus> on pcib1
> drm0: <ATI Radeon LY Mobility M6> port 0x3000-0x30ff mem 0xc0100000-0xc010ffff,0xe0000000-0xe7ffffff irq 3 at device 0.0 on pci1
> info: [drm] AGP at 0xd0000000 256MB
> info: [drm] Initialized radeon 1.8.0 20020828 on minor 0
> uhci0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> port 0x1800-0x181f irq 3 at device 29.0 on pci0
> usb0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> on uhci0
> usb0: USB revision 1.0
> uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> uhci1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> port 0x1820-0x183f irq 9 at device 29.1 on pci0
> usb1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> on uhci1
> usb1: USB revision 1.0
> uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub1: 2 ports with 2 removable, self powered
> uhci2: <Intel 82801CA/CAM (ICH3) USB controller USB-C> port 0x1840-0x185f irq 5 at device 29.2 on pci0
> usb2: <Intel 82801CA/CAM (ICH3) USB controller USB-C> on uhci2
> usb2: USB revision 1.0
> uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub2: 2 ports with 2 removable, self powered
> pcib2: <ACPI PCI-PCI bridge> at device 30.0 on pci0
> pci2: <ACPI PCI bus> on pcib2
> cbb0: <RF5C476 PCI-CardBus Bridge> mem 0x50000000-0x50000fff irq 3 at device 3.0 on pci2
> start (50000000) < sc->membase (c0200000)
> start (50000000) < sc->pmembase (e8000000)
> pccard0: <16-bit PCCard bus> on cbb0
> cbb1: <RF5C476 PCI-CardBus Bridge> mem 0x50100000-0x50100fff irq 4 at device 3.1 on pci2
> start (50100000) < sc->membase (c0200000)
> start (50100000) < sc->pmembase (e8000000)

This is a different CardBus bridge than I have.  But it seems to look
good.

> pccard1: <16-bit PCCard bus> on cbb1

And this is fine.

> pci2: <network> at device 5.0 (no driver attached)
> fxp0: <Intel 82801CAM (ICH3) Pro/100 VE Ethernet> port 0x8000-0x803f mem 0xc0200000-0xc0200fff irq 10 at device 8.0 on pci2
> fxp0: Ethernet address 00:d0:59:cc:fc:e8
> miibus0: <MII bus> on fxp0
> inphy0: <i82562ET 10/100 media interface> on miibus0
> inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> isab0: <PCI-ISA bridge> at device 31.0 on pci0
> isa0: <ISA bus> on isab0
> atapci0: <Intel ICH3 UDMA100 controller> port 0x1860-0x186f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device 31.1 on pci0
> ata0: at 0x1f0 irq 14 on atapci0
> ata1: at 0x170 irq 15 on atapci0
> pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
> pcm0: <Intel 82801CA (ICH3)> port 0x18c0-0x18ff,0x1c00-0x1cff irq 4 at device 31.5 on pci0
> pcm0: <Cirrus Logic CS4299 AC97 Codec>
> pci0: <simple comms> at device 31.6 (no driver attached)
> atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
> atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
> kbd0 at atkbd0
> psm0: <PS/2 Mouse> irq 12 on atkbdc0
> psm0: model Generic PS/2 mouse, device ID 0
> fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
> fdc0: FIFO enabled, 8 bytes threshold
> fd0: <1440-KB 3.5" drive> on fdc0 drive 0
> sio0: configured irq 4 not in bitmap of probed irqs 0
> sio0: port may not be enabled
> sio0 port 0x3f8-0x3ff irq 4 on acpi0
> sio0: type 8250 or not responding
> ppc0 port 0x3bc-0x3c3 irq 7 on acpi0
> ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
> ppbus0: <Parallel port bus> on ppc0
> plip0: <PLIP network interface> on ppbus0
> lpt0: <Printer> on ppbus0
> lpt0: Interrupt-driven port
> ppi0: <Parallel I/O> on ppbus0
> sio1: configured irq 3 not in bitmap of probed irqs 0
> sio1: port may not be enabled
> acpi_ec0: <embedded controller> port 0x66,0x62 on acpi0
> acpi_cmbat0: <Control method Battery> on acpi0
> acpi_acad0: <AC adapter> on acpi0
> sio1: configured irq 3 not in bitmap of probed irqs 0
> sio1: port may not be enabled
> orm0: <Option ROMs> at iomem 0xe0000-0xeffff,0xdc000-0xdffff,0xcd000-0xcdfff,0xcc000-0xccfff,0xc0000-0xcbfff on isa0
> sc0: <System console> at flags 0x100 on isa0
> sc0: VGA <16 virtual consoles, flags=0x300>
> sio1: configured irq 3 not in bitmap of probed irqs 0
> sio1: port may not be enabled
> vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
> Timecounters tick every 10.000 msec
> ipfw2 initialized, divert enabled, rule-based forwarding enabled, default to deny, logging unlimited
> acpi_cpu0: set speed to 100.0%
> acpi_cpu: throttling enabled, 8 steps (100% to 12.5%), currently 100.0%
> acpi_cmbat0: battery initialization start
> acpi_acad0: acline initialization start
> ad0: 28615MB <HITACHI_DK23DA-30B> [62016/15/63] at ata0-master UDMA100
> acpi_ec0: EcRead: Failed waiting for EC to send data.
>     ACPI-0432: *** Error: Handler for [EmbeddedControl] returned AE_ERROR
>     ACPI-1287: *** Error: Method execution failed [\\_SB_.PCI0.LPC_.EC__.AC__._PSR] (Node 0xc25ef140), AE_ERROR
> acpi_acad0: acline initialization done, tried 1 times
> acpi_ec0: EcWaitEventIntr called without EC lock!
> acpi_cmbat0: battery initialization done, tried 1 times
> Mounting root from ufs:/dev/ad0s1a
> acpi_acad0: On Line
> WARNING: driver "rtc" used unreserved major device number 202
> WARNING: driver "vmmon" used unreserved major device number 200
> /dev/vmmon: Module vmmon: registered with major=200 minor=0 tag=$Name: build-570+ $
> /dev/vmmon: Module vmmon: initialized
> start (20000000) < sc->membase (c0200000)
> end (ffffffff) > sc->memlimit (cfffffff)
> start (20000000) < sc->pmembase (e8000000)
> end (ffffffff) > sc->pmemlimit (cfffffff)
> start (20000000) < sc->membase (c0200000)
> end (ffffffff) > sc->memlimit (cfffffff)
> start (20000000) < sc->pmembase (e8000000)
> end (ffffffff) > sc->pmemlimit (cfffffff)
> pccard0: <unknown card> (manufacturer=0xffffffff, product=0xffffffff) at function 0
> pccard0:    CIS info: PCMCIA, IDE CARD, F1

This is where it all goes away! Everything looks perfect until it
tries to connect to the pcccard. Then...

Maybe someone more aware of the details can provide other
suggestions. All I can suggest is trying some different values for the
start_memory location. You might experiment with 0x2800000 or
0x30000000. But I don't promise anything.

If anyone has gotten an X24 ThinkPad to talk to a pccard, this is a
good time to chime in!
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman at es.net			Phone: +1 510 486-8634


More information about the freebsd-mobile mailing list