系统启动时及插入u盘时会打印如下错误:hub 1-0:1.0: Cannot enable port 1. Maybe the USB cable is bad? 此为平台输入时钟设置错误,修改如下:
把arch/arm/mach-s3c6410/mach-smdk6410.c文件中的:
#ifdef USB_HOST_PORT2_EN
#define OTGH_PHY_CLK_VALUE (0x60) /* Serial Interface, otg_phy input clk 48Mhz Oscillator */
#else
#define OTGH_PHY_CLK_VALUE (0x20) /* UTMI Interface, otg_phy input clk 48Mhz Oscillator */
改为:
#ifdef USB_HOST_PORT2_EN
#define OTGH_PHY_CLK_VALUE (0x60) /* Serial Interface, otg_phy input clk 48Mhz Oscillator */
#else
#define OTGH_PHY_CLK_VALUE (0x0) /* UTMI Interface, otg_phy input clk 48Mhz Oscillator */