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
709 views 7 comments
by anonymous
Hi, I'm trying to compile a new clean (no change) version of TRB1_R_00.07.04 for TRB140 as per the new SDK guide and unfortunately it still fails. Tried on KALI, Ubuntu 20.04 and now 18.04 - none of them worked.

Attached is the build process file.

I will be grateful for your help or any suggestions

1 Answer

0 votes
by anonymous
Hi. Today I installed Ubuntu on a Virtual Machine and here is the result:
qy@qy-VirtualBox:~/RUT_R/rutos-mdm9x07-trb1-gpl$ make

WARNING: Makefile 'package/teltonika/qualcomm/data/Makefile' has a build dependency on 'qti-common-headers', which does not exist

WARNING: Makefile 'package/teltonika/qualcomm/data/Makefile' has a build dependency on 'android-system-core-headers', which does not exist

WARNING: Makefile 'package/teltonika/qualcomm/libcutils/Makefile' has a build dependency on 'android-system-core-headers', which does not exist

WARNING: Makefile 'package/teltonika/qualcomm/libqmi-ex/Makefile' has a build dependency on 'qti-common-headers', which does not exist

time: target/linux/prereq#0.05#0.01#0.06

 make[1] world

 make[2] tools/compile

 make[3] -C tools/flock compile

 make[3] -C tools/xz compile

 make[3] -C tools/sed compile

 make[3] -C tools/tar compile

 make[3] -C tools/patch compile

 make[3] -C tools/m4 compile

 make[3] -C tools/autoconf compile

 make[3] -C tools/autoconf-archive compile

 make[3] -C tools/pkgconf compile

 make[3] -C tools/automake compile

 make[3] -C tools/missing-macros compile

 make[3] -C tools/libtool compile

 make[3] -C tools/flex compile

 make[3] -C tools/bison compile

 make[3] -C tools/bc compile

 make[3] -C tools/libressl compile

 make[3] -C tools/cmake compile

 make[3] -C tools/dosfstools compile

 make[3] -C tools/e2fsprogs compile

 make[3] -C tools/fakeroot compile

 make[3] -C tools/findutils compile

 make[3] -C tools/zlib compile

 make[3] -C tools/firmware-utils compile

 make[3] -C tools/gengetopt compile

 make[3] -C tools/lzma compile

 make[3] -C tools/make-ext4fs compile

 make[3] -C tools/mkimage compile

 make[3] -C tools/mklibs compile

 make[3] -C tools/mm-macros compile

 make[3] -C tools/mtd-utils compile

 make[3] -C tools/mtools compile

 make[3] -C tools/padjffs2 compile

 make[3] -C tools/patch-image compile

 make[3] -C tools/usign compile

make[3] -C tools/patchelf compile

 make[3] -C tools/quilt compile

 make[3] -C tools/squashfskit4 compile

 make[3] -C tools/sstrip compile

 make[3] -C tools/zip compile

 make[3] -C tools/zstd compile

 make[3] -C tools/expat compile

 make[3] -C tools/gmp compile

 make[3] -C tools/libelf compile

 make[3] -C tools/mpfr compile

 make[3] -C tools/mpc compile

 make[3] -C tools/mkbootimg compile

 make[3] -C tools/dtbtool compile

 make[2] toolchain/compile

 make[3] -C toolchain/gdb compile

 make[3] -C toolchain/binutils compile

 make[3] -C toolchain/gcc/initial compile

 make[3] -C toolchain/kernel-headers compile

 make[3] -C toolchain/musl compile

 make[3] -C toolchain/gcc/final compile

 make[3] -C toolchain/fortify-headers compile

 make[2] target/compile

 make[3] -C target/linux compile

    ERROR: target/linux failed to build.

make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on

/home/qy/RUT_R/rutos-mdm9x07-trb1-gpl/include/toplevel.mk:232: recipe for target 'world' failed

make: *** [world] Error 1
by anonymous
Hello,

Could you execute:

make -j 1 V=sc target/linux/compile 2>&1 | tee makelog.txt

and post he makelog file somewhere ?

Regards,
by anonymous
Hi,

I have the file done

make -j1 V=s

in this location: https://drive.google.com/file/d/1q3x9o5Dr1Qaw5dqmWikBbcl7A3-irj1_/view?usp=share_link

In the meantime, I'll do what you suggested and let you know

Reg Peter
by anonymous
OK

 it went faster than I thought, the makelog file is here:

https://drive.google.com/file/d/1wFAxibZRlKbuCCACPvGupj3tFQfhtAPI/view?usp=sharing

Reg Peter
by anonymous

From the makelog:

/bin/sh: 1: lz4c: not found


apt-get install lz4, and retry.

by anonymous
I installed lz4 and ran the build but unfortunately it failed again. New makelog here:

https://drive.google.com/file/d/19fHj4kJpuCRtol6sXjPzATqcUoNZC7yh/view?usp=sharing

Reg Peter
by anonymous

I suspect there may be permissions issues in your tree. If you still have it go back to Ubuntu 20.404 and restart from scratch, but extract the files with the following command:

tar xovfz TRB1_R_00.07.04.tar.gz

not the one given in the README;

by anonymous
Hi,

After installing Ub 22.04 and unpacking the file as you wrote, everything went well.

I'm closing this thread.

Thanks a lot.

Reg Peter