JeffyCN / meta-rockchip

Yocto BSP layer for the Rockchip SOC boards
Other
114 stars 87 forks source link

Wrong rkwifibt firmware install path #18

Closed SquallATF closed 2 years ago

SquallATF commented 2 years ago

https://github.com/JeffyCN/mirrors/blob/82957dba3977fd50d4c013e0d359f3203072a0f2/drivers/net/wireless/rockchip_wlan/rkwifi/Kconfig#L39-L51 kernel default config firmware path is /vendor/etc/firmware/ but rkwifibt-firmware recipe installed to /system/etc/firmware https://github.com/JeffyCN/meta-rockchip/blob/60b0b464bf936707fa31a16ad4e7f15fbe630da4/recipes-kernel/rkwifibt-firmware/rkwifibt-firmware.bb#L46-L113

JeffyCN commented 2 years ago

the rkwifibt drivers are actually for android, so they used to use system/etc/firmware, but switched to vendor/etc/firmware recently for some new drivers.

so both of those path are needed, maybe try to add a symlink:

+++ b/recipes-kernel/rkwifibt-firmware/rkwifibt-firmware.bb
@@ -18,6 +18,9 @@ inherit allarch deploy

 do_install() {
        install -d ${D}/system/etc/firmware/
+       install -d ${D}/vendor/etc/
+       ln -sf /system/etc/firmware/ ${D}/vendor/etc/
JeffyCN commented 2 years ago

patches uploaded

SquallATF commented 2 years ago

fixed ddd47d6b57d035655bd78d405e3c7035a48837f9