Adding the Firmware file (.bin) to the Yocto recipes #dunfell
Hi... There
Hope all are doing well
Right now, I'm dealing with the *TP-Link Bluetooth dongle*.
My goal is to add the Bluetooth functionality with the Yocto custom image
After some research i got to know that the Bluetooth dongle, that I'm using is unsupported by activating the Bluetooth drivers only by menuconfig I'll have to manually add the *rtl8761b_fw.bin* file with the image
Here is the good post for the same
https://askubuntu.com/questions/1370663/bluetooth-scan-doesnt-detect-any-device-on-ubuntu-21-10
Now, my problem is, I'm getting some errors after adding it's firmware file
Here is the steps, which i have gone through
1. Created linux-firmware file under recpies-kernel directory
2. added the rtl8761b_fw.bin to /files directory under linux-firmware file
3. Created .bbappend file as per the available kernel name called *"linux-stm32mp_%.bbappend"*
4. installed the .bin image with the custom recipes file called custom-image.bb as follows # Drivers for the TPL-Link Bluetooth dongleIMAGE_INSTALL += "linux-firmware-rtl8761b_fw"
5. bake the image with bitbake custom-image
here is the tree of the directories
The error screenshot is mentioned here
The content of the .bbappend file is listed here
Can any one help me here ?
All suggestions and comments welcome :)
Regards
Mahendra Sondagar
Quoted 9 lines · Mahendra Sondagar
Hi... There
Hope all are doing well
Right now, I'm dealing with the *TP-Link Bluetooth dongle*.
My goal is to add the Bluetooth functionality with the Yocto custom image
After some research i got to know that the Bluetooth dongle, that I'm using is unsupported by activating the Bluetooth drivers only by menuconfig I'll have to manually add the *rtl8761b_fw.bin* file with the image
Quoted 8 lines
Here is the good post for the same
https://askubuntu.com/questions/1370663/bluetooth-scan-doesnt-detect-any-device-on-ubuntu-21-10 <https://askubuntu.com/questions/1370663/bluetooth-scan-doesnt-detect-any-device-on-ubuntu-21-10>Now, my problem is, I'm getting some errors after adding it's firmware file
Here is the steps, which i have gone through
1. Created linux-firmware file under recpies-kernel directory
there already is a linux-firmware recipe meta/recipes-kernel/linux-firmware/linux-firmware_20220708.bb
Quoted 2 lines
2. added the rtl8761b_fw.bin to /files directory under linux-firmware file
OK
Quoted 2 lines
3. Created .bbappend file as per the available kernel name called *"linux-stm32mp_%.bbappend"*
bbappend should be for linux-firmware recipe.
Quoted 4 lines
4. installed the .bin image with the custom recipes file called custom-image.bb as follows # Drivers for the TPL-Link Bluetooth dongle
IMAGE_INSTALL+= "linux-firmware-rtl8761b_fw"
I think it will be called something else then perhaps linux-firmware-rtl8761b or some such. Avoid using '_' in the name as its used a version separator and can confuse the packaging
Quoted 33 lines
5. bake the image with bitbake custom-image
here is the tree of the directories
The error screenshot is mentioned here
The content of the .bbappend file is listed here
Can any one help me here ?
All suggestions and comments welcome :)Regards
Mahendra Sondagar-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#57969): https://lists.yoctoproject.org/g/yocto/message/57969
Mute This Topic: https://lists.yoctoproject.org/mt/93402938/1997914
Mute #dunfell:https://lists.yoctoproject.org/g/yocto/mutehashtag/dunfell Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: Private: Re: [yocto] Adding the Firmware file (.bin) to the Yocto recipes #dunfell
Adding back mailing list.
Quoted 12 lines · Mahendra Sondagar
On Fri, Sep 2, 2022 at 02:21 AM, Khem Raj wrote:
inux-firmware-rtl8761b
Hi... Khem Raj
Thanks for the quick revert
Yes, i have made the changes as per your suggestions Unfortunately, it's seems the same result
you have not followed what I said. The bbappend is still a kernel bbappend, so please make a bbappend for linux-firmware recipe instead as suggested.
secondly, the bbappend itself has issues
PACKAGES =+ "${PN}-rtl8761b"
FILES_${PN}-example = "/lib/firmware/rtl_bt/rtl8761b.bin"
PACKAGES and FILES do not match. what you want is something like
PACKAGES =+ "${PN}-rtl8761b"
FILES_${PN}-rtl8761b = "/lib/firmware/rtl_bt/rtl8761b.bin"
then in image add.
IMAGE_INSTALL += "linux-firmware-rtl8761b"
Quoted 24 lines
here is the error logs
Can you please check ?
-----------------------------------------------------------Loaded 3484 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'linux-firmware-rtl8761b' (but/home/mahendra/STM32MPU_workspace/Digikey_YoctoSeries/Digikey_Yocto/meta-custom/recipes-core/images/custom-image.bbRDEPENDS on or otherwise requires it)
NOTE: Runtime target 'linux-firmware-rtl8761b' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['linux-firmware-rtl8761b']
ERROR: Required build target 'custom-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['custom-image', 'linux-firmware-rtl8761b']Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code----------------------------------------
Thanks
Mahendra
Re: Private: Re: [yocto] Adding the Firmware file (.bin) to the Yocto recipes #dunfell
Hi.. Khem Raj
Thanks for the prompt response
Yes, it works :)
you made my days
Many thanks,
Mahendra
Quoted 64 lines · Khem Raj
Adding back mailing list.
Quoted 12 lines · Mahendra Sondagar
On Fri, Sep 2, 2022 at 02:21 AM, Khem Raj wrote:
inux-firmware-rtl8761b
Hi... Khem Raj
Thanks for the quick revert
Yes, i have made the changes as per your suggestions Unfortunately, it's seems the same result
you have not followed what I said. The bbappend is still a kernel bbappend, so please make a bbappend for linux-firmware recipe instead as suggested.
secondly, the bbappend itself has issues
PACKAGES =+ "${PN}-rtl8761b"
FILES_${PN}-example = "/lib/firmware/rtl_bt/rtl8761b.bin"PACKAGES and FILES do not match. what you want is something like
PACKAGES =+ "${PN}-rtl8761b"
FILES_${PN}-rtl8761b = "/lib/firmware/rtl_bt/rtl8761b.bin"then in image add.
IMAGE_INSTALL+= "linux-firmware-rtl8761b"Quoted 11 lines
here is the error logs
Can you please check ?
-----------------------------------------------------------Loaded 3484 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'linux-firmware-rtl8761b' (but
/home/mahendra/STM32MPU_workspace/Digikey_YoctoSeries/Digikey_Yocto/meta-custom/recipes-core/images/custom-image.bb RDEPENDS on or otherwise requires it)Quoted 1 line
NOTE: Runtime target 'linux-firmware-rtl8761b' is unbuildable,
removing...
Quoted 3 lines
Missing or unbuildable dependency chain was: ['linux-firmware-rtl8761b']
ERROR: Required build target 'custom-image' has no buildable providers. Missing or unbuildable dependency chain was: ['custom-image','linux-firmware-rtl8761b']
Quoted 3 lines
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exitcode
Quoted 6 lines
----------------------------------------
Thanks
Mahendra