Any tips on how to reproduce release builds?

Hi all

I want to experiment with custom kernel configs (ex. enable UFS, VIRTIOFS, etc.) and packages. I know it will change the vermagic, so I loose the ability to download existing packages from the official OpenWRT repository that depend on kmods... Since I like to prototype a lot, it seemed best to generate all packages by myself and make my own repository with all the packages and kmods if I need them later.

However I have been trying for weeks now to generate my own for even the unmodified v24.10.2 (x86_64) release without success. If you look at the official fail logs (https://downloads.openwrt.org/releases/faillogs-24.10/x86_64/) then only some telephony packages should fail but my own attempts fail at random somewhere else.

I been building on ubuntu 24.04 without success, then moved on to docker containers (debian 11 / buildworker 3.11.8 / openwrt sdk containers) and finally tried buildbot v23 all with different results. Basically I can always get passed phase 1 but phase 2 fails inconsistently... :frowning:

My procedure (depends on the environment of course):

  • Phase 1 = build sdk

git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
git checkout v24.10.2
./scripts/feeds update -a
./scripts/feeds install -a
wget https://downloads.openwrt.org/releases/24.10.2/targets/x86/64/config.buildinfo -O .config
make defconfig download
make -j$(nproc) clean world

  • Phase 2 = build packages with resulting sdk

./scripts/feeds update -f
./scripts/feeds install -a
rm .config
make defconfig download
make -j$(nproc) clean world BUILD_LOG=1

Any tips? I'd appreciate it a lot! :slight_smile: