I'm having trouble getting the correct vermagic when building a custom firmware for my Huasifei WH3000 Pro router. I'm trying to build 25.12.4. Here's what I did:
-
I went to:
https://downloads.openwrt.org/releases/25.12.4/targets/mediatek/filogic/ -
I noticed the commit hash in
version.buildinfo(https://downloads.openwrt.org/releases/25.12.4/targets/mediatek/filogic/version.buildinfo) doesn't match the latest commit for the25.12.4tag. There's one more commit after the one listed inversion.buildinfo. -
I cloned the repository:
bash
git clone https://github.com/openwrt/openwrt.git git checkout 4ccb782af7194604ee6cc3496e86fdb47f134cec -
I confirmed I'm on the correct commit:
bash
git status HEAD detached at 4ccb782af7 -
I downloaded the official
.configfromhttps://downloads.openwrt.org/releases/25.12.4/targets/mediatek/filogic/config.buildinfoand saved it as.configin the repository folder. -
I added a few feeds I need in
feeds.conf.default, then ran:bash
./scripts/feeds update -a && ./scripts/feeds install -a make defconfig -
I ran
make menuconfigbut changed absolutely nothing. I didn't even select my device profile (left it on "Multiple Device"). I wanted to make sure I didn't alter anything — this is my third day trying to match thevermagichash. I also verified that in "Kernel modules", all modules are marked asM(I didn't change anything here either). -
Then I ran
make download, and as suggested here (https://hamy.io/post/0015/how-to-compile-openwrt-and-still-use-the-official-repository/), I ran:bash
make target/linux/compile -
Finally, I checked the hash in:
/home/dmtry/openwrtnew/openwrt/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-6.12.87/.vermagicThe hash I got is:
e93d239514a51e76cf65f1122cd66833This doesn't match the kernel version listed in:
https://downloads.openwrt.org/releases/25.12.4/targets/mediatek/filogic/openwrt-25.12.4-mediatek-filogic.manifestThe official manifest shows:
kernel - 6.12.87~82967b4996cac5f682958cca092c9ab1-r1
As a result, I can't use the official OpenWrt repositories with my custom build.
Could someone please tell me what I'm doing wrong? Why is the hash different when I'm trying to use the official config.buildinfo?