From 42fdd7bb5d2cecbcb2e59e1d1b5e0f1d748738b1 Mon Sep 17 00:00:00 2001 From: Pawel Pekala Date: Sun, 10 Jul 2016 15:22:01 +0000 Subject: [PATCH] U-Boot loader for Banana Pi M2. To install this bootloader, follow the instructions in http://linux-sunxi.org/Bootable_SD_card#Bootloader This version is patched so that: * ELF and API features are enabled. * The default environment is trimmed to just what's needed to boot. * The saveenv command writes to the file u-boot.env on the FAT partition. * The DTB file name is chosen based on the board model and passed to ubldr using the fdtfile env variable. ubldr loads the DTB from /boot/dtb/ on the FreeBSD partition. * By default, it loads PIE ubldr.bin from file ubldr.bin on the FAT partition to address 0x42000000, and launches it. For information about running FreeBSD on Banana Pi, see https://wiki.freebsd.org/FreeBSD/arm/Allwinner For general information about U-Boot see WWW: http://www.denx.de/wiki/U-Boot PR: 210628 Submitted by: manu --- sysutils/Makefile | 1 + sysutils/u-boot-bananapim2/Makefile | 14 ++++++++++++++ sysutils/u-boot-bananapim2/pkg-descr | 19 +++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 sysutils/u-boot-bananapim2/Makefile create mode 100644 sysutils/u-boot-bananapim2/pkg-descr diff --git a/sysutils/Makefile b/sysutils/Makefile index 1ace334f8cfd..1676d87d1d72 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1087,6 +1087,7 @@ SUBDIR += tw_cli SUBDIR += tzdialog SUBDIR += u-boot-bananapi + SUBDIR += u-boot-bananapim2 SUBDIR += u-boot-beaglebone SUBDIR += u-boot-cubieboard SUBDIR += u-boot-cubieboard2 diff --git a/sysutils/u-boot-bananapim2/Makefile b/sysutils/u-boot-bananapim2/Makefile new file mode 100644 index 000000000000..e6506781d5d9 --- /dev/null +++ b/sysutils/u-boot-bananapim2/Makefile @@ -0,0 +1,14 @@ +# $FreeBSD$ + +PKGNAMESUFFIX= -${MODEL} + +COMMENT= Cross-build U-Boot loader for bananapi M2 + +LICENSE= GPLv2 + +MASTERDIR= ${.CURDIR}/../u-boot-olimex-a20-som-evb +DESCR= ${.CURDIR}/pkg-descr +MODEL= bananapim2 +BOARD_CONFIG= Sinovoip_BPI_M2_defconfig + +.include "${MASTERDIR}/Makefile" diff --git a/sysutils/u-boot-bananapim2/pkg-descr b/sysutils/u-boot-bananapim2/pkg-descr new file mode 100644 index 000000000000..e3f7d73edb49 --- /dev/null +++ b/sysutils/u-boot-bananapim2/pkg-descr @@ -0,0 +1,19 @@ +U-Boot loader for Banana Pi M2. + +To install this bootloader, follow the instructions in + http://linux-sunxi.org/Bootable_SD_card#Bootloader + +This version is patched so that: + * ELF and API features are enabled. + * The default environment is trimmed to just what's needed to boot. + * The saveenv command writes to the file u-boot.env on the FAT partition. + * The DTB file name is chosen based on the board model and passed to ubldr + using the fdtfile env variable. ubldr loads the DTB from /boot/dtb/ on + the FreeBSD partition. + * By default, it loads PIE ubldr.bin from file ubldr.bin on the FAT partition + to address 0x42000000, and launches it. + +For information about running FreeBSD on Banana Pi, see + https://wiki.freebsd.org/FreeBSD/arm/Allwinner + +For general information about U-Boot see WWW: http://www.denx.de/wiki/U-Boot