[U-Boot] USB port doesn't work on the Olimex A64 OLinuXino board
Juan Francisco Cantero Hurtado
iam at juanfra.info
Thu Aug 29 17:21:06 UTC 2019
On 28/8/19 1:25, Jagan Teki wrote:
> On Wed, Aug 28, 2019 at 4:05 AM Juan Francisco Cantero Hurtado
> <iam at juanfra.info> wrote:
>>
>> Hi, I'm trying to build an u-boot image for the Olimex A64 board.
>> Everything builds fine (ATF and u-boot) but when I boot the board with
>> the image, the USB port doesn't receive power. I've an USB meter
>> connected and it never receives power. I've tried with HEAD, 2019.10-rc3
>> and 2019.07. Nothing works.
>
> Is board not booting because of unpower or USB not receiving anything
> in U-Boot proper? would be please elaborate and paste the log if any?
The problem is only with the USB port. I'm using an USB power meter to
discard a problem in the communication with the USB devices. It has a
LED which only requires GND and +5V to work. So, the firmware is not
enabling the USB ports. U-boot boots fine but the USB doesn't even
receive power.
Armbian is using 2018.05 and with their version of u-boot, the USB works
fine. IIRC, a year ago I was using the same version of u-boot with
OpenBSD and an USB HDD connected without problems.
Log of HEAD:
U-Boot SPL 2019.10-rc3-ge4b8dd9b (Aug 27 2019 - 23:50:49 +0200)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.1(release):44e8d5e
NOTICE: BL31: Built : 23:43:55, Aug 27 2019
NOTICE: BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE: BL31: Found U-Boot DTB at 0x408af58, model: Olimex A64-Olinuxino
NOTICE: BL31: PMIC: Detected AXP803 on RSB.
U-Boot 2019.10-rc3-ge4b8dd9b (Aug 27 2019 - 23:50:49 +0200) Allwinner
Technology
CPU: Allwinner A64 (SUN50I)
Model: Olimex A64-Olinuxino
DRAM: 1 GiB
MMC: mmc at 1c0f000: 0, mmc at 1c10000: 1
Loading Environment from FAT... Card did not respond to voltage select!
In: serial
Out: serial
Err: serial
Net: phy interface7
eth0: ethernet at 1c30000
starting USB...
Bus usb at 1c1a000: USB EHCI 1.00
Bus usb at 1c1a400: USB OHCI 1.0
Bus usb at 1c1b000: USB EHCI 1.00
Bus usb at 1c1b400: USB OHCI 1.0
scanning bus usb at 1c1a000 for devices... 1 USB Device(s) found
scanning bus usb at 1c1a400 for devices... 1 USB Device(s) found
scanning bus usb at 1c1b000 for devices... 1 USB Device(s) found
scanning bus usb at 1c1b400 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
=> usb tree
USB device tree:
1 Hub (480 Mb/s, 0mA)
u-boot EHCI Host Controller
1 Hub (12 Mb/s, 0mA)
U-Boot Root Hub
1 Hub (480 Mb/s, 0mA)
u-boot EHCI Host Controller
1 Hub (12 Mb/s, 0mA)
U-Boot Root Hub
=>
Log of Armbian with this version of u-boot:
https://apt.armbian.com/pool/main/l/linux-u-boot-olinuxino-a64-next/
U-boot complains because there is not a partition on the SD card but the
USB receives power.
U-Boot SPL 2018.05-armbian (Sep 19 2018 - 13:36:09 +0200)
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE: BL3-1: Running on A64/H64 (1689) in SRAM A2 (@0x44000)
NOTICE: Configuring SPC Controller
NOTICE: BL3-1: v1.0(debug):c9f55c0
NOTICE: BL3-1: Built : 13:36:02, Sep 19 2018
NOTICE: DT: sun50i-a64-olinuxino
INFO: Configuring AXP PMIC
INFO: PMIC: DRAM voltage: 1.36V
INFO: PMIC: setup successful
NOTICE: SCPI: dummy stub handler, implementation level: 000000
INFO: BL3-1: Initializing runtime services
INFO: BL3-1: Preparing for EL3 exit to normal world
INFO: BL3-1: Next image address: 0x4a000000, SPSR: 0x3c9
U-Boot 2018.05-armbian (Sep 19 2018 - 13:36:09 +0200) Allwinner Technology
CPU: Allwinner A64 (SUN50I)
Model: Olimex A64-Olinuxino
DRAM: 1 GiB
MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from EXT4...
** Unable to use mmc 0:auto for loading the env **
Failed (-5)
In: serial
Out: serial
Err: serial
Net: No ethernet found.
** Unrecognized filesystem type **
** Unrecognized filesystem type **
starting USB...
No controllers found
Autoboot in 1 seconds, press <Space> to stop
switch to partitions #0, OK
mmc0 is current device
** No partition table - mmc 0 **
switch to partitions #0, OK
mmc1(part 0) is current device
** No partition table - mmc 1 **
starting USB...
No controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No controllers found
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-sunxi
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
starting USB...
No controllers found
No ethernet found.
No ethernet found.
=>
--
Juan Francisco Cantero Hurtado http://juanfra.info
More information about the U-Boot
mailing list