Target build help IPQ40x9 (Wally's 4029)

Hi I'm Trying to build Openwrt for my Wally's dr4029, I have found a repo with the device definition's for my router and a few hardware related patches.

I have created by build enviroment and cloned the git and update it:
git clone of
./scripts/feeds update -a
./scripts/feeds install -a

I have then run make menuconfig but i dont see the option of the wally's router included in the target in the menu as defined by this commit:

Is there something I'm doing wrong?

You need to checkout the correct branch

1 Like

Ok I was thinking that was the case but how do I do I pick a branch to checkout it just seems to check out the main branch?

Simpy use git checkout after cloning

1 Like

I managed to checkout the correct branch and could configure the build settings but it fails during compilation with:

find /home/professor_jonny/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-ipq40xx/ -mindepth 1 -execdir touch -hcd "@1603528583" "{}" +
find: The relative path 'Files/WindowsApps/CanonicalGroupLimited.UbuntuonWindows_2004.2020.812.0_x64__79rhkp1fndgsc' is included in the PATH environment variable, which is insecure in combination with the -execdir action of find.  Please remove that entry from $PATH
make[2]: *** [package/Makefile:72: package/install] Error 1
make[2]: Leaving directory '/home/professor_jonny/openwrt'
make[1]: *** [package/Makefile:109: /home/professor_jonny/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_install] Error 2
make[1]: Leaving directory '/home/professor_jonny/openwrt'
make: *** [/home/professor_jonny/openwrt/include/ world] Error 2

Sorry, I dont use Windows nor WSL at all.

I think I have found some information reguarding WSL that is not explained in the build guide, I will go through this and see if it works
OpenWrt Project: Windows Subsystem for Linux (WSL)

For some reason WSL.conf seems to ignore the apended Path and exporting a Path fixed the error.
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

This sorted my problem and the image built successfully.

hI professor_jonny
I tried to compile the image from your repo and it built successfully but when I do an upgrade by sysupgrade the boot halt and when I check the boot env it seems changed did you meet this issue before

here the boot log when it charches
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000004000000 : "mtd=0"
UBI: attaching mtd2 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 126976 bytes
UBI: smallest flash I/O unit: 2048
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
UBI error: ubi_read_volume_table: the layout volume was not found
UBI error: ubi_init: cannot attach mtd2
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
UBI init error 22
qca_mmc: 0
(IPQ40xx) # printenv
bootargs=ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs rootwait
fsbootargs=ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs

Did you install over the factory image from wallys and follow the instructions in the readme on my github?

You need to install wallys2openwrt.img via tftpboot in uboot and run the install script.
Then first install the factory image.

Alternatively you can boot a ram based image then install via sysupgrade, but i have never tried this method.

You may also need to alter the dts if your nand size differs, uboot needs fixing and it is beyond my skills.

with TFTP and ubi image it works without any problem but when I did an upgrade using web interface and .bin extension the problem occurs

What size is your flash nor and nand.

And can you show log of installing via tftp with image

You may need to edit qcom-ipq40x9-dr40x9.dts as below to suit nand size below is for 256mb nands:

	nand@0 {
		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "ubi";
				reg = <0x00000000 0x08000000>;

change it to this for 128 mb nands:

reg = <0x00000000 0x04000000>;

Yeah it got it I changed it to
partition@0 {
label = "ubi";
reg = <0x00000000 0x04000000>;
and it upgrades now, the mistake that i changed your file sorry xD
thank you very much

I had the same issue, uboot on this board is designed for qsdk compatable images of the reference design, and the second half of the nand is reserved or something within .

MIBIB does not parse the partition setup from what I believe and the nand is incorectly formatted and it fails image checks.