Changeset 812918d in umon


Ignore:
Timestamp:
Jul 8, 2015, 11:27:04 PM (4 years ago)
Author:
Ed Sutter <edsutterjr@…>
Branches:
master
Children:
b919871
Parents:
2945559
Message:

add sync to script to guarantee sd write completes, also missing '1' in fdisk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ports/beagleboneblack/sd_setup.sh

    r2945559 r812918d  
    1 #!/usr/bin/bash
     1#!/bin/bash
    22#
    33# This script automates the process of setting up an SD card for
     
    4242
    4343        # Create the FAT16 primary partition and mark it bootable
    44         echo -e "n\np\n1\n\n+3M\nt\n6\na\nw\n" | fdisk ${SDDEV}
     44        echo -e "n\np\n1\n\n+3M\nt\n6\na\n1\nw\n" | fdisk ${SDDEV}
    4545
    4646        # Wait for some time to allow the partition to register under /dev
     
    5252        mount ${SDDEV}1 mnt
    5353        cp ./build_BEAGLEBONEBLACK/MLO mnt
     54        sync
    5455        umount mnt
     56        sync
    5557        rm -rf mnt
    5658        ;;
Note: See TracChangeset for help on using the changeset viewer.