Skip to content

Commit

Permalink
setup: drop 10Mb per (gsize) evil Kingston eMMC
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Nelson <[email protected]>
  • Loading branch information
RobertCNelson committed Jul 27, 2015
1 parent 53dabb2 commit 23acc35
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/setup_sdcard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,12 @@ while [ ! -z "$1" ] ; do
rm -rf "${media}" || true
fi
#FIXME: (should fit most microSD cards)
dd if=/dev/zero of="${media}" bs=1024 count=0 seek=$((1024 * (700 + (gsize - 1) * 1000)))
#eMMC: (sudo dd if=/dev/mmcblk1 of=/dev/null bs=1M)
#Micron: 3925868544 bytes -> 3925.86 eMegabyte
#Kingston: 3867148288 bytes -> 3867.15 Megabyte
#
#drop "10" per (gsize -1) 4GB = 30MB
dd if=/dev/zero of="${media}" bs=1024 count=0 seek=$((1024 * (700 + (gsize - 1) * 990)))
;;
--dtb)
checkparm $2
Expand Down

0 comments on commit 23acc35

Please sign in to comment.