From 3c016a5ac16e89f2038f7d43c91d84108c253af4 Mon Sep 17 00:00:00 2001 From: Viktor <viktorxda@users.noreply.github.com> Date: Tue, 9 May 2023 15:16:16 +0200 Subject: [PATCH] Sync wireless-settings.md --- en/wireless-settings.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/en/wireless-settings.md b/en/wireless-settings.md index 7706715..c4ff982 100644 --- a/en/wireless-settings.md +++ b/en/wireless-settings.md @@ -7,7 +7,7 @@ Wireless settings ### Additional packages - Following packages are needed for the HI3516EV300 CamHi module. -- The build configuration is: `hi3516ev300_ultimate_defconfig` +- The example build configuration is: `hi3516ev300_lite_defconfig` ``` BR2_PACKAGE_WIRELESS_CONFIGURATION=y @@ -19,13 +19,14 @@ BR2_PACKAGE_MT7601U_AP_OPENIPC=y ### Initial configuration -- The wireless settings are provided based on the used build defconfig: +- The wireless settings are provided based on the chipset: ```diff ++SOC=$(fw_printenv -n soc) + # HI3516EV300 CamHi -+if [ "$CONFIG" = "hi3516ev300_ultimate_defconfig" ]; then - if [ "$1" = "start" ]; then - devmem 0x100C0080 32 0x530 ++if [ "$SOC" == "hi3516ev300" ]; then + devmem 0x100C0080 32 0x530 ``` --- @@ -54,7 +55,7 @@ iface wlan0 inet dhcp ```diff # HI3516EV300 CamHi -if [ "$CONFIG" = "hi3516ev300_ultimate_defconfig" ]; then +if [ "$SOC" == "hi3516ev300" ]; then + devmem 0x100C0080 32 0x530 + echo 7 > /sys/class/gpio/export + echo out > /sys/class/gpio/gpio7/direction