Wind River Support Network

HomeDefectsLIN6-11286
Fixed

LIN6-11286 : Linux kernel does not compile after having selected USB Serial support

Created: May 23, 2016    Updated: Dec 3, 2018
Resolved Date: May 26, 2016
Found In Version: 6.0.0.29
Fix Version: 6.0.0.30
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Kernel

Description

Build error when enabling USB serial support as a module.

Workaround

Statically link the USB serial support, specific devices may still be modules.
NOTE: This is the default configuration for the intel-x86-64 BSP.

Steps to Reproduce

$ configure --enable-board=intel-x86-64 \
    --enable-rootfs=glibc_std --enable-kernel=standard \
    --with-package=gdb \
    --enable-jobs=1 --enable-parallel-pkgbuilds=8 \
    --enable-rm-work=yes --enable-rm-oldimgs=yes \
    --enable-checkout-all-layers=yes --enable-reconfig \
    --enable-ccache=yes --with-ccache-dir=/path/to/ccache \
    --with-sstate-dir=/path/to/sstate --with-rcpl-version=0029
$ make -C build linux-windriver.menuconfig

Change the USB serial convertor support to module.

< CONFIG_USB_SERIAL=y
< CONFIG_USB_SERIAL_CONSOLE=y
---
> CONFIG_USB_SERIAL=m

$ make -C build linux-windriver
...
| Building modules, stage 2.
| MODPOST 170 modules
| ERROR: "kgdboc_init_hook" [drivers/usb/serial/usbserial.ko] undefined!
| make[3]: *** [__modpost] Error 1
| make[2]: *** [modules] Error 2
| make[1]: *** [sub-make] Error 2
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile_kernelmodules (log file is located at /Projects/285_image/bitbake_build/tmp/work/i486sx_vortex_board-wrs-linux/linux-windriver/3.10-r0.1/temp/do_compile_kernelmodules/log.do_compile_kernelmodules.20613)
ERROR: Task 450 (/Projects/285_image/layers/wr-kernel/recipes-kernel/linux/linux-windriver_3.10.bb, do_compile_kernelmodules) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5787 tasks of which 5764 didn't need to be rerun and 1 failed.
No currently running tasks (5787 of 5851) 
...

Other Downloads


Live chat
Online