What's new

MerlinWRT - compile instructions?

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

Thank you. Is the smaller size of the 32 bit binaries the only reason ASUS has chosen to use this mix (64 bit for the kernel and 32 bit for the programs)?
I don't know. I suspect memory usage might have been a factor. Broadcom might have had other technical reasons to stick to 32-bit userspace with their SDK. Switching 15+ years old code to a new 64-bit architecture would be a major undertaking requiring extensive QA - something Broadcom might have felt wasn't worth the effort.
 
Hi all.

Apologies to resurrect an old thread, but having issues building from source (master). Tried in both WSL2 and a standalone VM. Ubuntu 20.04. Rolled back to automake-1.15, as well.

AC68U (NG source):
Fails on:
release/src-rt-6.x.4708/router/aaews/prebuild/RT-AC68U/aae_ipc.o': No such file or directory
make[5]: *** [Makefile:516: aae_ipc.o] Error 1

Any ideas?

Thank you.
 
Hi all.

Apologies to resurrect an old thread, but having issues building from source (master). Tried in both WSL2 and a standalone VM. Ubuntu 20.04. Rolled back to automake-1.15, as well.

AC68U (NG source):
Fails on:
release/src-rt-6.x.4708/router/aaews/prebuild/RT-AC68U/aae_ipc.o': No such file or directory
make[5]: *** [Makefile:516: aae_ipc.o] Error 1

Any ideas?

Thank you.
RT-AC68U cannot be built from master, only from 386_x.
 
I tried to compile a firmware version with debug info,but i keep encounter this :
~/amng-build/release/src-rt-7.14.114.x/src$ make rt-ac88u

make bin
make[1]: Entering directory '~/amng-build/release/src-rt-7.14.114.x/src'
# prepare config_base
# prepare prebuilt kernel binary
make[2]: Entering directory '~/amng-build/release/src-rt-7.14.114.x/src'

Using profile, build config.

if grep -q "CONFIG_RALINK_MT7628=y" ~/amng-build/release/src-rt-7.14.114.x/src/linux/linux-2.6/.config ; then \
sed -i "/RTCONFIG_WLMODULE_MT7628_AP/d" router/.config; \
echo "RTCONFIG_WLMODULE_MT7628_AP=y" >> router/.config; \
echo "CONFIG_RALINK_MT7628!!!!"; \
fi
make -C router oldconfig
make[3]: Entering directory '~/amng-build/release/src/router'
"CLM In ~/amng-build/release/src-rt-7.14.114.x/src/../4365/src/wl/clm/src/ NOT CREATING new clm_blob ..."
make -C ~/amng-build/release/src-rt-7.14.114.x/src/linux/linux-2.6.36 oldconfig
make[4]: Entering directory '~/amng-build/release/src-rt-7.14.114.x/src/linux/linux-2.6.36'
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
scripts/basic/docproc.c: In function ‘docsect’:
scripts/basic/docproc.c:336:9: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
336 | asprintf(&s, "DOC: %s", line);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --oldconfig arch/arm/Kconfig
.config:576:warning: override: reassigning to symbol IP_SET_HASH_IPMARK
.config:580:warning: override: reassigning to symbol IP_SET_HASH_NETNET
.config:581:warning: override: reassigning to symbol IP_SET_HASH_NETPORTNET
.config:1903:warning: override: reassigning to symbol DUMP_PREV_OOPS_MSG
.config:1904:warning: override: reassigning to symbol DUMP_PREV_OOPS_MSG_BUF_ADDR
.config:1905:warning: override: reassigning to symbol DUMP_PREV_OOPS_MSG_BUF_LEN
.config:1951:warning: override: reassigning to symbol XFRM
.config:1956:warning: override: reassigning to symbol INET
.config:1961:warning: override: reassigning to symbol INET_TUNNEL
.config:1964:warning: override: reassigning to symbol NETFILTER
.config:1965:warning: override: reassigning to symbol NETFILTER_XTABLES
.config:1966:warning: override: reassigning to symbol NETFILTER_XT_MATCH_POLICY
.config:1967:warning: override: reassigning to symbol XFRM_SUB_POLICY
.config:1968:warning: override: reassigning to symbol XFRM_MIGRATE
.config:1969:warning: override: reassigning to symbol XFRM_STATISTICS
.config:1970:warning: override: reassigning to symbol NET_KEY_MIGRATE
.config:1976:warning: override: reassigning to symbol INET6_XFRM_MODE_TRANSPORT
.config:1977:warning: override: reassigning to symbol INET6_XFRM_MODE_TUNNEL
.config:1978:warning: override: reassigning to symbol IPV6_MULTIPLE_TABLES
.config:1980:warning: override: reassigning to symbol INET6_XFRM_MODE_BEET
#
# configuration written to .config
#
make[4]: Leaving directory '~/amng-build/release/src-rt-7.14.114.x/src/linux/linux-2.6.36'
make -C ~/amng-build/release/src-rt-7.14.114.x/src/linux/linux-2.6.36 include/linux/version.h
make[4]: Entering directory '~/amng-build/release/src-rt-7.14.114.x/src/linux/linux-2.6.36'
CHK include/linux/version.h
UPD include/linux/version.h
make[4]: Leaving directory '~/amng-build/release/src-rt-7.14.114.x/src/linux/linux-2.6.36'
make -C config
make[4]: Entering directory '~/amng-build/release/src/router/config'
lxtemp.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | main() {}
| ^~~~
cp zconf.tab.h_shipped zconf.tab.h
gcc -I. -c conf.c -o conf.o
cp zconf.tab.c_shipped zconf.tab.c
cp lex.zconf.c_shipped lex.zconf.c
gcc -I. -c zconf.tab.c -o zconf.tab.o
gcc conf.o zconf.tab.o -o conf
gcc -DCURSES_LOC="<ncurses.h>" -I. -c mconf.c -o mconf.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c checklist.c -o checklist.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c menubox.c -o menubox.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c textbox.c -o textbox.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c yesno.c -o yesno.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c inputbox.c -o inputbox.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c util.c -o util.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c msgbox.c -o msgbox.o
gcc mconf.o checklist.o menubox.o textbox.o yesno.o inputbox.o util.o msgbox.o zconf.tab.o -o mconf -lncurses
/usr/bin/ld: zconf.tab.o:(.bss+0x8a8): multiple definition of `current_menu'; mconf.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:59: mconf] Error 1
make[4]: Leaving directory '~/amng-build/release/src/router/config'
make[3]: *** [Makefile:2250: config/conf] Error 2
make[3]: Leaving directory '~/amng-build/release/src/router'
make[2]: *** [Makefile:4502: setprofile] Error 2
make[2]: Leaving directory '~/amng-build/release/src-rt-7.14.114.x/src'
make[1]: *** [Makefile:4328: bin] Error 2
make[1]: Leaving directory '~/amng-build/release/src-rt-7.14.114.x/src'
make: *** [Makefile:4473: rt-ac88u] Error 2,
i don`t kown how to fix this
is there something wrong with source code?
 

Latest 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!
Top