Merge pull request #91 from viktorxda/master

Sync wireless-settings.md
pull/92/head
Signor Pellegrino 2023-05-12 17:42:59 +03:00 committed by GitHub
commit 8b8a61aa87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 6 deletions

View File

@ -7,7 +7,7 @@ Wireless settings
### Additional packages ### Additional packages
- Following packages are needed for the HI3516EV300 CamHi module. - 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 BR2_PACKAGE_WIRELESS_CONFIGURATION=y
@ -19,12 +19,13 @@ BR2_PACKAGE_MT7601U_AP_OPENIPC=y
### Initial configuration ### Initial configuration
- The wireless settings are provided based on the used build defconfig: - The wireless settings are provided based on the chipset:
```diff ```diff
+SOC=$(fw_printenv -n soc)
# HI3516EV300 CamHi # HI3516EV300 CamHi
+if [ "$CONFIG" = "hi3516ev300_ultimate_defconfig" ]; then +if [ "$SOC" == "hi3516ev300" ]; then
if [ "$1" = "start" ]; then
devmem 0x100C0080 32 0x530 devmem 0x100C0080 32 0x530
``` ```
@ -54,7 +55,7 @@ iface wlan0 inet dhcp
```diff ```diff
# HI3516EV300 CamHi # HI3516EV300 CamHi
if [ "$CONFIG" = "hi3516ev300_ultimate_defconfig" ]; then if [ "$SOC" == "hi3516ev300" ]; then
+ devmem 0x100C0080 32 0x530 + devmem 0x100C0080 32 0x530
+ echo 7 > /sys/class/gpio/export + echo 7 > /sys/class/gpio/export
+ echo out > /sys/class/gpio/gpio7/direction + echo out > /sys/class/gpio/gpio7/direction