Bläddra i källkod

flash bbb wireless kernel

Bob Mottram 7 år sedan
förälder
incheckning
2cee73ca8e
1 ändrade filer med 7 tillägg och 2 borttagningar
  1. 7
    2
      src/freedombone-image-hardware-setup

+ 7
- 2
src/freedombone-image-hardware-setup Visa fil

94
 }
94
 }
95
 
95
 
96
 beaglebone_flash() {
96
 beaglebone_flash() {
97
+    bbb_version=$1
97
     # allow flash-kernel to work without valid /proc contents
98
     # allow flash-kernel to work without valid /proc contents
98
     # ** this doesn't *really* work, since there are too many checks
99
     # ** this doesn't *really* work, since there are too many checks
99
     #    that fail in an emulated environment!  We'll have to do it by
100
     #    that fail in an emulated environment!  We'll have to do it by
100
     #    hand below anyway...
101
     #    hand below anyway...
101
-    export FK_MACHINE="TI AM335x BeagleBone"
102
+    if [[ "$bbb_version" == 'wireless' ]]; then
103
+        export FK_MACHINE="TI AM335x BeagleBone Black Wireless"
104
+    else
105
+        export FK_MACHINE="TI AM335x BeagleBone Black"
106
+    fi
102
     apt-get install -y flash-kernel
107
     apt-get install -y flash-kernel
103
 }
108
 }
104
 
109
 
228
         ;;
233
         ;;
229
     beaglebonewifi)
234
     beaglebonewifi)
230
         beaglebone_setup_boot wireless
235
         beaglebone_setup_boot wireless
231
-        beaglebone_flash
236
+        beaglebone_flash wireless
232
         beaglebone_repack_kernel wireless
237
         beaglebone_repack_kernel wireless
233
         enable_serial_console ttyO0
238
         enable_serial_console ttyO0
234
         ;;
239
         ;;