Changes

Jump to: navigation, search

How to create a bootable microSD card (XUELK)

202 bytes added, 13:42, 16 November 2017
update mksd.sh script to support newer linux distros
CYLINDERS=`echo $SIZE/255/63/512 | bc`
# check if we're running an old (e.g. 2.20.x) or new (e.g. 2.24.x) sfdisk
sfdisk --help | grep -- -H
 
if [ "$?" -eq "0" ]
then
{
echo 10,1380,0x0c,*
echo 1390,,83,-
} | sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVE
else
{
echo 10,13804086M,0x0c,* echo 13904096M,,83,-} | sfdisk -D -H 255 -S 63 -C $CYLINDERS $DRIVEsudo fi partprobe 
echo "[Making filesystems...]"
743
edits

Navigation menu