radxa / meta-rockchip

Yocto BSP layer for the Rockchip SOC boards
MIT License
24 stars 14 forks source link

Cannot build image for rock5b #1

Closed nandra closed 1 year ago

nandra commented 1 year ago

Using kirkstone-radxa I'm getting:

/data/projects//RK3588/yocto-radxa/build/tmp/work-shared/rockchip-rk3588-rock-5b/kernel-source/drivers/net/wireless/broadcom/brcm80211/brcmutil/utils.c:11:10: fatal error: brcmu_utils.h: No such file or directory
|    11 | #include <brcmu_utils.h>
|       |          ^~~~~~~~~~~~~~~
| compilation terminated.
devttebayo commented 1 year ago

Wanted to add a +1 to this issue here - would love to get a workaround to build my image 😸

nandra commented 1 year ago

@devttebayo please create in your layer following bbappend (linux-rockchip_%.bbappend):

FILESEXTRAPATHS:prepend := "${THISDIR}/files:"

SRC_URI:append = " \
        file://wifi.cfg \
"

and content of wifi.cfg is (put this file to subfolder called files:

CONFIG_BRCMFMAC=n

so structure will look like:

├── files
│   └── wifi.cfg
└── linux-rockchip_%.bbappend

Please note that with this change wifi + bluetooth will not work but compilation pass.

devttebayo commented 1 year ago

That works for me, I'm using ethernet for now 😄 thanks for the help!!

RadxaStephen commented 1 year ago

I have add one wifi.cfg to disable the driver to solve the issue. Will fix the build error in the future.

https://github.com/radxa/meta-rockchip/commits/kirkstone-radxa