neurobin / MT7630E

Modified easy installation package
https://neurobin.org/projects/softwares/unix/MT7630E/
233 stars 72 forks source link

TWO ERRORS UNDER KERNEL 5.4 ! #102

Closed JUPITER-KOU closed 4 years ago

JUPITER-KOU commented 4 years ago

root@X550CC:/home/gjp/MT7630E-pie-fix# ./install make -C /lib/modules/5.4.0-kali4-rt-amd64/build M=/home/gjp/MT7630E-pie-fix/rt2x00 modules make[1]: 进入目录“/usr/src/linux-headers-5.4.0-kali4-rt-amd64” CC [M] /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.o In file included from /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:32: /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h: In function ‘rt2x00_rf_read’: /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:98:19: error: expected ‘(’ before ‘static’ 98 | #define inline static inline | ^~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/compiler_types.h:210:24: note: in expansion of macro ‘__inline’ 210 | #define asm_inline asm inline | ^~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’ 35 | asm_inline volatile("1:\t" ins "\n" \ | ^~~~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’ 73 | _BUG_FLAGS(ASM_UD2, 0); \ | ^~~~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’ 62 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~ /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:2453:2: note: in expansion of macro ‘BUG_ON’ 2453 | BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32)); | ^~ In file included from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/bug.h:5, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/thread_info.h:12, from /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/preempt.h:7, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/preempt.h:78, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/spinlock.h:51, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/seqlock.h:36, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/time.h:6, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/stat.h:19, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/module.h:10, from /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:28: /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant 35 | asm_inline volatile("1:\t" ins "\n" \ | ^~ /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’ 73 | _BUG_FLAGS(ASM_UD2, 0); \ | ^~~~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’ 62 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~ /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:2453:2: note: in expansion of macro ‘BUG_ON’ 2453 | BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32)); | ^~ In file included from /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:32: /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:98:19: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 98 | #define inline static inline | ^~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/compiler_types.h:210:24: note: in expansion of macro ‘__inline’ 210 | #define asm_inline asm inline | ^~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’ 35 | asm_inline volatile("1:\t" ins "\n" \ | ^~~~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’ 73 | _BUG_FLAGS(ASM_UD2, 0); \ | ^~~~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’ 62 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~ /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:2453:2: note: in expansion of macro ‘BUG_ON’ 2453 | BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32)); | ^~ /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h: In function ‘rt2x00_rf_write’: /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:98:19: error: expected ‘(’ before ‘static’ 98 | #define inline static inline | ^~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/compiler_types.h:210:24: note: in expansion of macro ‘__inline’ 210 | #define asm_inline asm inline | ^~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’ 35 | asm_inline volatile("1:\t" ins "\n" \ | ^~~~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’ 73 | _BUG_FLAGS(ASM_UD2, 0); \ | ^~~~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’ 62 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~ /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:2460:2: note: in expansion of macro ‘BUG_ON’ 2460 | BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32)); | ^~ In file included from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/bug.h:5, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/thread_info.h:12, from /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/preempt.h:7, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/preempt.h:78, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/spinlock.h:51, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/seqlock.h:36, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/time.h:6, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/stat.h:19, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/module.h:10, from /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:28: /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant 35 | asm_inline volatile("1:\t" ins "\n" \ | ^~ /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’ 73 | _BUG_FLAGS(ASM_UD2, 0); \ | ^~~~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’ 62 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~ /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:2460:2: note: in expansion of macro ‘BUG_ON’ 2460 | BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32)); | ^~ In file included from /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:32: /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:98:19: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 98 | #define inline static inline | ^~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/compiler_types.h:210:24: note: in expansion of macro ‘__inline’ 210 | #define asm_inline asm inline | ^~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’ 35 | asm_inline volatile("1:\t" ins "\n" \ | ^~~~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’ 73 | _BUG_FLAGS(ASM_UD2, 0); \ | ^~~~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’ 62 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG(); } while (0) | ^~~ /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:2460:2: note: in expansion of macro ‘BUG_ON’ 2460 | BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32)); | ^~ /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_beaconupdate_iter’: /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:98:19: error: expected ‘(’ before ‘static’ 98 | #define inline static inline | ^~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/compiler_types.h:210:24: note: in expansion of macro ‘__inline’ 210 | #define asm_inline asm inline | ^~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’ 35 | asm_inline volatile("1:\t" ins "\n" \ | ^~~~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’ 79 | _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags)); \ | ^~~~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:90:19: note: in expansion of macro ‘WARN_FLAGS’ 90 | #define WARN() WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN)) | ^~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:115:3: note: in expansion of macro ‘WARN’ 115 | WARN(); \ | ^~ /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:259:2: note: in expansion of macro ‘WARN_ON’ 259 | WARN_ON(rt2x00_is_usb(rt2x00dev)); | ^~~ In file included from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/bug.h:5, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/thread_info.h:12, from /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/preempt.h:7, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/preempt.h:78, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/spinlock.h:51, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/seqlock.h:36, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/time.h:6, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/stat.h:19, from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/module.h:10, from /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:28: /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant 35 | asm_inline volatile("1:\t" ins "\n" \ | ^~ /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’ 79 | _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags)); \ | ^~~~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:90:19: note: in expansion of macro ‘WARN_FLAGS’ 90 | #define WARN() WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN)) | ^~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:115:3: note: in expansion of macro ‘WARN’ 115 | WARN(); \ | ^~ /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:259:2: note: in expansion of macro ‘WARN_ON’ 259 | WARN_ON(rt2x00_is_usb(rt2x00dev)); | ^~~ In file included from /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:32: /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:98:19: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] 98 | #define inline static inline | ^~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/compiler_types.h:210:24: note: in expansion of macro ‘__inline’ 210 | #define asm_inline asm inline | ^~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’ 35 | asm_inline volatile("1:\t" ins "\n" \ | ^~~~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’ 79 | _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags)); \ | ^~~~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:90:19: note: in expansion of macro ‘WARN_FLAGS’ 90 | #define WARN() WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN)) | ^~~~ /usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:115:3: note: in expansion of macro ‘WARN’ 115 | __WARN(); \ | ^~ /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:259:2: note: in expansion of macro ‘WARN_ON’ 259 | WARN_ON(rt2x00_is_usb(rt2x00dev)); | ^~~ make[3]: [/usr/src/linux-headers-5.4.0-kali4-common-rt/scripts/Makefile.build:271:/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.o] 错误 1 make[2]: [/usr/src/linux-headers-5.4.0-kali4-common-rt/Makefile:1665:/home/gjp/MT7630E-pie-fix/rt2x00] 错误 2 make[1]: [/usr/src/linux-headers-5.4.0-kali4-common-rt/Makefile:179:sub-make] 错误 2 make[1]: 离开目录“/usr/src/linux-headers-5.4.0-kali4-rt-amd64” make: [Makefile:9:all] 错误 2 root@X550CC:/home/gjp/MT7630E-pie-fix# make clean make -C /lib/modules/uname -r/build M=/home/gjp/MT7630E-pie-fix/rt2x00 clean make[1]: 进入目录“/usr/src/linux-headers-5.4.0-kali4-rt-amd64” make[1]: 离开目录“/usr/src/linux-headers-5.4.0-kali4-rt-amd64” make -C /lib/modules/uname -r/build M=/home/gjp/MT7630E-pie-fix/btloader clean make[1]: 进入目录“/usr/src/linux-headers-5.4.0-kali4-rt-amd64” make[1]: 离开目录“/usr/src/linux-headers-5.4.0-kali4-rt-amd64” root@X550CC:/home/gjp/MT7630E-pie-fix#

neurobin commented 4 years ago

Please check the new update:

git clone https://github.com/neurobin/MT7630E
JUPITER-KOU commented 4 years ago

I USED THE NEWIST CODE,THERE HAVE TWO ERRORS.

neurobin commented 4 years ago

what are the errors?

JUPITER-KOU commented 4 years ago

root@X550CC:/home/gjp/MT7630E-pie-fix# ./installmake -C /lib/modules/5.4.0-kali4-rt-amd64/build M=/home/gjp/MT7630E-pie-fix/rt2x00 modulesmake[1]: 进入目录“/usr/src/linux-headers-5.4.0-kali4-rt-amd64”CC [M] /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.oIn file included from /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:32:/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h: In function ‘rt2x00_rf_read’:/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:98:19: error: expected ‘(’ before ‘static’98 | #define inline static inline| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/compiler_types.h:210:24: note: in expansion of macro ‘__inline’210 | #define asm_inline asm inline| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’35 | asm_inline volatile("1:\t" ins "\n"| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’73 | _BUG_FLAGS(ASM_UD2, 0)| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’62 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG() } while (0)| ^/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:2453:2: note: in expansion of macro ‘BUG_ON’2453 | BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32))| ^~In file included from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/bug.h:5,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/thread_info.h:12,from /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/preempt.h:7,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/preempt.h:78,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/spinlock.h:51,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/seqlock.h:36,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/time.h:6,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/stat.h:19,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/module.h:10,from /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:28:/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant35 | asm_inline volatile("1:\t" ins "\n"| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’73 | _BUG_FLAGS(ASM_UD2, 0)| ^~~~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’62 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG() } while (0)| ^/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:2453:2: note: in expansion of macro ‘BUG_ON’2453 | BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32))| ^~In file included from /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:32:/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:98:19: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]98 | #define inline static inline| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/compiler_types.h:210:24: note: in expansion of macro ‘__inline’210 | #define asm_inline asm inline| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’35 | asm_inline volatile("1:\t" ins "\n"| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’73 | _BUG_FLAGS(ASM_UD2, 0)| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’62 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG() } while (0)| ^/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:2453:2: note: in expansion of macro ‘BUG_ON’2453 | BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32))| ^~/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h: In function ‘rt2x00_rf_write’:/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:98:19: error: expected ‘(’ before ‘static’98 | #define inline static inline| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/compiler_types.h:210:24: note: in expansion of macro ‘__inline’210 | #define asm_inline asm inline| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’35 | asm_inline volatile("1:\t" ins "\n"| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’73 | _BUG_FLAGS(ASM_UD2, 0)| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’62 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG() } while (0)| ^/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:2460:2: note: in expansion of macro ‘BUG_ON’2460 | BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32))| ^~In file included from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/bug.h:5,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/thread_info.h:12,from /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/preempt.h:7,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/preempt.h:78,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/spinlock.h:51,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/seqlock.h:36,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/time.h:6,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/stat.h:19,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/module.h:10,from /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:28:/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant35 | asm_inline volatile("1:\t" ins "\n"| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’73 | _BUG_FLAGS(ASM_UD2, 0)| ^~~~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’62 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG() } while (0)| ^/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:2460:2: note: in expansion of macro ‘BUG_ON’2460 | BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32))| ^~In file included from /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:32:/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:98:19: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]98 | #define inline static inline| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/compiler_types.h:210:24: note: in expansion of macro ‘__inline’210 | #define asm_inline asm inline| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’35 | asm_inline volatile("1:\t" ins "\n"| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:73:2: note: in expansion of macro ‘_BUG_FLAGS’73 | _BUG_FLAGS(ASM_UD2, 0)| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:62:57: note: in expansion of macro ‘BUG’62 | #define BUG_ON(condition) do { if (unlikely(condition)) BUG() } while (0)| ^/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:2460:2: note: in expansion of macro ‘BUG_ON’2460 | BUG_ON(word < 1 || word > rt2x00dev->ops->rf_size / sizeof(u32))| ^~/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c: In function ‘rt2x00lib_beaconupdate_iter’:/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:98:19: error: expected ‘(’ before ‘static’98 | #define inline static inline| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/compiler_types.h:210:24: note: in expansion of macro ‘__inline’210 | #define asm_inline asm inline| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’35 | asm_inline volatile("1:\t" ins "\n"| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’79 | _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags))| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’90 | #define WARN() WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))| ^~~~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:115:3: note: in expansion of macro ‘WARN’115 | WARN()| ^~/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:259:2: note: in expansion of macro ‘WARN_ON’259 | WARN_ON(rt2x00_is_usb(rt2x00dev))| ^~~In file included from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/bug.h:5,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/thread_info.h:12,from /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/preempt.h:7,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/preempt.h:78,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/spinlock.h:51,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/seqlock.h:36,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/time.h:6,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/stat.h:19,from /usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/module.h:10,from /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:28:/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant35 | asm_inline volatile("1:\t" ins "\n"| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’79 | _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags))| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’90 | #define WARN() WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))| ^~~~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:115:3: note: in expansion of macro ‘WARN’115 | WARN()| ^~/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:259:2: note: in expansion of macro ‘WARN_ON’259 | WARN_ON(rt2x00_is_usb(rt2x00dev))| ^~~In file included from /home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:32:/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00.h:98:19: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]98 | #define __inline static inline| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/linux/compiler_types.h:210:24: note: in expansion of macro ‘__inline’210 | #define asm_inline asm __inline| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:2: note: in expansion of macro ‘asm_inline’35 | asm_inline volatile("1:\t" ins "\n"| ^~~~/usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:79:2: note: in expansion of macro ‘_BUG_FLAGS’79 | _BUG_FLAGS(ASM_UD2, BUGFLAG_WARNING|(flags))| ^~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:90:19: note: in expansion of macro ‘__WARN_FLAGS’90 | #define WARN() WARN_FLAGS(BUGFLAG_TAINT(TAINT_WARN))| ^~~~/usr/src/linux-headers-5.4.0-kali4-common-rt/include/asm-generic/bug.h:115:3: note: in expansion of macro ‘WARN’115 | WARN()| ^~/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.c:259:2: note: in expansion of macro ‘WARN_ON’259 | WARN_ON(rt2x00_is_usb(rt2x00dev))| ^~~~~make[3]: [/usr/src/linux-headers-5.4.0-kali4-common-rt/scripts/Makefile.build:271:/home/gjp/MT7630E-pie-fix/rt2x00/rt2x00dev.o] 错误 1make[2]: [/usr/src/linux-headers-5.4.0-kali4-common-rt/Makefile:1665:/home/gjp/MT7630E-pie-fix/rt2x00] 错误 2make[1]: [/usr/src/linux-headers-5.4.0-kali4-common-rt/Makefile:179:sub-make] 错误 2make[1]: 离开目录“/usr/src/linux-headers-5.4.0-kali4-rt-amd64”make: [Makefile:9:all] 错误 2root@X550CC:/home/gjp/MT7630E-pie-fix# make cleanmake -C /lib/modules/uname -r/build M=/home/gjp/MT7630E-pie-fix/rt2x00 cleanmake[1]: 进入目录“/usr/src/linux-headers-5.4.0-kali4-rt-amd64”make[1]: 离开目录“/usr/src/linux-headers-5.4.0-kali4-rt-amd64”make -C /lib/modules/uname -r/build M=/home/gjp/MT7630E-pie-fix/btloader cleanmake[1]: 进入目录“/usr/src/linux-headers-5.4.0-kali4-rt-amd64”make[1]: 离开目录“/usr/src/linux-headers-5.4.0-kali4-rt-amd64”root@X550CC:/home/gjp/MT7630E-pie-fix#


------------------ 原始邮件 ------------------

发件人: Md Jahidul Hamid notifications@github.com

发送时间: 2020-04-29 21:18:38

收件人:neurobin/MT7630E mt7630e@noreply.github.com

抄送:缑军平 13691567568@139.com,Author author@noreply.github.com

主题: Re: [neurobin/MT7630E] TWO ERRORS UNDER KERNEL 5.4 ! (#102)

what are the errors?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

JUPITER-KOU commented 4 years ago

1.MT7630E-pie-fix/rt2x00/rt2x00.h:98:19: error: expected ‘(’ before ‘static’ 98 | #define __inline static inline | ^~

JUPITER-KOU commented 4 years ago

2.MT7630E-pie-fix/rt2x00/rt2x00dev.c:28: /usr/src/linux-headers-5.4.0-kali4-common-rt/arch/x86/include/asm/bug.h:35:22: error: expected identifier or ‘(’ before string constant 35 | asm_inline volatile("1:\t" ins "\n" | ^~

JUPITER-KOU commented 4 years ago

I USED THE NEWEST SOURCE CODES FOR INSTALL.BUT,FROM FEB 2020 TO APRIL 2020,I TRIED MY BEST TO COMPILE IT,THROUTH 3 MONTH'S WORK,,BUT IT STILL HAVE TWO ERRORS. MY OS IS KALI LINUX 5.4.19 (RELEASED ON FEB 2020,THE IMG IS 2020.1B).GCC IS 9.2.0 (2020.2.20) VERSION.

JUPITER-KOU commented 4 years ago

MY DKMS IS NEWEST VERSION 2.8.1.5. I INSTALLED LINUX-HEADERS AND LINUX-IMAGES AND LINUX-KBUILDS AND LINUX-COMPILE-GCC ETC,OFFLINELY..I INSTALLED LINUX-FIRMWARE-2-200421 TOO. IT'S A HARD WORK.

neurobin commented 4 years ago

You did not use the newest code. This is the proof:

1.MT7630E-pie-fix/rt2x00/rt2x00.h:98:19: error: expected ‘(’ before ‘static’
98 | #define __inline static inline
| ^~~~~~

There is no #define __inline static inline in line 98 of rt2x00.h anymore.

JUPITER-KOU commented 4 years ago

1.Thanks a lots,version 2.1.1 compile passed under kali 5.4.19; 2.The driver almost can't be used.After wifi connect,the wifi signal decay from 100% to 51% to 0%,then discennect.After servral seconds,reconnect.The wifi signal changs from 100% to 49% to 0%,then discennect.After a while,the wifi can't be connected any more. 3.The driver make machine dead twice within 3 minitne.The kali linux 5.4.19 is fresh installed and no problems in the other machine. 4.The driver can be lost after power on.I reinstalled the driver,then will be go to step 2. 5.I never opened a web page under this driver. 6.Under windows10,none of above happened.

JUPITER-KOU commented 4 years ago

This driver seems not reliable,not steadily,not continuously.It almost can not be used.

neurobin commented 4 years ago

yes, you are right about that. It only worked good on earlier kernels on Ubuntu machines with specific hardware (specially on my hp probook). It was never a good solution. Later I bought a dongle and stopped using it.

By the way, the wifi card is problematic under windows 10 too. You will probably notice if you run it regularly.

Jpfonseca commented 4 years ago

Never had any problems with the existing builds except when there was a kernel update .

I figured out the WiFi card was a problem and looked for a better one which was compatible with 5Ghz wi-fi's networks. I used the mt7630e both in Windows and Linux.

After switching the card the problems disappeared.

Sent from Outlook Mobilehttps://aka.ms/blhgte


From: Md Jahidul Hamid notifications@github.com Sent: Thursday, April 30, 2020 2:51:04 AM To: neurobin/MT7630E MT7630E@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: Re: [neurobin/MT7630E] TWO ERRORS UNDER KERNEL 5.4 ! (#102)

yes, you are right about that. It only worked good on earlier kernels on Ubuntu machines with specific hardware (specially on my hp probook). It was never a good solution. Later I bough a dongle and stopped using it.

By the way, the wifi card is problematic under windows 10 too. You will probably notice if you run it regularly.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/neurobin/MT7630E/issues/102#issuecomment-621564433, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AC2JYNR75XWXHJUQTCSDT4DRPDKQRANCNFSM4MTPYZ5A.