[U-Boot] u-boot usb-ethernet patch

Mehmet Fatih Özay mfatih.ozay at ctech.com.tr
Thu Feb 10 10:57:35 CET 2011


    Hello all

        We are using OMAP 3530 board and SMSC9512 usb-ethernet adapter. 
The main goal is to connect this adapter through USB OTG port and 
initialize at u-boot. In order to do it, we are using your u-boot 
patches for usb-ethernet SMSC95xx ( we patch your patch file to our 
u-boot-release (version u-boot 2009.11-svn12). What we succeed so far is 
introducing SMSC9512 to the system.As you can see from debugging below, 
we couldnot succeed to configure SMSC9512 and so we couldnot make 
ethernet work. By the way, USB OTG is connected to the OMAP through 
TPS6593.

OMAP3 SBC3530 # usb start
do usb
(Re)start USB...
USB:   scanning bus for devices... New Device 0
usb_control_msg: devnum: 0x0, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index 0x0 
length 0x40
set address 1
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x5, requesttype: 0x0, value 0x1 index 0x0 
length 0x0
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index 0x0 
length 0x12
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index 0x0 
length 0x9
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x0
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] = 1
set configuration 1
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 index 0x0 
length 0x0
new device strings: Mfr=0, Product=0, SerialNumber=0
Manufacturer
Product
SerialNumber
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index 0x0 
length 0x4
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x6, requesttype: 0xA0, value 0x2900 index 0x0 
length 0x9
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x3
usb_control_msg: request: 0x0, requesttype: 0xA0, value 0x0 index 0x0 
length 0x4
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x3
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x1 
length 0x0
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x3
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x2 
length 0x0
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x3
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x8 index 0x3 
length 0x0
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x3
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 
length 0x4
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x3
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 
length 0x4
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x3
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x10 index 0x1 
length 0x0
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x3
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x4 index 0x1 
length 0x0
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x3
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 
length 0x4
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x3
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 index 0x1 
length 0x0
New Device 1
usb_control_msg: devnum: 0x0, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index 0x0 
length 0x40
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x3
usb_control_msg: request: 0x3, requesttype: 0x23, value 0x4 index 0x1 
length 0x0
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x3
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x1 
length 0x4
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x3
usb_control_msg: request: 0x1, requesttype: 0x23, value 0x14 index 0x1 
length 0x0
set address 2
usb_control_msg: devnum: 0x2, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x5, requesttype: 0x0, value 0x2 index 0x0 
length 0x0
usb_control_msg: devnum: 0x2, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x100 index 0x0 
length 0x12
usb_control_msg: devnum: 0x2, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index 0x0 
length 0x9
usb_control_msg: devnum: 0x2, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x200 index 0x0 
length 0x27
get_conf_no 0 Result 39, wLength 39
if 0, ep 0
if 0, ep 1
if 0, ep 2
##EP epmaxpacketin[1] = 64
##EP epmaxpacketout[2] = 64
##EP epmaxpacketin[3] = 16
set configuration 1
usb_control_msg: devnum: 0x2, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x9, requesttype: 0x0, value 0x1 index 0x0 
length 0x0
new device strings: Mfr=1, Product=2, SerialNumber=3
usb_control_msg: devnum: 0x2, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x300 index 0x0 
length 0xFF
USB device number 2 default language ID 0x409
usb_control_msg: devnum: 0x2, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x301 index 
0x409 length 0xFF
usb_control_msg: devnum: 0x2, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x302 index 
0x409 length 0xFF
usb_control_msg: devnum: 0x2, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0x6, requesttype: 0x80, value 0x303 index 
0x409 length 0xFF
Manufacturer Modeo
Product      LAN9512
SerialNumber 00951101
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x3
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x2 
length 0x4
usb_control_msg: devnum: 0x1, configno: 0x0, irq_act_len 0x0 maxchild 0x3
usb_control_msg: request: 0x0, requesttype: 0xA3, value 0x0 index 0x3 
length 0x4
2 USB Device(s) found
        scanning bus for ethernet devices...
i=0
smsc95xx probe
vend, product:424 9512
i=1
smsc95xx probe
vend, product:424 EC00


USB Ethernet device detected
Endpoints In 1 Out 2 Int 3
smsc95xx get info
i=2
1 Ethernet Device(s) found
OMAP3 SBC3530 # ping 192.168.2.1
** smsc95xx_halt()
** smsc95xx_init()
usb_control_msg: devnum: 0x2, configno: 0x0, irq_act_len 0x0 maxchild 0x0
usb_control_msg: request: 0xA0, requesttype: 0x40, value 0x0 index 0x14 
length 0x4
len:-1 sizeof(data):4
Failed to write HW_CFG_LRST_ bit in HW_CFG register, ret = -1
** smsc95xx_halt()
ping failed; host 192.168.2.1 is not alive

-- 
Mehmet Fatih Özay

Yaz?l?m Gelis,tirme / Software Development

C Tech Bil. Tek. San ve Tic. A.S,. (C2Tech)
TUBITAK TEKSEB C-210 Gebze, Kocaeli, Turkey
Tel: +90 262 644 90 48 Fax: +90 262 644 90 47

http://www.ctech.com.tr




More information about the U-Boot mailing list