Hi all. I am trying to compile the standard image for a RUT906 before making some customizations (changing the base IP, removing unused services, integrating Python). I’ve downloaded the latest SDK, RUT9M_R_GPL_00.07.08.2.tar.gz
, and I’ve tried to compile it both on a fully compliant Ubuntu 22.04 and in Docker (which is the recommended way), but I keep receiving the same error.
If I try to compile for the default target (RUT9M), the image is created successfully. However, when I switch to RUT906 using make menuconfig, the final stage of the compilation process ends with errors.
I can see with make -j1 V=s :
Creating 4.0 filesystem on /home/user/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/root.squashfs, block size 65536.
[=============================================================|] 3850/3850 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 65536
compressed data, compressed metadata, compressed fragments,
compressed xattrs, compressed ids
duplicates are removed
Filesystem size 11225.61 Kbytes (10.96 Mbytes)
37.58% of uncompressed filesystem size (29870.12 Kbytes)
Inode table size 26702 bytes (26.08 Kbytes)
19.34% of uncompressed inode table size (138059 bytes)
Directory table size 40670 bytes (39.72 Kbytes)
38.73% of uncompressed directory table size (105000 bytes)
Number of duplicate files found 603
Number of inodes 4174
Number of files 3621
Number of fragments 212
Number of symbolic links 369
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 183
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
root (0)
echo "EXECUTING for openwrt-ramips-mt76x8-TEMPLATE_teltonika_rut906-squashfs-sysupgrade.bin and adding /home/user/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/TEMPLATE_teltonika_rut906-kernel.bin /home/user/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/root.squashfs "
EXECUTING for openwrt-ramips-mt76x8-TEMPLATE_teltonika_rut906-squashfs-sysupgrade.bin and adding /home/user/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/TEMPLATE_teltonika_rut906-kernel.bin /home/user/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/root.squashfs
[ -f /home/user/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/TEMPLATE_teltonika_rut906-kernel.bin -a -f /home/user/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/root.squashfs ]
make[5]: *** [Makefile:23: /home/user/sdk/build_dir/target-mipsel_24kc_musl/linux-ramips_mt76x8/tmp/openwrt-ramips-mt76x8-TEMPLATE_teltonika_rut906-squashfs-sysupgrade.bin] Error 1
make[5]: Leaving directory '/home/user/sdk/target/linux/ramips/image'
make[4]: *** [Makefile:31: install] Error 2
make[4]: Leaving directory '/home/user/sdk/target/linux/ramips'
make[3]: *** [Makefile:11: install] Error 2
make[3]: Leaving directory '/home/user/sdk/target/linux'
time: target/linux/install#8.35#1.95#6.74
ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:36: target/linux/install] Error 1
make[2]: Leaving directory '/home/user/sdk'
make[1]: *** [target/Makefile:19: /home/user/sdk/staging_dir/target-mipsel_24kc_musl/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/user/sdk'
make: *** [/home/user/sdk/include/toplevel.mk:245: world] Error 2
user@Teltonika-docker:~/sdk$
With Docker, I’ve tried the following commands:
./scripts/dockerbuild ./scripts/feeds update -a
./scripts/dockerbuild make menuconfig
./scripts/dockerbuild make
and I’ve enough disk space ( I’ve found the full process requires around 18-20GB )
Then I’ve tried to compile the minimal and the factory image ( doing a make clean before ), but it was the same.
I’ve tried to add the following commands to the sequence:
./scripts/dockerbuild ./scripts/feeds install -a
make download
but it doesn’t change.
have you any hint ?