radxa-repo / bsp

Radxa BSP Build Tool
https://radxa-repo.github.io/bsp/
GNU General Public License v3.0
42 stars 48 forks source link

Missing symbols in compiled DTBs in "latest" -> not working overlays #84

Closed pavhofman closed 8 months ago

pavhofman commented 8 months ago

While the "stable" variant of linux compilation applies a patch which appends '-@' to the DTC_FLAGS_xxx to generate symbols for overlays https://github.com/radxa-repo/bsp/blob/main/linux/.stable-6.1/0100-vendor/0001-VENDOR-Add-Radxa-overlays.patch , the "latest" variant has no such patch. As a result compiled dtb's lack the symbols and overlays (which typically use the symbols) do not work.

RadxaYuntian commented 8 months ago

The latest variant is intended for testing and development, so it does not contain our custom patches, since keeping them up to date for build to pass takes some effort. For now only officially supported variants will contain the full patch set.

pavhofman commented 8 months ago

Thanks for the info. Please would you consider adding the information about missing symbols being compiled in + how to fix that in the arch/arm64/boot/dts/rockchip/Makefile somewhere to your bsp (wiki of github)? It's quite difficult to troubleshoot as it requires serial connection to see the uboot error. Thanks for considering.