Confused by the buildsystem, building the wrong version when rebuilding hostapd

Hello!
I tried rebuilding hostapd with more features. I want to build the same version as shipped in the BananaPi BPi-R3 23.05.0-rc2 r23228-cd17d8df2a firmware image, wpad-mbedtls_2023-06-22-599d00be-1.2. When I compile I get wpad-mbedtls_2023-03-29-bb945b98-1.2. Why do I get the older version?

I tried to follow this guide https://openwrt.org/docs/guide-developer/toolchain/single.package :

git clone git://git.openwrt.org/openwrt/openwrt.git
cd openwrt/
git checkout v23.05.0-rc2
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig # Choose BananaPI-R3 and enable wpad-mbedtls
vim package/network/services/hostapd/files/hostapd-full.config # enable more features
make tools/install -j32
make toolchain/install -j32
make package/network/services/hostapd/compile -j32

This generates the files:

hostapd-common_2023-03-29-bb945b98-1.2_aarch64_cortex-a53.ipk
hostapd-utils_2023-03-29-bb945b98-1.2_aarch64_cortex-a53.ipk
jshn_2023-05-23-75a3b870-1_aarch64_cortex-a53.ipk
libblobmsg-json20230523_2023-05-23-75a3b870-1_aarch64_cortex-a53.ipk
libjson-c5_0.16-3_aarch64_cortex-a53.ipk
libjson-script20230523_2023-05-23-75a3b870-1_aarch64_cortex-a53.ipk
libmbedtls12_2.28.3-1_aarch64_cortex-a53.ipk
libnl-tiny2023-04-02_2023-04-02-11b7c5f0-1_aarch64_cortex-a53.ipk
libubox20230523_2023-05-23-75a3b870-1_aarch64_cortex-a53.ipk
libubus20220615_2022-06-15-9913aa61-1_aarch64_cortex-a53.ipk
ubus_2022-06-15-9913aa61-1_aarch64_cortex-a53.ipk
ubusd_2022-06-15-9913aa61-1_aarch64_cortex-a53.ipk
wpad-mbedtls_2023-03-29-bb945b98-1.2_aarch64_cortex-a53.ipk

(The reason for recompiling is that I wanted to try different EAP modes. Unfortunately these are disabled even in the wpad-full packages https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=package/network/services/hostapd/files/hostapd-full.config;h=9076ebc44f95df182abc7e5ff4f953ae5b91bad4;hb=55ae516f61fa9d38a5080630795070a8e6673088#l83 )

hostapd was updated after rc2. Checkout 23.05 snapshot.

git checkout openwrt-23.05

Thank you!

I used "Customize installed packages and/or first boot script" https://firmware-selector.openwrt.org/?version=23.05.0-rc2&target=mediatek%2Ffilogic&id=bananapi_bpi-r3 when installing. Is this supposed to produce an image that's a bit newer than rc2?

I see it pulls 2023-06-22-599d00be-1.2 in the log. The non-customized https://downloads.openwrt.org/releases/23.05.0-rc2/targets/mediatek/filogic/openwrt-23.05.0-rc2-mediatek-filogic.manifest had 2023-03-29-bb945b98-1.2.

Imagebuilder will get latest packages from the branch being requested, but building from source release tag gets the exact versions at that time.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.