[U-Boot-Users] Boot from Compact Flash

Leon KUKOVEC leon.kukovec at ultra.si
Wed Nov 19 11:01:23 CET 2003


Hi Ed,

On Tue, 18 Nov 2003, Ed Okerson wrote:

[ - snip - ]
> Now when I boot the little endian u-boot it sees the CF card as:
>
>   Device 0: Model: SanDisk SDCFB-256 Firm: Vdg 8.21. Ser#: 114409E1903P1010
>             Type: Removable Hard Disk
>             Capacity: 5376.8 MB = 5.2 GB (11011840 x 512)
>
> Everything is correct except for the capacity.  The big endian load has
> the correct capacity:
>
>   Device 0: Model: SanDisk SDCFB-256 Firm: Vdg 8.21. Ser#: 114409E1903P1010
>             Type: Removable Hard Disk
>             Capacity: 245.0 MB = 0.2 GB (501760 x 512)
>
> Is there somewere else that reads need to be swaped as well?

Firmware Revision, Model Number are in Big Endian,
CF+ and CompactFlash Specification Revision 2.0:
6.2.1.6 Identify Drive, Table 39.

Current capacity in sectors (LBAs) (iop->lba_capacity) has Word57 LSW Word58
MSW. Same document, same table.

-- 

Best Regards,
	Leon.




More information about the U-Boot mailing list