Can't build wifi_driver.mk for Android.

Post Reply
User avatar
bugiii
Posts: 23
Joined: Thu Feb 27, 2020 3:04 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Can't build wifi_driver.mk for Android.

Post by bugiii »

I looked at https://github.com/codewalkerster/andro ... 0.0_master, and it says that the mt7610 driver is supported on December 23, 2020.

However, if you see https://github.com/codewalkerster/andro ... 0.0_master, there is no mediatek/mt7610u folder.

https://github.com/codewalkerster/andro ... ek_mt7610u seems to exist separately, but the folder is not created by repo sync.

Please check.

User avatar
bugiii
Posts: 23
Joined: Thu Feb 27, 2020 3:04 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Can't build wifi_driver.mk for Android.

Post by bugiii »

Building for Android was successful by temporarily removing the module as follows.

Code: Select all

diff --git a/wifi_driver.mk b/wifi_driver.mk
index 54f2f27..f9248e6 100644
--- a/wifi_driver.mk
+++ b/wifi_driver.mk
@@ -23,9 +23,9 @@ multiwifi:
        $(MAKE) -C $(shell pwd)/$(PRODUCT_OUT)/obj/KERNEL_OBJ M=$(shell pwd)/hardware/wifi/broadcom/drivers/esp8089 ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(CROSS_COMPILE) clean
        $(MAKE) -C $(shell pwd)/$(PRODUCT_OUT)/obj/KERNEL_OBJ M=$(shell pwd)/hardware/wifi/broadcom/drivers/esp8089 ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(CROSS_COMPILE) modules
        cp $(shell pwd)/hardware/wifi/broadcom/drivers/esp8089/esp8089.ko $(TARGET_OUT)/
-       $(MAKE) -C $(shell pwd)/hardware/wifi/mediatek/mt7610u ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(CROSS_COMPILE) clean
-       $(MAKE) -C $(shell pwd)/hardware/wifi/mediatek/mt7610u ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(CROSS_COMPILE)
-       cp $(shell pwd)/hardware/wifi/mediatek/mt7610u/os/linux/mt7610u_sta.ko $(TARGET_OUT)/
+       #$(MAKE) -C $(shell pwd)/hardware/wifi/mediatek/mt7610u ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(CROSS_COMPILE) clean
+       #$(MAKE) -C $(shell pwd)/hardware/wifi/mediatek/mt7610u ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(CROSS_COMPILE)
+       #cp $(shell pwd)/hardware/wifi/mediatek/mt7610u/os/linux/mt7610u_sta.ko $(TARGET_OUT)/

        $(bcm-sdio-wifi)

diff --git a/wifi_modules.mk b/wifi_modules.mk
index be0f4d9..c403e12 100644
--- a/wifi_modules.mk
+++ b/wifi_modules.mk
@@ -8,4 +8,4 @@ DEFAULT_WIFI_KERNEL_MODULES := \
        $(PRODUCT_OUT)/obj/lib_vendor/rt2x00usb.ko \
        $(PRODUCT_OUT)/obj/lib_vendor/esp8089.ko \
        $(PRODUCT_OUT)/obj/lib_vendor/dhd.ko \
-       $(PRODUCT_OUT)/obj/lib_vendor/mt7610u_sta.ko \
+       #$(PRODUCT_OUT)/obj/lib_vendor/mt7610u_sta.ko \

User avatar
codewalker
Posts: 1135
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 49 times
Been thanked: 82 times
Contact:

Re: Can't build wifi_driver.mk for Android.

Post by codewalker »

I'm so sorry, I've missed to push for manifest repo.
I've just pushed commit.
https://github.com/hardkernel/android/c ... _64_master

We don't support officially mt7610u device yet.
If you want to used a mt7610u adapter, you must edit wpa_supplicant service in init.odroid.wifi.rc.

-Dwext -> -Dnl80211

User avatar
bugiii
Posts: 23
Joined: Thu Feb 27, 2020 3:04 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Can't build wifi_driver.mk for Android.

Post by bugiii »

OK. It works fine now.

THX.

Post Reply

Return to “Android”

Who is online

Users browsing this forum: bugiii and 1 guest