head	1.16;
access;
symbols
	pkgsrc-2026Q1:1.16.0.34
	pkgsrc-2026Q1-base:1.16
	pkgsrc-2025Q4:1.16.0.32
	pkgsrc-2025Q4-base:1.16
	pkgsrc-2025Q3:1.16.0.30
	pkgsrc-2025Q3-base:1.16
	pkgsrc-2025Q2:1.16.0.28
	pkgsrc-2025Q2-base:1.16
	pkgsrc-2025Q1:1.16.0.26
	pkgsrc-2025Q1-base:1.16
	pkgsrc-2024Q4:1.16.0.24
	pkgsrc-2024Q4-base:1.16
	pkgsrc-2024Q3:1.16.0.22
	pkgsrc-2024Q3-base:1.16
	pkgsrc-2024Q2:1.16.0.20
	pkgsrc-2024Q2-base:1.16
	pkgsrc-2024Q1:1.16.0.18
	pkgsrc-2024Q1-base:1.16
	pkgsrc-2023Q4:1.16.0.16
	pkgsrc-2023Q4-base:1.16
	pkgsrc-2023Q3:1.16.0.14
	pkgsrc-2023Q3-base:1.16
	pkgsrc-2023Q2:1.16.0.12
	pkgsrc-2023Q2-base:1.16
	pkgsrc-2023Q1:1.16.0.10
	pkgsrc-2023Q1-base:1.16
	pkgsrc-2022Q4:1.16.0.8
	pkgsrc-2022Q4-base:1.16
	pkgsrc-2022Q3:1.16.0.6
	pkgsrc-2022Q3-base:1.16
	pkgsrc-2022Q2:1.16.0.4
	pkgsrc-2022Q2-base:1.16
	pkgsrc-2022Q1:1.16.0.2
	pkgsrc-2022Q1-base:1.16
	pkgsrc-2021Q4:1.13.0.4
	pkgsrc-2021Q4-base:1.13
	pkgsrc-2021Q3:1.13.0.2
	pkgsrc-2021Q3-base:1.13
	pkgsrc-2021Q2:1.10.0.2
	pkgsrc-2021Q2-base:1.10
	pkgsrc-2021Q1:1.8.0.8
	pkgsrc-2021Q1-base:1.8
	pkgsrc-2020Q4:1.8.0.6
	pkgsrc-2020Q4-base:1.8
	pkgsrc-2020Q3:1.8.0.4
	pkgsrc-2020Q3-base:1.8
	pkgsrc-2020Q2:1.8.0.2
	pkgsrc-2020Q2-base:1.8
	pkgsrc-2020Q1:1.7.0.2
	pkgsrc-2020Q1-base:1.7;
locks; strict;
comment	@# @;


1.16
date	2022.02.12.07.44.55;	author mrg;	state Exp;
branches;
next	1.15;
commitid	lc4p3oCpCw8iIisD;

1.15
date	2022.02.11.23.03.50;	author mrg;	state Exp;
branches;
next	1.14;
commitid	cm1224WhLqbJPfsD;

1.14
date	2022.02.11.22.06.22;	author mrg;	state Exp;
branches;
next	1.13;
commitid	gLw80im6eMtjtfsD;

1.13
date	2021.08.12.07.30.23;	author wiz;	state Exp;
branches;
next	1.12;
commitid	JmCE6U69x1GjyE4D;

1.12
date	2021.07.26.06.36.41;	author mrg;	state Exp;
branches;
next	1.11;
commitid	bVC29iQ0esz8ws2D;

1.11
date	2021.06.25.08.28.57;	author mrg;	state Exp;
branches;
next	1.10;
commitid	7IavYzijI6YIpuYC;

1.10
date	2021.04.18.08.54.56;	author mrg;	state Exp;
branches;
next	1.9;
commitid	g9Jv4tH3AMtBJKPC;

1.9
date	2021.04.18.07.30.28;	author mrg;	state Exp;
branches;
next	1.8;
commitid	AZwnCzfFCTR5hKPC;

1.8
date	2020.04.02.09.12.54;	author tnn;	state Exp;
branches;
next	1.7;
commitid	GSWj1llZ8TqJ5N2C;

1.7
date	2020.02.23.01.01.11;	author mrg;	state Exp;
branches;
next	1.6;
commitid	sA7Jo8CwsIRbBJXB;

1.6
date	2020.02.22.11.55.36;	author mrg;	state Exp;
branches;
next	1.5;
commitid	TmwAjDZyg5UYgFXB;

1.5
date	2020.01.27.08.02.29;	author thorpej;	state Exp;
branches;
next	1.4;
commitid	Wie6o5eTcAe2PiUB;

1.4
date	2020.01.14.09.01.53;	author mrg;	state Exp;
branches;
next	1.3;
commitid	8Mw6oOpZ0hoBzDSB;

1.3
date	2020.01.14.08.44.03;	author mrg;	state Exp;
branches;
next	1.2;
commitid	VlgsJU1Ut8gRrDSB;

1.2
date	2020.01.06.09.43.16;	author mrg;	state Exp;
branches;
next	1.1;
commitid	Ekz1AklJw2yW2CRB;

1.1
date	2020.01.06.08.41.44;	author mrg;	state Exp;
branches;
next	;
commitid	x3Xe4aQT5O19IBRB;


desc
@@


1.16
log
@load pinebook pro SPI environment from the same location that
rockpro64 does and avoid "saveenv" saving over the top of the
u-boot installation itself.

now my pbp can boot from just SPI and NVMe.

bump pkg revision.
@
text
@# $NetBSD: Makefile,v 1.15 2022/02/11 23:03:50 mrg Exp $

UBOOT_TARGET=		pinebook-pro
UBOOT_CONFIG=		pinebook-pro-rk3399_defconfig
UBOOT_BIN=		idbloader.img rksd_loader.img rkspi_loader.img u-boot.itb
UBOOT_IMAGE_TYPE=	rk3399
UBOOT_MKIMAGE_RKSPI=	1
UBOOT_RK_SPI_OFF=	768

PKGREVISION=		1

UBOOT_INSTALLBOOT_PLIST=	installboot.plist

.include "../../sysutils/u-boot/u-boot-rockchip.mk"
.include "../../mk/bsd.pkg.mk"
@


1.15
log
@update u-boot-rock64 to 2022.01 and tf-a 2.6.

change the u-boot-rockchip.mk to default to 2022.01 as only the
(probably) obsolete ayufan package uses anything else.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2022/02/11 22:06:22 mrg Exp $
d10 2
@


1.14
log
@update u-boot-rockpro64 and u-boot-pinebook-pro to u-boot 2022.01.

tested in sd, emmc, and spi on rockpro64, and on emmc on pbp.

should not affect u-boot-rockpro64-ayufan, but should finally
make it obsolete as the SPI version works again.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2021/08/12 07:30:23 wiz Exp $
a6 1
UBOOT_VERSION?=		2022.01
@


1.13
log
@u-boot*: fix more pkglint
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2021/07/26 06:36:41 mrg Exp $
d7 3
a9 1
UBOOT_VERSION?=		2021.07
@


1.12
log
@update u-boot for rockpro64 and pinebook-pro to u-boot 2021.07.

- adds support for panel on pinebook-pro (needs rk_anxdp.c r1.4)
- enable ahci/sata for rockpro64
- workaround usb_stop() bug in u-boot.  see eg:
  https://patchwork.ozlabs.org/project/uboot/patch/20210406151059.1187379-1-icenowy@@aosc.io/
- remove long obsolete files

tested on original iso pbp that was upgraded to ansi key, and a
first generation ansi pbp, as well as two rockpro64 v2.1s.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2021/06/25 08:28:57 mrg Exp $
d12 1
@


1.11
log
@minor u-boot rockchip package cleanup.

rename U_BOOT_IMAGE_TYPE to UBOOT_IMAGE_TYPE -- matching the rest of pkgsrc.
remove not used (or needed) DISTINFO_FILE and PATCHDIR.

NFC.
@
text
@d1 1
a1 3
# $NetBSD: Makefile,v 1.10 2021/04/18 08:54:56 mrg Exp $

PKGREVISION=		5
d4 1
a4 1
UBOOT_CONFIG=		pinebook_pro-rk3399_defconfig
d6 2
a10 2
UBOOT_IMAGE_TYPE=	rk3399

@


1.10
log
@various updates for the new pkgsrc u-boot world order.

the whole u-boot package builds with the patches and distinfos
moved into the new places.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2021/04/18 07:30:28 mrg Exp $
d11 1
a11 5
U_BOOT_IMAGE_TYPE=	rk3399

# Patches kept in pinebook-pro; first worked there.
#DISTINFO_FILE=		${.CURDIR}/../../sysutils/u-boot-pinebook-pro/distinfo
#PATCHDIR=		${.CURDIR}/../../sysutils/u-boot-pinebook-pro/patches
@


1.9
log
@add some distinfo files and ensure a consistent DISTINFO_FILE and
PATCHDIR are setup.

at least u-boot-pinebook and u-boot-rock*64* are fixed now.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2020/04/02 09:12:54 tnn Exp $
d14 2
a15 2
DISTINFO_FILE=		${.CURDIR}/../../sysutils/u-boot-pinebook-pro/distinfo
PATCHDIR=		${.CURDIR}/../../sysutils/u-boot-pinebook-pro/patches
@


1.8
log
@move u-boot-pinebook-pro/u-boot-rockchip.mk to u-boot/u-boot-rockchip.mk
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2020/02/23 01:01:11 mrg Exp $
d13 4
@


1.7
log
@properly fix reboots for rk3399 ATF, by pulling in
   https://github.com/ARM-software/arm-trusted-firmware/commit/d52331d01e0efae36e837af90887a8aed33ff604#diff-94a9f1c135591eedd6addbcc729f46fb
and removing my hack.

switch rk3399 ATF to release builds over debug builds.

bump both u-boot-pinebook-pro & arm-trusted-firmware-rk3399.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2020/02/22 11:55:36 mrg Exp $
d13 1
a13 1
.include "../../sysutils/u-boot-pinebook-pro/u-boot-rockchip.mk"
@


1.6
log
@fix reboot on pinebook-pro.

pull in https://github.com/ARM-software/arm-trusted-firmware/commit/b4899041e5f0b8e8b388c6511b5233516b8785ec
from upstream, and also force this code path to be used.

bump version of both the rk3399 ATF and the pbp u-boot, and adjust
the buildlink version to require the updated ATF.

fix MESSAGE for u-boot-pinebook-pro to not refer to rockpro64.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2020/01/27 08:02:29 thorpej Exp $
d3 1
a3 1
PKGREVISION=		4
@


1.5
log
@Add installboot(8) configurations for Rock64, RockPro64 and Pinebook Pro.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2020/01/14 09:01:53 mrg Exp $
d3 1
a3 1
PKGREVISION=		3
@


1.4
log
@bump pkg revision.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2020/01/14 08:44:03 mrg Exp $
d3 1
a3 1
PKGREVISION=		2
d9 2
@


1.3
log
@pull in various patches for pinebook pro that:

- turn on the power led
- reduce a timeout slightly
- possibly enable usb boot (untested)
- possibly enable sd boot from emmc uboot (untested)

from Emmanuel Vadot <manu@@freebsd.org> and dhivael <dhivael.git@@eno.space>
and some minor massaging from myself.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2020/01/06 09:43:16 mrg Exp $
d3 1
a3 1
PKGREVISION=		1
@


1.2
log
@build rksd_loader.img again, now that i found the option to make
uboot itself live at 256k from the start of the image, not 8MB
(CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x200.)

adjust MESSAGE etc to reference just this.  bump pkg revision.
@
text
@d1 3
a3 1
# $NetBSD: Makefile,v 1.1 2020/01/06 08:41:44 mrg Exp $
a4 1
PKGREVISION=            1
d7 1
a7 10
UBOOT_BIN=		idbloader.img u-boot.itb rksd_loader.img

UBOOT_VERSION=		2020.01-rc5

DISTINFO_FILE=		${.CURDIR}/../../sysutils/u-boot-pinebook-pro/distinfo
PATCHDIR=		${.CURDIR}/../../sysutils/u-boot-pinebook-pro/patches

USE_TOOLS+=	gawk

MAKE_ENV+=	BL31=${PREFIX}/share/arm-trusted-firmware/rk3399/bl31.elf
d9 1
a9 4
post-build:
# wrap everything up into a single file that can be written to an SD card
	cp ${WRKSRC}/idbloader.img ${WRKSRC}/rksd_loader.img
	dd if=${WRKSRC}/u-boot.itb seek=448 conv=notrunc of=${WRKSRC}/rksd_loader.img
d11 1
a11 2
.include "../../sysutils/arm-trusted-firmware-rk3399/buildlink3.mk"
.include "../../sysutils/u-boot/u-boot-arm64.mk"
@


1.1
log
@add a u-boot for pinebook pro.  it's mostly functional though reboot
is not working for me currently, and the power LED stays off until
netbsd boots still.

this is based upon u-boot 2020.01-rc5 with patches from:

https://patchwork.ozlabs.org/project/uboot/list/?series=142716

which add specific pinebook pro support.  (these sources are known
to have a working reboot, but not from a build i've made.)
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2019/09/15 15:50:22 tnn Exp $
d3 1
d6 1
a6 1
UBOOT_BIN=		idbloader.img u-boot.itb
d17 5
@

