Unable to access PCMCIA/CF Card in Common Memory Mode (neewbie)
Gururaja Hebbar K R
gururajakr at sanyo.co.in
Fri May 18 02:37:40 EDT 2007
Dear all,
I am working on a Custom Built Variant of ARM Versatile Board. We have
a PCMCIA/CF Module integrated in Processor. This have a single Memory
Space of 128k Shared Between Attribute Memory, Common Memory & TrueIDE
Mode. It has Register Setting to Select any one of Attribute memory,
Common Memory, IO Memory & TrueIDE Modes. Same Memory Range is Made
available as per Register Settings. It has a single Interrupt for all CF
Events.
I am able to read from the CF Card CIS Data & Sectors/MBR in Standalone
code from Attribute Memory & Common Memory.
working on Linux 2.6.20.6 Version with latest pcmciautils 0.14
installed. I modified Atmel & Omap CF Code to match our board.
after booting I get an error as -->
ide-cs: ide_register() at 0xc2802000 & 0xc280200e, irq 22 failed
I have installed pcmciautil tools but none is running on startup. is
their any scripts or tools that i need to call at system startup.
i have enabled udev but not installed/running any udev tools.
for the reference i have attached req outputs
1.. Linux version 2.6.20.6 (root at linux_box) (gcc version 4.1.1
(CodeSourcery ARM Sou
rcery G++ 2006q3-26)) #28 Fri May 18 17:52:50 EDT 2007
CPU: ARM926EJ-S [41069264] revision 4 (ARMv5TEJ), cr=00053177
<skip unneeded data>
Serial: AMBA PL011 UART driver
dev:fd: ttyAMA0 at MMIO 0x101fd000 (irq = 12) is a AMBA/PL011
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
<--- important ones
ide: Assuming 50MHz system bus speed for PIO modes; override with
idebus=xx <--- important ones
69xx_cf: on irq 22
<--- important ones
<skip unneeded data>
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 76K
init started: BusyBox v1.5.0 (2007-05-15 20:54:57 EDT) multi-call binary
starting pid 156, tty '/dev/ttyAMA0': '/etc/init.d/rcS'
Starting System Init for 69xx
BusyBox v1.5.0 (2007-05-15 20:54:57 EDT) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
#
pccard: PCMCIA card inserted into slot 0
pcmcia: registering new device pcmcia0.0
ide-cs: ide_register() at 0xc2802000 & 0xc280200e, irq 22 failed
# lspcmcia
Socket 0 Bridge: [69xx_cf] (bus ID: 69xx_cf)
Socket 0 Device 0: [-- no driver --] (bus ID: 0.0)
# pccardctl ident
Socket 0:
product info: "HITACHI", "FLASH", "5.0", ""
manfid: 0x0007, 0x0000
function: 4 (fixed disk)
# pccardctl info
PRODID_1="HITACHI"
PRODID_2="FLASH"
PRODID_3="5.0"
PRODID_4=""
MANFID=0007,0000
FUNCID=4
# pccardctl status
Socket 0:
3.3V 16-bit PC Card
Subdevice 0 (function 0) [unbound]
# lspcmcia -v
Socket 0 Bridge: [69xx_cf] (bus ID: 69xx_cf)
Configuration: state: on ready: yes
Voltage: 3.3V Vcc: 3.3V Vpp: 0.0V
Available IRQs: none
Socket 0 Device 0: [-- no driver --] (bus ID: 0.0)
Configuration: state: on
Product Name: HITACHI FLASH 5.0
Identification: manf_id: 0x0007 card_id: 0x0000
function: 4 (fixed disk)
prod_id(1): "HITACHI" (0xf4f43949)
prod_id(2): "FLASH" (0x9eb86aae)
prod_id(3): "5.0" (0x0f7e1efb)
prod_id(4): --- (---)
#cat /proc/ioports ---> no results
# cat /proc/iomem
00000000-01ffffff : System RAM
0001b000-00167fff : Kernel text
00168000-00188017 : Kernel data
101a0000-101bffff : 69xx_cf
101a0000-101a1fff : 69xx_cf
101e0000-101e0fff : dev:e0
101e4000-101e4fff : dev:e4
101e5000-101e5fff : dev:e5
101e6000-101e6fff : dev:e6
101e7000-101e7fff : dev:e7
101e8000-101e8fff : dev:e8
101f8000-101f8fff : dev:f8
101f8000-101f8fff : mmci-pl18x
101fd000-101fdfff : dev:fd
101fd000-101fdfff : uart-pl011
----> I have enabled below mentioned configs in kernel configuration.
CONFIG_PCCARD=y
CONFIG_PCMCIA_DEBUG=y
CONFIG_PCMCIA=y
CONFIG_PCMCIA_LOAD_CIS=y
CONFIG_IDE=y
CONFIG_IDE_MAX_HWIFS=4
CONFIG_BLK_DEV_IDE=y
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_BLK_DEV_IDECS=y
Kindly let me know if i need change any codes. As i am able read in
Standalone mode from Common Memory what chanegs shld i do to read from
io Space.
Regards
Gururaja
More information about the linux-pcmcia
mailing list