Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion tools/eMMC/bbb-eMMC-flasher-eewiki-ext4.sh
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ partition_drive () {

dd_bootloader

boot_fstype="ext4"
boot_fstype=${boot_fstype:-ext4}

if [ "x${boot_fstype}" = "xfat" ] ; then
conf_boot_startmb=${conf_boot_startmb:-"1"}
Expand Down Expand Up @@ -574,6 +574,16 @@ message="-----------------------------" ; broadcast
message="Version: [${version_message}]" ; broadcast
message="-----------------------------" ; broadcast

if [[ "$1" == --boot_fstype* ]] ; then
boot_fstype=${2:-$1}
boot_fstype=${boot_fstype#*=}
case $boot_fstype in
fat | ext4) ;;
*) echo "boot_fstype must be fat or ext4"; exit 2 ;;
esac
message="Using $boot_fstype for boot filesystem" ; broadcast
fi

check_eeprom
check_running_system
cylon_leds & CYLON_PID=$!
Expand Down