Skip to content

Instantly share code, notes, and snippets.

View danfragoso's full-sized avatar
🌭

Danilo Fragoso danfragoso

🌭
View GitHub Profile
@danfragoso
danfragoso / sd.sh
Created October 3, 2017 15:03
This script will boot an Edison board with the Root Filesystem on an external storage medium (SD CARD, mounted at '/dev/mmcblk1p1').
: '
DrFarm 2017
This script will boot an Edison board with the Root Filesystem on an external
storage medium (SD CARD, mounted at '/dev/mmcblk1p1').
'
echo 'Intel Edison SD Boot'
fw_setenv mmc-bootargs 'setenv bootargs root=${myrootfs} rootdelay=3 rootfstype=ext4 ${bootargs_console} ${bootargs_debug} systemd.unit=${bootargs_target}.target hardware_id=${hardware_id} g_multi.iSerialNumber=${serial#} g_multi.dev_addr=${usb0addr}'
fw_setenv myrootfs_sdcard '/dev/mmcblk1p1'
UUID=$(fw_printenv uuid_rootfs | cut -c '13-999')