SMSC LAN9514 on TI DM37x board
Hi,
I'm running u-boot-2012.10 on a custom DM37x based board. The board has LAN9514 USB Ethernet adapter connected in EHCI host controller via USB3320 ULPI PHY. This is very similar to BeagleBoard XM. Both Ethernet and USB hub work in linux-2.6.37 from TI PSP 04.02.00.07. In u-boot however, neither Ethernet nor mass storage devices attached to hub are not detected.
Below is boot log:
U-Boot 2012.10 (Nov 02 2012 - 00:44:41)
OMAP36XX/37XX-GP ES1.2, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz Pro4Tech MVC404 board + LPDDR/NAND
I2C: ready DRAM: 256 MiB NAND: 512 MiB MMC: OMAP SD/MMC: 0 In: serial Out: serial Err: serial Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 0
MVC404 > usb start
(Re)start USB...
USB: Register 1313 NbrPorts 3
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found scanning bus for ethernet devices... 0 Ethernet Device(s) found
MVC404 > usb info
1: Hub, USB Revision 2.0
- u-boot EHCI Host Controller
- Class: Hub
- PacketSize: 64 Configurations: 1
- Vendor: 0x0000 Product 0x0000 Version 1.0
Configuration: 1
- Interfaces: 1 Self Powered 0mA
Interface: 0
- Alternate Setting 0, Endpoints: 1
- Class Hub
- Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms
I have the following definitions in the code:
#define CONFIG_USB_OMAP3
#define CONFIG_USB_EHCI
#define CONFIG_USB_EHCI_OMAP
#define CONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS 3
#define CONFIG_OMAP_EHCI_PHY1_RESET_GPIO 24
#define CONFIG_USB_ULPI
#define CONFIG_USB_ULPI_VIEWPORT_OMAP
#define CONFIG_USB_STORAGE
static struct omap_usbhs_board_data usbhs_bdata = {
.port_mode[0] = OMAP_EHCI_PORT_MODE_PHY, .port_mode[1] = OMAP_USBHS_PORT_MODE_UNUSED, .port_mode[2] = OMAP_USBHS_PORT_MODE_UNUSED
};
MUX_VAL(CP(ETK_D15_ES2), (IDIS | PTD | DIS | M4)) /*GPIO_24*/
I'd appreciate any help in fixing the problem.
Thanks.
Felix Radensky.
Hi Marek,
Can you please take a look at this problem.
Thanks a lot.
Felix.
Quoted 75 lines · Felix Radensky
Hi,
I'm running u-boot-2012.10 on a custom DM37x based board. The board has LAN9514 USB Ethernet adapter connected in EHCI host controller via USB3320 ULPI PHY. This is very similar to BeagleBoard XM. Both Ethernet and USB hub work in linux-2.6.37 from TI PSP 04.02.00.07. In u-boot however, neither Ethernet nor mass storage devices attached to hub are not detected.
Below is boot log:
U-Boot 2012.10 (Nov 02 2012 - 00:44:41)
OMAP36XX/37XX-GP ES1.2, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz Pro4Tech MVC404 board + LPDDR/NAND
I2C: ready DRAM: 256 MiB NAND: 512 MiB MMC: OMAP SD/MMC: 0 In: serial Out: serial Err: serial Net: Net Initialization SkippedNo ethernet found.
Hit any key to stop autoboot: 0
MVC404 > usb start
(Re)start USB...
USB: Register 1313 NbrPorts 3
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found scanning bus for ethernet devices... 0 Ethernet Device(s) foundMVC404 > usb info
1: Hub, USB Revision 2.0
- u-boot EHCI Host Controller
- Class: Hub
- PacketSize: 64 Configurations: 1
- Vendor:0x0000Product0x0000Version 1.0
Configuration: 1
- Interfaces: 1 Self Powered 0mA
Interface: 0
- Alternate Setting 0, Endpoints: 1
- Class Hub
- Endpoint 1 In Interrupt MaxPacket 8 Interval 255msI have the following definitions in the code:
#define
CONFIG_USB_OMAP3
#defineCONFIG_USB_EHCI
#defineCONFIG_USB_EHCI_OMAP
#defineCONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS3
#defineCONFIG_OMAP_EHCI_PHY1_RESET_GPIO24
#defineCONFIG_USB_ULPI
#defineCONFIG_USB_ULPI_VIEWPORT_OMAP
#defineCONFIG_USB_STORAGEstatic struct
omap_usbhs_board_datausbhs_bdata= {
.port_mode[0] =OMAP_EHCI_PORT_MODE_PHY, .port_mode[1] =OMAP_USBHS_PORT_MODE_UNUSED, .port_mode[2] =OMAP_USBHS_PORT_MODE_UNUSED
};
MUX_VAL(CP(ETK_D15_ES2), (IDIS | PTD | DIS | M4))/*GPIO_24*/I'd appreciate any help in fixing the problem.
Thanks.
Felix Radensky.
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Dear Felix Radensky,
Quoted 3 lines
Hi Marek,
Can you please take a look at this problem.
Can you please avoid top-posting? Does U-Boot even support your USB device?
Quoted 86 lines
Thanks a lot.
Felix.
Quoted 81 lines · Felix Radensky
Hi,
I'm running u-boot-2012.10 on a custom DM37x based board. The board has LAN9514 USB Ethernet adapter connected in EHCI host controller via USB3320 ULPI PHY. This is very similar to BeagleBoard XM. Both Ethernet and USB hub work in linux-2.6.37 from TI PSP 04.02.00.07. In u-boot however, neither Ethernet nor mass storage devices attached to hub are not detected.
Below is boot log:
U-Boot 2012.10 (Nov 02 2012 - 00:44:41)
OMAP36XX/37XX-GP ES1.2, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz Pro4Tech MVC404 board + LPDDR/NAND
I2C: ready DRAM: 256 MiB NAND: 512 MiB MMC: OMAP SD/MMC: 0 In: serial Out: serial Err: serial Net: Net Initialization SkippedNo ethernet found.
Hit any key to stop autoboot: 0
MVC404 > usb start
(Re)start USB...
USB: Register 1313 NbrPorts 3
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) foundscanning bus for storage devices... 0 Storage Device(s) found scanning bus for ethernet devices... 0 Ethernet Device(s) found
MVC404 > usb info
1: Hub, USB Revision 2.0- u-boot EHCI Host Controller
- Class: Hub
- PacketSize: 64 Configurations: 1
- Vendor:0x0000Product0x0000Version 1.0Configuration: 1
- Interfaces: 1 Self Powered 0mAInterface: 0
- Alternate Setting 0, Endpoints: 1
- Class Hub
- Endpoint 1 In Interrupt MaxPacket 8 Interval 255msI have the following definitions in the code:
#define
CONFIG_USB_OMAP3
#defineCONFIG_USB_EHCI
#defineCONFIG_USB_EHCI_OMAP
#defineCONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS3
#defineCONFIG_OMAP_EHCI_PHY1_RESET_GPIO24
#defineCONFIG_USB_ULPI
#defineCONFIG_USB_ULPI_VIEWPORT_OMAP
#defineCONFIG_USB_STORAGEstatic struct
omap_usbhs_board_datausbhs_bdata= {.port_mode[0] =
OMAP_EHCI_PORT_MODE_PHY,
.port_mode[1] =OMAP_USBHS_PORT_MODE_UNUSED,
.port_mode[2] =OMAP_USBHS_PORT_MODE_UNUSED};
MUX_VAL(CP(ETK_D15_ES2), (IDIS | PTD | DIS | M4))/*GPIO_24*/I'd appreciate any help in fixing the problem.
Thanks.
Felix Radensky.
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Hi Marek,
Quoted 2 lines · Marek Vasut
Can you please avoid top-posting? Does U-Boot even support your USB device?
Sorry about top-posting. My USB device is supported by smsc95xx.c driver in drivers/usb/eth.
Quoted 79 lines
Quoted 79 lines
Thanks a lot.
Felix.
Quoted 74 lines · Felix Radensky
Hi,
I'm running u-boot-2012.10 on a custom DM37x based board. The board has LAN9514 USB Ethernet adapter connected in EHCI host controller via USB3320 ULPI PHY. This is very similar to BeagleBoard XM. Both Ethernet and USB hub work in linux-2.6.37 from TI PSP 04.02.00.07. In u-boot however, neither Ethernet nor mass storage devices attached to hub are not detected.
Below is boot log:
U-Boot 2012.10 (Nov 02 2012 - 00:44:41)
OMAP36XX/37XX-GP ES1.2, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz Pro4Tech MVC404 board + LPDDR/NAND
I2C: ready DRAM: 256 MiB NAND: 512 MiB MMC: OMAP SD/MMC: 0 In: serial Out: serial Err: serial Net: Net Initialization SkippedNo ethernet found.
Hit any key to stop autoboot: 0
MVC404> usb start
(Re)start USB...
USB: Register 1313 NbrPorts 3
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) foundscanning bus for storage devices... 0 Storage Device(s) found scanning bus for ethernet devices... 0 Ethernet Device(s) found
MVC404> usb info
1: Hub, USB Revision 2.0- u-boot EHCI Host Controller
- Class: Hub
- PacketSize: 64 Configurations: 1
- Vendor:0x0000Product0x0000Version 1.0Configuration: 1
- Interfaces: 1 Self Powered 0mAInterface: 0
- Alternate Setting 0, Endpoints: 1
- Class Hub
- Endpoint 1 In Interrupt MaxPacket 8 Interval 255msI have the following definitions in the code:
#define
CONFIG_USB_OMAP3
#defineCONFIG_USB_EHCI
#defineCONFIG_USB_EHCI_OMAP
#defineCONFIG_SYS_USB_EHCI_MAX_ROOT_PORTS3
#defineCONFIG_OMAP_EHCI_PHY1_RESET_GPIO24
#defineCONFIG_USB_ULPI
#defineCONFIG_USB_ULPI_VIEWPORT_OMAP
#defineCONFIG_USB_STORAGEstatic struct
omap_usbhs_board_datausbhs_bdata= {.port_mode[0] =
OMAP_EHCI_PORT_MODE_PHY,
.port_mode[1] =OMAP_USBHS_PORT_MODE_UNUSED,
.port_mode[2] =OMAP_USBHS_PORT_MODE_UNUSED};
MUX_VAL(CP(ETK_D15_ES2), (IDIS | PTD | DIS | M4))/*GPIO_24*/I'd appreciate any help in fixing the problem.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Thanks.
Felix Radensky.
_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
Felix.
Quoted 11 lines · Felix Radensky
Hi Marek,
Quoted 4 lines · Marek Vasut
Can you please avoid top-posting? Does U-Boot even support your USB device?
Sorry about top-posting. My USB device is supported by
smsc95xx.cdriver indrivers/usb/eth.
Judging by the portion of config you cited you don't have it enabled. But I don't think that's your current problem (you should see your device after usb start even if there is no driver for it). I'd verify PHY configuration if I were you.
Regards, Ilya.
Dear Felix Radensky,
Quoted 6 lines
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html>
<head><meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"></head>
[...]
I cannot read this email, ignored, sorry.
Best regards,
Marek Vasut
Hi Ilya,
Quoted 19 lines · Ilya Yanok
On Tue, Nov 6, 2012 at 9:24 AM, Felix Radensky
<felix at embedded-sol.com <mailto:[email protected]>> wrote:Hi Marek,
On 11/06/2012 12:57 AM, Marek Vasut wrote:
Can you please avoid top-posting? Does U-Boot even support your USB device?
Sorry about top-posting. My USB device is supported by
smsc95xx.cdriver
indrivers/usb/eth.
Quoted 6 lines
Judging by the portion of config you cited you don't have it enabled. But I don't think that's your current problem (you should see your device after usb start even if there is no driver for it). I'd verify PHY configuration if I were you.
Regards, Ilya.
Thanks for replying. I do have the following definitions as well:
#define CONFIG_USB_HOST_ETHER
#define CONFIG_USB_ETHER_SMSC95XX
I'm going to compare u-boot and kernel PHY initializations. They are not the same,
and in linux everything works.
Felix.