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

Hello.
The attachment is rebased on debian/2021.01+dfsg-3.
>From 9abe9a8b72aeeb672178d418abec5bc988ce779c Mon Sep 17 00:00:00 2001
From: Nicolas Boulenguez <[email protected]>
Date: Wed, 17 Feb 2021 18:45:27 +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..8355329d56 100755
--- a/debian/bin/u-boot-install-sunxi
+++ b/debian/bin/u-boot-install-sunxi
@@ -42,6 +42,7 @@ if [ -z "$TARGET" ] && [ -f "${dtmodel}" ]; then
                "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" ;;
+               "PineTab") TARGET="/usr/lib/u-boot/pinetab" ;;
                "Xunlong Orange Pi Plus / Plus 2") 
TARGET="/usr/lib/u-boot/orangepi_plus" ;;
                "Xunlong Orange Pi Zero") 
TARGET="/usr/lib/u-boot/orangepi_zero" ;;
                *)
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..03b9c32f33
--- /dev/null
+++ b/debian/patches/pinetab/0001-configs-add-PineTab-defconfig.patch
@@ -0,0 +1,29 @@
+From 2c346cacb4b0841051bceb27a57058020860ab8b Mon Sep 17 00:00:00 2001
+From: Arnaud Ferraris <[email protected]>
+Date: Wed, 2 Sep 2020 09:53:50 +0200
+Subject: [PATCH] configs: add PineTab defconfig
+
+--- /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
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 <[email protected]> (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 <[email protected]>
+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 <[email protected]>
 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