请各位帮忙解答,多谢多谢;
用的/DVRRDK_03.00.00.00/dvr_rdk,目的想配置4G模块USB驱动,根据厂家的文档修改内核的menuconfig配置,配置了USB Gadget Support”选项,然后单独编译内核出现错误,目前发现是添加了USB Gadget Support”选项后出现的错误;
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
drivers/built-in.o: In function `finish_in_dma':
notify_shm_drv.c:(.text+0xb2924): undefined reference to `omap_get_dma_src_pos'
drivers/built-in.o: In function `dma_channel_claim':
notify_shm_drv.c:(.text+0xb2ef0): undefined reference to `omap_set_dma_src_data_pack'
notify_shm_drv.c:(.text+0xb2f70): undefined reference to `omap_set_dma_dest_data_pack'
notify_shm_drv.c:(.text+0xb2f88): undefined reference to `omap_disable_dma_irq'
drivers/built-in.o: In function `next_in_dma':
notify_shm_drv.c:(.text+0xb3bb4): undefined reference to `omap_get_dma_src_pos'
drivers/built-in.o: In function `usb_composite_unregister':
notify_shm_drv.c:(.text+0xb90f8): undefined reference to `put_gadget_drv_id'
notify_shm_drv.c:(.text+0xb910c): undefined reference to `get_gadget_max_drv_id'
drivers/built-in.o: In function `usb_composite_probe':
notify_shm_drv.c:(.text+0xb9e6c): undefined reference to `get_gadget_drv_id'
notify_shm_drv.c:(.text+0xb9eec): undefined reference to `put_gadget_drv_id'
make[2]: *** [.tmp_vmlinux1] Error 1
make[2]: Leaving directory `/home/ybk/works/8168/DVRRDK_03.00.00.00/ti_tools/linux_lsp/linux-psp-dvr-04.04.00.01/src/linux-04.04.00.01'
make[1]: *** [lsp_build] Error 2
make[1]: Leaving directory `/home/ybk/works/8168/DVRRDK_03.00.00.00/dvr_rdk'
make: *** [lcmpl] Error 2
到这里就编译出错了;
Tim L:
去掉USB Gadget Support选项
Tim L:
回复 Tim L:
你这个不知道是要host模式还是slave模式,默认是slave的,你要配置host,需
Driver Mode选择为USB Host,再把那个去掉。
yang ken:
回复 Tim L:
不过,4G模块文档说配上USB Gadget Support这一项,这是哪里出现了错误,配置了USB Gadget Support就出现了错误;
yang ken:
回复 Tim L:
不过,4G模块文档说配上USB Gadget Support这一项,这是哪里出现了错误,配置了USB Gadget Support就出现了错误;
Denny%20Yang99373:
估计是依赖的选项没有加进来
你可以搜搜omap_get_dma_src_pos这些API在哪个文件里实现的
然后把它也编译进去。