From: Wolfgang Denk Date: Thu, 14 Aug 2003 11:04:36 +0200 Subject: [U-Boot-Users] IDE and x86 port In-Reply-To: Your message of "Thu, 14 Aug 2003 09:26:54 +0200." <200308140926.54274.jbeisert@eurodsn.de> Message-ID: <20030814090441.28A5AC59E4@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 at denx.de I was playing poker the other night... with Tarot cards. I got a full house and 4 people died. - Steven Wright