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.
+2 votes
799 views 16 comments
by anonymous

Hi all,

I want to compile a firmware for RUT240 with a default configuration but the standard firmware stop at mac80211.

ERROR: module '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/backports-4.19.193-1/net/mac80211/mac80211.ko' is missing.
Makefile:562: recipe for target '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/bin/ar71xx/packages/base/kmod-mac80211_3.18.44+4.19.193-1-1_ar71xx.ipk' failed
make[4]: *** [/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/bin/ar71xx/packages/base/kmod-mac80211_3.18.44+4.19.193-1-1_ar71xx.ipk] Error 1
make[4]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/package/kernel/mac80211'
package/Makefile:192: recipe for target 'package/kernel/mac80211/compile' failed
make[3]: *** [package/kernel/mac80211/compile] Error 2
make[3]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4'
package/Makefile:189: recipe for target '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile' failed
make[2]: *** [/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[2]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4'
Makefile:95: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4'
/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/include/toplevel.mk:181: recipe for target 'world' failed
make: *** [world] Error 2

I use Ubuntu 16.04 on VMWare Workstation 16 and I apply all the steps mentioned here : https://wiki.teltonika-networks.com/view/RUT_Software_Development_Kit_instructions

I have read this post : https://community.teltonika-networks.com/30536/compilation-error-make-rut9xx_r_gpl_00-06-07-5?show=37517#c37517

But no answer to my problem

Thank you for your help

6 Answers

0 votes
by anonymous
Hi, most likely you will find a solution to your problem in this topic. https://community.teltonika-networks.com/39163/build-failed-for-rutx12-sdk

Best regards.
by anonymous
Thank you for your answer

my modem is not a RUTX, but i have tried to apply this change but it's same

my problem seems to be with mac80211
0 votes
by anonymous

Hello,

From the logs above, it appears you are using the legacy SDK. Is there a reason for that ?

Also from the logs, it is too late to see why the mac80211 compilation has failed. Could you execute a

make -j1 V=s package/kernel/mac80211/compile

and post the trace of the errors at the end ?

Another option is to use a more recent Ubuntu version (21.04).

Regards,

by anonymous

Hello,

yes, my compagnie use much RUT240 with firmware 1.11.2, and I see here that is not possible to upgrade to 7.01. Also i have read that is not fully tested

I have tried to use this version of Ubuntu but the make stop before with another error
But I can retry anyway

the error log :

make[2]: Entering directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/package/kernel/mac80211'
echo '4.19.193-1-1' | cmp -s - /home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/kmod-cfg80211.version || echo '4.19.193-1-1' > /home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/kmod-cfg80211.version
if [ -f /home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/mac80211.default.install.clean ]; then rm -f /home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/mac80211.default.install /home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/mac80211.default.install.clean; fi; echo "kmod-cfg80211" >> /home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/mac80211.default.install
mkdir -p /home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/bin/ar71xx/packages /home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/backports-4.19.193-1/ipkg-ar71xx/kmod-mac80211/CONTROL /home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo
ERROR: module '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/backports-4.19.193-1/net/mac80211/mac80211.ko' is missing.
Makefile:562: recipe for target '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/bin/ar71xx/packages/base/kmod-mac80211_3.18.44+4.19.193-1-1_ar71xx.ipk' failed
make[2]: *** [/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/bin/ar71xx/packages/base/kmod-mac80211_3.18.44+4.19.193-1-1_ar71xx.ipk] Error 1
make[2]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/package/kernel/mac80211'
package/Makefile:192: recipe for target 'package/kernel/mac80211/compile' failed
make[1]: *** [package/kernel/mac80211/compile] Error 2
make[1]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4'
/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/include/toplevel.mk:181: recipe for target 'package/kernel/mac80211/compile' failed
make: *** [package/kernel/mac80211/compile] Error 2

BR

by anonymous

The first error I see is:

module '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/backports-4.19.193-1/net/mac80211/mac80211.ko' is missing

Could you cd to this directory, delete all the .o files and retry the make -j1 ... and show the very first error? There must be something wrong/missing.

BR

by anonymous
Sorry but I haven't any .o in this directory
by anonymous

The /home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/backports-4.19.193-1/net/mac80211 directory of course.

If there isn't any .o file in this folder something must be seriously amiss.

by anonymous
I understood well and I confirm that there is no .o in this file just .c and .h
by anonymous
I have replicated the error with the .14.4 SDK, the old version from ~1 year ago worked fine.

The mac80211.ko is not generated, the Makefile looks suspicious.
by anonymous
Where can I dowload the oldest version ?
0 votes
by anonymous

When I use Ubuntu 18-04-6, I have this error

/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/build_dir/host/automake-1.15.1/lib/missing: line 81: makeinfo: command not found
WARNING: 'makeinfo' is missing on your system.
         You should only need it if you modified a '.texi' file, or
         any other file indirectly affecting the aspect of the manual.
         You might want to install the Texinfo package:
         <http://www.gnu.org/software/texinfo/>
         The spurious makeinfo call might also be the consequence of
         using a buggy 'make' (AIX, DU, IRIX), in which case you might
         want to install GNU make:
         <http://www.gnu.org/software/make/>
Makefile:2518: recipe for target 'doc/automake.info' failed
make[5]: *** [doc/automake.info] Error 127
make[5]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/build_dir/host/automake-1.15.1'
Makefile:50: recipe for target '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/staging_dir/host/stamp/.automake_installed' failed
make[4]: *** [/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/staging_dir/host/stamp/.automake_installed] Error 2
make[4]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/tools/automake'
tools/Makefile:126: recipe for target 'tools/automake/install' failed
make[3]: *** [tools/automake/install] Error 2
make[3]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4'
tools/Makefile:125: recipe for target '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyyyyyyyyyyyyynyyyyynnyyynyyyynnynyy' failed
make[2]: *** [/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.tools_install_yynyynynynyyyyyyyyyyyyyyyyyyyyynyyyyynnyyynyyyynnynyy] Error 2
make[2]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4'
Makefile:95: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4'
/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/include/toplevel.mk:181: recipe for target 'world' failed
make: *** [world] Error 2

Edit : I'm idiot, the solution is in the error :

sudo apt-get install -y texinfo

sudo apt-get install --reinstall make

Edit :

The same error like Ubuntu 16-04

ERROR: module '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/build_dir/target-mips_34kc_uClibc-0.9.33.2/linux-ar71xx_generic/backports-4.19.193-1/net/mac80211/mac80211.ko' is missing.
Makefile:562: recipe for target '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/bin/ar71xx/packages/base/kmod-mac80211_3.18.44+4.19.193-1-1_ar71xx.ipk' failed
make[4]: *** [/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/bin/ar71xx/packages/base/kmod-mac80211_3.18.44+4.19.193-1-1_ar71xx.ipk] Error 1
make[4]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/package/kernel/mac80211'
package/Makefile:192: recipe for target 'package/kernel/mac80211/compile' failed
make[3]: *** [package/kernel/mac80211/compile] Error 2
make[3]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4'
package/Makefile:189: recipe for target '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile' failed
make[2]: *** [/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/staging_dir/target-mips_34kc_uClibc-0.9.33.2/stamp/.package_compile] Error 2
make[2]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4'
Makefile:95: recipe for target 'world' failed
make[1]: *** [world] Error 2
make[1]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4'
/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/include/toplevel.mk:181: recipe for target 'world' failed
make: *** [world] Error 2

 

0 votes
by anonymous

When I use Ubuntu 21-04 :

make[2]: Entering directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4'
make[3]: Entering directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4'
make[3]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4'
tmp/.config-package.in:33720: syntax error
tmp/.config-package.in:33719: invalid option
tmp/.config-package.in:35483: syntax error
tmp/.config-package.in:35482: invalid option
make[2]: *** [/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/include/toplevel.mk:117: menuconfig] Error 1
make[2]: Leaving directory '/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4'
make[1]: *** [/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/include/toplevel.mk:83: .config] Error 2
make: *** [/home/smz/Desktop/RUT2XX_R_GPL_00.01.14.4/include/toplevel.mk:181: world] Error 2

 

0 votes
by anonymous
in other hand, if someone else have a Uduntu who works well to build. If he can provide me all packages installed of his machine

any version, I adapt ;)
by anonymous
I don't, I use Centos 7 with devtoolset-10.
0 votes
by anonymous
solved using an older version
by anonymous
Sorry for joining this subject a bit late. I have been successful with building the new 00.07.01 fw for RUT240 but now I see that teltonika removed it because of a bug. Now i wanted to build the legacy firmware (00.14.04) on ubuntu 21-04 and get the same errors as you mentioned a couple post before. Please can you help me by telling me which older version of ubuntu or sdk are you using. Thank you in advance
by anonymous
I have used ubuntu 18-04-6
by anonymous
And an older SDK ...
by anonymous

You have to send a message to networks.gpl@teltonika.lt

by anonymous
thank you for the prompt response. Ive been using the same sdk as you, so its probably because of the ubuntu version. Did you use any other commands apart from the ones in the readme filea and the script updates?im getting error messages on 21.10. as we both experienced on 21.04. so im going to try with 18.04.06

make[2]: Entering directory '/home/davor/legacy/RUT2XX_R_GPL_00.01.14.4'
make[3]: Entering directory '/home/davor/legacy/RUT2XX_R_GPL_00.01.14.4'
make[3]: Leaving directory '/home/davor/legacy/RUT2XX_R_GPL_00.01.14.4'
tmp/.config-package.in:33716: syntax error
tmp/.config-package.in:33715: invalid option
tmp/.config-package.in:35491: syntax error
tmp/.config-package.in:35490: invalid option
make[2]: *** [/home/davor/legacy/RUT2XX_R_GPL_00.01.14.4/include/toplevel.mk:117: menuconfig] Error 1
make[2]: Leaving directory '/home/davor/legacy/RUT2XX_R_GPL_00.01.14.4'
make[1]: *** [/home/davor/legacy/RUT2XX_R_GPL_00.01.14.4/include/toplevel.mk:83: .config] Error 2
make: *** [/home/davor/legacy/RUT2XX_R_GPL_00.01.14.4/include/toplevel.mk:181: world] Error 2
by anonymous

you must have this SDK RUT2XX_R_GPL_00.01.14.tar.gz from networks.gpl@teltonika.lt

RUT2XX_R_GPL_00.01.14.4.tar.gz The mac80211.ko is not generated, the Makefile looks suspicious

by anonymous
thank you, i was messaged the 1.14. version