Hi Folks,
I bitbaked a Huawei E3372h driver into the distro with this recipe file:
SUMMARY = "Huawei Stick kernel module"
LICENSE = "CLOSED"
inherit module
SRC_URI = "file://Makefile \
file://huawei_cdc_ncm.c \
"
S = "${WORKDIR}"
The makefile looks like this:
obj-m := huawei_cdc_ncm.o
SRC := $(shell pwd)
all:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC)
modules_install:
$(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install
clean:
rm -f *.o *~ core .depend .*.cmd *.ko *.mod.c
rm -f Module.markers Module.symvers modules.order
rm -rf .tmp_versions Modules.symvers
The source file is the one that matches the kernel:
https://elixir.bootlin.com/linux/v4.0/source/drivers/net/usb/huawei_cdc_ncm.c
I included this into the conf file:
KERNEL_MODULE_AUTOLOAD += "lte"KERNEL_MODULE_PROBECONF +=
"lte"huawei_cdc_ncm = "options lte iProduct=E3372h iManufacturer=Huawei"
Bitbake runs without error, however when I insert the SD card into the
hardware ( barix ipam 400)
and boot the hardware this is the error message:
root@barix-ipam400:~# insmod /lib/modules/4.10.0/extra/huawei_cdc_ncm.ko
insmod: can't insert '/lib/modules/4.10.0/extra/huawei_cdc_ncm.ko': *unknown
symbol in module, or unknown parameter*
To me it looks like that there was an error during the bitbake, or the
header files included in the driver doesn't match the kernel.
Do you have any idea how to procede?
Thanks,
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#51915): https://lists.yoctoproject.org/g/yocto/message/51915
Mute This Topic: https://lists.yoctoproject.org/mt/79498728/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-