Use atheros wifi package
This commit is contained in:
parent
871a4f6cad
commit
5814c386c1
|
@ -492,22 +492,7 @@ continue_installation() {
|
|||
}
|
||||
|
||||
atheros_wifi() {
|
||||
if [[ "$MACHINE" == "beaglebonewifi" ]]; then
|
||||
return
|
||||
fi
|
||||
|
||||
firmware_filename="open-ath9k-htc-firmware_1.3-1_all.deb"
|
||||
firmware_hash='5fea58ffefdf0ef15b504db7fbe3bc078c03e0d927bba64085e4b6f2546102f5'
|
||||
|
||||
firmware_url="http://us.archive.trisquel.info/trisquel/pool/main/o/open-ath9k-htc-firmware/$firmware_filename"
|
||||
firmware_tempfile="/tmp/$firmware_filename"
|
||||
wget "$firmware_url" -O "$rootdir$firmware_tempfile"
|
||||
downloaded_firmware_hash=$(sha256sum "$rootdir$firmware_tempfile" | awk -F ' ' '{print $1}')
|
||||
if [[ "$downloaded_firmware_hash" == "$firmware_hash" ]]; then
|
||||
chroot "$rootdir" dpkg -i "$firmware_tempfile"
|
||||
else
|
||||
echo 'WARNING: Atheros Wifi firmware hash does not match. The driver has not been installed.'
|
||||
fi
|
||||
chroot "$rootdir" apt-get -yq install open-ath9k-htc-firmware
|
||||
}
|
||||
|
||||
configure_wifi() {
|
||||
|
@ -902,6 +887,7 @@ initialise_mesh() {
|
|||
# install proprietary wifi drivers
|
||||
# see https://wiki.debian.org/iwlwifi
|
||||
chroot "$rootdir" apt-get -yq install firmware-iwlwifi firmware-b43-installer firmware-brcm80211 firmware-realtek
|
||||
chroot "$rootdir" apt-get -yq install firmware-atheros firmware-zd1211
|
||||
fi
|
||||
|
||||
INSTALLING_MESH=1
|
||||
|
|
|
@ -36,9 +36,6 @@ WIFI_PASSPHRASE=
|
|||
WIFI_HOTSPOT='no'
|
||||
WIFI_NETWORKS_FILE=~/${PROJECT_NAME}-wifi.cfg
|
||||
|
||||
# repo for atheros AR9271 wifi driver
|
||||
ATHEROS_WIFI_REPO="https://github.com/qca/open-ath9k-htc-firmware.git"
|
||||
|
||||
function default_network_config {
|
||||
echo '# This file describes the network interfaces available on your system' > /etc/network/interfaces
|
||||
echo '# and how to activate them. For more information, see interfaces(5).' >> /etc/network/interfaces
|
||||
|
@ -166,48 +163,7 @@ function install_atheros_wifi {
|
|||
if [[ $(is_completed $FUNCNAME) == "1" ]]; then
|
||||
return
|
||||
fi
|
||||
if [ $INSTALLING_ON_BBB != "yes" ]; then
|
||||
return
|
||||
fi
|
||||
if [[ $ENABLE_BATMAN != "yes" ]]; then
|
||||
return
|
||||
fi
|
||||
if [ -d $INSTALL_DIR/open-ath9k-htc-firmware ]; then
|
||||
return
|
||||
fi
|
||||
# have drivers already been installed ?
|
||||
if [ -f /lib/firmware/htc_9271.fw ]; then
|
||||
return
|
||||
fi
|
||||
apt-get -yq install build-essential cmake git m4 texinfo
|
||||
if [ ! -d $INSTALL_DIR ]; then
|
||||
mkdir -p $INSTALL_DIR
|
||||
fi
|
||||
cd $INSTALL_DIR
|
||||
if [ ! -d $INSTALL_DIR/open-ath9k-htc-firmware ]; then
|
||||
function_check git_clone
|
||||
git_clone $ATHEROS_WIFI_REPO $INSTALL_DIR/open-ath9k-htc-firmware
|
||||
if [ ! "$?" = "0" ]; then
|
||||
rm -rf $INSTALL_DIR/open-ath9k-htc-firmware
|
||||
exit 74283
|
||||
fi
|
||||
fi
|
||||
cd $INSTALL_DIR/open-ath9k-htc-firmware
|
||||
git checkout 1.4.0
|
||||
make toolchain
|
||||
if [ ! "$?" = "0" ]; then
|
||||
rm -rf $INSTALL_DIR/open-ath9k-htc-firmware
|
||||
exit 24820
|
||||
fi
|
||||
make firmware
|
||||
if [ ! "$?" = "0" ]; then
|
||||
rm -rf $INSTALL_DIR/open-ath9k-htc-firmware
|
||||
exit 63412
|
||||
fi
|
||||
cp target_firmware/*.fw /lib/firmware/
|
||||
if [ ! "$?" = "0" ]; then
|
||||
exit 74681
|
||||
fi
|
||||
apt-get -yq install open-ath9k-htc-firmware
|
||||
mark_completed $FUNCNAME
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue