What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Compile errors stock asuswrt

Shonk

Senior Member
Im trying to compile GPL of ASUS RT-AC66U for firmware 3.0.0.4.374.5517

I tried on fedora x64 yesterday

then tried on ubuntu 32bit today

both are giving the same error

I presume either im missing something or there's a problem with the source
does anyone have any idea plz as its driving me mad


WARNING: drivers/built-in.o(.text+0x88470): Section mismatch: reference to .init.data:ram_nvram_buf (between 'early_nvram_init' and 'nvram_getall')
WARNING: drivers/built-in.o(.text+0x8849c): Section mismatch: reference to .init.data:ram_nvram_buf (between 'early_nvram_init' and 'nvram_getall')
WARNING: drivers/built-in.o(.text+0x884a8): Section mismatch: reference to .init.data:ram_nvram_buf (between 'early_nvram_init' and 'nvram_getall')
make[4]: Leaving directory `/root/asuswrt/release/src-rt/linux/linux-2.6'
if grep -q "CONFIG_MODULES=y" /root/asuswrt/release/src-rt-6.x/linux/linux-2.6/.config ; then \
make -C /root/asuswrt/release/src-rt-6.x/linux/linux-2.6 modules CC=/opt/brcm/K26/hndtools-mipsel-linux-uclibc-4.2.3/bin/mipsel-linux-uclibc-gcc; \
fi
make[4]: Entering directory `/root/asuswrt/release/src-rt/linux/linux-2.6'
CHK include/linux/version.h
CHK include/linux/utsrelease.h
CALL scripts/checksyscalls.sh
make[7]: *** No rule to make target `drivers/net/emf/../../../../../router/emf/emf.o', needed by `drivers/net/emf/emf.o'. Stop.
make[6]: *** [drivers/net/emf] Error 2
make[5]: *** [drivers/net] Error 2
make[4]: *** [drivers] Error 2
make[4]: Leaving directory `/root/asuswrt/release/src-rt/linux/linux-2.6'
make[3]: *** [kernel] Error 2
make[3]: Leaving directory `/root/asuswrt/release/src/router'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/asuswrt/release/src-rt-6.x'
make[1]: *** [bin] Error 2
make[1]: Leaving directory `/root/asuswrt/release/src-rt-6.x'
make: *** [rt-ac66u] Error 2
root@shonk:~/asuswrt/release/src-rt-6.x#
 
Looks like a wrong SDK. Are you sure "make" was started from asuswrt-merlin/release/src-rt-6.x folder?
 
its stock asuswrt 5517 not merlin

yes from src-rt-6.x

Asus frequently forgets to include some files in their GPL release. In this case it seems to he the EMF pre-compiled binaries.

You can get the two of them from my Git repo (emf.o and igms.o). They are the same as used by Asus, I'm probably using these from a previous GPL release that did contain them.
 
Thought as much i have been compiling asuswrt-merlin for a good 45 mins with no errors so far, will try 5517 again as soon as its finished

i presume all i need to fix it is

cp /root/asuswrt-merlin/release/src/router/emf/emf.o /root/asuswrt/release/src/router/emf
cp /root/asuswrt-merlin/release/src/router/emf/igs.o /root/asuswrt/release/src/router/emf
 
Last edited:
Next error lol

make[4]: Entering directory `/root/asuswrt/release/src/router/libbcm'
cp -f ./prebuilt/libbcm.so .
cp: cannot stat ‘./prebuilt/libbcm.so’: No such file or directory
make[4]: *** [all] Error 1
make[4]: Leaving directory `/root/asuswrt/release/src/router/libbcm'
make[3]: *** [libbcm] Error 2
make[3]: Leaving directory `/root/asuswrt/release/src/router'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/asuswrt/release/src-rt-6.x'
make[1]: *** [bin] Error 2
make[1]: Leaving directory `/root/asuswrt/release/src-rt-6.x'
make: *** [rt-ac66u] Error 2


cp -r /root/asuswrt-merlin/release/src/router/libbcm/prebuild /root/asuswrt/release/src/router/libbcm
cd /root/asuswrt/release/src/router/libbcm
mv ./prebuild ./prebuilt
 
Last edited:
Next... think im gona be here all day

eapd/linux
make[4]: Entering directory `/root/asuswrt/release/src/router/eapd/linux'
cp prebuilt/eapd eapd
cp: cannot stat ‘prebuilt/eapd’: No such file or directory
make[4]: [all] Error 1 (ignored)
make[4]: Leaving directory `/root/asuswrt/release/src/router/eapd/linux'
libupnp
make[4]: Entering directory `/root/asuswrt/release/src/router/libupnp'
cp -f ./prebuilt/libupnp.so .
cp: cannot stat ‘./prebuilt/libupnp.so’: No such file or directory
make[4]: *** [all] Error 1
make[4]: Leaving directory `/root/asuswrt/release/src/router/libupnp'
make[3]: *** [libupnp] Error 2
make[3]: Leaving directory `/root/asuswrt/release/src/router'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/asuswrt/release/src-rt-6.x'
make[1]: *** [bin] Error 2
make[1]: Leaving directory `/root/asuswrt/release/src-rt-6.x'
make: *** [rt-ac66u] Error 2

cd /root/asuswrt-merlin/release/src/root/libupnp
cp ./libupnp.so /root/asuswrt/release/src/router/libupnp
cd /root/asuswrt/release/src/root/libupnp
mkdir prebuilt
mv ./libupnp.so ./prebuilt


cd /root/asuswrt-merlin/release/src/router/eapd/linux
cp -r ./prebuild /root/asuswrt/release/src/router/eapd/linux
cd /root/asuswrt/release/src/router/eapd/linux
mv ./prebuild ./prebuilt
 
Last edited:
umm this source is a joke


make[6]: Entering directory `/root/asuswrt/release/src/router/wps/wps_ap'
make[6]: *** No rule to make target `/root/asuswrt/release/src-rt-6.x/../src/wps/common/shared/tutrace.c', needed by `obj/wps/common/shared/tutrace.o'. Stop.
make[6]: Leaving directory `/root/asuswrt/release/src/router/wps/wps_ap'
make[5]: *** [libobjs] Error 2
make[5]: Leaving directory `/root/asuswrt/release/src/router/wps/wps_ap'
make[4]: *** [_dir_wps_ap] Error 2
make[4]: Leaving directory `/root/asuswrt/release/src/router/wps'
make[3]: *** [wps] Error 2
make[3]: Leaving directory `/root/asuswrt/release/src/router'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/asuswrt/release/src-rt-6.x'
make[1]: *** [bin] Error 2
make[1]: Leaving directory `/root/asuswrt/release/src-rt-6.x'
make: *** [rt-ac66u] Error 2
 
Cant we request they provide working source's as for all i know there could be
50 more of these

they clearly havnt built the images with this
 
Next... think im gona be here all day
Oh, yes. The next will be lighttpd AiCloud modules and so on.

Cant we request they provide working source's as for all i know there could be
50 more of these

they clearly havnt built the images with this
I've tried two years ago with no success, then I've pulled missing binaries right from firmware images. Now I dropped it to hell, I've got no mood\time for fighting with Asus for sources.
 
if they are pulling binary's due to problems with broadcom etc..
the least they could do is document pulled binary's

so they can be ripped from the images
 
They may have problems with Broadcom because of sources, I think. Not binaries.

Whether or not, build tree is broken for more than 2 years:(
 
if they are pulling binary's due to problems with broadcom etc..
the least they could do is document pulled binary's

so they can be ripped from the images

It's probably just their script that cleans up non-GPL components that is quirky, or they are forgetting a few precompiled files while manually preparing the archive (the source tree is different from the one from which they build the actual firmware). Legally, it's fine for them to provide those binary blobs. The missing files will vary between GPL releases and router platforms.

Some of these can indeed be ripped from released firmwares - executables such as wps_monitor or wl. The linkable objects such as emf.o or libupnp.o however cannot. Those files rarely change at all however, so usually once you get a copy of them from one tarball, you can keep the same one in future tarballs that might be missing it. That's what I do, using FMK.
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top