[AGAIN] Problems with pcmcia & smartmedia

vittorio vdemart1 at tin.it
Sun Aug 28 15:03:56 GMT 2005


Alle 04:21, domenica 28 agosto 2005, M. Warner Losh ha scritto:
> In message: <200508261726.59628.vdemart1 at tin.it>
>
>             vittorio <vdemart1 at tin.it> writes:
> : I'm re-sending the following message for help.
> : In a nutshell I put the smartmedia card of my digital camera into a
> : pcmcia adapter which is easily configured both by win xp and linux, while
> : under freebsd 5.4 I cannot see it as a mass storage drive (see below).
> :
> : Any suggestion?
> : Where can I find pieces of documentation about this subject, i.e.,
> : configuring removable mass storage in pccards?
>
> It should just work.  It does for me.  So, we'll need to find out
> where things differ.
>
> First, can you set hw.cbb.debug=1, hw.pccard.debug=1 and
> hw.pccard.cis_debug=1 with sysctl before inserting the card and send
> me the entire dmesg output?
>
> Warner

Here it is as you requested (I admit is somewhat cryptic to me apart from the 
fact that freebsd 5.4 seems not to be able to extract any CIS info...)
Thanks a lot
Vittorio


vittorio# sysctl -w hw.pccard.debug=1
hw.pccard.debug: 0 -> 1
vittorio# sysctl -w hw.pccard.cis_debug=1
hw.pccard.cis_debug: 0 -> 1
vittorio# sysctl -w hw.cbb.debug=1
hw.cbb.debug: 0 -> 1
vittorio# tail -f /var/log/messages
<SNIP - Inserting the PCCARD>
..................
: Status is 0x30000910
: cbb0: card inserted: event=0x00000000, state=30000910
: pccard0: chip_socket_enable
: cbb_pcic_socket_enable:
: cbb0: cbb_power: 3V
: pccard0: read_cis
: cis mem map 0xe56de000 (resource: 0x88000000)
: pccard0: CIS tuple chain:
: CISTPL_DEVICE type=funcspec speed=250ns
: 01 03 d9 01 ff
: unhandled CISTPL 18
: 18 02 df 01
: CISTPL_MANFID
: 20 04 00 00 00 00
: CISTPL_FUNCID
: 21 02 04 01
: CISTPL_FUNCE
: 22 02 01 01
: CISTPL_FUNCE
: 22 03 02 04 07
: CISTPL_CONFIG
: 1a 05 01 03 00 02 0f
: CISTPL_CFTABLE_ENTRY
: 1b 08 c0 c0 a1 01 55 08 00 20
: CISTPL_CFTABLE_ENTRY
: 1b 0a c1 41 99 01 55 64 f0 ff ff 20
: CISTPL_CFTABLE_ENTRY
: 1b 0c 82 41 18 ea 61 f0 01 07 f6 03 01 ee
: CISTPL_CFTABLE_ENTRY
: 1b 0c 83 41 18 ea 61 70 01 07 76 03 01 ee
: CISTPL_VERS_1
: 15 14 05 00 20 20 20 20 20 20 20 00 20 20 20 20
: 00 30 2e 30 00 ff
: CISTPL_NO_LINK
: 14 00
: CISTPL_END
: ff
: pccard0: check_cis_quirks
: pccard0: CIS version PC Card Standard 5.0
: pccard0: CIS info:        ,     , 0.0
: pccard0: Manufacturer code 0x0, product 0x0
: pccard0: function 0: fixed disk, ccr addr 200 mask f
: pccard0: function 0, config table entry 0: memory card; irq mask 0; memspace 
0-7ff; mwait_required rdybsy_active powerdown
: pccard0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 
4, iospace 0-f; memspace 0-7ff; rdybsy_active io8 io16 irqshare irqpulse 
irqlevel powerdown
: pccard0: function 0, config table entry 2: I/O card; irq mask 4000; iomask 
a, iospace 1f0-1f7 3f6-3f7; memspace 0-7ff; rdybsy_active io8 io16 irqshare 
irqpulse irqlevel powerdown
: pccard0: function 0, config table entry 3: I/O card; irq mask 4000; iomask 
a, iospace 170-177 376-377; memspace 0-7ff; rdybsy_active io8 io16 irqshare 
irqpulse irqlevel powerdown
: pccard0: functions scanning
: pccard0: Card has 1 functions. pccard_mfc is 0
: pccard0: Memory space not yet implemented.
: pccard0: Neither memory nor I/O mapped
: pccard0: Allocation failed for cfe 0
: pccard0: I/O rid 0 start 0 end ffffffff
: pccard0: Memory space not yet implemented.
: cbb_pcic_socket_enable:
: cbb0: cbb_power: 0V
: cbb0: cbb_power: 3V
: pccard0: ccr_res == 88000000-880003ff, base=200
: pccard0: function 0 CCR at 0 offset 200: 41 80 2e 0, 0 0 0 0, 0
: ata2: <            > at port 0x2050-0x205f irq 11 function 0 config 1 on 
pccard0
: pccard0: function 0 CCR at 0 offset 200 mask f: 41 80 2e 0, 1 1 1 1, 1                             
</SNIP>
.....................
......................

<SNIP - Removing the PCCARD>
: Status is 0x30000186
: ata2: detached
: cbb_pcic_socket_disable
</SNIP>



More information about the freebsd-mobile mailing list