Created
January 5, 2023 12:32
-
-
Save minagi-yu/91630d61fd16f15af08b473f00ed1423 to your computer and use it in GitHub Desktop.
FreeBSD13.1 release.sh configuration for NanoPi NEO2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# $FreeBSD$ | |
# | |
SRCBRANCH="releng/13.1" | |
EMBEDDED_TARGET_ARCH="aarch64" | |
EMBEDDED_TARGET="arm64" | |
EMBEDDEDBUILD=1 | |
EMBEDDEDPORTS="sysutils/u-boot-nanopi-neo2" | |
FAT_SIZE="54m -b 1m" | |
FAT_TYPE="16" | |
IMAGE_SIZE="3072M" | |
KERNEL="GENERIC" | |
MD_ARGS="-x 63 -y 255" | |
PART_SCHEME="GPT" | |
FDT_OVERLAYS="sun50i-h5-opp,sun50i-h5-nanopi-neo2-opp" | |
export BOARDNAME="NanoPi-NEO2" | |
arm_install_uboot() { | |
UBOOT_DIR="/usr/local/share/u-boot/u-boot-nanopi-neo2" | |
UBOOT_FILES="u-boot-sunxi-with-spl.bin" | |
chroot ${CHROOTDIR} dd if=${UBOOT_DIR}/${UBOOT_FILES} \ | |
of=/dev/${mddev} bs=128k seek=1 conv=sync | |
return 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Building FreeBSD Installation Media for NanoPi NEO2
Install FreeBSD src
Install git
# pkg install git
Download this file
Build
# /bin/sh /usr/src/release/release.sh -c $HOME/NanoPi-NEO2.conf
After build is finished, the image file is in /scratch/R/.