Compiling v23.05.0-rc3 gives 'Restarting config..'

Hi, I am in the process of building the latest release candidate for the raspberry pi. Compilation of the kernel halts as it comes up with an interactive question about some V4L modules. For now it's not a problem to answer those questions manually which results in a successful build. However our automated process fails as it doesnt answer those questions :slight_smile:

Running make target/linux/{clean,compile} V=s comes up with:

* Restart config...
* V4L platform devices
V4L platform devices (V4L_PLATFORM_DRIVERS) [Y/n/?] y
  Marvell 88ALP01 (Cafe) CMOS Camera Controller support (VIDEO_CAFE_CCIC) [N/m/?] n
  Cadence Video Devices (VIDEO_CADENCE) [N/y/?] n
  Aspeed AST2400 and AST2500 Video Engine driver (VIDEO_ASPEED) [N/m/?] n
  Video Multiplexer (VIDEO_MUX) [N/m/?] n
  Xilinx Video IP (EXPERIMENTAL) (VIDEO_XILINX) [N/m/?] n
  Broadcom BCM283x/BCM271x Unicam video capture driver (VIDEO_BCM2835_UNICAM) [N/m/?] (NEW)

To fix this I searched around and tried to run make kernel_oldconfig which did prompt for a new config item, but not the expected Broadcom driver.
Doing this also doesnt result in a change to the kernel config which I could submit as a patch.

I hope someone can point me in the right direction..

edit .config and manually add those UPPER_CASE param entries into the file as =y or =n ?

might want to edit the subject, since the question isn't really device specific, and you're adding non default functionality to the build.

Thanks for the quick reply, the question might indeed be more generic.

Now i've added the broadcom video driver to /target/linux/generic/config-5.15 and this works :smiley:
I'm not sure though if this is the correct place to make this adjustment?

diff --git a/target/linux/generic/config-5.15 b/target/linux/generic/config-5.15
index 5cac839f59..b3faa65ac3 100644
--- a/target/linux/generic/config-5.15
+++ b/target/linux/generic/config-5.15
@@ -7389,6 +7389,7 @@ CONFIG_VHOST_MENU=y
 # CONFIG_VIDEO_WM8775 is not set
 # CONFIG_VIDEO_ZORAN is not set

Edit: i see # CONFIG_VIDEO_BCM2835_UNICAM is not set would do the job as well (probably removes de 'NEW' state and picks the default which is N?).

no idea, I seldom build from scratch.
there's also a .config in the root folder of the openwrt build dir, if I remember correctly.

There is indeed a .config file in the root folder, but it has no configuration for the kernel. To my knowledge this is located in the file I just changed

yeah, it might contain the recipe for the actual device, not the kernel.
like I said, I seldom build my images :wink:

hopefully someone else can confirm ...

1 Like