Wind River Support Network

HomeDefectsLIN6-4548
Not to be fixed

LIN6-4548 : WRlinux4.3, can't insmod the SPI driver module

Created: May 6, 2013    Updated: Apr 19, 2018
Resolved Date: Apr 17, 2018
Previous ID: LIN4-7003
Found In Version: 6.0
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: BSP
Architecture: PowerPC

Description

Customer use the WRlinux4.3 RCPL13, P3041 BSP. Customer configure the SPI driver as module, when they insmod the spi_fsl_lib.ko, it failed.
dl_ipu ~ # insmod spi_fsl_lib.ko 
spi_fsl_lib: Unknown symbol flush_workqueue
spi_fsl_lib: Unknown symbol __create_workqueue_key
spi_fsl_lib: Unknown symbol destroy_workqueue
spi_fsl_lib: Unknown symbol spi_unregister_master
spi_fsl_lib: Unknown symbol queue_work
insmod: error inserting 'spi_fsl_lib.ko': -1 Unknown symbol in module

Workaround

add license declar in spi_fsl_lib.c 
MODULE_LICENSE("GPL");

add EXPORT_SYMBOL in spi_fsl_lib.c for the following symbles:
mpc8xxx_spi_tx_buf_u32
 mpc8xxx_spi_remove
mpc8xxx_spi_rx_buf_u32
 mpc8xxx_spi_probe
 of_mpc8xxx_spi_probe

Steps to Reproduce

1. configure a p3041 platform project
 /usr1/WindRiver4.3/wrlinux-4/wrlinux/../ldat/configure --enable-board=fsl_p3041 --enable-rootfs=glibc_small --enable-kernel=standard --enable-build=production --enable-jobs=8 --enable-parallel-pkgbuilds=8 --with-product-dir=/usr1/WindRiver4.3/wrlinux-4/wrlinux

2. configure the SPI driver as kernel module

3. on target, insmod the spi_fsl_lib.ko
Live chat
Online