pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils Add u-boot for the Banana Pi BPI-M2 Zero and ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/32e11be0a1c2
branches:  trunk
changeset: 334767:32e11be0a1c2
user:      thorpej <thorpej%pkgsrc.org@localhost>
date:      Wed Jun 05 05:43:15 2019 +0000

description:
Add u-boot for the Banana Pi BPI-M2 Zero and BPI-P2 Zero.

diffstat:

 sysutils/Makefile                                                             |    4 +-
 sysutils/u-boot-bananapi-m2-zero/DESCR                                        |    5 +
 sysutils/u-boot-bananapi-m2-zero/Makefile                                     |    9 +
 sysutils/u-boot-bananapi-m2-zero/PLIST                                        |    3 +
 sysutils/u-boot-bananapi-m2-zero/files/installboot.plist                      |   47 +++
 sysutils/u-boot-bananapi-p2-zero/DESCR                                        |    5 +
 sysutils/u-boot-bananapi-p2-zero/Makefile                                     |    9 +
 sysutils/u-boot-bananapi-p2-zero/PLIST                                        |    3 +
 sysutils/u-boot-bananapi-p2-zero/files/installboot.plist                      |   47 +++
 sysutils/u-boot/Makefile                                                      |    4 +-
 sysutils/u-boot/distinfo                                                      |    7 +-
 sysutils/u-boot/patches/patch-arch_arm_dts_Makefile                           |   17 +
 sysutils/u-boot/patches/patch-arch_arm_dts_sun8i-h2-plus-bananapi-m2-zero.dts |  128 ++++++++++
 sysutils/u-boot/patches/patch-arch_arm_dts_sun8i-h2-plus-bananapi-p2-zero.dts |   94 +++++++
 sysutils/u-boot/patches/patch-configs_bananapi_m2_zero_defconfig              |   20 +
 sysutils/u-boot/patches/patch-configs_bananapi_p2_zero_defconfig              |   22 +
 16 files changed, 421 insertions(+), 3 deletions(-)

diffs (truncated from 520 to 300 lines):

diff -r e445cc6072aa -r 32e11be0a1c2 sysutils/Makefile
--- a/sysutils/Makefile Wed Jun 05 05:14:21 2019 +0000
+++ b/sysutils/Makefile Wed Jun 05 05:43:15 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.815 2019/06/03 09:53:51 prlw1 Exp $
+# $NetBSD: Makefile,v 1.816 2019/06/05 05:43:15 thorpej Exp $
 #
 
 COMMENT=       System utilities
@@ -619,7 +619,9 @@
 #SUBDIR+=      u-boot                  # only contains Makefile fragments
 SUBDIR+=       u-boot-a10-olinuxino-lime
 SUBDIR+=       u-boot-bananapi
+SUBDIR+=       u-boot-bananapi-m2-zero
 SUBDIR+=       u-boot-bananapi-m3
+SUBDIR+=       u-boot-bananapi-p2-zero
 SUBDIR+=       u-boot-bananapi-r2
 SUBDIR+=       u-boot-bananapro
 SUBDIR+=       u-boot-beagleboard
diff -r e445cc6072aa -r 32e11be0a1c2 sysutils/u-boot-bananapi-m2-zero/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-bananapi-m2-zero/DESCR    Wed Jun 05 05:43:15 2019 +0000
@@ -0,0 +1,5 @@
+U-Boot is a bootloader for embedded boards based on PowerPC, ARM, MIPS and
+several other processors, which can be installed in a boot ROM and used to
+initialize and test the hardware or to download and run application code.
+
+This package provides U-Boot for the Sinovoip Banana Pi BPI-M2 Zero.
diff -r e445cc6072aa -r 32e11be0a1c2 sysutils/u-boot-bananapi-m2-zero/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-bananapi-m2-zero/Makefile Wed Jun 05 05:43:15 2019 +0000
@@ -0,0 +1,9 @@
+# $NetBSD: Makefile,v 1.1 2019/06/05 05:43:15 thorpej Exp $
+
+UBOOT_TARGET=          bananapi-m2-zero
+UBOOT_CONFIG=          bananapi_m2_zero_defconfig
+UBOOT_BIN=             u-boot-sunxi-with-spl.bin
+
+UBOOT_INSTALLBOOT_PLIST=installboot.plist
+
+.include "../../sysutils/u-boot/u-boot-arm.mk"
diff -r e445cc6072aa -r 32e11be0a1c2 sysutils/u-boot-bananapi-m2-zero/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-bananapi-m2-zero/PLIST    Wed Jun 05 05:43:15 2019 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2019/06/05 05:43:15 thorpej Exp $
+share/u-boot/bananapi-m2-zero/installboot.plist
+share/u-boot/bananapi-m2-zero/u-boot-sunxi-with-spl.bin
diff -r e445cc6072aa -r 32e11be0a1c2 sysutils/u-boot-bananapi-m2-zero/files/installboot.plist
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-bananapi-m2-zero/files/installboot.plist  Wed Jun 05 05:43:15 2019 +0000
@@ -0,0 +1,47 @@
+<!-- $NetBSD: installboot.plist,v 1.1 2019/06/05 05:43:15 thorpej Exp $ -->
+<!--
+  Copyright (c) 2019 The NetBSD Foundation, Inc.
+  All rights reserved.
+ 
+  This code is derived from software contributed to The NetBSD Foundation
+  by Jason R. Thorpe.
+ 
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+ 
+  THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+  PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+  BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+  POSSIBILITY OF SUCH DAMAGE.
+-->
+<plist>
+<dict>
+       <key>sinovoip,bpi-m2-zero</key>
+       <dict>
+               <key>description</key>
+               <string>Banana Pi BPI-M2-Zero</string>
+               <key>u-boot-install</key>
+               <array>
+                       <dict>
+                               <key>file-name</key>
+                               <string>u-boot-sunxi-with-spl.bin</string>
+                               <key>image-offset</key>
+                               <integer>8192</integer>
+                       </dict>
+               </array>
+       </dict>
+</dict>
+</plist>
diff -r e445cc6072aa -r 32e11be0a1c2 sysutils/u-boot-bananapi-p2-zero/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-bananapi-p2-zero/DESCR    Wed Jun 05 05:43:15 2019 +0000
@@ -0,0 +1,5 @@
+U-Boot is a bootloader for embedded boards based on PowerPC, ARM, MIPS and
+several other processors, which can be installed in a boot ROM and used to
+initialize and test the hardware or to download and run application code.
+
+This package provides U-Boot for the Sinovoip Banana Pi BPI-P2 Zero.
diff -r e445cc6072aa -r 32e11be0a1c2 sysutils/u-boot-bananapi-p2-zero/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-bananapi-p2-zero/Makefile Wed Jun 05 05:43:15 2019 +0000
@@ -0,0 +1,9 @@
+# $NetBSD: Makefile,v 1.1 2019/06/05 05:43:15 thorpej Exp $
+
+UBOOT_TARGET=          bananapi-p2-zero
+UBOOT_CONFIG=          bananapi_p2_zero_defconfig
+UBOOT_BIN=             u-boot-sunxi-with-spl.bin
+
+UBOOT_INSTALLBOOT_PLIST=installboot.plist
+
+.include "../../sysutils/u-boot/u-boot-arm.mk"
diff -r e445cc6072aa -r 32e11be0a1c2 sysutils/u-boot-bananapi-p2-zero/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-bananapi-p2-zero/PLIST    Wed Jun 05 05:43:15 2019 +0000
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2019/06/05 05:43:15 thorpej Exp $
+share/u-boot/bananapi-p2-zero/installboot.plist
+share/u-boot/bananapi-p2-zero/u-boot-sunxi-with-spl.bin
diff -r e445cc6072aa -r 32e11be0a1c2 sysutils/u-boot-bananapi-p2-zero/files/installboot.plist
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot-bananapi-p2-zero/files/installboot.plist  Wed Jun 05 05:43:15 2019 +0000
@@ -0,0 +1,47 @@
+<!-- $NetBSD: installboot.plist,v 1.1 2019/06/05 05:43:15 thorpej Exp $ -->
+<!--
+  Copyright (c) 2019 The NetBSD Foundation, Inc.
+  All rights reserved.
+ 
+  This code is derived from software contributed to The NetBSD Foundation
+  by Jason R. Thorpe.
+ 
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+ 
+  THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+  TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+  PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+  BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+  POSSIBILITY OF SUCH DAMAGE.
+-->
+<plist>
+<dict>
+       <key>sinovoip,bpi-p2-zero</key>
+       <dict>
+               <key>description</key>
+               <string>Banana Pi BPI-P2-Zero</string>
+               <key>u-boot-install</key>
+               <array>
+                       <dict>
+                               <key>file-name</key>
+                               <string>u-boot-sunxi-with-spl.bin</string>
+                               <key>image-offset</key>
+                               <integer>8192</integer>
+                       </dict>
+               </array>
+       </dict>
+</dict>
+</plist>
diff -r e445cc6072aa -r 32e11be0a1c2 sysutils/u-boot/Makefile
--- a/sysutils/u-boot/Makefile  Wed Jun 05 05:14:21 2019 +0000
+++ b/sysutils/u-boot/Makefile  Wed Jun 05 05:43:15 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2019/05/29 03:24:02 thorpej Exp $
+# $NetBSD: Makefile,v 1.15 2019/06/05 05:43:15 thorpej Exp $
 #
 
 .include "../../sysutils/u-boot/u-boot-version.mk"
@@ -18,7 +18,9 @@
 .include "../../mk/bsd.prefs.mk"
 
 DEPENDS+=      u-boot-a10-olinuxino-lime-[0-9]*:../../sysutils/u-boot-a10-olinuxino-lime
+DEPENDS+=      u-boot-bananapi-m2-zero-[0-9]*:../../sysutils/u-boot-bananapi-m3
 DEPENDS+=      u-boot-bananapi-m3-[0-9]*:../../sysutils/u-boot-bananapi-m3
+DEPENDS+=      u-boot-bananapi-p2-zero-[0-9]*:../../sysutils/u-boot-bananapi-m3
 DEPENDS+=      u-boot-bananapi-[0-9]*:../../sysutils/u-boot-bananapi
 DEPENDS+=      u-boot-bananapro-[0-9]*:../../sysutils/u-boot-bananapro
 DEPENDS+=      u-boot-beagleboard-[0-9]*:../../sysutils/u-boot-beagleboard
diff -r e445cc6072aa -r 32e11be0a1c2 sysutils/u-boot/distinfo
--- a/sysutils/u-boot/distinfo  Wed Jun 05 05:14:21 2019 +0000
+++ b/sysutils/u-boot/distinfo  Wed Jun 05 05:43:15 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.22 2019/04/26 08:32:27 skrll Exp $
+$NetBSD: distinfo,v 1.23 2019/06/05 05:43:15 thorpej Exp $
 
 SHA1 (u-boot-2018.11.tar.bz2) = e58e86c633ad3e2613196e0c0b0a7760ae5966d6
 RMD160 (u-boot-2018.11.tar.bz2) = f63c67750951d0e2883935a5d4cc3252f51a5453
@@ -6,6 +6,11 @@
 Size (u-boot-2018.11.tar.bz2) = 13045125 bytes
 SHA1 (patch-Makefile) = 45f505041a586b75953c34c1ab6fffaa56b43601
 SHA1 (patch-arch_arm_cpu_armv8_Kconfig) = 63cbbf2e3cebd46793fc03cc8e62297f6dc01aa9
+SHA1 (patch-arch_arm_dts_Makefile) = 184fdb8b04b25c0c827823779874306ce1bc746d
+SHA1 (patch-arch_arm_dts_sun8i-h2-plus-bananapi-m2-zero.dts) = aaa530a5f520eea0cb5dcece0b730e23db59eb40
+SHA1 (patch-arch_arm_dts_sun8i-h2-plus-bananapi-p2-zero.dts) = 8c78d0e0877aa9784fa209af2e16e80cb1110364
+SHA1 (patch-configs_bananapi_m2_zero_defconfig) = 5e4baef63f0e51cb8c94a1dc0c0e50ecb016807d
+SHA1 (patch-configs_bananapi_p2_zero_defconfig) = 6468b3246cbf35d10320c8a974fc06b794ae68dc
 SHA1 (patch-configs_jetson-tk1_defconfig) = e25d89b9440f9bb4486ac22fc47083ed24abdd95
 SHA1 (patch-configs_p2371-2180_defconfig) = 2a3f1ad4f9963af403c2c9f2f01b892bbe55188c
 SHA1 (patch-drivers_video_sunxi_sunxi__display.c) = 8e6a6a781cce25af5cba289fc2ca76e30b62aff6
diff -r e445cc6072aa -r 32e11be0a1c2 sysutils/u-boot/patches/patch-arch_arm_dts_Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot/patches/patch-arch_arm_dts_Makefile       Wed Jun 05 05:43:15 2019 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-arch_arm_dts_Makefile,v 1.5 2019/06/05 05:43:15 thorpej Exp $
+
+Add device tree files for:
+- Banana Pi BPI-M2 Zero
+- Banana Pi BPI-P2 Zero
+
+--- arch/arm/dts/Makefile.orig 2019-06-02 17:45:33.522314609 -0700
++++ arch/arm/dts/Makefile      2019-06-02 17:46:19.143587602 -0700
+@@ -365,6 +365,8 @@ dtb-$(CONFIG_MACH_SUN8I_A83T) += \
+       sun8i-a83t-cubietruck-plus.dtb \
+       sun8i-a83t-tbs-a711.dts
+ dtb-$(CONFIG_MACH_SUN8I_H3) += \
++      sun8i-h2-plus-bananapi-m2-zero.dtb \
++      sun8i-h2-plus-bananapi-p2-zero.dtb \
+       sun8i-h2-plus-libretech-all-h3-cc.dtb \
+       sun8i-h2-plus-orangepi-r1.dtb \
+       sun8i-h2-plus-orangepi-zero.dtb \
diff -r e445cc6072aa -r 32e11be0a1c2 sysutils/u-boot/patches/patch-arch_arm_dts_sun8i-h2-plus-bananapi-m2-zero.dts
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/u-boot/patches/patch-arch_arm_dts_sun8i-h2-plus-bananapi-m2-zero.dts     Wed Jun 05 05:43:15 2019 +0000
@@ -0,0 +1,128 @@
+$NetBSD: patch-arch_arm_dts_sun8i-h2-plus-bananapi-m2-zero.dts,v 1.1 2019/06/05 05:43:15 thorpej Exp $
+
+Add device tree for the Banana Pi BPI-M2 Zero.
+
+--- /dev/null  2019-06-01 20:20:12.000000000 +0000
++++ arch/arm/dts/sun8i-h2-plus-bananapi-m2-zero.dts
+@@ -0,0 +1,121 @@
++// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
++/*
++ * Copyright (C) 2017 Icenowy Zheng <icenowy%aosc.io@localhost>
++ *
++ * Based on sun8i-h3-bananapi-m2-plus.dts, which is:
++ *   Copyright (C) 2016 Chen-Yu Tsai <wens%csie.org@localhost>
++ */
++
++/dts-v1/;
++#include "sun8i-h3.dtsi"
++#include "sunxi-common-regulators.dtsi"
++
++#include <dt-bindings/gpio/gpio.h>
++#include <dt-bindings/input/input.h>
++
++/ {
++      model = "Banana Pi BPI-M2-Zero";
++      compatible = "sinovoip,bpi-m2-zero", "allwinner,sun8i-h2-plus";
++
++      aliases {
++              serial0 = &uart0;
++              serial1 = &uart1;
++      };
++
++      chosen {
++              stdout-path = "serial0:115200n8";
++      };
++
++      leds {
++              compatible = "gpio-leds";
++              pinctrl-names = "default";
++
++              pwr_led {
++                      label = "bananapi-m2-zero:red:pwr";
++                      gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PL10 */
++                      default-state = "on";
++              };
++      };
++
++      gpio_keys {
++              compatible = "gpio-keys";
++              pinctrl-names = "default";
++
++              sw4 {
++                      label = "power";
++                      linux,code = <BTN_0>;
++                      gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
++              };
++      };



Home | Main Index | Thread Index | Old Index