[linux-yocto] 回复: Question on CONFIG_FW_LOADER warning

2021-01-17 Thread Zhang, Qiang


发件人: Bruce Ashfield 
发送时间: 2021年1月15日 23:10
收件人: Zhang, Qiang
抄送: linux-yocto@lists.yoctoproject.org
主题: Re: Question on CONFIG_FW_LOADER warning

On Fri, Jan 15, 2021 at 3:43 AM Zhang, Qiang  wrote:
>
> Hello Brue
>
> [NOTE]: 'CONFIG_FW_LOADER' last val (n) and .config val (y) do not match
> [INFO]: CONFIG_FW_LOADER : y ## .config: 1567 
> :configs/v5.4/ktypes/base/base.cfg (n)
>
> I find CONFIG_FW_LOADER option be set "n" in base.cfg,
> but in features/firmware/firmware.cfg and cfg/x86.cfg be enable
> in  5.4, 5.8 kernel, the CONFIG_FW_LOADER be set "n"  in base.cfg
> need to open it?

>That won't solve all the cases. Tiny and standard end up with
>different values for that config, due to changing dependencies.
>
>I put in tweaks in 5.10/master to change the default, and then
>override it on a per-BSP basis (as well as in the feature fragment).
>
>Which combination of board/kernel are you seeing the warning ?

Hello Bruce

BSP is intel-x86-64, kernel is v5.4/standard/preempt-rt

Cherrs

>
>Bruce

>
> Cheers
>


--
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9376): 
https://lists.yoctoproject.org/g/linux-yocto/message/9376
Mute This Topic: https://lists.yoctoproject.org/mt/79918410/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] insmod - huawei E3372h kernel module

2021-01-17 Thread Zoltan Kerenyi Nagy
Thank you Zoran, I will do it :-)

On 2021. Jan 17., Sun at 23:27, Zoran Stojsavljevic <
zoran.stojsavlje...@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.zol...@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
>> 
>>
>>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52029): https://lists.yoctoproject.org/g/yocto/message/52029
Mute This Topic: https://lists.yoctoproject.org/mt/79498728/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto][linux-yocto v5.4/standard/nxp-imx8][PATCH] mmc: core: Apply trim broken quirk to R1J57L

2021-01-17 Thread Xiaolei Wang
R1J57L mmc chip hw capibility indicates that it supports trim function,
but this function does not work properly, the SDIO bus does not respond,
and the IO has been waiting so set quirks to skip trim

Signed-off-by: Xiaolei Wang 
---
 drivers/mmc/core/quirks.h | 4 
 1 file changed, 4 insertions(+)

diff --git a/drivers/mmc/core/quirks.h b/drivers/mmc/core/quirks.h
index 3dba15bccce2..ca6552bdb2c1 100644
--- a/drivers/mmc/core/quirks.h
+++ b/drivers/mmc/core/quirks.h
@@ -89,6 +89,8 @@ static const struct mmc_fixup mmc_blk_fixups[] = {
  MMC_QUIRK_SEC_ERASE_TRIM_BROKEN),
MMC_FIXUP("VZL00M", CID_MANFID_SAMSUNG, CID_OEMID_ANY, add_quirk_mmc,
  MMC_QUIRK_SEC_ERASE_TRIM_BROKEN),
+   MMC_FIXUP("R1J57L", CID_MANFID_MICRON, CID_OEMID_ANY, add_quirk_mmc,
+  MMC_QUIRK_SEC_ERASE_TRIM_BROKEN),
 
/*
 *  On Some Kingston eMMCs, performing trim can result in
@@ -98,6 +100,8 @@ static const struct mmc_fixup mmc_blk_fixups[] = {
  MMC_QUIRK_TRIM_BROKEN),
MMC_FIXUP("V10016", CID_MANFID_KINGSTON, CID_OEMID_ANY, add_quirk_mmc,
  MMC_QUIRK_TRIM_BROKEN),
+   MMC_FIXUP("R1J57L", CID_MANFID_MICRON, CID_OEMID_ANY, add_quirk_mmc,
+  MMC_QUIRK_TRIM_BROKEN),
 
END_FIXUP
 };
-- 
2.25.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9374): 
https://lists.yoctoproject.org/g/linux-yocto/message/9374
Mute This Topic: https://lists.yoctoproject.org/mt/79916007/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] insmod - huawei E3372h kernel module

2021-01-17 Thread Zoran
> 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.zol...@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
> 
>
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52028): https://lists.yoctoproject.org/g/yocto/message/52028
Mute This Topic: https://lists.yoctoproject.org/mt/79498728/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] devtool add

2021-01-17 Thread Zoltan Kerenyi Nagy
Hi Folks,

Is it possible to create a recipe file with devtool?

*devtool add cdc-ncm
https://raw.githubusercontent.com/torvalds/linux/master/drivers/net/usb/cdc_ncm.c
*

There is gonna be a file not found error:


*FileNotFoundError: [Errno 2] No such file or directory: 'cdc_ncm.c'ERROR:
Command 'script -e -q -c "recipetool --color=always create --devtool -o
/tmp/devtoolo5nw4pcb
'https://raw.githubusercontent.com/torvalds/linux/master/drivers/net/usb/cdc_ncm.c
'
 -x /home/zoli/poky/build/workspace/sources/devtoolsrc39q8anfa -N cdc-ncm"
/dev/null' failed*

However when I wget the same source, the c file downloads correctly.

Do you have any idea?

Thanks,

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52027): https://lists.yoctoproject.org/g/yocto/message/52027
Mute This Topic: https://lists.yoctoproject.org/mt/79755013/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] insmod - huawei E3372h kernel module

2021-01-17 Thread Zoltan Kerenyi Nagy
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

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52026): https://lists.yoctoproject.org/g/yocto/message/52026
Mute This Topic: https://lists.yoctoproject.org/mt/79498728/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-