What's new

Need help building Merlin firmware 382

  • 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!

hvluu

Occasional Visitor
So I was trying to build Merlin firmware 382 beta 2.1 for RT-AC86U (his latest release was beta 2)but because the module xt_set was not compiled and I need it in order for the potable to work properly so instead of waiting for his next release I kinda want to build one now for myself so the iptable will work properly. However, I ran across some errors while building it. I followed the instruction from the wiki, as well as link the toolchain for building the firmware so pretty much everything is setup. Below is the output and errors while building the firmware.

https://pastebin.com/raw/z1G35rtS

I'd appreciate if anyone can help me out.
 
Make sure your default shell is bash. Broadcom's HND build environment no longer works with other shells such as sh. /bin/sh must symlink to bash.
 
My default shell is bash.
And from the look of the output, there are couple missing files, such as
bcm_thermal.o, and wl.o.

Check that symlink, it's what the Makefile will try to use.

bcm_thermal.o isn't used by Asuswrt so it's normal. wl.o isn't used either because the router uses dhd (running on the SoC) rather than wl (which would be running on the main CPU).
 
Check that symlink, it's what the Makefile will try to use.

bcm_thermal.o isn't used by Asuswrt so it's normal. wl.o isn't used either because the router uses dhd (running on the SoC) rather than wl (which would be running on the main CPU).
So I symlink'd the sh to bash, still make bash as the default shell. Now after I ran
Code:
make rt-ac86u
, I was able to get more out of it this time but still failed. This is the end of the output, above it was the info of my CPU, and all of the flags.
Code:
################ parallel build environment end ##################
shell is /bin/sh.  Bash version is 4.4.12(1)-release
***************************************************
ERROR: Attempting to build as root.
***************************************************
/root/am382.ac86/release/src-rt-5.02hnd/make.common:2671: recipe for target 'prebuild_checks' failed
make[2]: *** [prebuild_checks] Error 1
make[2]: Leaving directory '/root/am382.ac86/release/src-rt-5.02hnd'
Makefile:3749: recipe for target 'bin' failed
make[1]: *** [bin] Error 2
make[1]: Leaving directory '/root/am382.ac86/release/src-rt-5.02hnd'
Makefile:3898: recipe for target 'rt-ac86u' failed
make: *** [rt-ac86u] Error 2
 
So I symlink'd the sh to bash, still make bash as the default shell. Now after I ran
Code:
make rt-ac86u
, I was able to get more out of it this time but still failed. This is the end of the output, above it was the info of my CPU, and all of the flags.
Code:
################ parallel build environment end ##################
shell is /bin/sh.  Bash version is 4.4.12(1)-release
***************************************************
ERROR: Attempting to build as root.
***************************************************
/root/am382.ac86/release/src-rt-5.02hnd/make.common:2671: recipe for target 'prebuild_checks' failed
make[2]: *** [prebuild_checks] Error 1
make[2]: Leaving directory '/root/am382.ac86/release/src-rt-5.02hnd'
Makefile:3749: recipe for target 'bin' failed
make[1]: *** [bin] Error 2
make[1]: Leaving directory '/root/am382.ac86/release/src-rt-5.02hnd'
Makefile:3898: recipe for target 'rt-ac86u' failed
make: *** [rt-ac86u] Error 2

You can see the reason in what you posted, the error message is quite clear.
 

Similar threads

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!

Staff online

Top