Article 5237Z Usb Compilation error

Usb Compilation error

by
vora92
from LinuxQuestions.org on (#5237Z)
Hello,

Currently i am patching the usb drivers from kernel-3.10.20 to kernel-4.14 in openwrt but i have difficulties in compiling the usb drivers.

the usb drivers is the host drivers.

From the error i understood that it missing the reference for usb enable clock but i don't know how to deal with it.

Can you help me please...

the error while compiling

arm-openwrt-linux-muslgnueabi-ld: drivers/usb/host/usb20/musb_core.o: in function `musb_suspend_noirq':
target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.154/drivers/usb/host/usb20/musb_core.c:2340: undefined reference to `usb_enable_clock'
arm-openwrt-linux-muslgnueabi-ld: target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.154/drivers/usb/host/usb20/musb_core.c:2343: undefined reference to `usb_phy_context_save'
arm-openwrt-linux-muslgnueabi-ld: target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.154/drivers/usb/host/usb20/musb_core.c:2346: undefined reference to `usb_enable_clock'
arm-openwrt-linux-muslgnueabi-ld: drivers/usb/host/usb20/musb_core.o: in function `musb_resume_noirq':
target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.154/drivers/usb/host/usb20/musb_core.c:2360: undefined reference to `usb_enable_clock'
arm-openwrt-linux-muslgnueabi-ld: target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.154/drivers/usb/host/usb20/musb_core.c:2363: undefined reference to `usb_phy_context_restore'
arm-openwrt-linux-muslgnueabi-ld: target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.154/drivers/usb/host/usb20/musb_core.c:2365: undefined reference to `usb_enable_clock'
arm-openwrt-linux-muslgnueabi-ld: drivers/usb/host/usb20/musb_core.o: in function `musb_stage0_irq':
target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.154/drivers/usb/host/usb20/musb_core.c:733: undefined reference to `musb_session_restart'
arm-openwrt-linux-muslgnueabi-ld: target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.154/drivers/usb/host/usb20/musb_core.c:765: undefined reference to `is_switch_charger'
arm-openwrt-linux-muslgnueabi-ld: drivers/usb/host/usb20/musb_gadget_ep0.o: in function `musb_g_ep0_irq':
target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.154/drivers/usb/host/usb20/musb_gadget_ep0.c:784: undefined reference to `musb_sync_with_bat'
arm-openwrt-linux-muslgnueabi-ld: drivers/usb/host/usb20/musb_gadget_ep0.o: in function `forward_to_driver':
target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.154/drivers/usb/host/usb20/musb_gadget_ep0.c:680: undefined reference to `musb_sync_with_bat'
arm-openwrt-linux-muslgnueabi-ld: drivers/usb/host/usb20/musb_gadget.o: in function `musb_gadget_pullup':
target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.154/drivers/usb/host/usb20/musb_gadget.c:2305: undefined reference to `usb_cable_connected'
arm-openwrt-linux-muslgnueabi-ld: drivers/usb/host/usb20/musb_gadget.o: in function `musb_writeb':
target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.154/./include/linux/musb/musb_io.h:137: undefined reference to `usb_enable_clock'
arm-openwrt-linux-muslgnueabi-ld: target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-mediatek_mt7623/linux-4.14.154/./include/linux/musb/musb_io.h:140: undefined reference to `usb_enable_clock'latest?d=yIl2AUoC8zA latest?i=8V3iQ7q4c8w:BCke8DdUGY0:F7zBnMy latest?i=8V3iQ7q4c8w:BCke8DdUGY0:V_sGLiP latest?d=qj6IDK7rITs latest?i=8V3iQ7q4c8w:BCke8DdUGY0:gIN9vFw8V3iQ7q4c8w
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments