mirror of https://github.com/OpenIPC/wiki.git
commit
8b8a61aa87
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue