Source: u-boot
Followup-For: Bug #982982

> Could you provide a link to the upstream patch submission? I don't seem
> to find the patch:

I have forgotten this one, sorry.  The message is now forwarded to
https://lists.denx.de/pipermail/u-boot/2021-March/, and should be
visible after moderator approval.

> Also, since Arnaud Ferraris is being listed as a tester, it would be
> good to get confirmation that Arnaud is willing to test the relevent
> Debian u-boot packages periodically.

Arnaud is the main contributor of the Mobian derivative.  He
frequently rebases and installs on pinetab, pinephone1.1 and
pinephone1.2 hardware.  Actually, I am only forwarding selected and
slightly rewritten commits from
https://gitlab.com/mobian1/devices/sunxi64-u-boot/-/commits/sunxi64-2021.01/.

For example,
https://gitlab.com/mobian1/devices/sunxi64-u-boot/-/commit/6627445c7db302e3dc3b8a419b30d5b42e9655fc
should confirm that he is OK with being listed in debian/targets.

More generally, Mobian intends to reduce the divergence and eventually
become a Debian Blend, so anything that reduces the divergence is
welcome.

The attached version is updated in cosmetic details.
>From 6ad7ebaeb2eaea9fa339da8d5e49db9d12e3a5a6 Mon Sep 17 00:00:00 2001
From: Arnaud Ferraris <arnaud.ferra...@collabora.com>
Date: Sun, 7 Mar 2021 13:33:11 +0100
Subject: Add support for the pinetab platform

The patch adding a defconfig has been forwarded to u-boot upstream.

diff --git a/debian/bin/u-boot-install-sunxi b/debian/bin/u-boot-install-sunxi
index dc948840be..450b7c6ffa 100755
--- a/debian/bin/u-boot-install-sunxi
+++ b/debian/bin/u-boot-install-sunxi
@@ -39,6 +39,7 @@ if [ -z "$TARGET" ] && [ -f "${dtmodel}" ]; then
                "OrangePi One Plus") 
TARGET="/usr/lib/u-boot/orangepi_one_plus/" ;;
                "Pinebook") TARGET="/usr/lib/u-boot/pinebook" ;;
                "Pine64 PinePhone (1."[12]")") 
TARGET='/usr/lib/u-boot/pinephone' ;;
+               "PineTab") TARGET="/usr/lib/u-boot/pinetab" ;;
                "Pine64+") TARGET="/usr/lib/u-boot/pine64_plus" ;;
                "Pine64 LTS") TARGET="/usr/lib/u-boot/pine64-lts" ;;
                "PineRiver Mini X-Plus") TARGET="/usr/lib/u-boot/Mini-X" ;;
diff --git a/debian/patches/pinetab/0001-configs-add-PineTab-defconfig.patch 
b/debian/patches/pinetab/0001-configs-add-PineTab-defconfig.patch
new file mode 100644
index 0000000000..987500872f
--- /dev/null
+++ b/debian/patches/pinetab/0001-configs-add-PineTab-defconfig.patch
@@ -0,0 +1,45 @@
+From 2c346cacb4b0841051bceb27a57058020860ab8b Mon Sep 17 00:00:00 2001
+From: Arnaud Ferraris <arnaud.ferra...@collabora.com>
+Date: Wed, 2 Sep 2020 09:53:50 +0200
+Subject: [PATCH] configs: add PineTab defconfig
+
+The PineTab device-tree is already in u-boot, this commit adds the 
corresponding
+defconfig, based on pinephone_defconfig.
+
+Signed-off-by: Arnaud Ferraris <arnaud.ferra...@collabora.com>
+
+---
+ configs/pinetab_defconfig | 22 ++++++++++++++++++++++
+ 1 file changed, 22 insertions(+)
+ create mode 100644 configs/pinetab_defconfig
+
+diff --git a/configs/pinetab_defconfig b/configs/pinetab_defconfig
+new file mode 100644
+index 0000000000..71dda9f5d9
+--- /dev/null
++++ b/configs/pinetab_defconfig
+@@ -0,0 +1,21 @@
++CONFIG_ARM=y
++CONFIG_ARCH_SUNXI=y
++CONFIG_SPL=y
++CONFIG_IDENT_STRING=""
++CONFIG_MACH_SUN50I=y
++CONFIG_SUNXI_DRAM_LPDDR3_STOCK=y
++CONFIG_DRAM_CLK=552
++CONFIG_DRAM_ZQ=3881949
++CONFIG_MMC_SUNXI_SLOT_EXTRA=2
++# CONFIG_VIDEO_DE2 is not set
++CONFIG_DEFAULT_DEVICE_TREE="sun50i-a64-pinetab"
++# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
++CONFIG_BOOTDELAY=0
++CONFIG_SYS_CONSOLE_INFO_QUIET=y
++# CONFIG_DISPLAY_CPUINFO is not set
++# CONFIG_DISPLAY_BOARDINFO is not set
++# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
++# CONFIG_SPL_BANNER_PRINT is not set
++# CONFIG_SPL_POWER_SUPPORT is not set
++# CONFIG_NET is not set
++# CONFIG_EFI_LOADER is not set
+-- 
+2.28.0
+
diff --git a/debian/patches/series b/debian/patches/series
index 6e737632d3..745b81bf22 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -19,3 +19,5 @@ 
riscv64/qemu-riscv64_smode-sifive-fu540-fix-extlinux-define-.patch
 n900/bootz_and_raw_initrd.patch
 
 rk3399/disable-preboot
+
+pinetab/0001-configs-add-PineTab-defconfig.patch
diff --git a/debian/targets b/debian/targets
index a2855f6daf..04c5b31978 100644
--- a/debian/targets
+++ b/debian/targets
@@ -259,6 +259,9 @@ arm64       sunxi           pinebook        
/usr/lib/arm-trusted-firmware/sun50i_a64/bl31.bin u-boot.b
 # Arnaud Ferraris <arnaud.ferra...@collabora.com> (1.1, 1.2)
 arm64  sunxi           pinephone       
/usr/lib/arm-trusted-firmware/sun50i_a64/bl31.bin u-boot.bin spl/sunxi-spl.bin 
u-boot-nodtb.bin arch/arm/dts/sun50i-a64-pinephone-1.1.dtb 
arch/arm/dts/sun50i-a64-pinephone-1.2.dtb u-boot-sunxi-with-spl.fit.itb
 
+# Arnaud Ferraris <arnaud.ferra...@collabora.com>
+arm64  sunxi           pinetab         
/usr/lib/arm-trusted-firmware/sun50i_a64/bl31.bin u-boot.bin spl/sunxi-spl.bin 
u-boot-nodtb.bin arch/arm/dts/sun50i-a64-pinetab.dtb 
u-boot-sunxi-with-spl.fit.itb
+
 # Jonas Smedegaard <d...@jones.dk>
 arm64  sunxi           teres_i         
/usr/lib/arm-trusted-firmware/sun50i_a64/bl31.bin u-boot.bin spl/sunxi-spl.bin 
u-boot-nodtb.bin arch/arm/dts/sun50i-a64-teres-i.dtb 
u-boot-sunxi-with-spl.fit.itb
 

Reply via email to