SWRT-dev / swrt-gpl

support bcm470x ipq40xx ipq807x mt7621 mt798x
https://swrt.site/
Other
65 stars 33 forks source link

Unable to make RT-AX53U firmware #7

Closed 75Tushar closed 1 year ago

75Tushar commented 2 years ago
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?

paldier commented 2 years ago

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

75Tushar commented 2 years ago

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.

75Tushar commented 2 years ago

@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
paldier commented 2 years ago

I have only tested on ubuntu/debian/mint, perhaps your os/git doesn't support git tag -fa. https://github.com/SWRT-dev/swrt-gpl/blob/cd1ba230af0e545ae1450860d8a4741e3226540b/release/src-rt/Makefile#L179

75Tushar commented 1 year ago

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

75Tushar commented 1 year ago

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