Changes

Jump to: navigation, search

Standalone boot (SDVX)

158 bytes added, 12:47, 1 October 2018
Program root file system into eMMC flash
RFS_SIZE=2048
# format create the SDCARD/DATA/CACHE partition
part=""
echo ${node} | grep mmcblk > /dev/null
fi
# call sfdisk to create partition tableprint the SD total capacity
total_size=`sfdisk -s ${node}`
total_size=`expr ${total_size} / 1024`
echo SD total size: ${total_size}KB
# calculate partition sizes
boot_start=`expr ${BOOTLOAD_RESERVE} \\* 1024 \\* 1024 / 512`
boot_size=`expr ${BOOT_ROM_SIZE} \\* 1024 \\* 1024 / 512`
rfs_size=`expr ${RFS_SIZE} \\* 1024 \\* 1024 / 512`
umount ${node}${part}1 > /dev/null 2>&1
umount ${node}${part}2 > /dev/null 2>&1
 
# call sfdisk to create partition table
{ echo ${boot_start},${boot_size},0c,-; echo ${rfs_start},${rfs_size},83,-; } | sfdisk --force ${node}
# format the SDCARD partition
echo "formatting boot"
mkfs.vfat -F 32 -n boot ${node}${part}1
8,157
edits

Navigation menu