|
@@ -94,11 +94,16 @@ EOF
|
94
|
94
|
}
|
95
|
95
|
|
96
|
96
|
beaglebone_flash() {
|
|
97
|
+ bbb_version=$1
|
97
|
98
|
# allow flash-kernel to work without valid /proc contents
|
98
|
99
|
# ** this doesn't *really* work, since there are too many checks
|
99
|
100
|
# that fail in an emulated environment! We'll have to do it by
|
100
|
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
|
107
|
apt-get install -y flash-kernel
|
103
|
108
|
}
|
104
|
109
|
|
|
@@ -228,7 +233,7 @@ case "$MACHINE" in
|
228
|
233
|
;;
|
229
|
234
|
beaglebonewifi)
|
230
|
235
|
beaglebone_setup_boot wireless
|
231
|
|
- beaglebone_flash
|
|
236
|
+ beaglebone_flash wireless
|
232
|
237
|
beaglebone_repack_kernel wireless
|
233
|
238
|
enable_serial_console ttyO0
|
234
|
239
|
;;
|