u-boot.git
5 years agoMerge u-boot (2020.04+dfsg-2) import into refs/heads/workingbranch
Vagrant Cascadian [Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)]
Merge u-boot (2020.04+dfsg-2) import into refs/heads/workingbranch

5 years ago[PATCH 6/6] drivers: video: rockchip: fix building eDP and LVDS drivers
Peter Robinson [Mon, 20 Apr 2020 18:18:25 +0000 (19:18 +0100)]
[PATCH 6/6] drivers: video: rockchip: fix building eDP and LVDS drivers

The rk_edp.c and rk_lvds.c files reference rk_setreg which is declared in
hardware.h so include it so the drivers build. Adjust rk_lvds.c so
includes are in alphabetical order while updating.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Reviewed-by: Anatolij Gustschin <agust@denx.de>
Gbp-Pq: Topic pinebook-pro
Gbp-Pq: Name 0006-drivers-video-rockchip-fix-building-eDP-and-LVDS-dri.patch

5 years ago[PATCH 5/6] Add initial support for the Pinebook Pro laptop from Pine64.
Peter Robinson [Mon, 20 Apr 2020 19:27:36 +0000 (20:27 +0100)]
[PATCH 5/6] Add initial support for the Pinebook Pro laptop from Pine64.

Specification:
- Rockchip RK3399
- 4GB Dual-Channel LPDDR4
- eMMC socket
- mSD card slot
- 128Mbit (16Mb) SPI Flash
- AP6256 for 11AC WiFi + BT5
- 14 inch 1920*1080 eDP MiPi display
- Camera
- USB 3.0, 2.0 ports
- Type-C port with alt-mode display (DP 1.2) and 15W charge
- DC 5V/3A
- optional PCIe slot for NVMe SSD drive

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Gbp-Pq: Topic pinebook-pro
Gbp-Pq: Name 0005-Add-initial-support-for-the-Pinebook-Pro-laptop-from.patch

5 years ago[PATCH 4/6] arm: dts: rockchip: Add initial DT for Pinebook Pro
Peter Robinson [Mon, 20 Apr 2020 19:27:35 +0000 (20:27 +0100)]
[PATCH 4/6] arm: dts: rockchip: Add initial DT for Pinebook Pro

Sync initial support for Pinebook Pro device tree from Linux 5.7-rc1.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Gbp-Pq: Topic pinebook-pro
Gbp-Pq: Name 0004-arm-dts-rockchip-Add-initial-DT-for-Pinebook-Pro.patch

5 years ago[PATCH 3/6] dt-bindings: leds: adopt Linux leds common binding constants
Peter Robinson [Mon, 20 Apr 2020 19:27:34 +0000 (20:27 +0100)]
[PATCH 3/6] dt-bindings: leds: adopt Linux leds common binding constants

Sync the common leds bindings from linux 5.7-rc1.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Gbp-Pq: Topic pinebook-pro
Gbp-Pq: Name 0003-dt-bindings-leds-adopt-Linux-leds-common-binding-con.patch

5 years ago[PATCH 2/6] dt-bindings: input: adopt Linux gpio-keys binding constants
Peter Robinson [Mon, 20 Apr 2020 19:27:33 +0000 (20:27 +0100)]
[PATCH 2/6] dt-bindings: input: adopt Linux gpio-keys binding constants

Sync the gpio-keys input bindings from linux 5.7-rc1.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Gbp-Pq: Topic pinebook-pro
Gbp-Pq: Name 0002-dt-bindings-input-adopt-Linux-gpio-keys-binding-cons.patch

5 years ago[PATCH 1/6] video: simple_panel: add boe,nv140fhmn49 display
Peter Robinson [Mon, 20 Apr 2020 19:27:32 +0000 (20:27 +0100)]
[PATCH 1/6] video: simple_panel: add boe,nv140fhmn49 display

add "boe,nv140fhmn49" display to compatible node.

Signed-off-by: Peter Robinson <pbrobinson@gmail.com>
Cc: Anatolij Gustschin <agust@denx.de>
Gbp-Pq: Topic pinebook-pro
Gbp-Pq: Name 0001-video-simple_panel-add-boe-nv140fhmn49-display.patch

5 years ago[PATCH] qemu-riscv64_smode, sifive-fu540: fix extlinux (define preboot)
David Abdurachmanov [Wed, 21 Aug 2019 19:07:20 +0000 (12:07 -0700)]
[PATCH] qemu-riscv64_smode, sifive-fu540: fix extlinux (define preboot)

From 3fc056f0b9f7c26e58a1e947c8c0184e55919614 Mon Sep 17 00:00:00 2001
Forwarded: https://patchwork.ozlabs.org/patch/1151125/

Commit 37304aaf60bf92a5dc3ef222ba520698bd862a44 removed preboot
commands in RISC-V targets and broke extlinux support as reported
by Fu Wei <wefu@redhat.com>.

The patch finishes migration of CONFIG_USE_PREBOOT and CONFIG_REBOOT
to Kconfig.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
Gbp-Pq: Topic riscv64
Gbp-Pq: Name qemu-riscv64_smode-sifive-fu540-fix-extlinux-define-.patch

5 years ago[PATCH] arm: config: fix default console only to specify the device
Dongjin Kim [Sat, 28 Oct 2017 04:22:27 +0000 (00:22 -0400)]
[PATCH] arm: config: fix default console only to specify the device

This reverts commit 767edf0f6b3eaa0303f3fd6afdc14ddce0aca70c and restores
commit 232ed3ca534708527a9515c7c41bc3542949525c.

Debian's flash-kernel expect the console variable to just contain the device,
because it will set the bootargs to "console=${console}". So revert adding
"console=" to the console parameter, but also adjust the shipped bootscripts
for exynos boards to cope with it.

Bug-Debian: https://bugs.debian.org/920116
Signed-off-by: Benjamin Drung <bdrung@debian.org>
Gbp-Pq: Topic exynos
Gbp-Pq: Name 0001-arm-config-fix-default-console-only-to-specify-the-d.patch

5 years agotest-imagetools-test-fixes
Vagrant Cascadian [Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)]
test-imagetools-test-fixes

This patch allows testing in an alternate directory and also detects
failures to execute commands, treating that as a failure.

Gbp-Pq: Name test-imagetools-test-fixes

5 years agoomap5_distro_bootcmd
Vagrant Cascadian [Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)]
omap5_distro_bootcmd

Enable distro_bootcmd support (doc/README.distro) for omap5 targets.

Gbp-Pq: Topic am57xx
Gbp-Pq: Name omap5_distro_bootcmd

5 years agoensure-config-sandbox-for-make-env
Vagrant Cascadian [Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)]
ensure-config-sandbox-for-make-env

Ensure that CONFIG_SANDBOX is set when running "make env", avoiding a
failure to build caused by config_distro_bootcmd.h following the wrong
codepath...

Gbp-Pq: Name ensure-config-sandbox-for-make-env.patch

5 years agosh4-fix-linker-name-prefix.patch
Vagrant Cascadian [Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)]
sh4-fix-linker-name-prefix.patch

u-boot currently fails to build from source on sh4 since the
linker name prefix defined in arch/sh/config.mk is outdated.
On current Debian installations, the binaries of the GNU
toolchain are named using the triplett scheme
$arch-$kernel-$toolchain. Thus, on sh4, the proper name
is "sh4-linux-gnu-ld" instead of "sh4-linux-ld". This
patch updates build configuration on sh4 to reflect that.

Gbp-Pq: Name sh4-fix-linker-name-prefix.patch

5 years agoAdd spl/arndale-spl.bin rule
Ian Campbell [Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)]
Add spl/arndale-spl.bin rule

Gbp-Pq: Topic arndale
Gbp-Pq: Name board-spl-rule.diff

5 years agon900-bootz-raw-initrd
Vagrant Cascadian [Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)]
n900-bootz-raw-initrd

Enable booting of zImage/vmlinuz and initrd without requiring the use of
mkimage to create uImage/uInitrd.

Gbp-Pq: Name n900-bootz-raw-initrd.diff

5 years agomx53loco
Vagrant Cascadian [Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)]
mx53loco

Enables support for ext4, the "load" command, and using bootz with raw initrds.

Gbp-Pq: Name mx53loco

5 years agoMakefile-add-kwb-target-to-all
Vagrant Cascadian [Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)]
Makefile-add-kwb-target-to-all

Add u-boot.kwb to "make all" target on Kirkwood.

Gbp-Pq: Name Makefile-add-kwb-target-to-all.patch

5 years agoEnable generic tools build
Hector Oron [Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)]
Enable generic tools build

Gbp-Pq: Name tools-generic-builds.patch

5 years agono-force-CROSS_COMPILE-powerpc
Vagrant Cascadian [Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)]
no-force-CROSS_COMPILE-powerpc

Debian typically builds natively, so disable forced use of
cross-compile.

Gbp-Pq: Name no-force-CROSS_COMPILE-powerpc.diff

5 years agoadd-debian-revision-to-u-boot-version
Vagrant Cascadian [Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)]
add-debian-revision-to-u-boot-version

Add the debian revision to the U-boot version, which is displayed at
boot and can be helpful to determine which specific version is used.

Gbp-Pq: Name add-debian-revision-to-u-boot-version

5 years agou-boot (2020.04+dfsg-2) unstable; urgency=medium
Vagrant Cascadian [Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)]
u-boot (2020.04+dfsg-2) unstable; urgency=medium

  * debian/patches:
    - Remove dreamplug cache patch, fixed upstream.
    - Add patches submitted upstream to support pinebook pro.
  * u-boot-rockchip:
    - Add support for rockpro64-rk3399.
    - Add support for pinebook-pro-rk3399.
    - Add u-boot-install-rockchip helper script.

[dgit import unpatched u-boot 2020.04+dfsg-2]

5 years agoImport u-boot_2020.04+dfsg-2.debian.tar.xz
Vagrant Cascadian [Tue, 21 Apr 2020 02:34:37 +0000 (03:34 +0100)]
Import u-boot_2020.04+dfsg-2.debian.tar.xz

[dgit import tarball u-boot 2020.04+dfsg-2 u-boot_2020.04+dfsg-2.debian.tar.xz]

5 years agoMerge u-boot (2020.04+dfsg-1) import into refs/heads/workingbranch
Vagrant Cascadian [Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)]
Merge u-boot (2020.04+dfsg-1) import into refs/heads/workingbranch

5 years agoImport u-boot_2020.04+dfsg.orig.tar.xz
Vagrant Cascadian [Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)]
Import u-boot_2020.04+dfsg.orig.tar.xz

[dgit import orig u-boot_2020.04+dfsg.orig.tar.xz]

5 years ago[PATCH] qemu-riscv64_smode, sifive-fu540: fix extlinux (define preboot)
David Abdurachmanov [Wed, 21 Aug 2019 19:07:20 +0000 (12:07 -0700)]
[PATCH] qemu-riscv64_smode, sifive-fu540: fix extlinux (define preboot)

From 3fc056f0b9f7c26e58a1e947c8c0184e55919614 Mon Sep 17 00:00:00 2001
Forwarded: https://patchwork.ozlabs.org/patch/1151125/

Commit 37304aaf60bf92a5dc3ef222ba520698bd862a44 removed preboot
commands in RISC-V targets and broke extlinux support as reported
by Fu Wei <wefu@redhat.com>.

The patch finishes migration of CONFIG_USE_PREBOOT and CONFIG_REBOOT
to Kconfig.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
Gbp-Pq: Topic riscv64
Gbp-Pq: Name qemu-riscv64_smode-sifive-fu540-fix-extlinux-define-.patch

5 years ago[PATCH] Commit "ARM: CPU: arm926ejs: Consolidate cache routines to common file" break...
Leigh Brown [Wed, 27 Feb 2019 11:32:16 +0000 (11:32 +0000)]
[PATCH] Commit "ARM: CPU: arm926ejs: Consolidate cache routines to common file" breaks u-boot on Dreamplug

Hello,

Vagrant Cascadian asked for people to test the version of u-boot packaged
for Debian Buster.  I tested u-boot on my Dreamplug and found it was not
working correctly.  I raised a bug for Debian[1] but I have also tested
with the mainline version of u-boot and found the same issues.

The first issue is that the following commit caused u-boot to no longer
be able to access usb storage on the Dreamplug:

commit 93b283d49f933f95f3a6f40762936f454ac655a8
Author: Adam Ford <aford173@gmail.com>
Date:   Thu Aug 16 13:23:11 2018 -0500

    ARM: CPU: arm926ejs: Consolidate cache routines to common file

    Four different boards had different options for enabling cache
    that were virtually all the same.  This consolidates these
    common functions into arch/arm/cpu/arm926ejs/cache.c

    This also has the positive side-effect of enabling cache on
    the Davinci (da850) boards.

Signed-off-by: Adam Ford <aford173@gmail.com>
    [trini: Add mach-at91 to the list of consolidations]
Signed-off-by: Tom Rini <trini@konsulko.com>
I don't have much knowledge of ARM caching, but the following patch makes
it work again on my Dreamplug.

Gbp-Pq: Topic dreamplug
Gbp-Pq: Name Commit-ARM-CPU-arm926ejs-Consolidate-cache-routines-.patch

5 years ago[PATCH] arm: config: fix default console only to specify the device
Dongjin Kim [Sat, 28 Oct 2017 04:22:27 +0000 (00:22 -0400)]
[PATCH] arm: config: fix default console only to specify the device

This reverts commit 767edf0f6b3eaa0303f3fd6afdc14ddce0aca70c and restores
commit 232ed3ca534708527a9515c7c41bc3542949525c.

Debian's flash-kernel expect the console variable to just contain the device,
because it will set the bootargs to "console=${console}". So revert adding
"console=" to the console parameter, but also adjust the shipped bootscripts
for exynos boards to cope with it.

Bug-Debian: https://bugs.debian.org/920116
Signed-off-by: Benjamin Drung <bdrung@debian.org>
Gbp-Pq: Topic exynos
Gbp-Pq: Name 0001-arm-config-fix-default-console-only-to-specify-the-d.patch

5 years agotest-imagetools-test-fixes
Vagrant Cascadian [Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)]
test-imagetools-test-fixes

This patch allows testing in an alternate directory and also detects
failures to execute commands, treating that as a failure.

Gbp-Pq: Name test-imagetools-test-fixes

5 years agoomap5_distro_bootcmd
Vagrant Cascadian [Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)]
omap5_distro_bootcmd

Enable distro_bootcmd support (doc/README.distro) for omap5 targets.

Gbp-Pq: Topic am57xx
Gbp-Pq: Name omap5_distro_bootcmd

5 years agoensure-config-sandbox-for-make-env
Vagrant Cascadian [Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)]
ensure-config-sandbox-for-make-env

Ensure that CONFIG_SANDBOX is set when running "make env", avoiding a
failure to build caused by config_distro_bootcmd.h following the wrong
codepath...

Gbp-Pq: Name ensure-config-sandbox-for-make-env.patch

5 years agosh4-fix-linker-name-prefix.patch
Vagrant Cascadian [Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)]
sh4-fix-linker-name-prefix.patch

u-boot currently fails to build from source on sh4 since the
linker name prefix defined in arch/sh/config.mk is outdated.
On current Debian installations, the binaries of the GNU
toolchain are named using the triplett scheme
$arch-$kernel-$toolchain. Thus, on sh4, the proper name
is "sh4-linux-gnu-ld" instead of "sh4-linux-ld". This
patch updates build configuration on sh4 to reflect that.

Gbp-Pq: Name sh4-fix-linker-name-prefix.patch

5 years agoAdd spl/arndale-spl.bin rule
Ian Campbell [Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)]
Add spl/arndale-spl.bin rule

Gbp-Pq: Topic arndale
Gbp-Pq: Name board-spl-rule.diff

5 years agon900-bootz-raw-initrd
Vagrant Cascadian [Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)]
n900-bootz-raw-initrd

Enable booting of zImage/vmlinuz and initrd without requiring the use of
mkimage to create uImage/uInitrd.

Gbp-Pq: Name n900-bootz-raw-initrd.diff

5 years agomx53loco
Vagrant Cascadian [Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)]
mx53loco

Enables support for ext4, the "load" command, and using bootz with raw initrds.

Gbp-Pq: Name mx53loco

5 years agoMakefile-add-kwb-target-to-all
Vagrant Cascadian [Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)]
Makefile-add-kwb-target-to-all

Add u-boot.kwb to "make all" target on Kirkwood.

Gbp-Pq: Name Makefile-add-kwb-target-to-all.patch

5 years agoEnable generic tools build
Hector Oron [Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)]
Enable generic tools build

Gbp-Pq: Name tools-generic-builds.patch

5 years agono-force-CROSS_COMPILE-powerpc
Vagrant Cascadian [Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)]
no-force-CROSS_COMPILE-powerpc

Debian typically builds natively, so disable forced use of
cross-compile.

Gbp-Pq: Name no-force-CROSS_COMPILE-powerpc.diff

5 years agoadd-debian-revision-to-u-boot-version
Vagrant Cascadian [Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)]
add-debian-revision-to-u-boot-version

Add the debian revision to the U-boot version, which is displayed at
boot and can be helpful to determine which specific version is used.

Gbp-Pq: Name add-debian-revision-to-u-boot-version

5 years agou-boot (2020.04+dfsg-1) unstable; urgency=medium
Vagrant Cascadian [Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)]
u-boot (2020.04+dfsg-1) unstable; urgency=medium

  * New upstream release.

  [ Vagrant Cascadian ]
  * Update upstream signing key.
  * [arm64] Build arm-trusted-firmware into rockchip/sunxi systems.
  * [arm64] u-boot-sunxi: Add a64-olinuxino-emmc target Thanks to Philip
    Rinn. (Closes: #956394).

  [ Walter Lozano ]
  * debian/targets: Add support for rock-pi-4-rk3399
  * debian/targets: Add target idbloader.img for rk3399 boards

  [ Vagrant Cascadian ]
  * debian/control: Add versioned Build-Depends on arm-trusted-firmware
    for rk3399 support.
  * debian/targets: Add idbloader.img for all rockchip platforms.
  * u-boot-rockchip: Update README.Debian.
  * Remove debian/bin/generate-rksd.
  * u-boot-rockchip: firefly-rk3288: Also install u-boot.img.
  * [arm64] u-boot-rockchip, u-boot-sunxi: Add Built-Using
    arm-trusted-firmware.

[dgit import unpatched u-boot 2020.04+dfsg-1]

5 years agoImport u-boot_2020.04+dfsg-1.debian.tar.xz
Vagrant Cascadian [Wed, 15 Apr 2020 00:24:39 +0000 (01:24 +0100)]
Import u-boot_2020.04+dfsg-1.debian.tar.xz

[dgit import tarball u-boot 2020.04+dfsg-1 u-boot_2020.04+dfsg-1.debian.tar.xz]

5 years agoMerge u-boot (2020.01+dfsg-2) import into refs/heads/workingbranch
Vagrant Cascadian [Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)]
Merge u-boot (2020.01+dfsg-2) import into refs/heads/workingbranch

5 years ago[PATCH] cmd/gpt: Address error cases during gpt rename more correctly
Tom Rini [Tue, 21 Jan 2020 16:53:38 +0000 (11:53 -0500)]
[PATCH] cmd/gpt: Address error cases during gpt rename more correctly

New analysis by the tool has shown that we have some cases where we
weren't handling the error exit condition correctly.  When we ran into
the ENOMEM case we wouldn't exit the function and thus incorrect things
could happen.  Rework the unwinding such that we don't need a helper
function now and free what we may have allocated.

Fixes: 18030d04d25d ("GPT: fix memory leaks identified by Coverity")
Reported-by: Coverity (CID: 275475, 275476)
Cc: Alison Chaiken <alison@she-devel.com>
Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Cc: Jordy <jordy@simplyhacker.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Gbp-Pq: Topic security
Gbp-Pq: Name CVE-2020-8432-cmd-gpt-Address-error-cases-during-gpt-rename-more-c.patch

5 years ago[PATCH] arm: Enable VIDEO_BPP32 on pinebook.
Vagrant Cascadian [Sat, 18 Jan 2020 11:04:38 +0000 (03:04 -0800)]
[PATCH] arm: Enable VIDEO_BPP32 on pinebook.

Video output on the pinebook LCD screen was broken by:

commit 2cc393f32fd9 ("video: make BPP and ANSI configs optional").

Enable VIDEO_BPP32 which was previously enabled by default when
DM_VIDEO was set.

Series-to: u-boot
Series-cc: Anatolij Gustschin <agust@denx.de>, Vasily Khoruzhick <anarsoul@gmail.com>

Gbp-Pq: Topic pinebook
Gbp-Pq: Name 0001-arm-Enable-VIDEO_BPP32-on-pinebook.patch

5 years ago[PATCH] qemu-riscv64_smode, sifive-fu540: fix extlinux (define preboot)
David Abdurachmanov [Wed, 21 Aug 2019 19:07:20 +0000 (12:07 -0700)]
[PATCH] qemu-riscv64_smode, sifive-fu540: fix extlinux (define preboot)

From 3fc056f0b9f7c26e58a1e947c8c0184e55919614 Mon Sep 17 00:00:00 2001
Forwarded: https://patchwork.ozlabs.org/patch/1151125/

Commit 37304aaf60bf92a5dc3ef222ba520698bd862a44 removed preboot
commands in RISC-V targets and broke extlinux support as reported
by Fu Wei <wefu@redhat.com>.

The patch finishes migration of CONFIG_USE_PREBOOT and CONFIG_REBOOT
to Kconfig.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
Gbp-Pq: Topic riscv64
Gbp-Pq: Name qemu-riscv64_smode-sifive-fu540-fix-extlinux-define-.patch

5 years ago[PATCH] Commit "ARM: CPU: arm926ejs: Consolidate cache routines to common file" break...
Leigh Brown [Wed, 27 Feb 2019 11:32:16 +0000 (11:32 +0000)]
[PATCH] Commit "ARM: CPU: arm926ejs: Consolidate cache routines to common file" breaks u-boot on Dreamplug

Hello,

Vagrant Cascadian asked for people to test the version of u-boot packaged
for Debian Buster.  I tested u-boot on my Dreamplug and found it was not
working correctly.  I raised a bug for Debian[1] but I have also tested
with the mainline version of u-boot and found the same issues.

The first issue is that the following commit caused u-boot to no longer
be able to access usb storage on the Dreamplug:

commit 93b283d49f933f95f3a6f40762936f454ac655a8
Author: Adam Ford <aford173@gmail.com>
Date:   Thu Aug 16 13:23:11 2018 -0500

    ARM: CPU: arm926ejs: Consolidate cache routines to common file

    Four different boards had different options for enabling cache
    that were virtually all the same.  This consolidates these
    common functions into arch/arm/cpu/arm926ejs/cache.c

    This also has the positive side-effect of enabling cache on
    the Davinci (da850) boards.

Signed-off-by: Adam Ford <aford173@gmail.com>
    [trini: Add mach-at91 to the list of consolidations]
Signed-off-by: Tom Rini <trini@konsulko.com>
I don't have much knowledge of ARM caching, but the following patch makes
it work again on my Dreamplug.

Gbp-Pq: Topic dreamplug
Gbp-Pq: Name Commit-ARM-CPU-arm926ejs-Consolidate-cache-routines-.patch

5 years ago[PATCH 5/5] arm: exynos: Read default MMC device from XOM[7:5] pins
Marek Szyprowski [Fri, 17 Jan 2020 13:02:44 +0000 (14:02 +0100)]
[PATCH 5/5] arm: exynos: Read default MMC device from XOM[7:5] pins

XOM pins provide information for iROM bootloader about the boot device.
Those pins are mapped to lower bits of OP_MODE register (0x10000008),
which is common for all Exynos SoC variants. Set the default MMC device id
to reflect the boot device selected by XOM[7:5] pins (2 for the SD or 0 for
the eMMC).

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Gbp-Pq: Topic exynos
Gbp-Pq: Name 0007-arm-exynos-Read-default-MMC-device-from-XOM-7-5-pins.patch

5 years ago[PATCH 4/5] arm: dts: exynos: Use common alias for Odroid U3/X2 MMC2 (SD-card)
Marek Szyprowski [Thu, 16 Jan 2020 15:25:35 +0000 (16:25 +0100)]
[PATCH 4/5] arm: dts: exynos: Use common alias for Odroid U3/X2 MMC2 (SD-card)

Use MMC0 for eMMC and MMC2 for SD-card as other Exynos-based boards do.
This allows to use common code to get MMC device id based on the XOM[7:5]
pins.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Gbp-Pq: Topic exynos
Gbp-Pq: Name 0006-arm-dts-exynos-Use-common-alias-for-Odroid-U3-X2-MMC.patch

5 years ago[PATCH 3/5] arm: dts: exynos: Fix card-detect polarity for SD card on Odroid U3/X2
Marek Szyprowski [Thu, 16 Jan 2020 15:25:34 +0000 (16:25 +0100)]
[PATCH 3/5] arm: dts: exynos: Fix card-detect polarity for SD card on Odroid U3/X2

Card detect line for SD-card on Odroid U3/X2 boards are active low, so
add cd-inverted property to indicate this, as u-boot's GPIO driver doesn't
support specifying line polarity. This restores S5P_SDHCI driver operation
on Odroid U3/X2 boards.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Gbp-Pq: Topic exynos
Gbp-Pq: Name 0005-arm-dts-exynos-Fix-card-detect-polarity-for-SD-card-.patch

5 years ago[PATCH 2/5] mmc: s5p_sdhci: Read generic MMC properties from DT
Marek Szyprowski [Thu, 16 Jan 2020 15:25:33 +0000 (16:25 +0100)]
[PATCH 2/5] mmc: s5p_sdhci: Read generic MMC properties from DT

Read generic MMC properties from device-tree. This allows to specify for
example cd-inverted property and let MMC core to properly handle such
case.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Gbp-Pq: Topic exynos
Gbp-Pq: Name 0004-mmc-s5p_sdhci-Read-generic-MMC-properties-from-DT.patch

5 years ago[PATCH 1/5] arm: exynos: Use proper PMIC device names
Marek Szyprowski [Thu, 16 Jan 2020 13:46:04 +0000 (14:46 +0100)]
[PATCH 1/5] arm: exynos: Use proper PMIC device names

Since commit 4213609cc7 ("drivers: core: use strcmp when find device by
name") one has to provide full name to get requested object. Fix the code
used to detect enable power regulators on the supported Exynos boards to
use proper PMIC device device name then.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Anand Moon <linux.amoon@gmail.com>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Gbp-Pq: Topic exynos
Gbp-Pq: Name 0003-arm-exynos-Use-proper-PMIC-device-names.patch

5 years ago[PATCH] arm: exynos: Use proper ADC device name
Marek Szyprowski [Tue, 14 Jan 2020 14:04:20 +0000 (15:04 +0100)]
[PATCH] arm: exynos: Use proper ADC device name

Since commit 4213609cc7 ("drivers: core: use strcmp when find device by
name") one has to provide full name to get requested object. Fix the code
used to detect Odroid board revision to use proper ADC device name then.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Gbp-Pq: Topic exynos
Gbp-Pq: Name 0002-arm-exynos-Use-proper-ADC-device-name.patch

5 years ago[PATCH] arm: config: fix default console only to specify the device
Dongjin Kim [Sat, 28 Oct 2017 04:22:27 +0000 (00:22 -0400)]
[PATCH] arm: config: fix default console only to specify the device

This reverts commit 767edf0f6b3eaa0303f3fd6afdc14ddce0aca70c and restores
commit 232ed3ca534708527a9515c7c41bc3542949525c.

Debian's flash-kernel expect the console variable to just contain the device,
because it will set the bootargs to "console=${console}". So revert adding
"console=" to the console parameter, but also adjust the shipped bootscripts
for exynos boards to cope with it.

Bug-Debian: https://bugs.debian.org/920116
Signed-off-by: Benjamin Drung <bdrung@debian.org>
Gbp-Pq: Topic exynos
Gbp-Pq: Name 0001-arm-config-fix-default-console-only-to-specify-the-d.patch

5 years agotest-imagetools-test-fixes
Vagrant Cascadian [Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)]
test-imagetools-test-fixes

This patch allows testing in an alternate directory and also detects
failures to execute commands, treating that as a failure.

Gbp-Pq: Name test-imagetools-test-fixes

5 years agoomap5_distro_bootcmd
Vagrant Cascadian [Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)]
omap5_distro_bootcmd

Enable distro_bootcmd support (doc/README.distro) for omap5 targets.

Gbp-Pq: Topic am57xx
Gbp-Pq: Name omap5_distro_bootcmd

5 years agoensure-config-sandbox-for-make-env
Vagrant Cascadian [Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)]
ensure-config-sandbox-for-make-env

Ensure that CONFIG_SANDBOX is set when running "make env", avoiding a
failure to build caused by config_distro_bootcmd.h following the wrong
codepath...

Gbp-Pq: Name ensure-config-sandbox-for-make-env.patch

5 years agosh4-fix-linker-name-prefix.patch
Vagrant Cascadian [Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)]
sh4-fix-linker-name-prefix.patch

u-boot currently fails to build from source on sh4 since the
linker name prefix defined in arch/sh/config.mk is outdated.
On current Debian installations, the binaries of the GNU
toolchain are named using the triplett scheme
$arch-$kernel-$toolchain. Thus, on sh4, the proper name
is "sh4-linux-gnu-ld" instead of "sh4-linux-ld". This
patch updates build configuration on sh4 to reflect that.

Gbp-Pq: Name sh4-fix-linker-name-prefix.patch

5 years agoAdd spl/arndale-spl.bin rule
Ian Campbell [Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)]
Add spl/arndale-spl.bin rule

Gbp-Pq: Topic arndale
Gbp-Pq: Name board-spl-rule.diff

5 years agon900-bootz-raw-initrd
Vagrant Cascadian [Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)]
n900-bootz-raw-initrd

Enable booting of zImage/vmlinuz and initrd without requiring the use of
mkimage to create uImage/uInitrd.

Gbp-Pq: Name n900-bootz-raw-initrd.diff

5 years agomx53loco
Vagrant Cascadian [Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)]
mx53loco

Enables support for ext4, the "load" command, and using bootz with raw initrds.

Gbp-Pq: Name mx53loco

5 years agoMakefile-add-kwb-target-to-all
Vagrant Cascadian [Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)]
Makefile-add-kwb-target-to-all

Add u-boot.kwb to "make all" target on Kirkwood.

Gbp-Pq: Name Makefile-add-kwb-target-to-all.patch

5 years agoEnable generic tools build
Hector Oron [Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)]
Enable generic tools build

Gbp-Pq: Name tools-generic-builds.patch

5 years agono-force-CROSS_COMPILE-powerpc
Vagrant Cascadian [Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)]
no-force-CROSS_COMPILE-powerpc

Debian typically builds natively, so disable forced use of
cross-compile.

Gbp-Pq: Name no-force-CROSS_COMPILE-powerpc.diff

5 years agoadd-debian-revision-to-u-boot-version
Vagrant Cascadian [Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)]
add-debian-revision-to-u-boot-version

Add the debian revision to the U-boot version, which is displayed at
boot and can be helpful to determine which specific version is used.

Gbp-Pq: Name add-debian-revision-to-u-boot-version

5 years agou-boot (2020.01+dfsg-2) unstable; urgency=medium
Vagrant Cascadian [Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)]
u-boot (2020.01+dfsg-2) unstable; urgency=medium

  * debian/patches:
    - Fix video output on pinebook (Closes: #948753).
    - Fix exynos5 board detection (Closes: #951195). Thanks to Jochen
      Sprickerhof!
    - Fix MMC on odroid U3. (Closes: #950293)
    - Improve error handling with GPT renames. Fixes CVE-2020-8432.
  * debian/control: Update Standards-Version to 4.5.0, no changes.

[dgit import unpatched u-boot 2020.01+dfsg-2]

5 years agoImport u-boot_2020.01+dfsg-2.debian.tar.xz
Vagrant Cascadian [Thu, 13 Feb 2020 06:29:38 +0000 (06:29 +0000)]
Import u-boot_2020.01+dfsg-2.debian.tar.xz

[dgit import tarball u-boot 2020.01+dfsg-2 u-boot_2020.01+dfsg-2.debian.tar.xz]

5 years agoMerge u-boot (2020.01+dfsg-1) import into refs/heads/workingbranch
Vagrant Cascadian [Wed, 8 Jan 2020 08:19:44 +0000 (08:19 +0000)]
Merge u-boot (2020.01+dfsg-1) import into refs/heads/workingbranch

5 years agoImport u-boot_2020.01+dfsg.orig.tar.xz
Vagrant Cascadian [Wed, 8 Jan 2020 08:19:44 +0000 (08:19 +0000)]
Import u-boot_2020.01+dfsg.orig.tar.xz

[dgit import orig u-boot_2020.01+dfsg.orig.tar.xz]

5 years ago[PATCH] qemu-riscv64_smode, sifive-fu540: fix extlinux (define preboot)
David Abdurachmanov [Wed, 21 Aug 2019 19:07:20 +0000 (12:07 -0700)]
[PATCH] qemu-riscv64_smode, sifive-fu540: fix extlinux (define preboot)

From 3fc056f0b9f7c26e58a1e947c8c0184e55919614 Mon Sep 17 00:00:00 2001
Forwarded: https://patchwork.ozlabs.org/patch/1151125/

Commit 37304aaf60bf92a5dc3ef222ba520698bd862a44 removed preboot
commands in RISC-V targets and broke extlinux support as reported
by Fu Wei <wefu@redhat.com>.

The patch finishes migration of CONFIG_USE_PREBOOT and CONFIG_REBOOT
to Kconfig.

Signed-off-by: David Abdurachmanov <david.abdurachmanov@sifive.com>
Gbp-Pq: Topic riscv64
Gbp-Pq: Name qemu-riscv64_smode-sifive-fu540-fix-extlinux-define-.patch

5 years ago[PATCH] Commit "ARM: CPU: arm926ejs: Consolidate cache routines to common file" break...
Leigh Brown [Wed, 27 Feb 2019 11:32:16 +0000 (11:32 +0000)]
[PATCH] Commit "ARM: CPU: arm926ejs: Consolidate cache routines to common file" breaks u-boot on Dreamplug

Hello,

Vagrant Cascadian asked for people to test the version of u-boot packaged
for Debian Buster.  I tested u-boot on my Dreamplug and found it was not
working correctly.  I raised a bug for Debian[1] but I have also tested
with the mainline version of u-boot and found the same issues.

The first issue is that the following commit caused u-boot to no longer
be able to access usb storage on the Dreamplug:

commit 93b283d49f933f95f3a6f40762936f454ac655a8
Author: Adam Ford <aford173@gmail.com>
Date:   Thu Aug 16 13:23:11 2018 -0500

    ARM: CPU: arm926ejs: Consolidate cache routines to common file

    Four different boards had different options for enabling cache
    that were virtually all the same.  This consolidates these
    common functions into arch/arm/cpu/arm926ejs/cache.c

    This also has the positive side-effect of enabling cache on
    the Davinci (da850) boards.

Signed-off-by: Adam Ford <aford173@gmail.com>
    [trini: Add mach-at91 to the list of consolidations]
Signed-off-by: Tom Rini <trini@konsulko.com>
I don't have much knowledge of ARM caching, but the following patch makes
it work again on my Dreamplug.

Gbp-Pq: Topic dreamplug
Gbp-Pq: Name Commit-ARM-CPU-arm926ejs-Consolidate-cache-routines-.patch

5 years ago[PATCH] arm: config: fix default console only to specify the device
Dongjin Kim [Sat, 28 Oct 2017 04:22:27 +0000 (00:22 -0400)]
[PATCH] arm: config: fix default console only to specify the device

This reverts commit 767edf0f6b3eaa0303f3fd6afdc14ddce0aca70c and restores
commit 232ed3ca534708527a9515c7c41bc3542949525c.

Debian's flash-kernel expect the console variable to just contain the device,
because it will set the bootargs to "console=${console}". So revert adding
"console=" to the console parameter, but also adjust the shipped bootscripts
for exynos boards to cope with it.

Bug-Debian: https://bugs.debian.org/920116
Signed-off-by: Benjamin Drung <bdrung@debian.org>
Gbp-Pq: Topic exynos
Gbp-Pq: Name 0001-arm-config-fix-default-console-only-to-specify-the-d.patch

5 years agotest-imagetools-test-fixes
Vagrant Cascadian [Wed, 8 Jan 2020 08:19:44 +0000 (08:19 +0000)]
test-imagetools-test-fixes

This patch allows testing in an alternate directory and also detects
failures to execute commands, treating that as a failure.

Gbp-Pq: Name test-imagetools-test-fixes

5 years agoomap5_distro_bootcmd
Vagrant Cascadian [Wed, 8 Jan 2020 08:19:44 +0000 (08:19 +0000)]
omap5_distro_bootcmd

Enable distro_bootcmd support (doc/README.distro) for omap5 targets.

Gbp-Pq: Topic am57xx
Gbp-Pq: Name omap5_distro_bootcmd

5 years agoensure-config-sandbox-for-make-env
Vagrant Cascadian [Wed, 8 Jan 2020 08:19:44 +0000 (08:19 +0000)]
ensure-config-sandbox-for-make-env

Ensure that CONFIG_SANDBOX is set when running "make env", avoiding a
failure to build caused by config_distro_bootcmd.h following the wrong
codepath...

Gbp-Pq: Name ensure-config-sandbox-for-make-env.patch

5 years agosh4-fix-linker-name-prefix.patch
Vagrant Cascadian [Wed, 8 Jan 2020 08:19:44 +0000 (08:19 +0000)]
sh4-fix-linker-name-prefix.patch

u-boot currently fails to build from source on sh4 since the
linker name prefix defined in arch/sh/config.mk is outdated.
On current Debian installations, the binaries of the GNU
toolchain are named using the triplett scheme
$arch-$kernel-$toolchain. Thus, on sh4, the proper name
is "sh4-linux-gnu-ld" instead of "sh4-linux-ld". This
patch updates build configuration on sh4 to reflect that.

Gbp-Pq: Name sh4-fix-linker-name-prefix.patch

5 years agoAdd spl/arndale-spl.bin rule
Ian Campbell [Wed, 8 Jan 2020 08:19:44 +0000 (08:19 +0000)]
Add spl/arndale-spl.bin rule

Gbp-Pq: Topic arndale
Gbp-Pq: Name board-spl-rule.diff

5 years agon900-bootz-raw-initrd
Vagrant Cascadian [Wed, 8 Jan 2020 08:19:44 +0000 (08:19 +0000)]
n900-bootz-raw-initrd

Enable booting of zImage/vmlinuz and initrd without requiring the use of
mkimage to create uImage/uInitrd.

Gbp-Pq: Name n900-bootz-raw-initrd.diff

5 years agomx53loco
Vagrant Cascadian [Wed, 8 Jan 2020 08:19:44 +0000 (08:19 +0000)]
mx53loco

Enables support for ext4, the "load" command, and using bootz with raw initrds.

Gbp-Pq: Name mx53loco

5 years agoMakefile-add-kwb-target-to-all
Vagrant Cascadian [Wed, 8 Jan 2020 08:19:44 +0000 (08:19 +0000)]
Makefile-add-kwb-target-to-all

Add u-boot.kwb to "make all" target on Kirkwood.

Gbp-Pq: Name Makefile-add-kwb-target-to-all.patch

5 years agoEnable generic tools build
Hector Oron [Wed, 8 Jan 2020 08:19:44 +0000 (08:19 +0000)]
Enable generic tools build

Gbp-Pq: Name tools-generic-builds.patch

5 years agono-force-CROSS_COMPILE-powerpc
Vagrant Cascadian [Wed, 8 Jan 2020 08:19:44 +0000 (08:19 +0000)]
no-force-CROSS_COMPILE-powerpc

Debian typically builds natively, so disable forced use of
cross-compile.

Gbp-Pq: Name no-force-CROSS_COMPILE-powerpc.diff

5 years agoadd-debian-revision-to-u-boot-version
Vagrant Cascadian [Wed, 8 Jan 2020 08:19:44 +0000 (08:19 +0000)]
add-debian-revision-to-u-boot-version

Add the debian revision to the U-boot version, which is displayed at
boot and can be helpful to determine which specific version is used.

Gbp-Pq: Name add-debian-revision-to-u-boot-version

5 years agou-boot (2020.01+dfsg-1) unstable; urgency=medium
Vagrant Cascadian [Wed, 8 Jan 2020 08:19:44 +0000 (08:19 +0000)]
u-boot (2020.01+dfsg-1) unstable; urgency=medium

  * New upstream release.
  * debian/rules: Do not call qcom wrapper script.
  * debian/control: Drop Build-Depends on "skales", removed from testing.
  * u-boot-rockchip: Use python3 in rockchip_make_fit_atf.
  * generate-rksd: Only generate SPL rksd on targets not using TPL.
  * Add build profile pkg.uboot.subarch.* to build only subsets of
    packages.
  * [arm64] u-boot-rockchip: Add arm-trusted-firmware and u-boot-tools to
    Recommends.

[dgit import unpatched u-boot 2020.01+dfsg-1]

5 years agoImport u-boot_2020.01+dfsg-1.debian.tar.xz
Vagrant Cascadian [Wed, 8 Jan 2020 08:19:44 +0000 (08:19 +0000)]
Import u-boot_2020.01+dfsg-1.debian.tar.xz

[dgit import tarball u-boot 2020.01+dfsg-1 u-boot_2020.01+dfsg-1.debian.tar.xz]

6 years agoMerge u-boot (2019.01+dfsg-7) import into refs/heads/workingbranch
Vagrant Cascadian [Tue, 14 May 2019 02:07:44 +0000 (03:07 +0100)]
Merge u-boot (2019.01+dfsg-7) import into refs/heads/workingbranch

6 years agoti: Add am335x-pocketbeagle to am335x_evm_defconfig.
Vagrant Cascadian [Mon, 29 Apr 2019 23:12:30 +0000 (16:12 -0700)]
ti: Add am335x-pocketbeagle to am335x_evm_defconfig.

Add am335x-pocketbeagle to CONFIG_OF_LIST in am335x_evm_defconfig.

Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Gbp-Pq: Topic pocketbeagle
Gbp-Pq: Name 0002-ti-Add-am335x-pocketbeagle-to-am335x_evm_defconfig.patch

6 years agoti: Add device-tree for am335x-pocketbeagle.
Vagrant Cascadian [Mon, 29 Apr 2019 23:12:29 +0000 (16:12 -0700)]
ti: Add device-tree for am335x-pocketbeagle.

Add device-tree files from linux 5.1-rc7 needed to complete support
for PocketBeagle.

Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Gbp-Pq: Topic pocketbeagle
Gbp-Pq: Name 0001-ti-Add-device-tree-for-am335x-pocketbeagle.patch

6 years agoteres-i
Vagrant Cascadian [Tue, 14 May 2019 02:07:44 +0000 (03:07 +0100)]
teres-i

Gbp-Pq: Topic sunxi
Gbp-Pq: Name teres-i.patch

6 years agosun50i_i2c_init
Vagrant Cascadian [Tue, 14 May 2019 02:07:44 +0000 (03:07 +0100)]
sun50i_i2c_init

Gbp-Pq: Topic sunxi
Gbp-Pq: Name sun50i_i2c_init.patch

6 years agoCommit "ARM: CPU: arm926ejs: Consolidate cache routines to common file" breaks u...
Leigh Brown [Wed, 27 Feb 2019 11:32:16 +0000 (11:32 +0000)]
Commit "ARM: CPU: arm926ejs: Consolidate cache routines to common file" breaks u-boot on Dreamplug

Hello,

Vagrant Cascadian asked for people to test the version of u-boot packaged
for Debian Buster.  I tested u-boot on my Dreamplug and found it was not
working correctly.  I raised a bug for Debian[1] but I have also tested
with the mainline version of u-boot and found the same issues.

The first issue is that the following commit caused u-boot to no longer
be able to access usb storage on the Dreamplug:

commit 93b283d49f933f95f3a6f40762936f454ac655a8
Author: Adam Ford <aford173@gmail.com>
Date:   Thu Aug 16 13:23:11 2018 -0500

    ARM: CPU: arm926ejs: Consolidate cache routines to common file

    Four different boards had different options for enabling cache
    that were virtually all the same.  This consolidates these
    common functions into arch/arm/cpu/arm926ejs/cache.c

    This also has the positive side-effect of enabling cache on
    the Davinci (da850) boards.

Signed-off-by: Adam Ford <aford173@gmail.com>
    [trini: Add mach-at91 to the list of consolidations]
Signed-off-by: Tom Rini <trini@konsulko.com>
I don't have much knowledge of ARM caching, but the following patch makes
it work again on my Dreamplug.

Gbp-Pq: Topic dreamplug
Gbp-Pq: Name Commit-ARM-CPU-arm926ejs-Consolidate-cache-routines-.patch

6 years agoARM: kirkwood: add spi0 alias for dreamplug
Chris Packham [Thu, 28 Feb 2019 07:53:23 +0000 (20:53 +1300)]
ARM: kirkwood: add spi0 alias for dreamplug

The conversion to DM_SPI managed to break accessing the environment on
dreamplug. This is because the environment code relies on being to able
to select the SPI device based on the sequence number. Add an alias so
that the spi0 bus gets sequence number 0.

Reported-by: Leigh Brown <leigh@solinno.co.uk>
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Gbp-Pq: Topic dreamplug
Gbp-Pq: Name ARM-kirkwood-add-spi0-alias-for-dreamplug.patch

6 years agoFix spelling of download.
Vagrant Cascadian [Fri, 1 Mar 2019 03:53:43 +0000 (19:53 -0800)]
Fix spelling of download.

Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
Gbp-Pq: Topic exynos
Gbp-Pq: Name 0002-Fix-spelling-of-download.patch

6 years agoarm: config: fix default console only to specify the device
Dongjin Kim [Sat, 28 Oct 2017 04:22:27 +0000 (00:22 -0400)]
arm: config: fix default console only to specify the device

This reverts commit 767edf0f6b3eaa0303f3fd6afdc14ddce0aca70c and restores
commit 232ed3ca534708527a9515c7c41bc3542949525c.

Debian's flash-kernel expect the console variable to just contain the device,
because it will set the bootargs to "console=${console}". So revert adding
"console=" to the console parameter, but also adjust the shipped bootscripts
for exynos boards to cope with it.

Bug-Debian: https://bugs.debian.org/920116
Signed-off-by: Benjamin Drung <bdrung@debian.org>
Gbp-Pq: Topic exynos
Gbp-Pq: Name 0001-arm-config-fix-default-console-only-to-specify-the-d.patch

6 years agolib: uuid: Fix unseeded PRNG on RANDOM_UUID=y
Eugeniu Rosca [Thu, 2 May 2019 12:27:06 +0000 (14:27 +0200)]
lib: uuid: Fix unseeded PRNG on RANDOM_UUID=y

The random uuid values (enabled via CONFIG_RANDOM_UUID=y) on our
platform are always the same. Below is consistent on each cold boot:

 => ### interrupt autoboot
 => env default -a; gpt write mmc 1 $partitions; print uuid_gpt_misc
 ...
 uuid_gpt_misc=d117f98e-6f2c-d04b-a5b2-331a19f91cb2
 => env default -a; gpt write mmc 1 $partitions; print uuid_gpt_misc
 ...
 uuid_gpt_misc=ad5ec4b6-2d9f-8544-9417-fe3bd1c9b1b3
 => env default -a; gpt write mmc 1 $partitions; print uuid_gpt_misc
 ...
 uuid_gpt_misc=cceb0b18-39cb-d547-9db7-03b405fa77d4
 => env default -a; gpt write mmc 1 $partitions; print uuid_gpt_misc
 ...
 uuid_gpt_misc=d4981a2b-0478-544e-9607-7fd3c651068d
 => env default -a; gpt write mmc 1 $partitions; print uuid_gpt_misc
 ...
 uuid_gpt_misc=6d6c9a36-e919-264d-a9ee-bd00379686c7

While the uuids do change on every 'gpt write' command, the values
appear to be taken from the same pool, in the same order.

Assuming U-Boot with RANDOM_UUID=y is deployed on a large number of
devices, all those devices would essentially expose the same UUID,
breaking the assumption of system/RFS/application designers who rely
on UUID as being globally unique (e.g. a database using UUID as key
would alias/mix up entries/records due to duplicated UUID).

The root cause seems to be simply _not_ seeding PRNG before generating
a random value. It turns out this belongs to an established class of
PRNG-specific problems, commonly known as "unseeded randomness", for
which I am able to find below bugs/CVE/CWE:
 - https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2015-0285
   ("CVE-2015-0285 openssl: handshake with unseeded PRNG")
 - https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2015-9019
   ("CVE-2015-9019 libxslt: math.random() in xslt uses unseeded
   randomness")
 - https://cwe.mitre.org/data/definitions/336.html
   ("CWE-336: Same Seed in Pseudo-Random Number Generator (PRNG)")

The first revision [1] of this patch updated the seed based on the
output of get_timer(), similar to [4].

There are two problems with this approach:
 - get_timer() has a poor _ms_ resolution
 - when gen_rand_uuid() is called in a loop, get_timer() returns the
   same result, leading to the same seed being passed to srand(),
   leading to the same uuid being generated for several partitions
   with different names

The above drawbacks have been addressed in the second version [2].
In its third revision (current), the patch reworded the description
and summary line to emphasize it is a *fix* rather than an improvement.

Testing [3] consisted of running 'gpt write mmc 1 $partitions' in a
loop on R-Car3 for several minutes, collecting 8844 randomly generated
UUIDS. Two consecutive cold boots are concatenated in the log.
As a result, all uuid values are unique (scripted check).

Thanks to Roman, who reported the issue and provided support in fixing.

[1] https://patchwork.ozlabs.org/patch/1091802/
[2] https://patchwork.ozlabs.org/patch/1092945/
[3] https://gist.github.com/erosca/2820be9d554f76b982edd48474d0e7ca
[4] commit da384a9d7628 ("net: rename and refactor eth_rand_ethaddr() function")

Reported-by: Roman Stratiienko <roman.stratiienko@globallogic.com>
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Gbp-Pq: Topic upstream
Gbp-Pq: Name lib-uuid-Fix-unseeded-PRNG-on-RANDOM_UUID-y.patch

6 years agoFix ext4 block group descriptor sizing
Benjamin Lim [Fri, 29 Mar 2019 11:29:45 +0000 (07:29 -0400)]
Fix ext4 block group descriptor sizing

Ext4 allows for arbitrarily sized block group descriptors when 64-bit
addressing is enabled, which was previously not properly supported. This
patch dynamically allocates a chunk of memory of the correct size.

Signed-off-by: Benjamin Lim <jarsp.ctf@gmail.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name Fix-ext4-block-group-descriptor-sizing.patch

6 years agoFix typo: missmatched -> mismatched.
Vagrant Cascadian [Tue, 8 Jan 2019 21:10:23 +0000 (13:10 -0800)]
Fix typo: missmatched -> mismatched.

Signed-off-by: Vagrant Cascadian <vagrant@debian.org>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name 0001-Fix-typo-missmatched-mismatched.patch

6 years agofs: ext4: Unmount FS in do_fs_type()
Marek Vasut [Wed, 6 Feb 2019 12:19:29 +0000 (13:19 +0100)]
fs: ext4: Unmount FS in do_fs_type()

Unlike other generic FS accessors, fs_get_info() does not call fs_close()
at the end of it's operation. Thus, using fs_get_info() in do_fs_type()
without calling fs_close() causes potential memory leak by creating new
filesystem structures on each call of do_fs_type().

The test case to trigger this problem is as follows. It is required to
have ext4 filesystem on the first partition of the SDMMC device, since
ext4 requires stateful mount and causes memory allocation.
=> while true ; do mmc rescan ; fstype mmc 1 ; done
Eventually, the mounting of ext4 will fail due to malloc failures
and the filesystem will not be correctly detected.

This patch fixes the problem by adding the missing fs_close().

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Gbp-Pq: Topic upstream
Gbp-Pq: Name fs-ext4-Unmount-FS-in-do_fs_type.patch

6 years agotest-imagetools-test-fixes
Vagrant Cascadian [Tue, 14 May 2019 02:07:44 +0000 (03:07 +0100)]
test-imagetools-test-fixes

This patch allows testing in an alternate directory and also detects
failures to execute commands, treating that as a failure.

Gbp-Pq: Name test-imagetools-test-fixes

6 years agoomap5_distro_bootcmd
Vagrant Cascadian [Tue, 14 May 2019 02:07:44 +0000 (03:07 +0100)]
omap5_distro_bootcmd

Enable distro_bootcmd support (doc/README.distro) for omap5 targets.

Gbp-Pq: Topic am57xx
Gbp-Pq: Name omap5_distro_bootcmd

6 years agoensure-config-sandbox-for-make-env
Vagrant Cascadian [Tue, 14 May 2019 02:07:44 +0000 (03:07 +0100)]
ensure-config-sandbox-for-make-env

Ensure that CONFIG_SANDBOX is set when running "make env", avoiding a
failure to build caused by config_distro_bootcmd.h following the wrong
codepath...

Gbp-Pq: Name ensure-config-sandbox-for-make-env.patch

6 years agosh4-fix-linker-name-prefix
Vagrant Cascadian [Tue, 14 May 2019 02:07:44 +0000 (03:07 +0100)]
sh4-fix-linker-name-prefix

Gbp-Pq: Name sh4-fix-linker-name-prefix.patch