Skip to contentSkip to conversation

Again on PCMCIA/IDE and PXA270

U-Boot-Users Rodolfo Giometti 2 participants 5 messages Apr 16, 2008 – Apr 17, 2008

lore
Share & tools
lore
#0 lore raw

Hello,

Using a 1GB CF on my system I get:

equantum> pinit on
KINGSTON CF CARD 1GB
Fixed Disk Card
IDE interface
[silicon] [unique] [single] [sleep] [standby] [idle] [low power]
equantum> ide reset

Reset IDE: Bus 0: ide_outb (dev= 0, port= 0x1f6, val= 0xe0) : @ 0x200001f6 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x51
OK

     Device 0: ide_outb (dev= 0, port= 0x1f6, val= 0xe0) : @ 0x200001f6

ide_inb (dev= 0, port= 0x1f2) : @ 0x200001f2 -> 0x01 ide_inb (dev= 0, port= 0x1f3) : @ 0x200001f3 -> 0x01 ide_inb (dev= 0, port= 0x1f4) : @ 0x200001f4 -> 0x00 ide_outb (dev= 0, port= 0x1f7, val= 0xec) : @ 0x200001f7 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x81 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x58 in input data base for read is 200001f0

Here follows the CF configuration words from command IDENTIFY DEVICE:

0000) 8a84:.. ae07:.. 0000:.. 1000:.. 0000:.. 4002:@. 3f00:?. 1e00:..
0008) 203d: = 0000:.. 4643:FC 4731:G1 2042: B 2020: 2020: 2020:
0010) 3030:00 3030:00 3130:10 4642:FB 0200:.. 0200:.. 0400:.. 3032:02

   0018) 3730:70 3130:10 3133:13 4643:FC 4320:C  5241:RA 2044: D 4731:G1 
   0020) 2042: B 2020:   2020:   2020:   2020:   2020:   2020:   2020:   
   0028) 2020:   2020:   2020:   2020:   2020:   2020:   2020:   0180:.. 

0030) 0000:.. 0002:.. 0000:.. 0002:.. 0000:.. 0300:.. ae07:.. 1000:.. 0038) 3f00:?. 203d: = 1e00:.. 0001:.. 203d: = 1e00:.. 0000:.. 0000:.. 0040) 0300:.. 0000:.. 0000:.. 7800:x. 7800:x. 0000:.. 0000:.. 0000:.. 0048) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0050) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0058) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0060) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0068) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0070) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0078) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0080) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0088) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0090) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0098) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00a0) 0000:.. 0000:.. 0000:.. 9204:.. 1b00:.. 0000:.. 0000:.. 0000:.. 00a8) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00b0) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00b8) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00c0) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00c8) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00d0) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00d8) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00e0) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00e8) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00f0) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00f8) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0100) 0000:.. 0000:.. e0ab:.. 02a3:.. 0000:.. 0000:.. 0000:.. 0000:.. 0108) 0000:.. 0000:.. 6002:`. f2a2:.. b001:.. f2a2:.. f487:.. 00a3:.. 0110) e0ab:.. 02a3:.. 8002:.. f2a2:.. 0000:.. 0000:.. 0000:.. 0000:.. 0118) 0000:.. 0000:.. 0000:.. 0000:.. c005:.. 01a3:.. 7802:x. f2a2:.. 0120) 8002:.. f2a2:.. 1400:.. 0000:.. c801:.. f2a2:.. 1800:.. 0000:.. 0128) 0b00:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0130) 0000:.. 0000:.. 0100:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0138) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. b001:.. f2a2:.. 0140) 0000:.. 0000:.. 80fe:.. efa2:.. 30fe:0. efa2:.. 44fe:D. efa2:.. 0148) 0000:.. 0000:.. 0200:.. 0000:.. 7c0b:|. 01a3:.. 0000:.. 0000:.. 0150) e001:.. f2a2:.. 0000:.. 0000:.. 6400:d. 0000:.. 0000:.. 0000:.. 0158) 0000:.. 0000:.. e002:.. f2a2:.. b001:.. f2a2:.. c802:.. f2a2:.. 0160) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0200:.. 0000:.. 0168) ffff:.. ffff:.. 30ff:0. efa2:.. 0200:.. 0000:.. 0100:.. 0000:.. 0170) 0100:.. 0000:.. 0caf:.. 6200:b. 0000:.. 0000:.. b40c:.. 01a3:.. 0178) 1cb7:.. 02a3:.. 0100:.. 0000:.. 0200:.. 0000:.. acf2:.. 00a3:.. 0180) 94f4:.. 00a3:.. 8034:.4 00a3:.. 0200:.. 0000:.. 3600:6. f0a2:.. 0188) 3132:12 0000:.. 0000:.. 0000:.. 0100:.. 0000:.. 0000:.. 0000:.. 0190) 0000:.. 0000:.. 0100:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0198) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 01a0) 0000:.. 0000:.. 0000:.. 0000:.. 0100:.. 0000:.. 0000:.. 0000:.. 01a8) 0000:.. 0000:.. 0100:.. 0000:.. a80d:.. 02a3:.. 0200:.. 0000:.. 01b0) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 01b8) 0000:.. 0000:.. adff:.. efa2:.. 0600:.. 0000:.. c851:.Q 02a3:.. 01c0) ffff:.. ffff:.. ffff:.. ffff:.. c25b:.[ f3e9:.. a810:.. 00a3:.. 01c8) ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. 01d0) ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. 01d8) ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. 01e0) ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. 01e8) ffff:.. ffff:.. 0100:.. 0000:.. 0100:.. 0000:.. 28ca:(. 00a3:.. 01f0) 6400:d. 0000:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. 01f8) ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:..

The device is correctly identified:

Model: CF CARD 1GB Firm: 20070131 Ser#: FCG1 B 000010FB
Type: Removable Hard Disk
Capacity: 967.6 MB = 0.9 GB (1981728 x 512)
ide_read dev 0 start 0, blocks 1 buffer at A2EFF91C ide_outb (dev= 0, port= 0x1f6, val= 0xe0) : @ 0x200001f6 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x51 IDE read: warning, device 0 not ready
ide_outb (dev= 0, port= 0x1f7, val= 0xe5) : @ 0x200001f7 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x50 ide_inb (dev= 0, port= 0x1f2) : @ 0x200001f2 -> 0x00 Powersaving 00
ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x50 write low bits
ide_outb (dev= 0, port= 0x1f2, val= 0x01) : @ 0x200001f2 ide_outb (dev= 0, port= 0x1f3, val= 0x00) : @ 0x200001f3 ide_outb (dev= 0, port= 0x1f4, val= 0x00) : @ 0x200001f4 ide_outb (dev= 0, port= 0x1f5, val= 0x00) : @ 0x200001f5 ide_outb (dev= 0, port= 0x1f6, val= 0xe0) : @ 0x200001f6 ide_outb (dev= 0, port= 0x1f7, val= 0x20) : @ 0x200001f7 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x80 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x58 in input data base for read is 200001f0
ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x50 ide_inb (dev= 0, port= 0x1f1) : @ 0x200001f1 -> 0x00

Also we can read the first sector correctly (error == 0):

IDE read: error 00
ide_outb (dev= 0, port= 0x1f6, val= 0xe0) : @ 0x200001f6 ide_outb (dev= 0, port= 0x1f7, val= 0x03) : @ 0x200001f7 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x81 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x50 ide_inb (dev= 0, port= 0x1f1) : @ 0x200001f1 -> 0x20 IDE read: extd 20

But this is the *only* CF that works! Just putting another one I get:

equantum> pinit on

Fixed Disk Card
IDE interface
[silicon] [single] [sleep] [standby] [idle] [low power]
equantum> ide reset

Reset IDE: Bus 0: ide_outb (dev= 0, port= 0x1f6, val= 0xe0) : @ 0x200001f6 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x51
OK

     Device 0: ide_outb (dev= 0, port= 0x1f6, val= 0xe0) : @ 0x200001f6

ide_inb (dev= 0, port= 0x1f2) : @ 0x200001f2 -> 0xd1 ide_outb (dev= 0, port= 0x1f7, val= 0xec) : @ 0x200001f7 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0xd1 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x58 in input data base for read is 200001f0

0000) 8a84:.. f401:.. 0000:.. 1000:.. 0000:.. 1002:.. 2000: . 0300:.. 0008) 00e8:.. 0000:.. 4349:CI 4146:AF 3031:01 3030:00 3030:00 3435:45
0010) 2031: 1 2020: 2020: 2020: 0200:.. 0200:.. 0400:.. 6172:ar
0018) 3330:30 302e:0. 6630:f0 6e49:nI 7564:ud 7473:ts 6972:ir 6c61:la

   0020) 4320:C  2046: F 6143:aC 6472:dr 2020:   2020:   2020:   2020:   
   0028) 2020:   2020:   2020:   2020:   2020:   2020:   2020:   0100:.. 

0030) 0000:.. 0002:.. 0000:.. 0002:.. 0000:.. 0100:.. f401:.. 1000:.. 0038) 2000: . 00e8:.. 0300:.. 0001:.. 00e8:.. 0300:.. 0000:.. 0000:.. 0040) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0048) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0050) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0058) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0060) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0068) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0070) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0078) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0080) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0088) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0090) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0098) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00a0) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00a8) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00b0) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00b8) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00c0) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00c8) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00d0) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00d8) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00e0) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00e8) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00f0) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 00f8) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0100) 0000:.. 0000:.. e0ab:.. 02a3:.. 0000:.. 0000:.. 0000:.. 0000:.. 0108) 0000:.. 0000:.. 6002:`. f2a2:.. b001:.. f2a2:.. f487:.. 00a3:.. 0110) e0ab:.. 02a3:.. 8002:.. f2a2:.. 0000:.. 0000:.. 0000:.. 0000:.. 0118) 0000:.. 0000:.. 0000:.. 0000:.. c005:.. 01a3:.. 7802:x. f2a2:.. 0120) 8002:.. f2a2:.. 1400:.. 0000:.. c801:.. f2a2:.. 1800:.. 0000:.. 0128) 0b00:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0130) 0000:.. 0000:.. 0100:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0138) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. b001:.. f2a2:.. 0140) 0000:.. 0000:.. 80fe:.. efa2:.. 30fe:0. efa2:.. 44fe:D. efa2:.. 0148) 0000:.. 0000:.. 0200:.. 0000:.. 7c0b:|. 01a3:.. 0000:.. 0000:.. 0150) e001:.. f2a2:.. 0000:.. 0000:.. 6400:d. 0000:.. 0000:.. 0000:.. 0158) 0000:.. 0000:.. e002:.. f2a2:.. b001:.. f2a2:.. c802:.. f2a2:.. 0160) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0200:.. 0000:.. 0168) ffff:.. ffff:.. 30ff:0. efa2:.. 0200:.. 0000:.. 0100:.. 0000:.. 0170) 0100:.. 0000:.. 0caf:.. 6200:b. 0000:.. 0000:.. b40c:.. 01a3:.. 0178) 1cb7:.. 02a3:.. 0100:.. 0000:.. 0200:.. 0000:.. acf2:.. 00a3:.. 0180) 94f4:.. 00a3:.. 8034:.4 00a3:.. 0200:.. 0000:.. 3600:6. f0a2:.. 0188) 3132:12 0000:.. 0000:.. 0000:.. 0100:.. 0000:.. 0000:.. 0000:.. 0190) 0000:.. 0000:.. 0100:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0198) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 01a0) 0000:.. 0000:.. 0000:.. 0000:.. 0100:.. 0000:.. 0000:.. 0000:.. 01a8) 0000:.. 0000:.. 0100:.. 0000:.. a80d:.. 02a3:.. 0200:.. 0000:.. 01b0) 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 0000:.. 01b8) 0000:.. 0000:.. adff:.. efa2:.. 0600:.. 0000:.. c851:.Q 02a3:.. 01c0) ffff:.. ffff:.. ffff:.. ffff:.. c25b:.[ f3e9:.. a810:.. 00a3:.. 01c8) ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. 01d0) ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. 01d8) ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. 01e0) ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. 01e8) ffff:.. ffff:.. 0100:.. 0000:.. 0100:.. 0000:.. 28ca:(. 00a3:.. 01f0) 6400:d. 0000:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. 01f8) ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:.. ffff:..

The card is correctly identified:

Model: Industrial CF Card Firm: ra03.00f Ser#: CIAF01000045 1
Type: Removable Hard Disk
Capacity: 125.0 MB = 0.1 GB (256000 x 512)
ide_read dev 0 start 0, blocks 1 buffer at A2EFF91C ide_outb (dev= 0, port= 0x1f6, val= 0xe0) : @ 0x200001f6 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0xd0 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x51 IDE read: warning, device 0 not ready
ide_outb (dev= 0, port= 0x1f7, val= 0xe5) : @ 0x200001f7 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0xd1 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x50 ide_inb (dev= 0, port= 0x1f2) : @ 0x200001f2 -> 0x00 Powersaving 00
ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x50 write low bits
ide_outb (dev= 0, port= 0x1f2, val= 0x01) : @ 0x200001f2 ide_outb (dev= 0, port= 0x1f3, val= 0x00) : @ 0x200001f3 ide_outb (dev= 0, port= 0x1f4, val= 0x00) : @ 0x200001f4 ide_outb (dev= 0, port= 0x1f5, val= 0x00) : @ 0x200001f5 ide_outb (dev= 0, port= 0x1f6, val= 0xe0) : @ 0x200001f6 ide_outb (dev= 0, port= 0x1f7, val= 0x20) : @ 0x200001f7 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0xd1 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x51 Error (no IRQ) dev 0 blk 0: status 0x51
ide_inb (dev= 0, port= 0x1f1) : @ 0x200001f1 -> 0x10

But the ide_read() returns error!

IDE read: error 10

Using the REQUEST_SENSE command I get:

ide_outb (dev= 0, port= 0x1f6, val= 0xe0) : @ 0x200001f6 ide_outb (dev= 0, port= 0x1f7, val= 0x03) : @ 0x200001f7 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0xd0 ide_inb (dev= 0, port= 0x1f7) : @ 0x200001f7 -> 0x50 ide_inb (dev= 0, port= 0x1f1) : @ 0x200001f1 -> 0x1f IDE read: extd 1f

Which means: Data Transfer Error / Aborted Command

Any suggestions?

Rodolfo

P.S. Sorry for the long post...

Signature · 4 lines
GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at linux.it
Embedded Systems                     phone:	+39 349 2432127
UNIX programming                     skype:     rodolfo.giometti
#1 lore raw
Quoted 11 lines · Rodolfo Giometti

Hello,

Using a 1GB CF on my system I get:

equantum> pinit on
KINGSTON CF CARD 1GB
Fixed Disk Card
IDE interface
[silicon] [unique] [single] [sleep] [standby] [idle] [low power]
equantum> ide reset

Could you gice more information about your environment : u-boot version, hard init, etc...

And also could specify the Voltage of the Flash that you use 3.3V, 5V, 3.3/5V.

Best Regards,
J.

#2 lore raw
Quoted 12 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 11 lines · Rodolfo Giometti

Hello,

Using a 1GB CF on my system I get:

equantum> pinit on
KINGSTON CF CARD 1GB
Fixed Disk Card
IDE interface
[silicon] [unique] [single] [sleep] [standby] [idle] [low power]
equantum> ide reset

Quoted 2 lines

Could you gice more information about your environment : u-boot version, hard init, etc...

Yes, sorry. u-boot version 1.2.0 running on PXA270 based board.

What do you mean by "hard init"? The GPIOs settings or so?

Quoted 2 lines

And also could specify the Voltage of the Flash that you use 3.3V, 5V, 3.3/5V.

The voltage is 3.3.

Thanks for your help,

Rodolfo

Signature · 4 lines
GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at linux.it
Embedded Systems                     phone:	+39 349 2432127
UNIX programming                     skype:     rodolfo.giometti
#3 lore raw
Quoted 13 lines · Rodolfo Giometti
Quoted 12 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 11 lines · Rodolfo Giometti

Hello,

Using a 1GB CF on my system I get:

equantum> pinit on
KINGSTON CF CARD 1GB
Fixed Disk Card
IDE interface
[silicon] [unique] [single] [sleep] [standby] [idle] [low power]
equantum> ide reset

Quoted 4 lines
Quoted 2 lines

Could you gice more information about your environment : u-boot version, hard init, etc...

Yes, sorry. u-boot version 1.2.0 running on PXA270 based board.

Please update to the current version

and take a look on this patch
Date: Fri, 04 Apr 2008 15:17:18 +0200
From: Martin Krause <[email protected]>
To: u-boot-users at lists.sourceforge.net
Subject: [U-Boot-Users] [PATCH v2] IDE: fix bug in reset sequence

Quoted 2 lines

What do you mean by "hard init"? The GPIOs settings or so?

Yes and other configuration

Best Regards,
J.

#4 lore raw
Quoted 1 line · Jean-Christophe PLAGNIOL-VILLARD

Please update to the current version

Yes, I'll do it, but I'm still working on this version since another board PXA255 based, with the same code version, works perfectly!

Quoted 5 lines

and take a look on this patch
Date: Fri, 04 Apr 2008 15:17:18 +0200
From: Martin Krause <[email protected]>
To: u-boot-users at lists.sourceforge.net
Subject: [U-Boot-Users] [PATCH v2] IDE: fix bug in reset sequence

I saw it but it changes nothing...

Quoted 3 lines
Quoted 2 lines

What do you mean by "hard init"? The GPIOs settings or so?

Yes and other configuration

Memory controller registers:

48000000: 08000bc9 021ba018 7ff87ff8 7ff87ff9    ................
48000010: 7ffc123c 00000002 00000000 00000000    <...............
48000020: 00000000 00000000 00050a3e 00000000    ........>.......
48000030: 00050a3e 00000000 0002c5a2 00000000    >...............
48000040: 00320032 00000009 02000234 55555588    2.2.....4....UUU
48000050: 55555555 00000005 00000000 55555555    UUUU........UUUU
48000060: 55555555 00000100 80000fff 00000000    UUUU............

GPIO settings:

40e00000: 001ff3fd 01ffffd6 732de3a4 c8e98008    ..........-s....
40e00010: fccfab83 063bffff 00000000 00000000    ......;.........
40e00020: 00000000 00000000 00000000 00000000    ................
40e00030: 00000000 00000000 00000000 00000000    ................
40e00040: 00000000 00000000 00000000 00000000    ................
40e00050: 00000000 80000000 a5254010 699a955a    .........@%.Z..i
40e00060: aaa5a0aa 6aaaaaaa 01000556 45554020    .......jV... @UE
40e00070: 00000146 00000000 00000000 00000000    F...............
40e00080: 00000000 00000000 00000000 00000000    ................
40e00090: 00000000 00000000 00000000 00000000    ................
40e000a0: 00000000 00000000 00000000 00000000    ................
40e000b0: 00000000 00000000 00000000 00000000    ................
40e000c0: 00000000 00000000 00000000 00000000    ................
40e000d0: 00000000 00000000 00000000 00000000    ................
40e000e0: 00000000 00000000 00000000 00000000    ................
40e000f0: 00000000 00000000 00000000 00000000    ................
40e00100: 01d1ffef 00000000 00000000 002a4010    .............@*.
40e00110: 00000000 00000000 00000000 00000000    ................
40e00120: 00000000 00000000 00000000 00000000    ................
40e00130: 00000000 00000000 00000000 00000000    ................
40e00140: 00000000 00000000 00000000 00000000    ................
40e00150: 00000000 00000000 00000000 00000000    ................

Thanks,

Rodolfo

Signature · 4 lines
GNU/Linux Solutions                  e-mail:    giometti at enneenne.com
Linux Device Driver                             giometti at linux.it
Embedded Systems                     phone:	+39 349 2432127
UNIX programming                     skype:     rodolfo.giometti