OpenWrt 23.05.3 image building error

Hii everyone, getting error while building the OpenWrt 23.05.3 firmware image. For compilation of firmware image file generation, Build enters in directory '/home/v23.05.3/openwrt/target/linux/ipq40xx/image' i am getting -uImage.itb missing file error as shown in below-

bash: 8: Bad file descriptor
cp /home/v23.05.3/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/qcom_ap-dk01.1-c1-uImage.itb /home/v23.05.3/openwrt/bin/targets/ipq40xx/generic/openwrt-ipq40xx-generic-qcom_ap-dk01.1-c1-uImage.itb
cp: cannot stat '/home/v23.05.3/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/qcom_ap-dk01.1-c1-uImage.itb': No such file or directory
make[5]: *** [Makefile:19: /home/v23.05.3/openwrt/bin/targets/ipq40xx/generic/openwrt-ipq40xx-generic-qcom_ap-dk01.1-c1-uImage.itb] Error 1
make[5]: *** Waiting for unfinished jobs....

[=====================================================================================================================================================/] 1228/1228 100%

and at the end getting error-

make[5]: Leaving directory '/home/v23.05.3/openwrt/target/linux/ipq40xx/image'
make[4]: *** [Makefile:23: install] Error 2
make[4]: Leaving directory '/home/v23.05.3/openwrt/target/linux/ipq40xx'
make[3]: *** [Makefile:11: install] Error 2
make[3]: Leaving directory '/home/v23.05.3/openwrt/target/linux'
time: target/linux/install#65.59#18.53#99.72
ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:32: target/linux/install] Error 1
make[2]: Leaving directory '/home/v23.05.3/openwrt'
make[1]: *** [target/Makefile:26: /home/v23.05.3/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/v23.05.3/openwrt'
make: *** [/home/v23.05.3/openwrt/include/toplevel.mk:232: world] Error 2

where my target details are:

Target System- Qualcomm Atheros IPQ40XX
Subtarget- Generic
Target Profile- Qualcomm Atheros AP-DK01.1 C1

post the line/command you used when you built it.

use the </> button when you paste cli output (like the one in your 1st post).

1 Like

Hi @frollic, Simply i used

$ make -j16 V=s

command to build the firmware image.

ok, thought you mean the image builder, not from source.

in that case use -j1 V=sc instead, hopefully the issue will become clearer.

still facing the same error after using command "make -j1 V=sc"

bash: 8: Bad file descriptor
cp /home/v23.05.3/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/qcom_ap-dk01.1-c1-uImage.itb /home/v23.05.3/openwrt/bin/targets/ipq40xx/generic/openwrt-ipq40xx-generic-qcom_ap-dk01.1-c1-uImage.itb
cp: cannot stat '/home/v23.05.3/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/qcom_ap-dk01.1-c1-uImage.itb': No such file or directory
make[5]: *** [Makefile:19: /home/v23.05.3/openwrt/bin/targets/ipq40xx/generic/openwrt-ipq40xx-generic-qcom_ap-dk01.1-c1-uImage.itb] Error 1
make[5]: Leaving directory '/home/v23.05.3/openwrt/target/linux/ipq40xx/image'
make[4]: *** [Makefile:23: install] Error 2
make[4]: Leaving directory '/home/v23.05.3/openwrt/target/linux/ipq40xx'
make[3]: *** [Makefile:11: install] Error 2
make[3]: Leaving directory '/home/v23.05.3/openwrt/target/linux'
time: target/linux/install#58.43#14.86#89.83
    ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:32: target/linux/install] Error 1
make[2]: Leaving directory '/home/v23.05.3/openwrt'
make[1]: *** [target/Makefile:26: /home/v23.05.3/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/v23.05.3/openwrt'
make: *** [/home/v23.05.3/openwrt/include/toplevel.mk:232: world] Error 2

have you rolled back the changes removing the support for your device from https://github.com/openwrt/openwrt/pull/13270 ?

if not, the latest image you can build is probably based on 21.07 - https://firmware-selector.openwrt.org/?version=21.02.7&target=ipq40xx%2Fgeneric&id=qcom_ap-dk01.1-c1

1 Like

Something is failing during image file generation (because itb aka initramfs is not there to be copied). I would guess it is image size related. I don't know the limits of this specific device regarding kernel or root size. Maybe it is enough to drop a large package. E. g. samba?

2 Likes