usb gadgets not working on mx28 after updating to mainline kernel

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

usb gadgets not working on mx28 after updating to mainline kernel

Jump to solution
2,228 Views
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

Labels (2)
0 Kudos
Reply
1 Solution
1,497 Views
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

View solution in original post

0 Kudos
Reply
5 Replies
1,497 Views
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 Kudos
Reply
1,497 Views
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 Kudos
Reply
1,497 Views
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 Kudos
Reply
1,497 Views
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 Kudos
Reply
1,498 Views
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 Kudos
Reply