[U-Boot] OpenRD Ultimate SATA & SD
Philip Hands
phil at hands.com
Wed Jun 15 11:54:12 CEST 2011
Hi,
I've been trying to get a version of u-boot for OpenRD Ultimate that is
willing to boot from all of NAND, USB, SD and SATA, and find that SD &
SATA is still not possible with -rc1 as packaged for Debian (and it
seems that nothing in the subsequent work in the master git would help,
but if people tell me that it does, I'll give that a try).
SATA throws an error in ide_preinit in drivers/block/mvsata_ide.c, and
having looked into it, the second call to mvsata_ide_initialize_port is
what fails.
This is with a SATA drive plugged into the on-board SATA port, and with
nothing plugged into the eSATA port.
If I #undef CONFIG_SYS_ATA_IDE1_OFFSET in include/configs/openrd.h
then the second mvsata_ide_initialize_port call is disabled, and I can
then boot from SATA, but I've not got an eSATA drive to test whether it
would have worked if I had one plugged in.
I note that there is still something a little odd going on, since the
drive seems to get detected twice:
Marvell>> ide reset
Reset IDE: Bus 0: OK Bus 1: OK
Device 0: Model: HITACHI HTS723216L9SA60 Firm: FC2ZC50B Ser#: 091005FC1220NCHXGPLG
Type: Hard Disk
Supports 48-bit addressing
Capacity: 152627.8 MB = 149.0 GB (312581808 x 512)
Device 1: Model: HITACHI HTS723216L9SA60 Firm: FC2ZC50B Ser#: 091005FC1220NCHXGPLG
Type: Hard Disk
Supports 48-bit addressing
Capacity: 152627.8 MB = 149.0 GB (312581808 x 512)
but it seems to work OK anyway.
As for the SD -- it detects OK, but seems to be unable to read more than
a small amount of data from the SD card, as seen here:
Marvell>> mmc init
SDHC found. Card desciption is:
Manufacturer: 0x1e, OEM "AB"
Product name: "USD ", revision 1.0
Serial number: 93331321
Manufacturing date: 8/2010
CRC: 0x00, b0 = 0
mmc1 is available
Marvell>> ext2ls mmc 0
<DIR> 1024 .
<DIR> 1024 ..
<DIR> 12288 lost+found
1433576 vmlinuz-2.6.32-5-kir
at which point it hangs.
If I take the same SD card, put it in an SD-to-USB adaptor and then
access it via the USB, I can boot the kernel, whereas it just locks up
when accessed as an SD, which also seems to point at it not being able
to do more than a small read via SD.
Any suggestions on how to diagnose what's going on here would be most
welcome. I've tried pointing gdb at it, but it seems not to be doing
breakpoints as I'd expect, so hints on how to get gdb working as well
would be helpful (yes, I am rather new to this :-)
Cheers, Phil.
--
|)| Philip Hands [+44 (0)20 8530 9560] http://www.hands.com/
|-| HANDS.COM Ltd. http://www.uk.debian.org/
|(| 10 Onslow Gardens, South Woodford, London E18 1NE ENGLAND
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110615/646ac4c2/attachment.pgp
More information about the U-Boot
mailing list