Source: u-boot Version: 2019.07-rc1+dfsg-4 Severity: wishlist Tags: patch -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
Dear Maintainer, It would be nice to have support for the Pine64 LTS board which is different from Pine64+ board that is already supported. Upstream u-boot, flash-kernel and Debian kernel already have support for the board. The attached patch adds the target. It was tested as follows: Boot Log - -------- U-Boot SPL 2019.07-rc1+dfsg-4 (May 13 2019 - 03:38:27 +0000) DRAM: 2048 MiB Trying to boot from MMC1 NOTICE: BL3-1: Running on A64/H64 (1689) in SRAM A2 (@0x44000) NOTICE: Configuring SPC Controller NOTICE: BL3-1: v1.0(debug): NOTICE: BL3-1: Built : 12:32:39, Apr 11 2018 NOTICE: DT: sun50i-a64-pine64-lts INFO: Configuring AXP PMIC INFO: PMIC: DRAM voltage: 1.24V INFO: PMIC: setup successful NOTICE: SCPI: dummy stub handler, implementation level: 000000 INFO: BL3-1: Initializing runtime services INFO: BL3-1: Preparing for EL3 exit to normal world INFO: BL3-1: Next image address: 0x4a000000, SPSR: 0x3c9 U-Boot 2019.07-rc1+dfsg-4 (May 13 2019 - 03:38:27 +0000) Allwinner Technology CPU: Allwinner A64 (SUN50I) Model: Pine64 LTS DRAM: 2 GiB MMC: mmc@1c0f000: 0, mmc@1c11000: 1 Loading Environment from FAT... Card did not respond to voltage select! In: serial Out: serial Err: serial Net: phy interface7 eth0: ethernet@1c30000 starting USB... Bus usb@1c1a000: USB EHCI 1.00 Bus usb@1c1a400: USB OHCI 1.0 Bus usb@1c1b000: USB EHCI 1.00 Bus usb@1c1b400: USB OHCI 1.0 scanning bus usb@1c1a000 for devices... 1 USB Device(s) found scanning bus usb@1c1a400 for devices... 1 USB Device(s) found scanning bus usb@1c1b000 for devices... 1 USB Device(s) found scanning bus usb@1c1b400 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot.scr 2226 bytes read in 2 ms (1.1 MiB/s) ## Executing script at 4fc00000 18560880 bytes read in 926 ms (19.1 MiB/s) 16053 bytes read in 4 ms (3.8 MiB/s) 25179720 bytes read in 1250 ms (19.2 MiB/s) Booting Debian 4.19.0-5-arm64 from mmc 0:1... ## Flattened Device Tree blob at 4fa00000 Booting using the fdt blob at 0x4fa00000 EHCI failed to shut down host controller. Loading Ramdisk to 487fc000, end 49fff648 ... OK Loading Device Tree to 00000000487f5000, end 00000000487fbeb4 ... OK Starting kernel ... [ 2.670977] sun50i-de2-bus 1000000.de2: Error couldn't map SRAM to device Debian GNU/Linux 10 freedombox ttyS0 freedombox login: Board Model - ----------- root@freedombox:~# cat /sys/firmware/devicetree/base/model Pine64 LTSroot@freedombox:~# Package Versions - ---------------- root@freedombox:~# uname -a Linux freedombox 4.19.0-5-arm64 #1 SMP Debian 4.19.37-1 (2019-05-05) aarch64 GNU/Linux root@freedombox:~# dpkg -l u-boot-sunxi Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==================-==================-============-================================= ii u-boot-sunxi:arm64 2019.07~rc1+dfsg-4 arm64 A boot loader for sunxi systems root@freedombox:~# dpkg -l flash-kernel Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==============-============-============-================================================= ii flash-kernel 3.98 arm64 utility to make certain embedded devices bootable RAM - --- root@freedombox:~# free -m total used free shared buff/cache available Mem: 2001 281 1177 8 542 1632 Swap: 0 0 0 Ethernet Performance - -------------------- root@freedombox:~# iperf3 -c 10.42.1.1 Connecting to host 10.42.1.1, port 5201 [ 5] local 10.42.1.210 port 49568 connected to 10.42.1.1 port 5201 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-1.00 sec 109 MBytes 915 Mbits/sec 0 383 KBytes [ 5] 1.00-2.00 sec 107 MBytes 899 Mbits/sec 0 383 KBytes [ 5] 2.00-3.00 sec 107 MBytes 897 Mbits/sec 0 402 KBytes [ 5] 3.00-4.00 sec 107 MBytes 900 Mbits/sec 0 421 KBytes [ 5] 4.00-5.00 sec 107 MBytes 899 Mbits/sec 0 421 KBytes [ 5] 5.00-6.00 sec 107 MBytes 900 Mbits/sec 18 335 KBytes [ 5] 6.00-7.00 sec 107 MBytes 896 Mbits/sec 0 376 KBytes [ 5] 7.00-8.00 sec 107 MBytes 896 Mbits/sec 0 376 KBytes [ 5] 8.00-9.00 sec 108 MBytes 904 Mbits/sec 0 423 KBytes [ 5] 9.00-10.00 sec 107 MBytes 894 Mbits/sec 0 434 KBytes - - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.00 sec 1.05 GBytes 900 Mbits/sec 18 sender [ 5] 0.00-10.04 sec 1.05 GBytes 895 Mbits/sec receiver iperf Done. root@freedombox:~# iperf3 -c 10.42.1.1 -R Connecting to host 10.42.1.1, port 5201 Reverse mode, remote host 10.42.1.1 is sending [ 5] local 10.42.1.210 port 49572 connected to 10.42.1.1 port 5201 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 93.7 MBytes 786 Mbits/sec [ 5] 1.00-2.00 sec 91.6 MBytes 768 Mbits/sec [ 5] 2.00-3.00 sec 88.9 MBytes 746 Mbits/sec [ 5] 3.00-4.00 sec 90.5 MBytes 759 Mbits/sec [ 5] 4.00-5.00 sec 90.0 MBytes 755 Mbits/sec [ 5] 5.00-6.00 sec 94.3 MBytes 791 Mbits/sec [ 5] 6.00-7.00 sec 90.4 MBytes 758 Mbits/sec [ 5] 7.00-8.00 sec 90.6 MBytes 760 Mbits/sec [ 5] 8.00-9.00 sec 94.3 MBytes 791 Mbits/sec [ 5] 9.00-10.00 sec 90.1 MBytes 755 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-10.04 sec 916 MBytes 766 Mbits/sec 0 sender [ 5] 0.00-10.00 sec 914 MBytes 767 Mbits/sec receiver iperf Done. - -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-4-amd64 (SMP w/4 CPU cores) Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_IN.UTF-8, LC_CTYPE=en_IN.UTF-8 (charmap=UTF-8), LANGUAGE=en_IN.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled -----BEGIN PGP SIGNATURE----- iQJFBAEBCgAvFiEE5xPDY9ZyWnWupXSBQ+oc/wqnxfIFAlzZxvoRHHN1bmlsQG1l ZGhhcy5vcmcACgkQQ+oc/wqnxfKe0A/7Bt+jO8rdHNrC6MqpTe56gYImeJg2HXbO TeQ0RDop8tV5hKHuaQ7m8GrbgegxlByt4vEbg6Z0DiUcVB1jIrZaG6ZUzvxUVeUO UbswLX4BKx2hKMFuziAksUEz+/G5l+n8iQobx3St6ixCqClteSu3XIGabv7AgD8a R1afA3a4OHYuyksM2Oyu2eNx+JHKzOh7Uec+NzFLUiQh4GjOzkJg7GC3CJ42AW6H rZZcrO3jlBEVUtPo6yTn8c8yd2WXuT+8Z3S7TWWAe9dOoZ8CiXpHkng/M3kv0TvS Cet1nTET/UEpfYC2zmn9di2Sf+3MXIy8zzj0qOFm3ZYe3Gwh2ZE63vDQK/3vL2LB Uz93t+MMCtdzYnBCl6YotB/qmm0aslUBhck93PwxV1ZcTBnV1EWWhFdxdl9u90ht 9xY84Y0pse6fYaoslYqNJfRKCdP0ZpQn7guCPEIiTRx6/MCf/3pDkqldocdF5vt4 RLs/v3akcxDYo5WF9mWqBbORtCnsqboIj/6KMGK3OHoBtiR8s1dnbcqssoyC5+rf h3ivVsm77ZC2Tpa5hLOYU2BcQmwtDUpCdHpDhvWRQkXB8u0KAElieUs8xBuis4oL Of9tedgi/38VHcOk7ermqoQINrWEXuuRzXEDEFb3RXaN7jYGDk3DcJo0eegI0xym jTLO5EFsEgc= =uxbJ -----END PGP SIGNATURE-----
>From f8da3c47f7864ea523302e9abd2bb76de89aed37 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa <su...@medhas.org> Date: Mon, 13 May 2019 12:20:24 -0700 Subject: [PATCH 1/3] Enable pine64-lts target in u-boot-sunxi Signed-off-by: Sunil Mohan Adapa <su...@medhas.org> --- debian/bin/u-boot-install-sunxi64 | 1 + debian/targets | 3 +++ 2 files changed, 4 insertions(+) diff --git a/debian/bin/u-boot-install-sunxi64 b/debian/bin/u-boot-install-sunxi64 index 5e013aef4d..fca9fc4d1c 100755 --- a/debian/bin/u-boot-install-sunxi64 +++ b/debian/bin/u-boot-install-sunxi64 @@ -6,6 +6,7 @@ if [ -z "$TARGET" ] && [ -f "${dtmodel}" ]; then case $(cat "${dtmodel}") in Pinebook) TARGET="/usr/lib/u-boot/pinebook" ;; Pine64+) TARGET="/usr/lib/u-boot/pine64_plus" ;; + "Pine64 LTS") TARGET="/usr/lib/u-boot/pine64-lts" ;; "Olimex A64-Olinuxino") TARGET="/usr/lib/u-boot/a64-olinuxino/" ;; "Olimex A64 Teres-I") TARGET="/usr/lib/u-boot/teres_i/" ;; "OrangePi Zero Plus2") TARGET="/usr/lib/u-boot/orangepi_zero_plus2/" ;; diff --git a/debian/targets b/debian/targets index b95ea6af91..d4b27ca69c 100644 --- a/debian/targets +++ b/debian/targets @@ -210,6 +210,9 @@ arm64 sunxi orangepi_zero_plus2 u-boot.bin spl/sunxi-spl.bin u-boot-nodtb.bin a # Vagrant Cascadian <vagr...@debian.org> arm64 sunxi pine64_plus u-boot.bin spl/sunxi-spl.bin u-boot-nodtb.bin arch/arm/dts/sun50i-a64-pine64-plus.dtb arch/arm/dts/sun50i-a64-pine64.dtb +# Sunil Mohan Adapa <su...@medhas.org> +arm64 sunxi pine64-lts u-boot.bin spl/sunxi-spl.bin u-boot-nodtb.bin arch/arm/dts/sun50i-a64-pine64-lts.dtb arch/arm/dts/sun50i-a64-pine64.dtb + # Vagrant Cascadian <vagr...@debian.org> arm64 sunxi pinebook u-boot.bin spl/sunxi-spl.bin u-boot-nodtb.bin arch/arm/dts/sun50i-a64-pinebook.dtb -- 2.20.1