BPI-M3 Unable to build the USB mass storage gadget module

I’m able to get the default build to work using the Docker container (https://hub.docker.com/r/sinovoip/bpi-build/) and this Git repo: GitHub - BPI-SINOVOIP/BPI-M3-bsp: Supports BananaPi BPI -M3 (Kernel3.4)

However, as soon as I change the kernel options and set the mass storage device gadget as a module and try to build I get:

WARNING: modpost: Found 23 section mismatch(es).

To see full details build your kernel with:

‘make CONFIG_DEBUG_SECTION_MISMATCH=y’

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 `sunxi_udc_irq’:

clk-ac100.c:(.text+0x19c8e8): undefined reference to `vfs_read_flag’

clk-ac100.c:(.text+0x19c8ec): undefined reference to `vfs_write_flag’

clk-ac100.c:(.text+0x19c8f0): undefined reference to `vfs_amount’

clk-ac100.c:(.text+0x19c8f4): undefined reference to `vfs_file_offset’

drivers/built-in.o: In function `udc_init’:

clk-ac100.c:(.init.text+0x8974): undefined reference to `vfs_read_flag’

clk-ac100.c:(.init.text+0x8978): undefined reference to `vfs_write_flag’

make[1]: *** [.tmp_vmlinux1] Error 1

make[1]: Leaving directory `/bananapi/BPI-M3-bsp/linux-sunxi’

make: *** [kernel] Error 2

Any suggestions?

1 Like