Hi John,

Today I was trying to see if I could get the ethernet driver to work
with Panda, so we could try TFTP support.

Most of the patches are posted at the u-boot m-l already, that consist
of the smsc95xx driver and EHCI support for Panda. With all these
patches, and using the x-loader provided by omapzoom, I can make the
ethernet device to work just fine, and also able to use TFTP.

You can find my WIP tree at
https://gitorious.org/ubuntu-experimental/linaro-u-boot/commits/u-boot-master-tftp-panda

Remaining issues:
 * Doesn't work with the upstream version of X-Loader (probably
missing some EHCI related initialization);
 * The SMSC driver seems to be quite unstable, as if you try to start
and stop the USB it'll hang at the next time you try to start it
again;
 * The EHCI driver duplicate a lot of code from the OMAP 3 driver, we
should to reduce most of it;
 * Doesn't work without setting a valid mac address;
 * Default mac address is still 0, and we could use the same logic at
the kernel to calculate the unique mac per board (using omap die ie);

Would also be good to test with SPL, but don't know yet how good is
the current support for it.

Binaries for those who want to test at their pandas:
http://people.canonical.com/~rsalveti/tftp-u-boot/

To test just hit any key to get at the u-boot shell and call 'usb
start; dhcp', and you should get something like:

Panda # usb start
(Re)start USB...
USB:   Register 1313 NbrPorts 3
USB EHCI 1.00
scanning bus for devices... The request port(2) is not configured
EHCI timed out on TD - token=0x80008c80
The request port(2) is not configured
4 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
       scanning bus for ethernet devices... 1 Ethernet Device(s) found
Panda # dhcp
Waiting for Ethernet connection... done.
BOOTP broadcast 1
*** Unhandled DHCP Option in OFFER/ACK: 28
*** Unhandled DHCP Option in OFFER/ACK: 28
DHCP client bound to address 10.42.43.32
Using sms0 device
TFTP from server 10.42.43.1; our IP address is 10.42.43.32
Filename 'uImage'.
Load address: 0x82000000
Loading: *

Cheers,
-- 
Ricardo Salveti de Araujo

_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to