SWRT-dev / swrt-gpl

support bcm470x ipq40xx ipq807x mt7621 mt798x

Home Page:https://swrt.site/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to make RT-AX53U firmware

75Tushar opened this issue · comments

axiom@axiom-pc:~$ cd mtk-toolchains
axiom@axiom-pc:~/mtk-toolchains$ sudo ln -sf $(pwd)/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.24 /opt/
[sudo] password for axiom: 
axiom@axiom-pc:~/mtk-toolchains$ cd ../swrt-gpl/release/src-mtk-mips
axiom@axiom-pc:~/swrt-gpl/release/src-mtk-mips$ make rt-ax53u
/bin/sh: 1: cd: can't cd to /home/axiom/swrt-gpl/release/src-mtk-mips/../sdk
CONFIGURED MODEL: 
SPECIFIED  MODEL: RT-AX53U
DEFINED MODEL:    
----------------------------------------------------------------------------
!!! MODEL NAME MISMATCH.  REMOVE .config AND MAKE AGAIN. !!!
make: *** [Makefile:5833: rt-ax53u] Error 1

any solution?

!!! MODEL NAME MISMATCH. REMOVE .config AND MAKE AGAIN. !!!

Output with make rt-ax53u

axiom@axiom-pc:~/swrt-gpl/release/src-mtk-mips$ make rt-ax53u
/bin/sh: 1: cd: can't cd to /home/axiom/swrt-gpl/release/src-mtk-mips/../sdk
CONFIGURED MODEL: 
SPECIFIED  MODEL: RT-AX53U
DEFINED MODEL:    
----------------------------------------------------------------------------
!!! MODEL NAME MISMATCH.  REMOVE .config AND MAKE AGAIN. !!!
make: *** [Makefile:5833: rt-ax53u] Error 1

After removing .config

axiom@axiom-pc:~/swrt-gpl/release/src-mtk-mips$ make rt-ax53u
/bin/sh: 1: cd: can't cd to /home/axiom/swrt-gpl/release/src-mtk-mips/../sdk
/bin/sh: 1: export: 3LANPORT_DEVICE: bad variable name
make: *** [Makefile:5833: rt-ax53u] Error 2

Output with make rtax53u

axiom@axiom-pc:~/swrt-gpl/release/src-mtk-mips$ make rtax53u
/bin/sh: 1: cd: can't cd to /home/axiom/swrt-gpl/release/src-mtk-mips/../sdk

I have tried for others model too. It shows same error. Though I'm not an expert, Tried to edit Makefile Ln 116, Col 1
export SDK_DIR := $(shell (cd $(shell pwd)/../sdk && pwd -P)) I was not successful.

@paldier I saw your update. I tried again. Output is below

axiom@axiom-pc:~/swrt-gpl/release/src-mtk-mips$ make rt-ax53u
warning: ignoring broken ref refs/tags/asuswrt_4.0.0.4.386rc4
warning: ignoring broken ref refs/tags/asuswrt_4.0.0.4.386rc4
fatal: ambiguous argument 'asuswrt_4.0.0.4.386rc4': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
CONFIGURED MODEL: 
SPECIFIED  MODEL: RT-AX53U
DEFINED MODEL:    
----------------------------------------------------------------------------
!!! MODEL NAME MISMATCH.  REMOVE .config AND MAKE AGAIN. !!!
make: *** [Makefile:5835: rt-ax53u] Error 1

axiom@axiom-pc:~/swrt-gpl/release/src-mtk-mips$ rm .config

axiom@axiom-pc:~/swrt-gpl/release/src-mtk-mips$ make rt-ax53u
warning: ignoring broken ref refs/tags/asuswrt_4.0.0.4.386rc4
warning: ignoring broken ref refs/tags/asuswrt_4.0.0.4.386rc4
fatal: ambiguous argument 'asuswrt_4.0.0.4.386rc4': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
/bin/sh: 1: export: 3LANPORT_DEVICE: bad variable name
make: *** [Makefile:5835: rt-ax53u] Error 2

axiom@axiom-pc:~/swrt-gpl/release/src-mtk-mips$ make rtax53u
warning: ignoring broken ref refs/tags/asuswrt_4.0.0.4.386rc4
warning: ignoring broken ref refs/tags/asuswrt_4.0.0.4.386rc4
fatal: ambiguous argument 'asuswrt_4.0.0.4.386rc4': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken
fatal: cannot lock ref 'refs/tags/asuswrt_4.0.0.4.386rc4': unable to resolve reference 'refs/tags/asuswrt_4.0.0.4.386rc4': reference broken

I have only tested on ubuntu/debian/mint, perhaps your os/git doesn't support git tag -fa.

export RUN_TAG=$(shell git tag -fa asuswrt_$(KERNEL_VER).$(FS_VER).$(SERIALNO)$(RCSTRING) -m "Released $(RCSTRING)" HEAD)

I'm using Ubuntu 22.04 LTS.
Which OS version are you using?

Please build a RT-AX53U firmware and update swrt.site database.