mirror of
https://github.com/outbackdingo/builder.git
synced 2026-01-27 02:18:22 +00:00
Update ssc338q_apfpv_defconfig
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -8,4 +8,3 @@
|
||||
/cache
|
||||
/openipc
|
||||
/output
|
||||
*.bin
|
||||
|
||||
@@ -33,8 +33,6 @@ BR2_PACKAGE_ZLIB=y
|
||||
BR2_PACKAGE_IW=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_CLI=y
|
||||
BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y
|
||||
BR2_TARGET_ROOTFS_CPIO=y
|
||||
BR2_TARGET_ROOTFS_SQUASHFS=y
|
||||
BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y
|
||||
@@ -58,9 +56,11 @@ BR2_PACKAGE_LIBCURL_OPENIPC_CURL=y
|
||||
# BR2_PACKAGE_LIBCURL_OPENIPC_EXTRA_PROTOCOLS_FEATURES is not set
|
||||
BR2_PACKAGE_LIBEVENT_OPENIPC=y
|
||||
BR2_PACKAGE_LIBOGG_OPENIPC=y
|
||||
BR2_PACKAGE_MAJESTIC_FONTS=y
|
||||
BR2_PACKAGE_MAJESTIC_WEBUI=y
|
||||
BR2_PACKAGE_MAJESTIC=y
|
||||
BR2_PACKAGE_MBEDTLS_OPENIPC=y
|
||||
BR2_PACKAGE_MAVFWD=y
|
||||
BR2_PACKAGE_MSPOSD=y
|
||||
BR2_PACKAGE_OPUS_OPENIPC=y
|
||||
BR2_PACKAGE_OPUS_OPENIPC_FIXED_POINT=y
|
||||
|
||||
BIN
devices/ssc338q_apfpv/general/overlay/etc/sensors/imx335.bin
Normal file
BIN
devices/ssc338q_apfpv/general/overlay/etc/sensors/imx335.bin
Normal file
Binary file not shown.
BIN
devices/ssc338q_apfpv/general/overlay/etc/sensors/imx415.bin
Normal file
BIN
devices/ssc338q_apfpv/general/overlay/etc/sensors/imx415.bin
Normal file
Binary file not shown.
@@ -1,5 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
set_config() {
|
||||
cat << EOF > /tmp/wpa_supplicant.conf
|
||||
network={
|
||||
mode=2
|
||||
frequency=$(fw_printenv -n wlanfreq || echo 2412)
|
||||
ssid="$(fw_printenv -n wlanssid || echo OpenIPC)"
|
||||
psk="$(fw_printenv -n wlanpass || echo 12345678)"
|
||||
}
|
||||
EOF
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
setup)
|
||||
for card in $(lsusb | awk '{print $6}' | uniq); do
|
||||
@@ -24,28 +35,12 @@ case "$1" in
|
||||
fi
|
||||
|
||||
echo "Detected driver: $driver"
|
||||
[ -e /sys/class/net/wlan0 ] && return
|
||||
|
||||
if [ "$driver" != "88XXau" ]; then
|
||||
opt1="rtw_tx_pwr_by_rate=0"
|
||||
opt2="rtw_tx_pwr_lmt_enable=0"
|
||||
fi
|
||||
|
||||
modprobe "$driver" "$opt1" "$opt2"
|
||||
sleep 3
|
||||
|
||||
if ! ifconfig wlan0 up; then
|
||||
echo "Wireless driver not found!"
|
||||
exit 1
|
||||
fi
|
||||
modprobe "$driver" rtw_tx_pwr_by_rate=0 rtw_tx_pwr_lmt_enable=0
|
||||
;;
|
||||
|
||||
start)
|
||||
ssid=$(fw_printenv -n wlanssid || echo OpenIPC)
|
||||
pass=$(fw_printenv -n wlanpass || echo 12345678)
|
||||
wpa_passphrase "$ssid" "$pass" > /tmp/wpa_supplicant.conf
|
||||
sed -i '2i \\tmode=2' /tmp/wpa_supplicant.conf
|
||||
#sed -i '3i \\tfrequency=5180' /tmp/wpa_supplicant.conf
|
||||
iw wlan0 set txpower fixed $(fw_printenv -n wlanpwr || echo 1500)
|
||||
set_config
|
||||
wpa_supplicant -B -i wlan0 -D nl80211 -c /tmp/wpa_supplicant.conf
|
||||
udhcpd -S
|
||||
;;
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
/etc/sensors/imx307.bin
|
||||
/etc/sensors/imx335.bin
|
||||
/etc/sensors/gc2053.bin
|
||||
/etc/sensors/gc4653.bin
|
||||
/etc/sensors/sc501ai.bin
|
||||
|
||||
Reference in New Issue
Block a user