how to enable CompactFlash Card?

Evan
2005-03-16
2013-04-08
  • Evan

    Evan - 2005-03-16

    Hi.
    I implement a socket driver with our custom chip.
    CF

     
    • Evan

      Evan - 2005-03-16

      Sorry.
      My driver can work with AboCom CF 10/100 LAN & Ambicom CF 802.11b WLAN card properly.
      But I have no idea how to Enable CompactFlash Card.
      I enable 2 setting in Kernel.
        <M> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy
        <M>   Include IDE/ATA-2 DISK support  

      and implement ide.h in kernel  include /asm-arm/arch-s3c2410/ide.h

      static __inline__ void
      ide_init_hwif_ports(hw_regs_t *hw, int data_port, int ctrl_port, int *irq)
      {
              ide_ioreg_t reg;
              int i;
              int regincr = 1;
                                                                                                                                                                  
              memset(hw, 0, sizeof(*hw));
                                                                                                                                                                  
              reg = (ide_ioreg_t)data_port;
                                                                                                                                                                  
              for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) {
                      hw->io_ports[i] = reg;
                      reg += regincr;
              }
                                                                                                                                                                  
              hw->io_ports[IDE_CONTROL_OFFSET] = (ide_ioreg_t) ctrl_port;
                                                                                                                                                                  
              if (irq)
                      *irq = 0;
                                                                                                                                                                  
      }
                                                                                                                                                                  
      static __inline__ void
      ide_init_default_hwifs(void)
      {
      }                                                

      I enable memory & io mode when compactflash card insert.
      My custom chip complete CF spec 1.4
      My kernel is 2.4.18-rmk7-pxa1,pcmcia-cs 3.2.7
      CPU Samsung S3C2410

      any suggestion?
      Thank you.

       
    • Evan

      Evan - 2005-03-18

      Which mode should I enable?
      Memory mode?
      IO mode?
      True IDE mode?

       
      • David Hinds

        David Hinds - 2005-03-22

        You use the ide-cs driver, which uses IO mode.

        -- Dave

         
    • Evan

      Evan - 2005-03-21

      By the same driver, Intersil WLAN & 10/100 mbps LAN card is already work.
      but Compact Flash memory card is not work.I got message ....
      ---------------------------------------------------------------------------
      cardmgr[157]: socket 0: ATA/IDE Fixed Disk
      cardmgr[157]: executing: 'modprobe ide-cs 2>&1'
      cardmgr[157]: + Using /lib/modules/2.4.18-rmk7-pxa1/pcmcia/ide-cs.o
      Trying to free nonexistent resource <d3009000-d300900f>
      hda: no response (status = 0xa1), resetting drive
      hda: no response (status = 0xa1)
      hdb: no response (status = 0xa1), resetting drive
      hdb: no response (status = 0xa1)
      hda: no response (status = 0xa1), resetting drive
      hda: no response (status = 0xa1)
      hdb: no response (status = 0xa1), resetting drive
      .......
      -------------------------------------------------------------------------------------
      I switch socket to IO mode &16 bit

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks