pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/sysutils u-boot-rock{, pro}64: install the SPI boot loa...
details: https://anonhg.NetBSD.org/pkgsrc/rev/36138aa73808
branches: trunk
changeset: 337855:36138aa73808
user: tnn <tnn%pkgsrc.org@localhost>
date: Tue Aug 13 21:28:46 2019 +0000
description:
u-boot-rock{,pro}64: install the SPI boot loader. Bump.
diffstat:
sysutils/u-boot-rock64/PLIST | 3 ++-
sysutils/u-boot-rockpro64/MESSAGE | 6 +++++-
sysutils/u-boot-rockpro64/Makefile | 4 ++--
sysutils/u-boot-rockpro64/PLIST | 3 ++-
sysutils/u-boot/u-boot-rockchip.mk | 7 +++++--
5 files changed, 16 insertions(+), 7 deletions(-)
diffs (78 lines):
diff -r d95ca4891a8e -r 36138aa73808 sysutils/u-boot-rock64/PLIST
--- a/sysutils/u-boot-rock64/PLIST Tue Aug 13 20:56:30 2019 +0000
+++ b/sysutils/u-boot-rock64/PLIST Tue Aug 13 21:28:46 2019 +0000
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1 2019/06/08 12:25:05 mrg Exp $
+@comment $NetBSD: PLIST,v 1.2 2019/08/13 21:28:46 tnn Exp $
share/u-boot/rock64/idbloader.img
share/u-boot/rock64/rksd_loader.img
+share/u-boot/rock64/rkspi_loader.img
share/u-boot/rock64/u-boot.itb
diff -r d95ca4891a8e -r 36138aa73808 sysutils/u-boot-rockpro64/MESSAGE
--- a/sysutils/u-boot-rockpro64/MESSAGE Tue Aug 13 20:56:30 2019 +0000
+++ b/sysutils/u-boot-rockpro64/MESSAGE Tue Aug 13 21:28:46 2019 +0000
@@ -1,10 +1,14 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.2 2018/09/01 12:04:56 tnn Exp $
+$NetBSD: MESSAGE,v 1.3 2019/08/13 21:28:47 tnn Exp $
Example command to install U-Boot to an empty SD card:
# dd if=${LOCALBASE}/share/u-boot/rockpro64/rksd_loader.img seek=64 of=/dev/rld0d
+Alternatively, to install to SPI flash:
+
+dd if=${LOCALBASE}/share/u-boot/rockpro64/rkspi_loader.img bs=64k of=/dev/spiflash0
+
See also http://opensource.rock-chips.com/wiki_Boot_option
===========================================================================
diff -r d95ca4891a8e -r 36138aa73808 sysutils/u-boot-rockpro64/Makefile
--- a/sysutils/u-boot-rockpro64/Makefile Tue Aug 13 20:56:30 2019 +0000
+++ b/sysutils/u-boot-rockpro64/Makefile Tue Aug 13 21:28:46 2019 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2019/07/21 15:17:13 tnn Exp $
+# $NetBSD: Makefile,v 1.5 2019/08/13 21:28:47 tnn Exp $
UBOOT_TARGET= rockpro64
UBOOT_CONFIG= rockpro64-rk3399_defconfig
-UBOOT_BIN= idbloader.img rksd_loader.img u-boot.itb
+UBOOT_BIN= idbloader.img rksd_loader.img rkspi_loader.img u-boot.itb
DISTINFO_FILE= ${.CURDIR}/../../sysutils/u-boot-rockpro64/distinfo
diff -r d95ca4891a8e -r 36138aa73808 sysutils/u-boot-rockpro64/PLIST
--- a/sysutils/u-boot-rockpro64/PLIST Tue Aug 13 20:56:30 2019 +0000
+++ b/sysutils/u-boot-rockpro64/PLIST Tue Aug 13 21:28:46 2019 +0000
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST,v 1.2 2018/09/01 12:04:56 tnn Exp $
+@comment $NetBSD: PLIST,v 1.3 2019/08/13 21:28:47 tnn Exp $
share/u-boot/rockpro64/idbloader.img
share/u-boot/rockpro64/rksd_loader.img
+share/u-boot/rockpro64/rkspi_loader.img
share/u-boot/rockpro64/u-boot.itb
diff -r d95ca4891a8e -r 36138aa73808 sysutils/u-boot/u-boot-rockchip.mk
--- a/sysutils/u-boot/u-boot-rockchip.mk Tue Aug 13 20:56:30 2019 +0000
+++ b/sysutils/u-boot/u-boot-rockchip.mk Tue Aug 13 21:28:46 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: u-boot-rockchip.mk,v 1.3 2019/07/21 15:17:12 tnn Exp $
+# $NetBSD: u-boot-rockchip.mk,v 1.4 2019/08/13 21:28:47 tnn Exp $
#
# Common makefile fragment for rockchip based u-boot targets.
@@ -8,7 +8,7 @@
# U_BOOT_IMAGE_TYPE ("rk3399", "rk3328")
#
-PKGREVISION= 4
+PKGREVISION= 5
UBOOT_VERSION= ${GITHUB_TAG:C/-.*$//}
MASTER_SITES= ${MASTER_SITE_GITHUB:=ayufan-rock64/}
GITHUB_PROJECT= linux-u-boot
@@ -37,3 +37,6 @@
# 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
+# build SPI NOR flash image. See dev-ayufan/build.mk.
+ set -e; b=0; while [ "$$b" != 128 ]; do dd bs=2k count=1; dd if=/dev/zero bs=2k count=1; b=$$(expr $$b + 1); done < ${WRKSRC}/idbloader.img > ${WRKSRC}/rkspi_loader.img 2> /dev/null
+ dd if=${WRKSRC}/u-boot.itb seek=1024 conv=notrunc of=${WRKSRC}/rkspi_loader.img
Home |
Main Index |
Thread Index |
Old Index