mirror/dd-wrt

trying to compile for arm

Yossefosman opened this issue · 1 comments

I would be grateful for any help i didn't find any updated instructions on any website
Disclaimer i am not an expert i tried to use /opt/install.sh and some other .sh but i don't think it has any connection to arm so i moved to src/router there i found a makefile but inside it i didn't find any reference to arm then i looked inside makefile.northstar in this i found something

ifeq ($(ARCH),arm)
export COPTS:=$(BASEOPT) -pipe -mcpu=cortex-a9 -mtune=cortex-a9  -msoft-float -mfloat-abi=soft -fno-caller-saves -fno-plt

so i renamed Makefile.northstar to Makefile and tried this

export PATH="/home/gamer24/Desktop/broadcom-4708/ddwrt/dd-wrt/toolchains/toolchain-arm_cortex-a9_gcc-8.2.0_musl_eabi/bin:$PATH"

then make

the following was

stat: missing operand
Try 'stat --help' for more information.
rules/iptables.mk:43: warning: overriding recipe for target 'iptables-distclean'
rules/iptables-new.mk:37: warning: ignoring old recipe for target 'iptables-distclean'
rules/lighttpd.mk:26: warning: overriding recipe for target 'lighttpd-configure'
rules/lighttpd.mk:26: warning: ignoring old recipe for target 'lighttpd-configure'
rules/lighttpd.mk:31: warning: overriding recipe for target 'lighttpd'
rules/lighttpd.mk:31: warning: ignoring old recipe for target 'lighttpd'
rules/lighttpd.mk:34: warning: overriding recipe for target 'lighttpd-clean'
rules/lighttpd.mk:34: warning: ignoring old recipe for target 'lighttpd-clean'
rules/lighttpd.mk:37: warning: overriding recipe for target 'lighttpd-install'
rules/lighttpd.mk:37: warning: ignoring old recipe for target 'lighttpd-install'
[ ! -d rules/atm.mk ] || make -C rules/atm.mk
[ ! -d rules/oled.mk ] || make -C rules/oled.mk
[ ! -d rules/mmc-ixp4xx.mk ] || make -C rules/mmc-ixp4xx.mk
mkdir -p /home/gamer24/Desktop/broadcom-4708/ddwrt/dd-wrt/src/router/kernel_headers/4.4.245
make -C /home/gamer24/Desktop/broadcom-4708/ddwrt/dd-wrt/src/linux/universal/linux-4.4 headers_install ARCH=arm INSTALL_HDR_PATH=/home/gamer24/Desktop/broadcom-4708/ddwrt/dd-wrt/src/router/kernel_headers/4.4.245
make[1]: Entering directory '/home/gamer24/Desktop/broadcom-4708/ddwrt/dd-wrt/src/linux/universal/linux-4.4'
  CHK     include/generated/uapi/linux/version.h
make[1]: Leaving directory '/home/gamer24/Desktop/broadcom-4708/ddwrt/dd-wrt/src/linux/universal/linux-4.4'
echo "#define BUILD_DATE \"11/26/20\"" > ../../opt/build.h 
echo "CONFIG_MUSL=y" >> .config 
rm -rf /home/gamer24/Desktop/broadcom-4708/ddwrt/dd-wrt/src/router/arm-uclibc/target
rm -rf /home/gamer24/Desktop/broadcom-4708/ddwrt/dd-wrt/src/router/arm-uclibc/install
make -C nvram
make[1]: Entering directory '/home/gamer24/Desktop/broadcom-4708/ddwrt/dd-wrt/src/router/nvram'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/gamer24/Desktop/broadcom-4708/ddwrt/dd-wrt/src/router/nvram'
make -C libutils
make[1]: Entering directory '/home/gamer24/Desktop/broadcom-4708/ddwrt/dd-wrt/src/router/libutils'
[CC] libutils/utils.o
libutils/utils.c: In function 'setWifiPass':
libutils/utils.c:152:12: warning: variable 'tok' set but not used [-Wunused-but-set-variable]
      char *tok, *val;
            ^~~
libutils/utils.c:85:11: warning: unused variable 'type' [-Wunused-variable]
  int mtd, type;
           ^~~~
libutils/utils.c: In function 'check_wan_link':
libutils/utils.c:426:6: warning: unused variable 'ppp3g' [-Wunused-variable]
  int ppp3g = 1;
      ^~~~~
libutils/utils.c: At top level:
libutils/utils.c:1250:10: fatal error: revision.h: No such file or directory
 #include "revision.h"
          ^~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:1643: libutils/utils.o] Error 1
make[1]: Leaving directory '/home/gamer24/Desktop/broadcom-4708/ddwrt/dd-wrt/src/router/libutils'
make: *** [rules/libutils.mk:19: libutils] Error 2

revision.h is a generated header

example
cat revision.h
#define SVN_REVISION "47492"