Merge pull request #132 from gitgayhub/master

Add wlan0 setting for T31 and rtl8188fu
pull/134/head
Signor Pellegrino 2023-08-31 16:07:23 +03:00 committed by GitHub
commit 07b3abf0e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 3 deletions

View File

@ -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
```

View File

@ -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