[U-Boot] armada_38x can't detect USB device

吳冠勳 pete9593576 at gmail.com
Thu Nov 22 02:11:30 UTC 2018


Hi all,

I've tried the first time booting a self compiled u-boot on
armada_38x:CUSTOMER_BOARD_0.

Here is the Boot messages:

Board: A38x-Customer-Board-0
SoC:   MV88F6820 Rev B0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1600 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR3    @ 800 [MHz]
       DDR3 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
RAM Configuration:
Bank #0: 00000000 1 GiB
Bank #1: 00000000 0 Bytes
MMC:   mv_sdh: 0
*** Warning - bad CRC, using default environment

PCI-e 0: Detected No Link.
maxUsbport=1
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:                    0x3fed6000:0x3ff963b0
       BSS:                     0x3ffef488
       Stack:                   0x3f4b5f20
       Heap:                    0x3f4b6000:0x3fed6000
       U-Boot Environment:      0x00100000:0x00120000 Board
configuration detected:

Net:

|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x00     |
| egiga1 |   SGMII   |     0x01     |

egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Marvell>> usb start
(Re)start USB...
USB0:   usbActive = 0, usbType = 2, usb3HostNum = 2, usb2HostNum = 1
Port (usbActive) : 0    Interface (usbType = 2) : USB EHCI 1.00
scanning bus 0 for devices... New Device 0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index
0x0 length 0x40
==== get_descriptor:18 ====
set address 1
usb_control_msg: request: 0x5, requesttype: 0x0, value 0x1 index 0x0 length 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index
0x0 length 0x12
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index
0x0 length 0x9
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index
0x0 length 0x19
get_conf_no 0 Result 25, wLength 25
if 0, ep 0
##EP epmaxpacketin[1] = 8
set configuration 1
usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 index 0x0 length 0x0
new device strings: Mfr=1, Product=2, SerialNumber=0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x300 index
0x0 length 0xFF
USB device number 1 default language ID 0x1
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x301 index
0x1 length 0xFF
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x302 index
0x1 length 0xFF
Manufacturer u-boot
Product      EHCI Host Controller
SerialNumber
USB hub found

usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index
0x0 length 0x4

usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index 0x0
length 0x8 1 ports detected individual port power switching standalone hub
global over-current protection Single TT TT requires at most 8 FS bit times
(666 ns) power on to power good time: 20ms hub controller current
requirement: 0mA port 1 is removable usb_control_msg: request: 0x0,
requesttype: 0xA0, value 0x0 index 0x0 length 0x4 get_hub_status returned
status 1, change 8101 local power source is lost (inactive) no over-current
condition exists enabling power on all ports usb_control_msg: request: 0x3,
requesttype: 0x23, value 0x8 index 0x1 length 0x0 port 1 returns 0
pgood_delay=20ms ==== Power On ==== devnum=1 poweron: query_delay=100
connect_timeout=1100 usb_control_msg: request: 0x0, requesttype: 0xA3,
value 0x0 index 0x1 length 0x4 === Port Status === Port 1 Status 101 Change
1 devnum=1 port=1: USB dev found usb_control_msg: request: 0x0,
requesttype: 0xA3, value 0x0 index 0x1 length 0x4 ##(check port connect)##
portstatus 101, change 1, 12 Mb/s usb_control_msg: request: 0x1,
requesttype: 0x23, value 0x10 index 0x1 length 0x0 hub_port_reset:
resetting port 1... usb_control_msg: request: 0x3, requesttype: 0x23, value
0x4 index 0x1 length 0x0 usb_control_msg: request: 0x0, requesttype: 0xA3,
value 0x0 index 0x1 length 0x4 portstatus 103, change 10, 12 Mb/s
STAT_C_CONNECTION = 0 STAT_CONNECTION = 1 USB_PORT_STAT_ENABLE 1
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 index 0x1
length 0x0 New Device 1 usb_control_msg: request: 0x6, requesttype: 0x80,
value 0x100 index 0x0 length 0x40 EHCI timed out on TD - token=0x80008c80
EHCI timed out on TD - token=0x80a88 ==== get_descriptor:-1 ====
usb_new_device: usb_get_descriptor() failed

Freeing device node: 1
hub: disabling port 1
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x1 index 0x1 length 0x0
1 USB Device(s) found
scan end
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found

As I plug in USB2.0 storage device,it detected the speed is 12 Mb/s.
What causes this happen?

Do I have to change something in the default board configuration to

successfully use USB on the armada38x?




Any help would be appreciated,

Pete


More information about the U-Boot mailing list