pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/u-boot-pinebook-pro build rksd_loader.img aga...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2de1b0b814d5
branches:  trunk
changeset: 347000:2de1b0b814d5
user:      mrg <mrg%pkgsrc.org@localhost>
date:      Mon Jan 06 09:43:16 2020 +0000

description:
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.

diffstat:

 sysutils/u-boot-pinebook-pro/MESSAGE                                             |   5 ++---
 sysutils/u-boot-pinebook-pro/Makefile                                            |  10 ++++++++--
 sysutils/u-boot-pinebook-pro/PLIST                                               |   3 ++-
 sysutils/u-boot-pinebook-pro/distinfo                                            |   4 ++--
 sysutils/u-boot-pinebook-pro/patches/patch-configs-pinebook_pro-rk3399_defconfig |   5 +++--
 5 files changed, 17 insertions(+), 10 deletions(-)

diffs (89 lines):

diff -r 930f825376e8 -r 2de1b0b814d5 sysutils/u-boot-pinebook-pro/MESSAGE
--- a/sysutils/u-boot-pinebook-pro/MESSAGE      Mon Jan 06 09:39:10 2020 +0000
+++ b/sysutils/u-boot-pinebook-pro/MESSAGE      Mon Jan 06 09:43:16 2020 +0000
@@ -1,10 +1,9 @@
 ===========================================================================
-$NetBSD: MESSAGE,v 1.1 2020/01/06 08:41:44 mrg Exp $
+$NetBSD: MESSAGE,v 1.2 2020/01/06 09:43:16 mrg Exp $
 
 Examples command to install U-Boot to an empty SD card:
 
-# dd if=${LOCALBASE}/share/u-boot/pinebook-pro/idbloader.img seek=64 of=/dev/rld0d
-# dd if=${LOCALBASE}/share/u-boot/pinebook-pro/boot.itb seek=16384 of=/dev/rld0d
+# dd if=${LOCALBASE}/share/u-boot/pinebook-pro/rksd_loader.img seek=64 of=/dev/rld0d
 
 You should make sure that the space is otherwise cleared of data, as old
 images may fool the boot loader paths.
diff -r 930f825376e8 -r 2de1b0b814d5 sysutils/u-boot-pinebook-pro/Makefile
--- a/sysutils/u-boot-pinebook-pro/Makefile     Mon Jan 06 09:39:10 2020 +0000
+++ b/sysutils/u-boot-pinebook-pro/Makefile     Mon Jan 06 09:43:16 2020 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.1 2020/01/06 08:41:44 mrg Exp $
+# $NetBSD: Makefile,v 1.2 2020/01/06 09:43:16 mrg Exp $
 
+PKGREVISION=            1
 UBOOT_TARGET=          pinebook-pro
 UBOOT_CONFIG=          pinebook_pro-rk3399_defconfig
-UBOOT_BIN=             idbloader.img u-boot.itb
+UBOOT_BIN=             idbloader.img u-boot.itb rksd_loader.img
 
 UBOOT_VERSION=         2020.01-rc5
 
@@ -13,5 +14,10 @@
 
 MAKE_ENV+=     BL31=${PREFIX}/share/arm-trusted-firmware/rk3399/bl31.elf
 
+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
+
 .include "../../sysutils/arm-trusted-firmware-rk3399/buildlink3.mk"
 .include "../../sysutils/u-boot/u-boot-arm64.mk"
diff -r 930f825376e8 -r 2de1b0b814d5 sysutils/u-boot-pinebook-pro/PLIST
--- a/sysutils/u-boot-pinebook-pro/PLIST        Mon Jan 06 09:39:10 2020 +0000
+++ b/sysutils/u-boot-pinebook-pro/PLIST        Mon Jan 06 09:43:16 2020 +0000
@@ -1,3 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2020/01/06 08:41:44 mrg Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/01/06 09:43:16 mrg Exp $
 share/u-boot/pinebook-pro/idbloader.img
+share/u-boot/pinebook-pro/rksd_loader.img
 share/u-boot/pinebook-pro/u-boot.itb
diff -r 930f825376e8 -r 2de1b0b814d5 sysutils/u-boot-pinebook-pro/distinfo
--- a/sysutils/u-boot-pinebook-pro/distinfo     Mon Jan 06 09:39:10 2020 +0000
+++ b/sysutils/u-boot-pinebook-pro/distinfo     Mon Jan 06 09:43:16 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.1 2020/01/06 08:41:44 mrg Exp $
+$NetBSD: distinfo,v 1.2 2020/01/06 09:43:16 mrg Exp $
 
 SHA1 (u-boot-2020.01-rc5.tar.bz2) = 464dec492bd12bf561468b5560d5465bee708de1
 RMD160 (u-boot-2020.01-rc5.tar.bz2) = 2fd9b608a182a783e7e1e07003d2303376de7b4f
@@ -12,5 +12,5 @@
 SHA1 (patch-board_pine64_pinebook_pro_rk3399_MAINTAINERS) = 81933bcfb75ec0a28f92d7c9823982dae075b699
 SHA1 (patch-board_pine64_pinebook_pro_rk3399_Makefile) = 9dca0a93221ae2a7fa6a6a1794e22750ab105e07
 SHA1 (patch-board_pine64_pinebook_pro_rk3399_pinebook-pro-rk3399.c) = f06846db31ce5f07f9aa77019efb5b6ca6dc8966
-SHA1 (patch-configs-pinebook_pro-rk3399_defconfig) = 794b7c59d9c21be77bc88f4eac2987778e8679d0
+SHA1 (patch-configs-pinebook_pro-rk3399_defconfig) = 33232c1b62e6ce5974251b2e477f28413ef99d0d
 SHA1 (patch-include-configs-pinebook_pro_rk3399.h) = a8edaa170fb6403a912d6ddda11e3e37c8b2442c
diff -r 930f825376e8 -r 2de1b0b814d5 sysutils/u-boot-pinebook-pro/patches/patch-configs-pinebook_pro-rk3399_defconfig
--- a/sysutils/u-boot-pinebook-pro/patches/patch-configs-pinebook_pro-rk3399_defconfig  Mon Jan 06 09:39:10 2020 +0000
+++ b/sysutils/u-boot-pinebook-pro/patches/patch-configs-pinebook_pro-rk3399_defconfig  Mon Jan 06 09:43:16 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-configs-pinebook_pro-rk3399_defconfig,v 1.1 2020/01/06 08:41:44 mrg Exp $
+$NetBSD: patch-configs-pinebook_pro-rk3399_defconfig,v 1.2 2020/01/06 09:43:16 mrg Exp $
 
 Pinebook Pro support from https://patchwork.ozlabs.org/patch/1194525/
 
@@ -7,10 +7,11 @@
 index 0000000000..28577256e7
 --- /dev/null
 +++ configs/pinebook_pro-rk3399_defconfig
-@@ -0,0 +1,76 @@
+@@ -0,0 +1,77 @@
 +CONFIG_ARM=y
 +CONFIG_ARCH_ROCKCHIP=y
 +CONFIG_SYS_TEXT_BASE=0x00200000
++CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x200
 +CONFIG_ROCKCHIP_RK3399=y
 +CONFIG_TARGET_PINEBOOK_PRO_RK3399=y
 +CONFIG_SPL_SPI_FLASH_SUPPORT=y



Home | Main Index | Thread Index | Old Index