[U-Boot] [PATCH 0/7] Add board detection for Odroid XU3 / XU3Lite / XU4

Przemyslaw Marczak
2015-10-21T10:13:52Z

Hello Siarhei, Anand,

On 10/21/2015 11:57 AM, Anand Moon wrote:
> Hi Siarhei ,
>
> On 21 October 2015 at 07:28, Siarhei Siamashka
> <siarhei.siamashka@gmail.com> wrote:
>> On Mon, 31 Aug 2015 00:33:16 +0530
>> Anand Moon <linux.amoon@gmail.com> wrote:
>>
>>> At the last moment I got this to work on my odroidxu3 board.
>>>
>>> One problem I would like to address out is usb smsc95xx ethernet is not
>>> getting started at the boot.
>>>
>>> # usb start /* command failed at the start */
>>> ------------------------------------------------------------------------------------------------------
>>> U-Boot 2015.10-rc2-00226-g7dbe336 (Aug 30 2015 - 23:41:27 +0530) for
>>> ODROID-XU3
>>>
>>> CPU: Exynos5422 @ 800 MHz
>>> Model: Odroid XU3 based on EXYNOS5422
>>> Board: Odroid XU3 based on EXYNOS5422
>>> Model: xu3
>>> DRAM: 2 GiB
>>> MMC: EXYNOS DWMMC: 0, EXYNOS DWMMC: 1
>>> *** Warning - bad CRC, using default environment
>>>
>>> In: serial
>>> Out: serial
>>> Err: serial
>>> Net: No ethernet found.
>>> Hit any key to stop autoboot: 0
>>> switch to partitions #0, OK
>>> mmc0 is current device
>>> Scanning mmc 0:1...
>>> starting USB...
>>> USB0: USB EHCI 1.00
>>> USB1: Register 2000140 NbrPorts 2
>>> Starting the controller
>>> USB XHCI 1.00
>>> USB2: Register 2000140 NbrPorts 2
>>> Starting the controller
>>> USB XHCI 1.00
>>> scanning bus 0 for devices... 1 USB Device(s) found
>>> scanning bus 1 for devices... 1 USB Device(s) found
>>> scanning bus 2 for devices... 1 USB Device(s) found
>>> scanning usb for ethernet devices... 0 Ethernet Device(s) found
>>> No ethernet found.
>>> missing environment variable: pxeuuid
>>> missing environment variable: bootfile
>>> -----------------------------------------------------------------------------------------
>>
>> Hi Anand,
>>
>> This looks like it might be the same problem as
>> http://lists.denx.de/pipermail/u-boot/2015-October/230827.html
>>
>> Simon Glass asked if this also happens on XU3, so maybe you could
>> test the same workaround on your board and provide feedback?
>>
>> --
>
> Odroid u3 also has the same problem
> ---------------------------------------------------------
> U-Boot 2015.10-rc5-00030-gac6a532-dirty (Oct 20 2015 - 01:37:27 +1030)
>
> CPU: Exynos4412 @ 1 GHz
> Model: Odroid based on Exynos4412
> Board: Odroid based on Exynos4412
> Model: u3
> DRAM: 2 GiB
> LDO20 at VDDQ_EMMC_1.8V: set 1800000 uV; enabling
> LDO22 at VDDQ_EMMC_2.8V: set 2800000 uV; enabling
> LDO21 at TFLASH_2.8V: set 2800000 uV; enabling
> MMC: SAMSUNG SDHCI: 0, EXYNOS DWMMC: 1
> *** Warning - bad CRC, using default environment
>
> Net: No ethernet found.
> Hit any key to stop autoboot: 0
> Odroid # setenv usbethaddr 02:DE:AD:BE:EF:FF
> Odroid # usb start
> starting USB...
> USB0: USB EHCI 1.00
> scanning bus 0 for devices... 1 USB Device(s) found
> scanning usb for ethernet devices... 0 Ethernet Device(s) found
> Odroid #
> ---------------------------------------------------------
>
> -Anand Moon
>> Best regards,
>> Siarhei Siamashka
>

Lukasz is working on that issue, and he discovered that the sequence of
usb start/reset works for this and the Ethernet is detected then.

-----------------------------------------------------------------------
ODROID-XU3 # usb start
starting USB...
USB0: USB EHCI 1.00
USB1: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
USB2: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning usb for ethernet devices... 0 Ethernet Device(s) found
ODROID-XU3 # usb reset
resetting USB...
USB0: USB EHCI 1.00
USB1: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
USB2: Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning usb for ethernet devices...
Error: sms0 address not set.
Warning: failed to set MAC address
1 Ethernet Device(s) found
ODROID-XU3 #
-----------------------------------------------------------------------

Best regards,
--
Przemyslaw Marczak
Samsung R&D Institute Poland
Samsung Electronics
p.marczak at samsung.com