1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

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
This commit is contained in:
Pawel Pekala 2016-07-10 15:22:01 +00:00
parent 0cd58730f2
commit 42fdd7bb5d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=418325
3 changed files with 34 additions and 0 deletions

View File

@ -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

View File

@ -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"

View File

@ -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