Re: Success booting linux from 2GB MMC+ card

From: Dmitry Artamonow <mad_soft_at_inbox.ru>
Date: Fri, 24 Feb 2006 13:40:05 +0300

On Thu, Feb 23, 2006 at 09:43:45PM -0800, Matt Reimer wrote:
>
> Did you try partitioning and formatting the card on your iPAQ, or with
> the card reader? I wonder if it's the card reader that's messing up.
> Or are you saying that fdisk is breaking things by assuming 512 byte
> blocks?
>
> Matt
>

I partitioned and formatted card with card reader on my linux PC. Fdisk
partitioned it with 512-byte sectors. I think fdisk gets sector size
from block device. When i insert this card into iPAQ
and run fdisk here (i booted from CF with help of Stanson's patches), it
gives me a warning about sector size:

/ # fdisk /dev/mmcblk0
Note: sector size is 1024 (not 512)

Command (m for help):

So, i don't know what's messing up - maybe it's MMC code, maybe it's
faulty reader or even usb-storage code. As i said I tried with two USB
readers - with both of them fdisk thinks that sector size is 512 (but with
one of them linux sees only half of card's capacity - that's strange too).
Here's the facts - what fdisk tells about card's geometry:

Linux PC + cardreader 1 (my):

Disk /dev/sda: 2045 MB, 2045771776 bytes
63 heads, 62 sectors/track, 1022 cylinders
Units = cylinders of 3906 * 512 = 1999872 bytes

Linux PC + cardreader 2 (my friend's):

Disk /dev/sda: 1022 MB, 1022885888 bytes
63 heads, 62 sectors/track, 511 cylinders
Units = cylinders of 3906 * 512 = 1999872 bytes

Linux iPAQ without dirty hack:

Disk /dev/mmcblk0: 2045 MB, 2045771776 bytes
63 heads, 62 sectors/track, 511 cylinders
Units = cylinders of 3906 * 1024 = 3999744 bytes

I didn't try with any other readers and Windows PCs, since i don't have
access to them. By the way, Windows CE on iPAQ doesn't detect this card at
all (that's funny, isn't it?).

--
Best regards,
Dmitry 'MAD' Artamonow
Received on Fri Feb 24 2006 - 05:40:20 EST

This archive was generated by hypermail 2.2.0 : Fri Feb 24 2006 - 05:40:39 EST