Re: Problems with ATA FLASH MEMORY

B. James Phillippe (bryan@terran.org)
Wed, 10 Mar 1999 11:29:13 -0800 (PST)


On Wed, 10 Mar 1999, Joao Marigonda wrote:

> Im trying to install linux in an ATA Flash Memory Card from Hitachi.
> In DOS mode, this card works like an IDE HDD but the same doesnt
> happens with linux. While DOS fdisk works fine, linux fdisk returns
> the following errors when trying to write the partition table:
>
> Re-reading the partition table
> hda hdb ..
>
> hda:drive_cmd:status=0x51 {DriveReadt SeekComplete Error}
> hda:drive_cmd:error=0x04 {DriveStatusError}
>
> The partition table is writen but mkswap returns the same errors!
>
> Could someone give me any tip ?

I have a guess. We had a similar issue with some flash chips w/IDE
emulation. The problem for us turned out to be that the IDE emulation
reported the flash as being removable when it was not.

The piece of code is in drivers/block/ide.c:

/* check for removable disks (eg. SYQUEST), ignore 'WD' drives */
if (id->config & (1<<7)) { /* removable disk ? */
if (id->model[0] != 'W' || id->model[1] != 'D')
drive->removable = 1;
}

What model/make does your flash report from hdparm -i?

-bp

--
B. James Phillippe		. bryan@terran.org
Software Engineer, WGT Inc.	. http://www.terran.org/~bryan

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/