-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wireless driver for Opi Zero - fixed loading path /lib/firmware, patc…
…h for DHD driver to prevent wrong detection, extra uboot config for OPI zero .... with one problem to solve. Module failing to load at first try ... workaround installed until this is solved.
- Loading branch information
1 parent
18e4192
commit a8ee68a
Showing
5 changed files
with
67 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
patch/kernel/sun8i-default/bcmdhd-wrong-autodetection.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/drivers/net/wireless/bcmdhd/bcmsdh_sdmmc_linux.c b/drivers/net/wireless/bcmdhd/bcmsdh_sdmmc_linux.c | ||
index 19e0018..e427b77 100755 | ||
--- a/drivers/net/wireless/bcmdhd/bcmsdh_sdmmc_linux.c | ||
+++ b/drivers/net/wireless/bcmdhd/bcmsdh_sdmmc_linux.c | ||
@@ -219,7 +219,6 @@ static const struct sdio_device_id bcmsdh_sdmmc_ids[] = { | ||
{ SDIO_DEVICE(SDIO_VENDOR_ID_BROADCOM, SDIO_DEVICE_ID_BROADCOM_4334) }, | ||
{ SDIO_DEVICE(SDIO_VENDOR_ID_BROADCOM, SDIO_DEVICE_ID_BROADCOM_4324) }, | ||
{ SDIO_DEVICE(SDIO_VENDOR_ID_BROADCOM, SDIO_DEVICE_ID_BROADCOM_43239) }, | ||
- { SDIO_DEVICE_CLASS(SDIO_CLASS_NONE) }, | ||
{ /* end: all zeroes */ }, | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/configs/orangepi_zero_defconfig b/configs/orangepi_zero_defconfig | ||
new file mode 100755 | ||
index 0000000..a62d565 | ||
--- /dev/null | ||
+++ b/configs/orangepi_zero_defconfig | ||
@@ -0,0 +1,16 @@ | ||
+CONFIG_ARM=y | ||
+CONFIG_ARCH_SUNXI=y | ||
+CONFIG_MACH_SUN8I_H3=y | ||
+CONFIG_DRAM_CLK=408 | ||
+CONFIG_DRAM_ZQ=3881979 | ||
+CONFIG_DRAM_ODT_EN=y | ||
+CONFIG_DEFAULT_DEVICE_TREE="sun8i-h3-orangepi-one" | ||
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set | ||
+CONFIG_SPL=y | ||
+# CONFIG_CMD_IMLS is not set | ||
+# CONFIG_CMD_FLASH is not set | ||
+# CONFIG_CMD_FPGA is not set | ||
+CONFIG_SUN8I_EMAC=y | ||
+CONFIG_USB_EHCI_HCD=y | ||
+CONFIG_SYS_CLK_FREQ=480000000 | ||
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2 | ||
\ No newline at end of file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
diff --git a/configs/orangepi_zero_defconfig b/configs/orangepi_zero_defconfig | ||
new file mode 100755 | ||
index 0000000..a62d565 | ||
--- /dev/null | ||
+++ b/configs/orangepi_zero_defconfig | ||
@@ -0,0 +1,16 @@ | ||
+CONFIG_ARM=y | ||
+CONFIG_ARCH_SUNXI=y | ||
+CONFIG_MACH_SUN8I_H3=y | ||
+CONFIG_DRAM_CLK=408 | ||
+CONFIG_DRAM_ZQ=3881979 | ||
+CONFIG_DRAM_ODT_EN=y | ||
+CONFIG_DEFAULT_DEVICE_TREE="sun8i-h3-orangepi-one" | ||
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set | ||
+CONFIG_SPL=y | ||
+# CONFIG_CMD_IMLS is not set | ||
+# CONFIG_CMD_FLASH is not set | ||
+# CONFIG_CMD_FPGA is not set | ||
+CONFIG_SUN8I_EMAC=y | ||
+CONFIG_USB_EHCI_HCD=y | ||
+CONFIG_SYS_CLK_FREQ=480000000 | ||
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2 | ||
\ No newline at end of file |
a8ee68a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could abuse SATAPWR in U-Boot config for powering up wifi. Check how this is done for opi plus, for example.
a8ee68a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the driver needs also some polishing (MAC address based on SID seems to not work for example). Here all of a sudden Wi-Fi stopped working (testing through different antennas). And
dmesg
output indicates that there's a bit more wrong (eg[XRADIO_ERR] Access_file failed, path:/data/xr_wifi.conf!
). Strange is that it worked 15 minutes ago...