kimocoder / realtek_rtwifi

Realtek RTL8xxxU
https://www.aircrack-ng.org
69 stars 14 forks source link

Compilation for Android #1

Closed i3ima closed 2 years ago

i3ima commented 4 years ago

Information: Kernel version : 4.9.224 device codename : vince Toolchains : For Aarch64 : https://github.com/kdrag0n/aarch64-elf-gcc.git For Aarch32 : https://github.com/kdrag0n/arm-eabi-gcc.git GCC version : 9.3.0-1

Details :

       Error log :
          LD      techpack/audio/soc/swr_ctrl_dlkm.o
  CC      drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.o
  CC      drivers/media/v4l2-core/videobuf2-core.o
  CC      drivers/media/media-entity.o
  LD      drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.o
  LD      drivers/net/wireless/realtek/rtl8xxxu/built-in.o
  CC      net/netfilter/nf_log.o
  CC      net/netfilter/nf_queue.o
  CC      drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.o
  CC      net/mac80211/wep.o
  LD      drivers/media/media.o
  CC      net/mac80211/wpa.o
  CC      techpack/audio/asoc/msm-pcm-routing-v2.o
../drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.c: In function 'rtl8xxxu_tx':
../drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.c:5075:10: warning: assignment from incompatible pointer type
  tx_desc = skb_push(skb, tx_desc_size);
          ^
../drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.c: In function 'rtl8xxxu_rx_parse_phystats':
../drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.c:5163:12: error: 'struct ieee80211_rx_status' has no member named 'enc_flags'
   rx_status->enc_flags |= RX_ENC_FLAG_SHORT_GI;
            ^
../drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.c:5163:27: error: 'RX_ENC_FLAG_SHORT_GI' undeclared (first use in this function)
   rx_status->enc_flags |= RX_ENC_FLAG_SHORT_GI;
                           ^
../drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.c:5163:27: note: each undeclared identifier is reported only once for each function it appears in
../drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.c: In function 'rtl8xxxu_parse_rxdesc16':
../drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.c:5389:13: error: 'struct ieee80211_rx_status' has no member named 'bw'
    rx_status->bw = RATE_INFO_BW_40;
             ^
../drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.c:5392:13: error: 'struct ieee80211_rx_status' has no member named 'encoding'
    rx_status->encoding = RX_ENC_HT;
             ^
../drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.c:5392:26: error: 'RX_ENC_HT' undeclared (first use in this function)
    rx_status->encoding = RX_ENC_HT;
                          ^
../drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.c: In function 'rtl8xxxu_parse_rxdesc24':
../drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.c:5459:12: error: 'struct ieee80211_rx_status' has no member named 'bw'
   rx_status->bw = RATE_INFO_BW_40;
            ^
../drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.c:5462:12: error: 'struct ieee80211_rx_status' has no member named 'encoding'
   rx_status->encoding = RX_ENC_HT;
            ^
../drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.c:5462:25: error: 'RX_ENC_HT' undeclared (first use in this function)
   rx_status->encoding = RX_ENC_HT;
                         ^
make[6]: *** [../scripts/Makefile.build:339: drivers/net/wireless/realtek/rtwifi/rtl8xxxu_core.o] Error 1
make[5]: *** [../scripts/Makefile.build:653: drivers/net/wireless/realtek/rtwifi] Error 2
make[4]: *** [../scripts/Makefile.build:653: drivers/net/wireless/realtek] Error 2
make[3]: *** [../scripts/Makefile.build:653: drivers/net/wireless] Error 2
make[2]: *** [../scripts/Makefile.build:653: drivers/net] Error 2
make[2]: *** Waiting for unfinished jobs....
  CC      drivers/media/v4l2-core/videobuf2-v4l2.o
  CC      net/netfilter/nf_sockopt.o
  LD      drivers/media/v4l2-core/videodev.o
  CC      net/netfilter/nfnetlink.o

Full log : https://hastebin.com/akiyedazow.rb defconfig: defconfig.txt I followed the instructions and built the driver into the kernel. Then I started building the kernel by commands :

make O=out vince_nh_defconfig ( because it's caf kernel )
make O=out -j9 

And I met a error.

ghost commented 4 years ago

go to those line numbers and see if those functions are declared previously or not if not change accordingly

kimocoder commented 4 years ago

Use the kernel builder from below https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-kernel

DozNaka commented 3 years ago

Use the kernel builder from below https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-kernel

does the builder support rtl8192eu driver?

ghost commented 3 years ago

Were you able to fix the problem? It looks like I ran into an error similar to yours

V3rB0se commented 2 years ago

Were you able to fix the problem? It looks like I ran into an error similar to yours :((