[lkml]   [2001]   [Nov]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subjectcompact flash IDE problems
I have been using the 2.2.17 kernel with compact flash and have had
problems, which I'll describe later. I thought that newer kernels might
with Compact Flash better, so I
tried upgrading to 2.4.13. My new problem is that I can't access the
second CF disk (/dev/hdb) using the 2.4 kernels. I tried sending
a "hda=flash hdb=flash" switch to loadlin, but it doesn't seem to help.
recognizes that the second disk is there, but I can't access it. Linux
also recognizes
that I sent the hdb=flash switch. Here is the relavent output of dmesg:


Kernel command line: hdb=flash hdB=flash root=/dev/ram rw
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 33MHz system bus speed for PIO modes; override with
ALI15X3: IDE controller on PCI bus 00 dev 58
PCI: No IRQ known for interrupt pin A of device 00:0b.0. Please try
using pci=biosirq.
ALI15X3: chipset revision 193
ALI15X3: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x1400-0x1407, BIOS settings: hda:pio, hdb:pio
ALI15X3: simplex device: DMA disabled
ide1: ALI15X3 Bus-Master DMA disabled (BIOS)
ide: Assuming 33MHz system bus speed for PIO modes; override with
ide2: ports already in use, skipping probe
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14

Note that it does not detect hdb despite the fact that hdb is there.
The BIOS sees it, DOS sees it before loadlin runs, and 2.2.17 sees it.
Why can't I access if from 2.4.x?

My hardware:

A Jumptec MOPSLCD6 Pentium 166 single board computer with an ALI
M1543C/M1531 chipset. On ide0, there are two Compact Flash cards, one
configured as master and one as slave (they are both plugged onto a PCB
that accepts two CF devices and has a master/slave jumper). For
historical reasons, I boot to DOS and then use loadlin to load the

My original problem:
Using 2.2.17, I would always see the following message:
hda: drive_cmd: status=0x51 { DriveReady SeekComplete Error }
hda: drive_cmd: error=0x04 { DriveStatusError }
This error did not seem to cause any problems, but it could be related
to the more serious problem I mention next.

On rare occasions, I would see messages like this:
hda: read_intr: status=0x59 { DriveReady SeekComplete DataRequest Error
hda: read_intr: error=0x40 { UnrecoverableError }, LBAsect=54196,
end_request: I/O error, dev03:05(hda), sector 33556
EXT2-ft error (device ide0(3,5)): ext2_readdir: directory #3528
containts a hole at offset 0

This error did cause problems... one directory in the file system of a
read-only partition was corrupted. Rebuilding filesystem fixed the
problem, so there was apparently no permanent damage to the flash disk.
This problem has happened on multiple systems, so it's not related to a
failure of a specific computer, disk, cable, or compact flash interface
PCB. We have ~50 systems in the field and the problem has occurred ~10
times in ~5 months. Once a disk is corrupt, it behaves the same way on
all of our computers... once the file system is rebuilt, it seems to
work fine again. As I mentioned, the partition that is corrupt is
always mounted read-only. Of the ~10 failures, it usually happened when

two CF disks were present, but it happened at least once when only hda
was present. We never insert or remove disks with the power on.

What could cause the read-only partition corruption I'm seeing in
I don't know if the corruption problem happens in 2.4.x because I
used if for long enough.

Thanks in advance for any suggestions.


| David Lawrence (650)833-7847 (W) |
| IntegriNautics Corporation (650)833-5601 (Fax) |
| 1505 Adams Drive |
| Menlo Park, CA 94025 (650)960-6864 (H) |
| |

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:13    [W:0.023 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site