mirror of https://github.com/OpenIPC/wiki.git
Add wlan0 setting for T31 and rtl8188fu
parent
6d57d7da5f
commit
529fdeb5b8
|
@ -388,3 +388,22 @@ iface wlan0 inet dhcp
|
|||
pre-up wpa_supplicant -B -D nl80211 -i wlan0 -c/tmp/wpa_supplicant.conf
|
||||
post-down killall -q wpa_supplicant
|
||||
```
|
||||
|
||||
### WLAN0 | T31 | RTL8188FU
|
||||
|
||||
```
|
||||
auto wlan0
|
||||
iface wlan0 inet dhcp
|
||||
pre-up echo 10 > /sys/class/gpio/export
|
||||
pre-up echo out > /sys/class/gpio/gpio10/direction
|
||||
pre-up echo 1 > /sys/class/gpio/gpio10/value
|
||||
pre-up modprobe mac80211
|
||||
pre-up sleep 1
|
||||
pre-up insmod /lib/modules/8188fu.ko
|
||||
pre-up sleep 1
|
||||
pre-up wlan_addr=$(fw_printenv -n wlanaddr); if [ -n "$wlan_addr" ]; then ip link set dev wlan0 address $wlan_addr; fi
|
||||
post-up wpa_passphrase "$(fw_printenv -n wlanssid || echo OpenIPC)" "$(fw_printenv -n wlanpass || echo OpenIPC12345)" > /tmp/wpa_supplicant.conf
|
||||
post-up sed -i '2i \\tscan_ssid=1' /tmp/wpa_supplicant.conf
|
||||
post-up wpa_supplicant -B -i wlan0 -D nl80211,wext -c /tmp/wpa_supplicant.conf
|
||||
post-down killall -q wpa_supplicant
|
||||
```
|
||||
|
|
|
@ -33,14 +33,14 @@ Now you will get the compiled uboot file `u-boot-with-spl.bin`
|
|||
|
||||
### Burn uboot to SD card
|
||||
|
||||
Insert SD card to your PC, run `fdisk -l` to check, you should see the device like in my case `Disk /dev/sdb: 29.72 GiB, 31914983424 bytes, 62333952 sectors`. Pay attention to the physical sector size, in my case it's 512 bytes
|
||||
Insert SD card to your PC, run `fdisk -l` to check, you should see the device like in my case `Disk /dev/sdb: 29.72 GiB, 31914983424 bytes, 62333952 sectors`.
|
||||
|
||||
**CAUTION!** double check the `/dev` device name is actually your SD card, or you may lose data on other drives
|
||||
|
||||
```
|
||||
dd if=./u-boot-with-spl.bin of=/dev/sdb seek=34
|
||||
dd if=./u-boot-with-spl.bin of=/dev/sdb bs=512 seek=34
|
||||
```
|
||||
This will burn the uboot file to SD card at 34*512bytes=17KBytes offset from 0x0, where 512 is my SD card's block size. If yours is 1024, change `seek=34` to `seek=17`, to make the offset to be 17KBytes
|
||||
This will burn the uboot file to SD card at 17KBytes offset from 0x0
|
||||
|
||||
### Boot from SD card
|
||||
|
||||
|
|
Loading…
Reference in New Issue