Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow choosing FAT boot filesystem type #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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