flash bbb wireless kernel

This commit is contained in:
Bob Mottram 2017-07-17 15:30:09 +01:00
parent 28211221ba
commit 2cee73ca8e
1 changed files with 7 additions and 2 deletions

View File

@ -94,11 +94,16 @@ EOF
} }
beaglebone_flash() { beaglebone_flash() {
bbb_version=$1
# allow flash-kernel to work without valid /proc contents # allow flash-kernel to work without valid /proc contents
# ** this doesn't *really* work, since there are too many checks # ** this doesn't *really* work, since there are too many checks
# that fail in an emulated environment! We'll have to do it by # that fail in an emulated environment! We'll have to do it by
# hand below anyway... # hand below anyway...
export FK_MACHINE="TI AM335x BeagleBone" if [[ "$bbb_version" == 'wireless' ]]; then
export FK_MACHINE="TI AM335x BeagleBone Black Wireless"
else
export FK_MACHINE="TI AM335x BeagleBone Black"
fi
apt-get install -y flash-kernel apt-get install -y flash-kernel
} }
@ -228,7 +233,7 @@ case "$MACHINE" in
;; ;;
beaglebonewifi) beaglebonewifi)
beaglebone_setup_boot wireless beaglebone_setup_boot wireless
beaglebone_flash beaglebone_flash wireless
beaglebone_repack_kernel wireless beaglebone_repack_kernel wireless
enable_serial_console ttyO0 enable_serial_console ttyO0
;; ;;