usb gadgets not working on mx28 after updating to mainline kernel

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

usb gadgets not working on mx28 after updating to mainline kernel

跳至解决方案
1,674 次查看
LarsChristensen
Contributor I

Previously I've used ltib and kernel 2.6.35 with g_ether running fine.

After I downloaded kernel 3.7.0

make mxs_defconfig

make menuconfig (enable usb ethernet gadget)

make -j4 uImage modules

make INSTALL_MOD_PATH=$ROOTFSDIR modules_install (using rootfs generated by ltib)

When running modprobe g_ether on target with my new kernel i get the following message:

modprobe: failed to load module g_ether (/lib/modules/3.7.0-04111-g9977d9b-dirty/kernel/drivers/usb/gadget/g_ether.ko): No such device

I get the same result if i insmod /lib/modules/.../g_ether.ko

Am I missing a step?

Cheers,

Lars

标签 (2)
0 项奖励
1 解答
943 次查看
fabio_estevam
NXP Employee
NXP Employee

Lars,

Only USB host is currently supported in the mainline kernel. USB OTG is work in progress though and patches have been already sent to the linux-usb mailing list.

Regards,

Fabio Estevam

在原帖中查看解决方案

0 项奖励
5 回复数
943 次查看
fabio_estevam
NXP Employee
NXP Employee

I sent a patch to allow USB peripheral to work on mx28evk:

https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/commit/arch/arm/boot/dts/imx28-evk....

This will reach mainline kernel in 3.12-rc1, but you can use it currently in linux-next tree.

Regards,

Fabio Estevam

0 项奖励
943 次查看
lategoodbye
Senior Contributor I

Initial USB OTG support for i.MX28 should be in mainline Kernel 3.11-rc1 ( https://community.nxp.com/" name="bugnotes" title="https://community.freescale.com/driver: ChipIdea Highspeed Dual Role Controller ).

0 项奖励
943 次查看
x10
Contributor V

Kernel 3.9.7 is used in my imx28 based board. Is it possible to move some code from 3.11 to 3.9.7, as quite a lot modifications made in this version.

BR

Cheng Shi

0 项奖励
943 次查看
lategoodbye
Senior Contributor I

Hi Cheng,

i'm using Kernel 3.10 and ported this feature back. There is a quick and dirty way: copy all files from drivers/usb/chipidea + include/linux/usb/chipidea.h from Kernel 3.11.

Hope this helps.

Best regards

Stefan Wahren

Edit: Sorry, i forgot to mention that the Patch "Add tested id switch and vbus connect detect support for Chipidea" in Version 14 or higher also needs to applied.

http://permalink.gmane.org/gmane.linux.usb.general/91626

0 项奖励
944 次查看
fabio_estevam
NXP Employee
NXP Employee

Lars,

Only USB host is currently supported in the mainline kernel. USB OTG is work in progress though and patches have been already sent to the linux-usb mailing list.

Regards,

Fabio Estevam

0 项奖励