[U-Boot-Users] IDE and x86 port

Wolfgang Denk wd at denx.de
Thu Aug 14 11:04:36 CEST 2003


Dear Jürgen,

in message <200308140926.54274.jbeisert at eurodsn.de> you wrote:
> 
> My u-boot prints:
> 
> <<
> Model: uSDnsi kDSFC-B 4 Firm: eR v.3010 Ser#: M 3T00580313
>     Type: Removable Hard Disk
>     Capacitiy: 42188.8 MB = 41.2 GB (515899392 x 512)
> >>
> 
> But the device is a "SunDisk SDCFB-4" and has a capacity of only 7872 sectors.

This is obviously an endianess problem:

"uSDnsi kDSFC-B 4" => "SunDisk SDCFB-4 "

1 2 3 4 => 2 1 4 3

> The swap seems the right way, but results into a wrong value (perhaps only on 
> my port). Little endian <-> Big endian problem?

Yes, definitely.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
I was playing poker the other night... with Tarot cards. I got a full
house and 4 people died.                              - Steven Wright




More information about the U-Boot mailing list