On Thu, May 28, 2015 at 1:16 AM, Peter Griffin peter.griffin@linaro.org wrote:
Hi Kevin,
<snip>
By taking the latest pre-compiled l-loader.bin from here https://builds.96boards.org/snapshots/hikey/uefi/26 and using the latest u-boot (v1 patches sent to u-boot ML). I've had to make some small changes, as the latest ATF now secures the top 16Mb of RAM for trustzone which u-boot was using. Also the bl33 executable now gets linked at 0x35000000 rather than 0x37000000, and I'm back to having a working u-boot again :-)
I've added a new directory here with these pre-compiled binaries if you want to try those instead http://people.linaro.org/~peter.griffin/hikey/hikey-uboot-r2/. The main advantage over the u-boot you compiled from source is that it now also supports the sd card slot (saving env to sd, and also has some more commands compiled in by default). serial_trace.txt is a serial dump of it running on my board.
With the l-loader.bin from your _r2 dir, I'm able to get to fastboot now, thanks.
However, flashing your _r2 binaries, I'm still getting USB host timeouts. Full boot log below[1].
Eeek! I just double checked the md5sums of what I uploaded and everything looks fine. Also all the date / timestamps in your log and mine are the same, so annoyingly neither of us appear to have made a mistake.
I've tried with and without my usb eth adapter plugged in. I've tried it plugged into both ports. Just for kicks, I've tried with and without SD card plugged in too since UEFI firmware hangs if SD card plugged in ;) I've also tried on 2 different hikey boards (one of which I thought was bricked but I was able to reflash using l-loader over the real UART.)
Do you have anything plugged into the USB OTG port?
Yes, I still have the cable used to fastboot plugged in.
I just managed to replicate Timeouts if I have both the USB ASIX adapter connected to a 'USB Host' port, and also a cable plugged into the 'USB OTG' port simultaneously.
Doh! I should've realized that because I now remember Tyler mentioning this limitation when he got it working in LAVA. So you basically have to choose between fastboot and USB host support. Nice tradeoff. ;)
If I unplug the OTG cable, then "usb start" detects the ASIX dongle. Cool.
Next problem... it doesn't seem to DHCP. Does DHCP work for you? Using tcpdump on the LAN, I see it's doing the bootp request, but using a MAC addr of all zeros, even though u-boot tells me it's using the MAC from the adapter, and "usb start" has set usbethaddr accordingly.
Setting static IP addresses, I'm able to TFTP, but checking ARP tables on the TFTP server, it reports an incomplete MAC address also.
Anyways, this is getting much better,
Thanks,
Kevin