pcmcia + sd karta

Sekcia: Hardware a Drivery 17.06.2008 | 18:08
tony   Návštevník
mam pcmcia citacku kariet (sd, mmc..) ale pri vlozeni sd karty sa ta sd karta neda pripojit. mam debian etch. nejde to ani vo windowse. v com moze byt problem.

vypis z /var/log/messages:
Jun 17 15:12:59 pilgrim kernel: pccard: PCMCIA card inserted into slot 0
Jun 17 15:12:59 kernel: pcmcia: registering new device pcmcia0.0
Jun 17 15:12:59 kernel: pcmcia: request for exclusive IRQ could not be fulfilled.
Jun 17 15:12:59 kernel: pcmcia: the driver needs updating to supported shared IRQ lines.
Jun 17 15:13:00 kernel: hdc: Memory Card Adapter, CFA DISK drive
Jun 17 15:13:00 kernel: ide1 at 0x6100-0x6107,0x610e on irq 201
Jun 17 15:13:00 kernel: hdc: max request size: 128KiB
Jun 17 15:13:00 kernel: hdc: 1961984 sectors (1004 MB) w/1KiB Cache, CHS=1946/16/63
Jun 17 15:13:00 kernel:  hdc: unknown partition table
Jun 17 15:13:00 kernel: ide-cs: hdc: Vpp = 0.0
Jun 17 15:13:07 kernel: pccard: card ejected from slot 0
Jun 17 15:13:11 kernel: pccard: PCMCIA card inserted into slot 0
Jun 17 15:13:11 kernel: pcmcia: registering new device pcmcia0.0
Jun 17 15:13:11 kernel: pcmcia: request for exclusive IRQ could not be fulfilled.
Jun 17 15:13:11 kernel: pcmcia: the driver needs updating to supported shared IRQ lines.
Jun 17 15:13:11 kernel: hdc: Memory Card Adapter, CFA DISK drive
Jun 17 15:13:12 kernel: ide1 at 0x6100-0x6107,0x610e on irq 201
Jun 17 15:13:12 kernel: hdc: max request size: 128KiB
Jun 17 15:13:12 kernel: hdc: 1961984 sectors (1004 MB) w/1KiB Cache, CHS=1946/16/63
Jun 17 15:13:12 kernel:  hdc: unknown partition table
Jun 17 15:13:12 kernel: ide-cs: hdc: Vpp = 0.0
Jun 17 15:13:31 kernel: pccard: card ejected from slot 0
Jun 17 15:13:58 kernel: pccard: PCMCIA card inserted into slot 0
Jun 17 15:13:58 kernel: pcmcia: registering new device pcmcia0.0
Jun 17 15:13:58 kernel: pcmcia: request for exclusive IRQ could not be fulfilled.
Jun 17 15:13:58 kernel: pcmcia: the driver needs updating to supported shared IRQ lines.
Jun 17 15:13:58 kernel: hdc: Memory Card Adapter, CFA DISK drive
Jun 17 15:13:59 kernel: ide1 at 0x6100-0x6107,0x610e on irq 201
Jun 17 15:13:59 kernel: hdc: max request size: 128KiB
Jun 17 15:13:59 kernel: hdc: 1961984 sectors (1004 MB) w/1KiB Cache, CHS=1946/16/63
Jun 17 15:13:59 kernel:  hdc: unknown partition table
Jun 17 15:13:59 kernel: ide-cs: hdc: Vpp = 0.0

vypis dmesg | tail:
pcmcia: registering new device pcmcia0.0
pcmcia: request for exclusive IRQ could not be fulfilled.
pcmcia: the driver needs updating to supported shared IRQ lines.
Probing IDE interface ide1...
hdc: Memory Card Adapter, CFA DISK drive
ide1 at 0x6100-0x6107,0x610e on irq 201
hdc: max request size: 128KiB
hdc: 1961984 sectors (1004 MB) w/1KiB Cache, CHS=1946/16/63
 hdc: unknown partition table
ide-cs: hdc: Vpp = 0.0
    • Re: pcmcia + sd karta 17.06.2008 | 18:12
      WlaSaTy   Návštevník
      gigova karta, ze? skus ju pripojit rucne, je viditelna ako hda (bez particie).
      • Re: pcmcia + sd karta 17.06.2008 | 20:19
        tony   Návštevník
        skusal som manualne # mount -t vfat /dev/hdc /mnt/nieco a hlasi ze nespravny suborovy system (je tam FAT - na internej citacke na tom istom notebooku tu kartu normalne pripojim)
      • Re: pcmcia + sd karta 17.06.2008 | 20:29
        tony   Návštevník
        v internej citacke sa sd karta hlasi ako /dev/mmcblk0
        • Re: pcmcia + sd karta 17.06.2008 | 20:32
          tony   Návštevník
          a suborovy system je vtedy na particii /dev/mmcblk0p1
          • Re: pcmcia + sd karta 17.06.2008 | 21:15
            WlaSaTy   Návštevník
            Takze ma ta karta vytvorenu particiu a je naformatovana, to je dost podstatna informacia ktoru si mohol povedat.

            Ako prve by som odporucil odfiltrovat preklep:
            mount -t vfat /dev/hda /mnt/nieco

            Ako druhe by som odporucil pozriet ci nemas zavesene nieco ine na /dev/hda prikazom:
            dmesg | grep -i -e hda -e ide
            Predsa len hda je rezervovany pre interne IDE radice aj ked su nie aktivne, doplnkove radice zacinaju od hde.

            Ako tretie by som odporucil vyskusat ci ta citacka dokaze s kartou komunikovat:
            sudo dd if=/dev/hda of=/dev/null bs=1024 count=10

            A ako stvrte by som odporucil skontrolovat ci ta karta nie je nahodou z rodiny SDHC. Dany typ SD karty (SDHC, ako high capacity) sice zacinal az nad 1Gb ale clovek nikdy nevie. Rovnako ako by som odporucil skontrolovat ci ta citacka vie robit s danym hardware.

            Ak by to nepomohlo a nedalo sa z toho vycitat nieco rozumne, tak je potrebne skontrolovat ci nie je update na danu citacku v novsom jadre.

            PS.: ta poznamka ohladne integrovanych radicoch ma svoje opodstatnenie aj ked sa v dnesnej pristupuje na IDE (P)ATA disky cez nazvoslovie ziskane na inej technologii (SCSI), podobne ako aj pri USB diskoch.
            • Re: pcmcia + sd karta 18.06.2008 | 00:14
              tony   Návštevník
              ako hda mam dvd mechaniku takze som podla vyssie uvedenych vypisov usudil ze citacka je hdc.

              vdaka za rady, vyskusam ich.

              aspon nieco - momentalne ked pcmcia citacka nie je vlozena:
              dmesg | grep -i -e hda -e ide
              BIOS-provided physical RAM map:
              ACPI: IRQ0 used by override.
              ACPI: IRQ2 used by override.
              ACPI: IRQ9 used by override.
              Boot video device is 0000:00:02.0
              PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.1
              Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
              ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
              ICH8M: IDE controller at PCI slot 0000:00:1f.1
                  ide0: BM-DMA at 0x1810-0x1817, BIOS settings: hda:DMA, hdb:pio
              Probing IDE interface ide0...
              hda: MATSHITADVD-RAM UJ-860, ATAPI CD/DVD-ROM drive
              ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
              hda: ATAPI 24X DVD-ROM DVD-R-RAM CD-R/RW drive, 2048kB Cache, UDMA(33)

              ps: ta pcmcia karta nie je moja ale zajtra by som sa k nej mal opat dostat. kamarat mi ju dal ze mu to nejde pod win takze som zvedavy ci pojde ;-)
              • Re: pcmcia + sd karta 18.06.2008 | 01:01
                WlaSaTy   Návštevník
                oops, beriem spet aj s tym hda, sekol som sa. skus to pozriet pre ten hdc.

            • Re: pcmcia + sd karta 23.06.2008 | 15:29
              tony   Návštevník
              karta ja 1gb ale vraj je dost stara. ale citacka by mala podporovat aj sdhc sd karty takze to by nemal byt problem.

              tu su dalsie vypisy (citacka je pripojena):
              # dd if=/dev/hdc of=/dev/null bs=1024 count=10
              10+0 records in
              10+0 records out
              10240 bytes (10 kB) copied, 0,051032 seconds, 201 kB/s
              # dmesg | grep -i -e hdc -e ide
              BIOS-provided physical RAM map:
              ACPI: IRQ0 used by override.
              ACPI: IRQ2 used by override.
              ACPI: IRQ9 used by override.
              Boot video device is 0000:00:02.0
              PCI: Ignoring BAR0-3 of IDE controller 0000:00:1f.1
              Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
              ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
              ICH8M: IDE controller at PCI slot 0000:00:1f.1
                  ide0: BM-DMA at 0x1810-0x1817, BIOS settings: hda:DMA, hdb:pio
              Probing IDE interface ide0...
              ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
              Probing IDE interface ide1...
              hdc: Memory Card Adapter, CFA DISK drive
              ide1 at 0x6100-0x6107,0x610e on irq 201
              ide-cs: hdc: Vpp = 0.0
              hdc: max request size: 128KiB
              hdc: 1961984 sectors (1004 MB) w/1KiB Cache, CHS=1946/16/63
               hdc: unknown partition table
              

              idem to este vyskusat s novsim jadrom.
              • Re: pcmcia + sd karta 23.06.2008 | 15:46
                tony   Návštevník
                ani s jadrom 2.6.24.5 to nejde
                • Re: pcmcia + sd karta 23.06.2008 | 16:12
                  tony   Návštevník
                  este jeden vypis (toto je s jadrom 2.6.24.5):
                  # fdisk fdisk -l /dev/sdc
                  
                  Disk /dev/sdc: 1004 MB, 1004535808 bytes
                  255 heads, 63 sectors/track, 122 cylinders
                  Units = cylinders of 16065 * 512 = 8225280 bytes
                  Disk identifier: 0x88888888
                  
                  Disk /dev/sdc doesn't contain a valid partition table
                  • Re: pcmcia + sd karta 23.06.2008 | 16:13
                    tony   Návštevník
                    # fdisk fdisk -l /dev/mmcblk0
                    
                    Disk /dev/mmcblk0: 1004 MB, 1004535808 bytes
                    7 heads, 38 sectors/track, 7375 cylinders
                    Units = cylinders of 266 * 512 = 136192 bytes
                    Disk identifier: 0x00000000
                    
                            Device Boot      Start         End      Blocks   Id  System
                    /dev/mmcblk0p1               1        7376      980864+   6  FAT16
                    • Re: pcmcia + sd karta 23.06.2008 | 16:26
                      tony   Návštevník
                      tento vypis som urobil ked bola karta vlozena v internej citacke
              • Re: pcmcia + sd karta 23.06.2008 | 16:08
                tony   Návštevník
                ked tu kartu vlozim cez internu citacku tak /var/log/messages ukaze toto:
                Jun 23 14:01:11  kernel: mmc0: new high speed SD card at address 0002
                Jun 23 14:01:11  kernel: mmcblk0: mmc0:0002       980992KiB 
                Jun 23 14:01:11  kernel:  mmcblk0: p1
                Jun 23 14:01:19  hald: mounted /dev/mmcblk0p1 on behalf of uid 1000

                dalsie vypisy karty pripojenej cez internu citacku:
                # mount | grep mmcblk
                /dev/mmcblk0p1 on /media/disk type vfat (rw,nosuid,nodev,noatime,uhelper=hal,flush,uid=1000,utf8,shortname=lower)
                # df -h | grep mmcblk
                /dev/mmcblk0p1        958M  902M   57M  95% /media/disk
                • Re: pcmcia + sd karta 24.06.2008 | 00:20
                  WlaSaTy   Návštevník
                  nejakenove informacie by neboli? mozno by bodlo skusit aj ostatne prikazy a napisat co je to za kartu :
                  pccardctl ident
                  pccardctl status
                  
                  • Re: pcmcia + sd karta 24.06.2008 | 09:11
                    tony   Návštevník
                    vdaka skusim. toto je prva pcmcia karta ktoru som kedy mal k dispozicii :-)
                  • Re: pcmcia + sd karta 24.06.2008 | 15:31
                    tony   Návštevník
                    # pccardctl ident
                    Socket 0:
                      product info: "                   ", "Memory Card Adapter", "", ""
                      manfid: 0x0045, 0x0401
                      function: 4 (fixed disk)
                    # pccardctl status
                    Socket 0:
                      3.3V 16-bit PC Card
                      Subdevice 0 (function 0) bound to driver "ide-cs"
                    # pccardctl info
                    PRODID_1="                   "
                    PRODID_2="Memory Card Adapter"
                    PRODID_3=""
                    PRODID_4=""
                    MANFID=0045,0401
                    FUNCID=4
                    # pccardctl ls
                    Socket 0 Bridge:        [yenta_cardbus]         (bus ID: 0000:15:00.0)
                    Socket 0 Device 0:      [ide-cs]                (bus ID: 0.0)

                    pod jadrom 2.6.24.5 boli tento vypisy odlisne:
                    # pccardctl status
                    Socket 0:
                      3.3V 16-bit PC Card
                      Subdevice 0 (function 0) bound to driver "pata_pcmcia"
                    # pccardctl ls
                    Socket 0 Bridge:   	[yenta_cardbus] 	(bus ID: 0000:15:00.0)
                    Socket 0 Device 0:	[pata_pcmcia]		(bus ID: 0.0)
                    • Re: pcmcia + sd karta 24.06.2008 | 19:11
                      WlaSaTy   Návštevník
                      Z tohoto listu to vyzera byt tato. Problem je v tom, ze zahlasi nieco o vlozenom disku ale nekomunikuje s nim (preto jadro nerozpozna particie). Skus tam inu kartu ci to nahodou nie je tym co som spominal(moc nova karta na 16bit PCMCIA). Skus predsa len najst nejaku cca 128Mb kartu ci sa nechyti, predsa len ak je to skutocne 4in1 a nie 32in1, tak mas malu sancu ze to rozchodis.

                      PS.: ma ta karta zemniaci pruzok pri konektore? 16bit ho nepotrebovali ale 32bit ho vyzadovali. to len pre info :)