[U-Boot-Users] Again on PCMCIA/IDE and PXA270

Rodolfo Giometti giometti at enneenne.com
Wed Apr 16 18:46:06 CEST 2008


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...

-- 

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




More information about the U-Boot mailing list