Skip to content

Instantly share code, notes, and snippets.

@minagi-yu
Created January 5, 2023 12:32
Show Gist options
  • Save minagi-yu/91630d61fd16f15af08b473f00ed1423 to your computer and use it in GitHub Desktop.
Save minagi-yu/91630d61fd16f15af08b473f00ed1423 to your computer and use it in GitHub Desktop.
FreeBSD13.1 release.sh configuration for NanoPi NEO2
#!/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
}
@minagi-yu
Copy link
Author

Building FreeBSD Installation Media for NanoPi NEO2

  1. Install FreeBSD src

  2. Install git

# pkg install git

  1. Download this file

  2. Build

# /bin/sh /usr/src/release/release.sh -c $HOME/NanoPi-NEO2.conf

After build is finished, the image file is in /scratch/R/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment