FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
630 views 2 comments
by anonymous

Hi,

I'm trying to build the RUTX12 SDK. I followed the instructions in RUTX_Software_Development_Kit_instructions . However it fails with below errors:

zip: /home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl/dl/coova-chilli-e50fb309cfd1008f1e53c960ce3779ff0e9e732f-2021-06-22.tar.gz: No such file or directory
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors

Applying ./patches/001-fix-compile-with-glibc.patch using plaintext:
patching file src/chilli.c
Hunk #1 succeeded at 18 (offset 3 lines).
patching file src/Makefile.am

Applying ./patches/100-fix_compile_kmod.patch using plaintext:
patching file src/linux/Makefile

Applying ./patches/200-fix-compile-with-musl.patch using plaintext:
patching file src/system.h
( cd /home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/coova-chilli-e50fb309cfd1008f1e53c960ce3779ff0e9e732f-2021-06-22 ; [ -f ./configure ] || { ./bootstrap ; } )
OpenWrt-libtoolize: putting auxiliary files in `.'.
OpenWrt-libtoolize: copying file `./ltmain.sh'
OpenWrt-libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
OpenWrt-libtoolize: copying file `m4/libtool.m4'
OpenWrt-libtoolize: copying file `m4/ltoptions.m4'
OpenWrt-libtoolize: copying file `m4/ltsugar.m4'
OpenWrt-libtoolize: copying file `m4/ltversion.m4'
OpenWrt-libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:17: installing './compile'
configure.ac:26: installing './config.guess'
configure.ac:26: installing './config.sub'
configure.ac:8: installing './install-sh'
configure.ac:8: installing './missing'
Makefile.am: error: required file './README' not found
bstring/Makefile.am: installing './depcomp'
Makefile.am: error: required file './README' not found
make[3]: *** [Makefile:175: /home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/coova-chilli-e50fb309cfd1008f1e53c960ce3779ff0e9e732f-2021-06-22/.prepared_7fa83260db05af5d20d892427cd74213_6664517399ebbbc92a37c5bb081b5c53] Error 1
make[3]: Leaving directory '/home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl/package/teltonika/coova-chilli'
time: package/teltonika/coova-chilli/compile#2.25#0.11#2.32
make[2]: *** [package/Makefile:125: package/teltonika/coova-chilli/compile] Error 2
make[2]: Leaving directory '/home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl'
make[1]: *** [package/Makefile:119: /home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl'
make: *** [/home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl/include/toplevel.mk:231: world] Error 2

```

2 Answers

0 votes
by anonymous

Hello,

Could you try to use this command before compiling?

touch package/teltonika/coova-chilli/README

Regards.

by anonymous

Thanks for fast response,

I create the README file. But still shows the same error. I even ran make clean & make.

gzip: /home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl/dl/coova-chilli-e50fb309cfd1008f1e53c960ce3779ff0e9e732f-2021-06-22.tar.gz: No such file or directory
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors

Applying ./patches/001-fix-compile-with-glibc.patch using plaintext:
patching file src/chilli.c
Hunk #1 succeeded at 18 (offset 3 lines).
patching file src/Makefile.am

Applying ./patches/100-fix_compile_kmod.patch using plaintext:
patching file src/linux/Makefile

Applying ./patches/200-fix-compile-with-musl.patch using plaintext:
patching file src/system.h
( cd /home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/coova-chilli-e50fb309cfd1008f1e53c960ce3779ff0e9e732f-2021-06-22 ; [ -f ./configure ] || { ./bootstrap ; } )
OpenWrt-libtoolize: putting auxiliary files in `.'.
OpenWrt-libtoolize: copying file `./ltmain.sh'
OpenWrt-libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
OpenWrt-libtoolize: copying file `m4/libtool.m4'
OpenWrt-libtoolize: copying file `m4/ltoptions.m4'
OpenWrt-libtoolize: copying file `m4/ltsugar.m4'
OpenWrt-libtoolize: copying file `m4/ltversion.m4'
OpenWrt-libtoolize: copying file `m4/lt~obsolete.m4'
configure.ac:17: installing './compile'
configure.ac:26: installing './config.guess'
configure.ac:26: installing './config.sub'
configure.ac:8: installing './install-sh'
configure.ac:8: installing './missing'
Makefile.am: error: required file './README' not found
bstring/Makefile.am: installing './depcomp'
Makefile.am: error: required file './README' not found
make[3]: *** [Makefile:175: /home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/coova-chilli-e50fb309cfd1008f1e53c960ce3779ff0e9e732f-2021-06-22/.prepared_cc02c1b764efbe3792fb2cea5b8817f2_6664517399ebbbc92a37c5bb081b5c53] Error 1
make[3]: Leaving directory '/home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl/package/teltonika/coova-chilli'
time: package/teltonika/coova-chilli/compile#2.26#0.11#2.33
make[2]: *** [package/Makefile:125: package/teltonika/coova-chilli/compile] Error 2
make[2]: Leaving directory '/home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl'
make[1]: *** [package/Makefile:119: /home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl'
make: *** [/home/javad/workspace/Teltonika/rutos-ipq40xx-rutx-gpl/include/toplevel.mk:231: world] Error 2
 

+2 votes
by anonymous

As it seems that the Teltonika developers never tested their SDK (At least for the RUTX12). I put the final solution here for other users. The problem solved by one week of test and trial:

By default, some packages are broken is the Teltonika SDK. Before building the SDK, these errors should be fixed.

First go to the Teltonika SDK directory:

cd ~/workspace/Teltonika/rutos-ipq40xx-rutx-gpl/

Then, the README file should be created for the packages coova-chili , easycwmp and shellinabox . After making the README file, the source should be reconfigured by autoreconf -i:

coova-chilli package:

$ cd package/teltonika/coova-chilli/src/
$ touch README
$ autoreconf -i

easycwmp package:

$ cd package/teltonika/easycwmp/src/
$ touch README
$ autoreconf -i

shellinabox package

$ cd package/teltonika/shellinabox/src/
$ touch README
$ autoreconf -i

Then make the sdk by calling make -j<n>

by anonymous
In my case (Ubuntu 21.04), a patch was still needed - 04-fix-sigstksz.patch

I took it here - https://bugs.openwrt.org/index.php?do=details&task_id=4073

to use, put this patch in a folder /*FW Folder*/tools/m4/patches/