
14 Aug
2003
14 Aug
'03
11:04 a.m.
Dear Jürgen,
in message 200308140926.54274.jbeisert@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@denx.de
I was playing poker the other night... with Tarot cards. I got a full
house and 4 people died. - Steven Wright