1a0b9e2e8SMitchell Horne#!/bin/sh 2a0b9e2e8SMitchell Horne 3a0b9e2e8SMitchell HorneEMBEDDED_TARGET_ARCH="riscv64" 4a0b9e2e8SMitchell HorneEMBEDDED_TARGET="riscv" 5a0b9e2e8SMitchell HorneEMBEDDEDBUILD=1 6d8462732SMitchell HorneFAT_SIZE="54m -b 8m" 7a0b9e2e8SMitchell HorneFAT_TYPE="16" 86137b5f7SMike KarelsIMAGE_SIZE="6144M" 9a0b9e2e8SMitchell HorneKERNEL="GENERIC" 10a0b9e2e8SMitchell HorneMD_ARGS="-x 63 -y 255" 11a0b9e2e8SMitchell HornePART_SCHEME="GPT" 12*3fb8f127SMitchell HorneEFIPART_SUFFIX=p3 13*3fb8f127SMitchell HorneROOTFSPART_SUFFIX=p4 14a0b9e2e8SMitchell Horneexport BOARDNAME="GENERICSD" 15*3fb8f127SMitchell Horne 16*3fb8f127SMitchell Hornearm_create_partitions() { 17*3fb8f127SMitchell Horne # Create two partitions for firmware, preceding EFI and ROOTFS: 18*3fb8f127SMitchell Horne # 1. u-boot SPL 19*3fb8f127SMitchell Horne # 2. u-boot loader 20*3fb8f127SMitchell Horne # 21*3fb8f127SMitchell Horne # The exact partition types can be rewritten by the user, but they should 22*3fb8f127SMitchell Horne # be reserved now. 23*3fb8f127SMitchell Horne 24*3fb8f127SMitchell Horne chroot ${CHROOTDIR} gpart add -t hifive-fsbl -l spl -a 512k -b 2m -s 2m ${mddev} 25*3fb8f127SMitchell Horne chroot ${CHROOTDIR} gpart add -t hifive-bbl -l uboot -a 512k -b 4m -s 4m ${mddev} 26*3fb8f127SMitchell Horne} 27