Browse Source

Change how atheros wifi drivers get installed

Bob Mottram 7 years ago
parent
commit
874efc080f

+ 0
- 4
drivers/README View File

1
-Since compiling Atheros drivers for use with a wifi dongle on the Beaglebone Black takes a long time pre-compiled drivers are also available here. These may be extracted into /lib/firmware/ before beginning the main installation via 'freedombone menuconfig'.
2
-
3
-sha256:
4
-7eb9324681f03c7630ed01e490ea447dfbd96c9b5389e45b64e4646d1be16ff1  ath9k_htc_driver_bbb.tar.gz

BIN
drivers/ath9k_htc_driver_bbb.tar.gz View File


+ 0
- 17
drivers/ath9k_htc_driver_bbb.tar.gz.asc View File

1
------BEGIN PGP SIGNATURE-----
2
-Version: GnuPG v1
3
-
4
-iQIcBAABCAAGBQJVs+ZQAAoJEARSzHzqmC44O1oP+wfzs0SL/NjJbl3qtw1P3hSu
5
-jpHZ9kqEibpFX1VSvFrLb9qiqHnyoBcfoz04kWQ+6uKKc8MC1cev14FUdtKiLl7h
6
-9fESVSIx8VgzHmDNkcXj+nLKI5KMp/bORZxoFL0hM/JVNUQH09RT1/upLE6k5PxA
7
-BBDF+lD0Ez9VGSa91FP5T+mDWXFtEZMwTajkzRyi+H38lSEsfMvhbWV1c5M+W7kQ
8
-u2xf5Z1BTd5lH6HPN3LKf5sOWaLAUa+jkUXLJiDfULm1ylO3ckj2TMQDlriY1Cib
9
-zvFjQ4l5NVmO4/L3HE2yIDtJpHxRCVExtzZk+iXLh8ep+avV1B0l2bf5ObahaK7q
10
-hIxudj9eeTb6ZyIUH/tUYW8LjTwNMom1vN98mG7MGnaqMHDlSqrZv36M42SM9FMb
11
-nSu6PdeFycqCM3O8h3HDuMrgBLckLRhubGVBpkE7XZXyhs8ahVGi8LwltfuVvWFz
12
-NsPnmqI8vdSZDN/b3SAN/zBb47STGFhNY9tMgdaebS40IbJ5iD5KCRLarKTHyRTS
13
-W10Q/Onno25UWbu/+ZIjfbuwaoboI8CNJRUI4YDhR4Huahh+s1v9kSjuXwMacO7R
14
-+nZEXJkP0HOQUZY9g7OjrVEXHdKUw1Vlw3AyQt7Z4SUNjeEoRP1Bcr7LPBB8Y5pW
15
-sTndAdLqpVzMBymfLGRS
16
-=OOIn
17
------END PGP SIGNATURE-----

BIN
drivers/firmware-ath9k-htc.deb View File


+ 1
- 12
src/freedombone-image-customise View File

496
         return
496
         return
497
     fi
497
     fi
498
 
498
 
499
-    firmware_filename="open-ath9k-htc-firmware_1.3-1_all.deb"
500
-    firmware_hash='5fea58ffefdf0ef15b504db7fbe3bc078c03e0d927bba64085e4b6f2546102f5'
501
-
502
-    firmware_url="http://us.archive.trisquel.info/trisquel/pool/main/o/open-ath9k-htc-firmware/$firmware_filename"
503
-    firmware_tempfile="/tmp/$firmware_filename"
504
-    wget "$firmware_url" -O "$rootdir$firmware_tempfile"
505
-    downloaded_firmware_hash=$(sha256sum "$rootdir$firmware_tempfile" | awk -F ' ' '{print $1}')
506
-    if [[ "$downloaded_firmware_hash" == "$firmware_hash" ]]; then
507
-        chroot "$rootdir" dpkg -i "$firmware_tempfile"
508
-    else
509
-        echo 'WARNING: Atheros Wifi firmware hash does not match. The driver has not been installed.'
510
-    fi
499
+    chroot "$rootdir" dpkg -i /root/freedombone/drivers/firmware-ath9k-htc.deb
511
 }
500
 }
512
 
501
 
513
 configure_wifi() {
502
 configure_wifi() {

+ 3
- 15
src/freedombone-utils-wifi View File

13
 # License
13
 # License
14
 # =======
14
 # =======
15
 #
15
 #
16
-# Copyright (C) 2015-2016 Bob Mottram <bob@freedombone.net>
16
+# Copyright (C) 2015-2018 Bob Mottram <bob@freedombone.net>
17
 #
17
 #
18
 # This program is free software: you can redistribute it and/or modify
18
 # This program is free software: you can redistribute it and/or modify
19
 # it under the terms of the GNU Affero General Public License as published by
19
 # it under the terms of the GNU Affero General Public License as published by
86
         return
86
         return
87
     fi
87
     fi
88
 
88
 
89
-    atheros_drivers_file=drivers/ath9k_htc_driver_bbb.tar.gz
89
+    atheros_drivers_file=drivers/firmware-ath9k-htc.deb
90
     if [ ! -f $atheros_drivers_file ]; then
90
     if [ ! -f $atheros_drivers_file ]; then
91
         if [ ! -f ~/freedombone/$atheros_drivers_file ]; then
91
         if [ ! -f ~/freedombone/$atheros_drivers_file ]; then
92
             return
92
             return
96
     else
96
     else
97
         atheros_drivers_file=$(pwd)/$atheros_drivers_file
97
         atheros_drivers_file=$(pwd)/$atheros_drivers_file
98
     fi
98
     fi
99
-    if [ ! -d /lib/firmware ]; then
100
-        mkdir /lib/firmware
101
-        if [ ! -d /lib/firmware ]; then
102
-            return
103
-        fi
104
-    fi
105
-    if [ -f /lib/firmware/htc_9271.fw ]; then
106
-        return
107
-    fi
108
-    curr_dir=$(pwd)
109
-    cd /lib/firmware
110
-    tar -xzvf $atheros_drivers_file
99
+    dpkg -i $atheros_drivers_file
111
     reset_usb_devices
100
     reset_usb_devices
112
-    cd $curr_dir
113
     update_wifi_adaptors
101
     update_wifi_adaptors
114
     if [ $IFACE ]; then
102
     if [ $IFACE ]; then
115
         wpa_action ${IFACE} stop
103
         wpa_action ${IFACE} stop