xref: /freebsd/release/riscv/GENERICSD.conf (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
1#!/bin/sh
2
3EMBEDDED_TARGET_ARCH="riscv64"
4EMBEDDED_TARGET="riscv"
5EMBEDDEDBUILD=1
6FAT_SIZE="54m -b 8m"
7FAT_TYPE="16"
8IMAGE_SIZE="6144M"
9KERNEL="GENERIC"
10MD_ARGS="-x 63 -y 255"
11PART_SCHEME="GPT"
12EFIPART_SUFFIX=p3
13ROOTFSPART_SUFFIX=p4
14export BOARDNAME="GENERICSD"
15
16arm_create_partitions() {
17    # Create two partitions for firmware, preceding EFI and ROOTFS:
18    #  1. u-boot SPL
19    #  2. u-boot loader
20    #
21    #  The exact partition types can be rewritten by the user, but they should
22    #  be reserved now.
23
24    chroot ${CHROOTDIR} gpart add -t hifive-fsbl -l spl -a 512k -b 2m -s 2m ${mddev}
25    chroot ${CHROOTDIR} gpart add -t hifive-bbl -l uboot -a 512k -b 4m -s 4m ${mddev}
26}
27