blob: d55fe9e07355fc3ea809a2b7f69af46b30128aa5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# $NetBSD: Makefile,v 1.8 2020/01/27 08:02:30 thorpej Exp $
PKGREVISION= 7
UBOOT_TARGET= rockpro64
UBOOT_CONFIG= rockpro64-rk3399_defconfig
UBOOT_BIN= idbloader.img rksd_loader.img rkspi_loader.img u-boot.itb
UBOOT_INSTALLBOOT_PLIST= installboot.plist
DISTINFO_FILE= ${.CURDIR}/../../sysutils/u-boot-rockpro64/distinfo
U_BOOT_IMAGE_TYPE= rk3399
.include "../../sysutils/u-boot/u-boot-rockchip.mk"
# Boot Loader stage 3-1 (BL31) EL3 Runtime Firmware
# XXX LICENSE?
BL31= rk3399_bl31_v1.29.elf # if you bump this, adjust pre-build target!
DISTFILES+= ${BL31}
SITES.${BL31}= ${MASTER_SITE_GITHUB:=rockchip-linux/rkbin/raw/0b8a4e66958b5d3d87fc61fc4bd8e069c79e931a/bin/rk33/}
# DDR init binary
DDR_BIN= rk3399_ddr_800MHz_v1.23.bin
SITES.${DDR_BIN}= ${MASTER_SITE_GITHUB:=rockchip-linux/rkbin/raw/016471bcfb1a0b1e1269895cb7b6f534813edfdc/bin/rk33/}
DISTFILES+= ${DDR_BIN}
pre-build:
# patch the first instruction of cortex_a72_reset_func, replacing:
# mrs x0, s3_1_c15_c2_0
# with:
# orr x0, xzr, #0x100000000
# This enables workaround for A72 errata #859971.
${AWK} 'BEGIN {printf("%c%c%c%c",224,3,96,178);exit;}' | dd conv=notrunc bs=1 seek=145568 of=${WRKDIR}/${BL31}
.include "../../sysutils/u-boot/u-boot-arm64.mk"
|