* [Buildroot] [Help] Problem with BR2_LINUX_KERNEL_CUSTOM_DTS_PATH and kernel 6.12 @ 2025-01-01 12:59 Kilian Zinnecker via buildroot 2025-01-01 13:13 ` Baruch Siach via buildroot 0 siblings, 1 reply; 5+ messages in thread From: Kilian Zinnecker via buildroot @ 2025-01-01 12:59 UTC (permalink / raw) To: buildroot Hello all, I am struggeling to get a custom device tree compiled as part of a developing a board support (i.e., for the beaglev-ahead). And I suspect it might have to do with a recent change to mainline kernel 6.12, which buildroot might not take into account yet. Here is what I try: I add my own device tree source file into the board folder and set the following lines in my defconfig: BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.12.7" BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y BR2_LINUX_KERNEL_DTS_SUPPORT=y # BR2_LINUX_KERNEL_INTREE_DTS_NAME is not set BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/beaglev-ahead/beaglev-ahead.dts" BR2_LINUX_KERNEL_DTB_OVERLAY_SUPPORT=y Now when the kernel gets build, the Makefile throws the error, that there exists no rule to build my particular dtb. I checked, an my custom dts file actually gets copied into arch/riscv/boot/dts. Also in this folder, there is a "dtbs-list" text file, which is not part of the original kernel tree, but seems to get created during some configuration step. This file lists a lot of dtb file paths, but there is none for my particular custom device tree. So I grepped to identfy where this file gets created and it seems that it was introduced into scripts/Makefile.dtbs in this commit, which is from September 2024: https://github.com/torvalds/linux/commit/ e7e2941300d258d551dda6ca9a370e29e085fa73 Using "git tag --contains e7e2941300d25" shows, that the commit is part of kernel version 6.12. I don't fully understand the mechanisms yet (i.e., how kernel 6.12.7 decides which dtbs can be built), but I suspect, that maybe now the kernel creates such list, which is somehow used to derive the Makefile targets for the dtbs (i.e., which dtbs can actually be build). And I also suspect, that maybe buildroot does not take this into accout yet and therefore my custom dtb does not appear in that list, and hence does not get build. ... Or I overlook some mistake on my side and am doing something wrong here, which causes the error. Could anybody have a look and help me out with this issue? Thanks and best regards, Kilian _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [Help] Problem with BR2_LINUX_KERNEL_CUSTOM_DTS_PATH and kernel 6.12 2025-01-01 12:59 [Buildroot] [Help] Problem with BR2_LINUX_KERNEL_CUSTOM_DTS_PATH and kernel 6.12 Kilian Zinnecker via buildroot @ 2025-01-01 13:13 ` Baruch Siach via buildroot 2025-01-01 13:16 ` Kilian Zinnecker via buildroot 0 siblings, 1 reply; 5+ messages in thread From: Baruch Siach via buildroot @ 2025-01-01 13:13 UTC (permalink / raw) To: Kilian Zinnecker via buildroot; +Cc: Kilian Zinnecker Hi Kilian, On Wed, Jan 01 2025, Kilian Zinnecker via buildroot wrote: > I am struggeling to get a custom device tree compiled as part of a developing > a board support (i.e., for the beaglev-ahead). And I suspect it might have to > do with a recent change to mainline kernel 6.12, which buildroot might not > take into account yet. Here is what I try: > > I add my own device tree source file into the board folder and set the > following lines in my defconfig: > > BR2_LINUX_KERNEL=y > BR2_LINUX_KERNEL_CUSTOM_VERSION=y > BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.12.7" > BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y > BR2_LINUX_KERNEL_DTS_SUPPORT=y > # BR2_LINUX_KERNEL_INTREE_DTS_NAME is not set > BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/beaglev-ahead/beaglev-ahead.dts" > BR2_LINUX_KERNEL_DTB_OVERLAY_SUPPORT=y > > Now when the kernel gets build, the Makefile throws the error, that there > exists no rule to build my particular dtb. See the link below for a recent discussions of this issue on the list: https://lore.kernel.org/buildroot/dcbd3f77-e737-41a2-9f23-87141d0bdf9b@grenoble.cnrs.fr/ Edgar Bonet suggested a fix that you might want to test: https://lore.kernel.org/buildroot/035d6d78-0a31-4083-8fa1-65f5be5f74b5@grenoble.cnrs.fr/ baruch -- ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il - _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [Help] Problem with BR2_LINUX_KERNEL_CUSTOM_DTS_PATH and kernel 6.12 2025-01-01 13:13 ` Baruch Siach via buildroot @ 2025-01-01 13:16 ` Kilian Zinnecker via buildroot 2025-01-03 14:37 ` Edgar Bonet 0 siblings, 1 reply; 5+ messages in thread From: Kilian Zinnecker via buildroot @ 2025-01-01 13:16 UTC (permalink / raw) To: buildroot Hello Baruch [--SNIP--] > See the link below for a recent discussions of this issue on the list: > > > https://lore.kernel.org/buildroot/dcbd3f77-e737-41a2-9f23-87141d0bdf9b@gren > oble.cnrs.fr/ > > Edgar Bonet suggested a fix that you might want to test: > > > https://lore.kernel.org/buildroot/035d6d78-0a31-4083-8fa1-65f5be5f74b5@gren > oble.cnrs.fr/ Great, thanks, I will have a look! Best regards, Kilian _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [Help] Problem with BR2_LINUX_KERNEL_CUSTOM_DTS_PATH and kernel 6.12 2025-01-01 13:16 ` Kilian Zinnecker via buildroot @ 2025-01-03 14:37 ` Edgar Bonet 2025-01-04 7:22 ` Kilian Zinnecker via buildroot 0 siblings, 1 reply; 5+ messages in thread From: Edgar Bonet @ 2025-01-03 14:37 UTC (permalink / raw) To: Kilian Zinnecker, buildroot Hello! Baruch Siach wrote: > See the link below for a recent discussions of this issue on the list: > > https://lore.kernel.org/buildroot/dcbd3f77-e737-41a2-9f23-87141d0bdf9b@grenoble.cnrs.fr/ > > Edgar Bonet suggested a fix that you might want to test: > > https://lore.kernel.org/buildroot/035d6d78-0a31-4083-8fa1-65f5be5f74b5@grenoble.cnrs.fr/ Kilian Zinnecker replied: > Great, thanks, I will have a look! I just sent a v3 of this patch. If you have a chance to test it, could you please reply to the patch with your Tested-By? Regards, Edgar. _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Buildroot] [Help] Problem with BR2_LINUX_KERNEL_CUSTOM_DTS_PATH and kernel 6.12 2025-01-03 14:37 ` Edgar Bonet @ 2025-01-04 7:22 ` Kilian Zinnecker via buildroot 0 siblings, 0 replies; 5+ messages in thread From: Kilian Zinnecker via buildroot @ 2025-01-04 7:22 UTC (permalink / raw) To: buildroot, Edgar Bonet Hello Edgar, > I just sent a v3 of this patch. If you have a chance to test it, could > you please reply to the patch with your Tested-By? Just did so: It worked on my side. Thanks for issuing a fix! Best regards, Kilian _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-01-04 7:23 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2025-01-01 12:59 [Buildroot] [Help] Problem with BR2_LINUX_KERNEL_CUSTOM_DTS_PATH and kernel 6.12 Kilian Zinnecker via buildroot 2025-01-01 13:13 ` Baruch Siach via buildroot 2025-01-01 13:16 ` Kilian Zinnecker via buildroot 2025-01-03 14:37 ` Edgar Bonet 2025-01-04 7:22 ` Kilian Zinnecker via buildroot
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox