All of lore.kernel.org
 help / color / mirror / Atom feed
* insmod - huawei E3372h kernel module
@ 2021-01-07 13:46 Zoltan Kerenyi Nagy
  2021-01-07 15:03 ` [yocto] " Zoran
  0 siblings, 1 reply; 31+ messages in thread
From: Zoltan Kerenyi Nagy @ 2021-01-07 13:46 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1458 bytes --]

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,

[-- Attachment #2: Type: text/html, Size: 3771 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2021-01-25 13:39 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-07 13:46 insmod - huawei E3372h kernel module Zoltan Kerenyi Nagy
2021-01-07 15:03 ` [yocto] " Zoran
2021-01-07 15:16   ` Zoltan Kerenyi Nagy
2021-01-07 15:27     ` Zoran
     [not found]     ` <1657FCB4180F6472.31350@lists.yoctoproject.org>
2021-01-07 17:20       ` Zoran
     [not found]         ` <CAHwRhWZSW+g0qJkAQLz5npmi5ig37XTvM6r_tJWmpk3ERMB9ew@mail.gmail.com>
2021-01-07 18:35           ` Zoran
2021-01-08 10:36         ` Zoltan Kerenyi Nagy
2021-01-08 11:22           ` Zoltan Kerenyi Nagy
2021-01-08 11:59             ` [yocto] " Zoran
2021-01-08 12:28               ` Zoltan Kerenyi Nagy
2021-01-08 12:49                 ` [yocto] " Zoran
     [not found]                 ` <165842AB3B8C5237.7830@lists.yoctoproject.org>
2021-01-08 14:43                   ` Zoran
2021-01-11 10:23                     ` Zoltan Kerenyi Nagy
2021-01-11 13:20                     ` Zoltan Kerenyi Nagy
2021-01-12 15:13                     ` Zoltan Kerenyi Nagy
2021-01-12 15:17                       ` Zoltan Kerenyi Nagy
2021-01-17 12:34                     ` Zoltan Kerenyi Nagy
2021-01-17 22:27                       ` [yocto] " Zoran
2021-01-18  5:27                         ` Zoltan Kerenyi Nagy
2021-01-19 13:00                         ` Zoltan Kerenyi Nagy
2021-01-19 13:23                           ` [yocto] " Zoran
     [not found]                           ` <165BA4E49F808CA9.28472@lists.yoctoproject.org>
2021-01-19 13:27                             ` Zoran
2021-01-19 13:41                         ` Zoltan Kerenyi Nagy
2021-01-19 14:48                           ` Zoltan Kerenyi Nagy
2021-01-19 16:54                             ` [yocto] " Zoran
2021-01-20 11:20                               ` Zoltan Kerenyi Nagy
2021-01-20 13:04                                 ` [yocto] " Zoran
2021-01-21 10:00                                   ` Zoltan Kerenyi Nagy
2021-01-25 13:39                                     ` Zoltan Kerenyi Nagy
2021-01-08 12:35               ` Zoltan Kerenyi Nagy
2021-01-08 10:24     ` Zoltan Kerenyi Nagy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.