public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] IDE and x86 port
@ 2003-08-14  7:26 Juergen Beisert
  2003-08-14  9:04 ` Wolfgang Denk
  2003-08-14 15:12 ` Marc Singer
  0 siblings, 2 replies; 9+ messages in thread
From: Juergen Beisert @ 2003-08-14  7:26 UTC (permalink / raw)
  To: u-boot

Hello all,

is anybody out there who has a working IDE device on x86 port and u-boot?

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.

7872 = 0x0000'1EC0  -> 515899392 = 0x1EC0'0000

See:   SunDisk SDCFB-4
          uSDnsi kDSFC-B 4

It's confusing me, because long time ago I have written a small routine to 
read the hard disk device information. I read 256 words into a buffer, too. 
To get the right capacity value I have to swap the upper and lower word of 
the capacity long word. u-boot does the same, but after the swap capcity has 
the wrong value.
I have compiled the cmd_ide.c with "gcc -E" to see, to what the macros get 
expanded and it seems ok.

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

Best regards
Juergen Beisert
-- 
*********************************
EuroDesign
embedded technologies GmbH
Waldstr. 4a
85414 Kirchdorf a.d. Amper/Germany

Tel: +49/8166/99495-77
Fax: +49/8166/99495-81

EMAIL: jbeisert at eurodsn.de
Web: http://www.eurodsn.de
*********************************

^ permalink raw reply	[flat|nested] 9+ messages in thread
[parent not found: <20030814170613.GA15834@buici.com>]

end of thread, other threads:[~2003-08-14 18:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-14  7:26 [U-Boot-Users] IDE and x86 port Juergen Beisert
2003-08-14  9:04 ` Wolfgang Denk
2003-08-14 15:43   ` Marc Singer
2003-08-14 16:17     ` Wolfgang Denk
2003-08-14 16:24       ` Marc Singer
2003-08-14 16:22     ` Juergen Beisert
2003-08-14 16:26       ` Marc Singer
2003-08-14 15:12 ` Marc Singer
     [not found] <20030814170613.GA15834@buici.com>
2003-08-14 18:42 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox