Changeset b919871 in umon
- Timestamp:
- 07/13/15 23:25:20 (9 years ago)
- Branches:
- master
- Children:
- 5bed147
- Parents:
- 812918d
- git-author:
- Jarielle Catbagan <jcatbagan93@…> (07/13/15 23:25:20)
- git-committer:
- Ed Sutter <edsutterjr@…> (07/13/15 23:25:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ports/beagleboneblack/sd_setup.sh
r812918d rb919871 1 #!/bin/ bash1 #!/bin/sh 2 2 # 3 3 # This script automates the process of setting up an SD card for … … 5 5 6 6 if [ $# -ne 2 ]; then 7 echo -e"Please specify both the boot mode and the SD card to set up\n"8 echo -e"Usage: ./sd_setup.sh <boot mode> /dev/<device>\n"9 echo -e"where <boot mode> is either RAW or FAT and <device> is the SD card"7 printf "Please specify both the boot mode and the SD card to set up\n" 8 printf "Usage: ./sd_setup.sh <boot mode> /dev/<device>\n" 9 printf "where <boot mode> is either RAW or FAT and <device> is the SD card" 10 10 exit 1 11 11 fi … … 17 17 RAW) 18 18 if [ ! -e ./build_BEAGLEBONEBLACK/rawboot.bin ]; then 19 echo -e"rawboot.bin does not exist in ./build_BEAGLEBONEBLACK\n"20 echo -e"Please build uMon before proceeding"19 printf "rawboot.bin does not exist in ./build_BEAGLEBONEBLACK\n" 20 printf "Please build uMon before proceeding" 21 21 exit 1 22 22 fi … … 33 33 FAT) 34 34 if [ ! -e ./build_BEAGLEBONEBLACK/MLO ]; then 35 echo -e"MLO does not exist in ./build_BEAGLEBONEBLACK\n"36 echo -e"Please build uMon before proceeding"35 printf "MLO does not exist in ./build_BEAGLEBONEBLACK\n" 36 printf "Please build uMon before proceeding" 37 37 exit 1 38 38 fi … … 42 42 43 43 # Create the FAT16 primary partition and mark it bootable 44 echo -e"n\np\n1\n\n+3M\nt\n6\na\n1\nw\n" | fdisk ${SDDEV}44 printf "n\np\n1\n\n+3M\nt\n6\na\n1\nw\n" | fdisk ${SDDEV} 45 45 46 46 # Wait for some time to allow the partition to register under /dev … … 58 58 ;; 59 59 *) 60 echo -e"Invalid boot mode specified. Valid boot modes are RAW/FAT."60 printf "Invalid boot mode specified. Valid boot modes are RAW/FAT." 61 61 exit 1 62 62 ;;
Note: See TracChangeset
for help on using the changeset viewer.