Public bug reported:

Note:

In spite of how this might look at first glance, this *IS* a problem
with something in Ubuntu/linux, and not hardware failure. I've tried two
different Compact Flash to IDE adapters, two different Compact Flash
cards, and three different Ubuntu versions (Hardy server, Intrepid
desktop, and Jaunty RC) and encountered the same problems every time.

However Windows XP installs to the CF card, boots, and runs from it with
no complaints.


Conditions:

Thinkpad X40
Addonics Compact Flash to IDE Adapter
Kingston Elite Pro 133x 32GB Compact Flash card

Using the CF->IDE adapter to replace the X40's original 1.8-inch hard
drive, the CF card is detected as:

[code]
] scsi0 : ata_piix
] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x1810 irq 14
] ata1.00: ATA-0: ELITE PR CF CARD 32GB, 20081204, max UDMA/66
] ata1.00: 62537328 sectors, multi 0: LBA
] ata1.00: configured for UDMA/66
] ata1.00: configured for UDMA/66
] ata1: EH complete
] scsi 0:0:0:0: Direct-Access    ATA    ELITE PRO CF CAR 2008 PQ: 0 ANSI: 5
] scsi 0:0:0:0: Attached scsi generic sg0 type 0
] Driver 'sd' needs updating - please use bus_type methods
] sd 0:0:0:0: [sda] 62537328 512-byte hardware sectors (32019 MB)
] sd 0:0:0:0: [sda] Write Protect is off
] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled,  doesn't 
support DPO or FUA
]  sda: sdsa1
] sd 0:0:0:0: [sda] Attached SCSI disk
[/code]

The Problem:

The CF card works fine for a while; I can partition it, create a
filesystem, mount it from a live disk, list its directory tree, install
a base system on it, and so on. But ultimately it fails as shown below.
Sometimes it takes a while before the failure happens, sometimes it
happens right away. If I reboot, it works fine again for a while (except
that the filesystem is pretty chewed up after the failure and fsck has
to recombobulate it), then fails in the same way.

[code]
] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
] ata1.00: cmd ca/00:80:87:fc:8a/00:00:00:00:00/e2 tag 0 dma 65536 out
]         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
] ata1.00: status: { DRDY }
] ata1: link is slow to respond, please be patient (ready=0)
] ata1: device not ready (errno=-16), forcing hardreset
] ata1: soft resetting link

] ata1: link is slow to respond, please be patient (ready=0)
] ata1: SRST failed (errno=-16)
(three more)

] ata1: reset failed, giving up
] ata1.00: disabled
] ata1: EH complete
] sd 0:0:0:0: [sda] Result: hostbyte=DID_BAD_TARGET 
driverbyte=DRIVER_OK,SUGGEST_OK
] end_request: I/O error, dev sda, sector 42663407
] Buffer I/O error on device sda1, logical block 5332873

] lost page write due to I/O error on sda1
] Buffer I/O error on device sda1, logical block 5332874
(lots and lots of these, with incrimenting block numbers)
[/code]

I am not enough of (read: AT ALL) a kernel hacker to know how to figure
this out on my own. I'm thinking it must be some expectation that the
ata_piix driver has for hard disks that the CF card is not fulfilling. I
know that other people have gotten other distributions running on almost
identical configurations (addonics adapter with 16GB Kingston Elite Pro)
so it seems like Ubuntu should be able to as well.

The logging info in this description comes from an Intrepid desktop
install CD running 2.6.27-7-generic.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: ata-underscore-you-moronic-system-piix compact flash

** Description changed:

  Note:
  
  In spite of how this might look at first glance, this *IS* a problem
  with something in Ubuntu/linux, and not hardware failure. I've tried two
  different Compact Flash to IDE adapters, two different Compact Flash
  cards, and three different Ubuntu versions (Hardy server, Intrepid
  desktop, and Jaunty RC) and encountered the same problems every time.
  
  However Windows XP installs to the CF card, boots, and runs from it with
  no complaints.
  
  
  Conditions:
  
  Thinkpad X40
  Addonics Compact Flash to IDE Adapter
  Kingston Elite Pro 133x 32GB Compact Flash card
  
  Using the CF->IDE adapter to replace the X40's original 1.8-inch hard
  drive, the CF card is detected as:
  
  [code]
  ] scsi0 : ata_piix
  ] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0x1810 irq 14
  ] ata1.00: ATA-0: ELITE PR CF CARD 32GB, 20081204, max UDMA/66
  ] ata1.00: 62537328 sectors, multi 0: LBA
  ] ata1.00: configured for UDMA/66
  ] ata1.00: configured for UDMA/66
  ] ata1: EH complete
  ] scsi 0:0:0:0: Direct-Access    ATA    ELITE PRO CF CAR 2008 PQ: 0 ANSI: 5
  ] scsi 0:0:0:0: Attached scsi generic sg0 type 0
  ] Driver 'sd' needs updating - please use bus_type methods
  ] sd 0:0:0:0: [sda] 62537328 512-byte hardware sectors (32019 MB)
  ] sd 0:0:0:0: [sda] Write Protect is off
  ] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
  ] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled,  doesn't 
support DPO or FUA
  ]  sda: sdsa1
  ] sd 0:0:0:0: [sda] Attached SCSI disk
  [/code]
  
  The Problem:
  
  The CF card works fine for a while; I can partition it, create a
  filesystem, mount it from a live disk, list its directory tree, install
  a base system on it, and so on. But ultimately it fails as shown below.
  Sometimes it takes a while before the failure happens, sometimes it
  happens right away. If I reboot, it works fine again for a while (except
  that the filesystem is pretty chewed up after the failure and fsck has
  to recombobulate it), then fails in the same way.
  
  [code]
  ] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
  ] ata1.00: cmd ca/00:80:87:fc:8a/00:00:00:00:00/e2 tag 0 dma 65536 out
  ]         res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
  ] ata1.00: status: { DRDY }
  ] ata1: link is slow to respond, please be patient (ready=0)
  ] ata1: device not ready (errno=-16), forcing hardreset
  ] ata1: soft resetting link
  
  ] ata1: link is slow to respond, please be patient (ready=0)
  ] ata1: SRST failed (errno=-16)
  (three more)
  
  ] ata1: reset failed, giving up
  ] ata1.00: disabled
  ] ata1: EH complete
  ] sd 0:0:0:0: [sda] Result: hostbyte=DID_BAD_TARGET 
driverbyte=DRIVER_OK,SUGGEST_OK
  ] end_request: I/O error, dev sda, sector 42663407
  ] Buffer I/O error on device sda1, logical block 5332873
  
  ] lost page write due to I/O error on sda1
  ] Buffer I/O error on device sda1, logical block 5332874
  (lots and lots of these, with incrimenting block numbers)
  [/code]
  
  I am not enough of (read: AT ALL) a kernel hacker to know how to figure
  this out on my own. I'm thinking it must be some expectation that the
  ata_piix driver has for hard disks that the CF card is not fulfilling. I
  know that other people have gotten other distributions running on almost
  identical configurations (addonics adapter with 16GB Kingston Elite Pro)
  so it seems like Ubuntu should be able to as well.
+ 
+ The logging info in this description comes from an Intrepid desktop
+ install CD running 2.6.27-7-generic.

-- 
Ubuntu install to Compact Flash w/ ata_piix fails: ata1.00: exception Emask 0x0 
SAct 0x0 SErr 0x0 action 0x6 frozen
https://bugs.launchpad.net/bugs/363786
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to