From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vk1-f178.google.com (mail-vk1-f178.google.com [209.85.221.178]) by mx.groups.io with SMTP id smtpd.web08.29872.1610947668678427646 for ; Sun, 17 Jan 2021 21:27:48 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QtzSOJB8; spf=pass (domain: gmail.com, ip: 209.85.221.178, mailfrom: kerenyi.nagy.zoltan@gmail.com) Received: by mail-vk1-f178.google.com with SMTP id e27so3715212vkn.2 for ; Sun, 17 Jan 2021 21:27:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vdr8cVQbPBD3pGmii8ECroK5kw2awXvFLz4YyjDd7wI=; b=QtzSOJB8UYfLqgV8n+6Q8qSckrMZwvBlv4Rp3w9dYkOoAVJlAgFxMedWts0336nHPE XssozSQhPvp91Nmv6pMixvVFBxkxB2Hjo+cib8mgVoV/hOyOs6SCXsGzuULSymMbZvsj 5gFXxHBpIBzJopsGhWFjucHJy2TBYslszycFqUgUUdjoK9eXEUuOV3E+2o3/1MAHLF2Y S8ygkxiUKPjZtVHAC+DOyADjyOadc/B+6SnsofZCGteJRDgZjfr5C3vlzr7p+D/s39Wt 3+8aR9tyqz55yyOLYQqY61lpd4BLC54ZdjI8TQPLDn/ERJy0r7/ilsSw2cE4Dd4ooNOG A6DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vdr8cVQbPBD3pGmii8ECroK5kw2awXvFLz4YyjDd7wI=; b=cWOOUVZoXr3jY/kCPOppTceKS6uEWeGMqXL1nG8gNeXRAzKRHsiz4AZSWLc2ikfBND ncYeK/Fx41fZRPpMaR/+8Nt/uy+LRoOTt12gTV14aXvWf9ZJmC3rauly5NznN18mubcC w8KKEFiiomte1S4qcpM+Ty2z3ap63yvFq581o6CbwUo9zOOj+eZQSYm9PMBRKpcVilIV wmt3n5/w99cnPSrvcZMcBNyEVfVLHrB/PjD7Q5qjDP5V9VswHalN2GuKadXboOP1iP5l yS5ScuLViKYbR3Gh50b8s8yAk6ysYLJ7XFTfHKbDeFjBqz/Pcv4hq4Vh1CrkYDFHclFZ TMYg== X-Gm-Message-State: AOAM533SAFXrYarpopEyJGHKQLGhqo0CVD9M9FaPDH5Pu3zaE7bzva+k +qiIn/J8qnAjDBpKRIUCrIdxOjVIR97XyGp3BsY= X-Google-Smtp-Source: ABdhPJwv2BYJrScR4nWsRAaEFsuNXRcqiE79LrF3cS8kJBYBX0VSgZu09vJ5LOQ+ToNNmbqEDijdFGYGTTZ99pkvZtA= X-Received: by 2002:a1f:198f:: with SMTP id 137mr17262661vkz.2.1610947667777; Sun, 17 Jan 2021 21:27:47 -0800 (PST) MIME-Version: 1.0 References: <10291.1610886883719843020@lists.yoctoproject.org> In-Reply-To: From: "Zoltan Kerenyi Nagy" Date: Mon, 18 Jan 2021 06:27:36 +0100 Message-ID: Subject: Re: [yocto] insmod - huawei E3372h kernel module To: Zoran Stojsavljevic Cc: Yocto-mailing-list Content-Type: multipart/alternative; boundary="0000000000007d5afe05b925fb17" --0000000000007d5afe05b925fb17 Content-Type: text/plain; charset="UTF-8" Thank you Zoran, I will do it :-) On 2021. Jan 17., Sun at 23:27, Zoran Stojsavljevic < zoran.stojsavljevic@gmail.com> wrote: > > KERNEL_MODULE_AUTOLOAD += "ncm_driver"KERNEL_MODULE_PROBECONF > > += "ncm_driver"*cdc_ncm* = "options ncm_driver iProduct= > > USB_Host_Driver_for_Network_Control_Model iManufacturer=NCM" > > > KERNEL_MODULE_AUTOLOAD += "wmc_device_managment" > > KERNEL_MODULE_PROBECONF += "wmc_device"*cdc_wdm* = "options wmc_device > > iProduct=USB_CDC_WCM_Device_Management iManufacturer=WMC" > > > KERNEL_MODULE_AUTOLOAD += "lte"KERNEL_MODULE_PROBECONF += > > "lte"*huawei_cdc_ncm* = "options lte iProduct=E3372h > iManufacturer=Huawei" > > Here is the exact loading order, outlined in target's /etc/modules : > > debian@arm:~$ cat /etc/modules > # /etc/modules: kernel modules to load at boot time. > # > # This file contains the names of kernel modules that should be loaded > # at boot time, one per line. Lines beginning with "#" are ignored. > > *cdc_ncm* > *cdc_wdm* > *huawei_cdc_ncm* > > You need to, using YOCTO recipes, to modify /etc/modules file to look > as shown above, while bitbaking the target. > > Zoran > _______ > > > On Sun, Jan 17, 2021 at 1:34 PM Zoltan Kerenyi Nagy < > kerenyi.nagy.zoltan@gmail.com> wrote: > >> Hi, >> >> I contacted the kernel module (cdc_ncm) developper, and he suggested to >> change/experiment the kernel module load order. >> >> I thought if I specify this way: KERNEL_MODULE_AUTOLOAD += >> "ncm_driver"KERNEL_MODULE_PROBECONF += "ncm_driver"cdc_ncm = "options >> ncm_driver iProduct=USB_Host_Driver_for_Network_Control_Model >> iManufacturer=NCM" KERNEL_MODULE_AUTOLOAD += >> "wmc_device_managment"KERNEL_MODULE_PROBECONF += "wmc_device"cdc_wdm = >> "options wmc_device iProduct=USB_CDC_WCM_Device_Management >> iManufacturer=WMC" KERNEL_MODULE_AUTOLOAD += >> "lte"KERNEL_MODULE_PROBECONF += "lte"huawei_cdc_ncm = "options lte >> iProduct=E3372h iManufacturer=Huawei" >> Than this means the order of loading too. Is there any additional feature >> in Yocto that can interfere and set the exact kernel module loading order? >> >> Thanks, >> >> >> -- >> Zolee >> >> >> --0000000000007d5afe05b925fb17 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thank you Zoran, I will do it :-)

On 2021. Jan 17., S= un at 23:27, Zoran Stojsavljevic <zoran.stojsavljevic@gmail.com> wrote:
> KERNEL_MODULE_AUTOLOAD +=3D "ncm_driver"KERNEL_MODULE_PROBECONF
> +=3D "ncm_driver"= cdc_ncm =3D "options ncm_driver iProduct=3D
=
> USB_Host_Driver_for_Network_Control_Model iManufacturer=3DNCM&quo= t;

> KERNEL_MODULE_AUTOLOAD +=3D "wmc_device_managmen= t"
> KERNEL_MODULE_PROBECONF +=3D "wmc_device"<= span style=3D"color:rgb(255,0,0)">cdc_wdm =3D "op= tions wmc_device
> iProduct=3DUSB_CDC_WCM_Device_Management iM= anufacturer=3DWMC"

> KERNEL_MODULE_AUTOLOAD +=3D &quo= t;lte"KERNEL_MODULE_PROBECONF +=3D
> "lte"huawei_cdc_ncm =3D "= ;options lte iProduct=3DE3372h iManufacturer=3DHuawei"

<= /div>Here is the exact loading order, outlined in target's /etc/modules= :

debian@arm:~$ cat /etc/modules
# /etc/modules: kernel modules = to load at boot time.
#
# This file contains the names of kernel modu= les that should be loaded
# at boot time, one per line. Lines beginning = with "#" are ignored.

cdc_ncm
cdc_wdm
= huawei_cdc_ncm

You need to, using = YOCTO recipes, to modify /etc/modules file to look
as shown above= , while bitbaking the target.

Zoran
____= ___


On Sun, Jan 17, 2021 at 1:34 PM Zoltan Kerenyi Nagy <kerenyi.na= gy.zoltan@gmail.com> wrote:
Hi,

I c= ontacted the kernel module (cdc_ncm) developper, and he suggested to change= /experiment the kernel module load order.

I thought if I specify thi= s way:
KERNEL_MODULE_AUTOLOAD +=3D "ncm_driver"KERNEL_MODULE_PROBEC= ONF +=3D "ncm_driver"cdc_ncm =3D "options ncm_driver iProduc= t=3DUSB_Host_Driver_for_Network_Control_Model iManufacturer=3DNCM"
KERNEL_MODULE_AUTOLOAD +=3D "wmc_device_managment"KERNEL_MOD= ULE_PROBECONF +=3D "wmc_device"cdc_wdm =3D "options wmc_devi= ce iProduct=3DUSB_CDC_WCM_Device_Management iManufacturer=3DWMC"
KERNEL_MODULE_AUTOLOAD +=3D "lte"KERNEL_MODULE_PROBECONF += =3D "lte"huawei_cdc_ncm =3D "options lte iProduct=3DE3372h = iManufacturer=3DHuawei"

Than this means the order of loading too. Is there any additional feat= ure in Yocto that can interfere and set the exact kernel module loading ord= er?

Thanks,


--
Zolee



--
Zolee --0000000000007d5afe05b925fb17--