Closed 75Tushar closed 1 year ago
!!! 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
.
https://github.com/SWRT-dev/swrt-gpl/blob/cd1ba230af0e545ae1450860d8a4741e3226540b/release/src-rt/Makefile#L179
I'm using Ubuntu 22.04 LTS. Which OS version are you using?
any solution?