Enable wdt command in defconfig for Turris MOX. This is useful when
doing debugging.
Signed-off-by: Marek Behún
Reviewed-by: Stefan Roese
---
configs/turris_mox_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/turris_mox_defconfig b/configs/turris_mox_defconfig
index
Enable setexpr command in defconfig for Turris MOX. We have found that
this is sometimes useful in U-Boot scripts and there is enough space in
NOR memory on MOX.
Signed-off-by: Marek Behún
---
configs/turris_mox_defconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
Enable wdt command in defconfig for Turris MOX. This is useful when
doing debugging.
Signed-off-by: Marek Behún
---
configs/turris_mox_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/configs/turris_mox_defconfig b/configs/turris_mox_defconfig
index 66dc2473d6..4543acf073 100644
On Thu, 4 Feb 2021 07:18:23 +0900
Jaehoon Chung wrote:
> > Commit da18c62b6e6a causes the regression. The Fixes tag, as I
> > understand, should link to commit with which the regression first
> > occured, so that if someone wanted to backport my patch to previous
> > version of U-Boot, they
Reviewed-by: Marek Behún
This is needed to parse more capabilities such as `non-removable`.
Commit da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect") caused
a regression on Turris Omnia, because mv_sdhci driver did not fill out
host_caps from device-tree.
Signed-off-by: Marek Behún
Fixes: da18c62b
> Hi Marek,
> I posted a similar patch earlier today:
> > Fixes: da18c62b6e6a ("mmc: sdhci: Implement SDHCI card detect")
> My patch is missing this tag, though.
> baruch
OK, lets leave it on Stefan to decide which one to apply.
Marek
6c3e7760a2 ("arm: mvebu: turris_omnia: support invoking rescue boot
from console")
Signed-off-by: Pali Rohár
Signed-off-by: Marek Behún
---
board/CZ.NIC/turris_mox/turris_mox.c | 14 +++---
board/CZ.NIC/turris_omnia/turris_omnia.c | 13 ++---
2 files changed, 21 insert
Add default fdtfile environment variable with value
marvell/armada-3720-turris-mox.dtb.
This can be useful for some boot scenarios.
Signed-off-by: Marek Behún
---
include/configs/turris_mox.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/configs/turris_mox.h b/include/configs
. When factory reset
button is pressed, invoke rescue mode via distroboot by setting
`boot_targets` to `rescue`.
Rescue boot from console can be invoked by running
run bootcmd_rescue
Signed-off-by: Marek Behún
---
board/CZ.NIC/turris_mox/turris_mox.c | 71
configs
Configure blinking on ethernet PHY LEDs on the MOX A board when entering
rescue mode via reset button.
Signed-off-by: Marek Behún
---
board/CZ.NIC/turris_mox/turris_mox.c | 35
1 file changed, 35 insertions(+)
diff --git a/board/CZ.NIC/turris_mox/turris_mox.c
b
Enable configuration options to support Turris network boot. This
includes FIT support and some crypto commands.
Signed-off-by: Marek Behún
---
configs/turris_mox_defconfig | 8
1 file changed, 8 insertions(+)
diff --git a/configs/turris_mox_defconfig b/configs/turris_mox_defconfig
Add nodes for SPI NOR partitions to the device tree of Turris MOX, as
are in Linux' device tree.
Signed-off-by: Marek Behún
---
arch/arm/dts/armada-3720-turris-mox.dts | 31 +
1 file changed, 31 insertions(+)
diff --git a/arch/arm/dts/armada-3720-turris-mox.dts
b/arch
-Boot's DTS with kernel's DTS
Marek Behún (6):
arm: mvebu: dts: turris_mox: add button and LED nodes
arm: mvebu: turris_mox: add support for board rescue mode
arm: mvebu: turris_mox: start blinking PHY LEDs when entering rescue
arm: mvebu: configs: turris_mox: add fdtfile default env variable
Add nodes for indicator LED and reset button so that board code can
implement board factory reset mechanism.
Signed-off-by: Marek Behún
---
arch/arm/dts/armada-3720-turris-mox.dts | 24
1 file changed, 24 insertions(+)
diff --git a/arch/arm/dts/armada-3720-turris
Make LTO available for sandbox architecture.
Signed-off-by: Marek Behún
Reviewed-by: Bin Meng
---
arch/Kconfig | 1 +
arch/sandbox/config.mk | 4
2 files changed, 5 insertions(+)
diff --git a/arch/Kconfig b/arch/Kconfig
index 6c4b81a486..c5c03d438c 100644
--- a/arch/Kconfig
Add $(CFLAGS_EFI) and remove $(CFLAGS_NON_EFI) for
efi_selftest_miniapp_exception.o.
The removal is needed when compiling with LTO - this object file needs
to be compiled without -flto.
The adding is for consistency with other miniapps.
Signed-off-by: Marek Behún
Reviewed-by: Heinrich
Document the macros __efi_runtime and __efi_runtime_data in Sphinx
style.
Signed-off-by: Marek Behún
Reviewed-by: Heinrich Schuchardt
---
include/efi_loader.h | 29 ++---
1 file changed, 26 insertions(+), 3 deletions(-)
diff --git a/include/efi_loader.h b/include
.note.gnu.build-id
section.
Fix this by explicitly disabling build-id.
Signed-off-by: Marek Behún
---
Makefile | 2 ++
scripts/Makefile.spl | 2 ++
2 files changed, 4 insertions(+)
diff --git a/Makefile b/Makefile
index 2329edc159..a62f7e3f7c 100644
--- a/Makefile
+++ b/Makefile
?id=68384
Signed-off-by: Marek Behún
---
arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 2 +-
arch/arm/include/asm/global_data.h| 2 +-
arch/arm/mach-exynos/spl_boot.c | 2 +-
arch/arm/mach-imx/imx8m/soc.c | 2 +-
arch/arm/mach-imx/spl_imx_romapi.c| 16
5 files
When building keystone with LTO the compiler complains:
Error: selected processor does not support `smc #0' in Thumb mode
Fix this by removing -flto for the file implementing these SMC calls.
Signed-off-by: Marek Behún
---
arch/arm/mach-keystone/Makefile | 1 +
1 file changed, 1 insertion
When imx28_xea_defconfig is built with LTO, the compiler complains about
the two different declarations of _start:
include/asm-generic/sections.has extern void _start(void);
arch/arm/cpu/arm926ejs/mxs/mxs.c as extern uint32_t _start;
Fix this.
Signed-off-by: Marek Behún
Reviewed
The Thumb instruction `ldr` is able to move high registers only from
armv7. For armv5 and armv6 we have to use `mov`.
Signed-off-by: Marek Behún
---
arch/arm/include/asm/global_data.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/arm/include/asm/global_data.h
b
Build sandbox targets with LTO by default.
Signed-off-by: Marek Behún
Reviewed-by: Bin Meng
---
arch/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/Kconfig b/arch/Kconfig
index c5c03d438c..8fd39e36b4 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -125,6 +125,7 @@ config
in
/tmp/u-boot.EQlEXz.ltrans0.ltrans.o
To avoid this conflict use different asm label for this variable when
CONFIG_SANDBOX is enabled.
Signed-off-by: Marek Behún
Reviewed-by: Bin Meng
Reviewed-by: Simon Glass
---
include/errno.h | 8 +++-
lib/errno.c | 4 +++-
2 files changed, 10
-by: Marek Behún
---
arch/arm/cpu/arm926ejs/Makefile | 2 ++
arch/arm/lib/Makefile | 1 +
2 files changed, 3 insertions(+)
diff --git a/arch/arm/cpu/arm926ejs/Makefile b/arch/arm/cpu/arm926ejs/Makefile
index af63d5cc5e..98aafe805a 100644
--- a/arch/arm/cpu/arm926ejs/Makefile
+++ b/arch/arm/cpu
Adam Ford says that DM3730 needs board.c compiled without LTO flags.
Signed-off-by: Marek Behún
Tested-by: Adam Ford
---
arch/arm/mach-omap2/omap3/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-omap2/omap3/Makefile
b/arch/arm/mach-omap2/omap3/Makefile
index
of this function to that of the other usages.
Signed-off-by: Marek Behún
Reviewed-by: Bin Meng
---
arch/arm/cpu/armv7/kona-common/clk-stubs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/cpu/armv7/kona-common/clk-stubs.c
b/arch/arm/cpu/armv7/kona-common/clk-stubs.c
index
actually passes an int variable into the function (so it is implicitly
converted to u8).
Change the type of this parameter to int in drivers/ata/ahci.c.
Signed-off-by: Marek Behún
Reviewed-by: Bin Meng
---
drivers/ata/ahci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
-off-by: Marek Behún
Reviewed-by: Bin Meng
---
arch/arm/mach-rockchip/board.c| 2 +-
board/samsung/common/exynos5-dt.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-rockchip/board.c b/arch/arm/mach-rockchip/board.c
index c386b52987..5304eb055c 100644
an implementation.
Change the type of this function in the implementation to fix this.
Signed-off-by: Marek Behún
Reviewed-by: Bin Meng
---
arch/arm/mach-imx/imx8m/clock_imx8mm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-imx/imx8m/clock_imx8mm.c
b/arch/arm/mach-imx
this by removing -flto for this file.
Signed-off-by: Marek Behún
---
arch/arm/mach-tegra/tegra20/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-tegra/tegra20/Makefile
b/arch/arm/mach-tegra/tegra20/Makefile
index faaf30d068..bb17c90cca 100644
--- a/arch/arm/mach-tegra/tegra20
into the section .rodata.efi_runtime, instead of
.data.efi_runtime, via macro __efi_runtime_rodata.
Signed-off-by: Marek Behún
Reviewed-by: Marek Vasut
Reviewed-by: Heinrich Schuchardt
---
lib/crc32.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/crc32.c b/lib/crc32.c
index
of dm_test_devm_regmap_field when compiled
for sandbox_defconfig using LTO.
Fix this by utilizing an union { u8; u16; u32; u64; } and reading data
into this union / writing data from this union.
Signed-off-by: Marek Behún
Cc: Simon Glass
Cc: Heiko Schocher
Cc: Bin Meng
Cc: Pratyush Yadav
---
drivers
be renamed on some targets by optimization)
Marek
Marek Behún (36):
regmap: fix a serious pointer casting bug
checkpatch: require quotes around section name in the __section()
macro
treewide: Convert macro and uses of __section(foo) to __section("foo")
compiler.h: align the
Use UNIQUE_ID in the __ADDRESSABLE macro.
Signed-off-by: Marek Behún
Reviewed-by: Bin Meng
---
include/linux/compiler.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 82a8a4ede9..98dd3fc4cc 100644
--- a/include
to quoted __section("foo").
Also convert __attribute__((section("foo"))) uses to __section("foo")
even if the __attribute__ has multiple list entry forms.
Signed-off-by: Marek Behún
Reviewed-by: Bin Meng
---
arch/arm/cpu/arm926ejs/spear/spl.c| 2 +-
arch/arm/cp
This is how Linux does this now, see Linux commit 339f29d91acf.
Signed-off-by: Marek Behún
---
scripts/checkpatch.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 59a714a95f..08a827535a 100755
--- a/scripts/checkpatch.pl
’ was
previously declared here
7 | char __efi_runtime_start[0] __attribute__((section(".__efi_run
| ^
Change the type to char[] in include/efi_loader.h.
Signed-off-by: Marek Behún
Reviewed-by: Bin Meng
---
include/efi_loader.h | 4 ++--
1 file changed, 2 insertions(+), 2 dele
Signed-off-by: Marek Behún
---
test/py/conftest.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/py/conftest.py b/test/py/conftest.py
index 1b909cde9d..11a3f307ea 100644
--- a/test/py/conftest.py
+++ b/test/py/conftest.py
@@ -226,7 +226,7 @@ def pytest_config
be supplied through some other mechanism
when this option is specified.
Make these functions visible by using the __used macro to avoid this
error.
Signed-off-by: Marek Behún
---
lib/string.c | 9 +
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/lib/string.c b/lib/stri
When using LTO, we can throw away the --gc-sections flag, but only if
using private libgcc.
When using system's libgcc, --gc-sections is still needed, otherwise
linking will fail due to undefined references to libc's symbols.
Signed-off-by: Marek Behún
---
arch/arm/config.mk | 2 ++
1 file
When building with LTO, using -ffunction-sections/-fdata-sections is not
useful anymore.
Signed-off-by: Marek Behún
---
arch/arm/config.mk | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index e79f0104b9..f556ee3329 100644
Make LTO available for ARM architecture.
Signed-off-by: Marek Behún
---
arch/Kconfig | 1 +
arch/arm/lib/Makefile | 2 ++
2 files changed, 3 insertions(+)
diff --git a/arch/Kconfig b/arch/Kconfig
index 8fd39e36b4..49813a4c9b 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -33,6 +33,7
For some reason when building SPL for ARMv8 with LTO, the relocation
information is not discarded.
Discard it explicitly in the linker script.
This fixes LTO build for imx8mm_venice_defconfig.
Signed-off-by: Marek Behún
---
arch/arm/cpu/armv8/u-boot-spl.lds | 1 +
1 file changed, 1 insertion
Enable LTO for some boards that were tested by people on U-Boot Mailing
List.
Signed-off-by: Marek Behún
Tested-by: Adam Ford
Tested-by: Pali Rohár
Tested-by: Tim Harvey
---
configs/am3517_evm_defconfig | 1 +
configs/da850evm_defconfig| 1 +
configs
it thinks are unused when
compiling with LTO. To force these symbols to be included, we refer to
them via the __ADDRESSABLE macro in a C file generated from compiled
built-in.o files before linking.
Signed-off-by: Marek Behún
---
Kbuild| 2 +
Kconfig
to use the P flag for ar, otherwise final linking may fail.
Signed-off-by: Marek Behún
---
Makefile | 4 ++--
arch/sandbox/config.mk | 10 +++---
scripts/Makefile.build | 16
scripts/Makefile.spl | 4 ++--
4 files changed, 19 insertions(+), 15 deletions
Add macro __efi_runtime_rodata, for const variables with similar purpose
as those using __efi_runtime_data.
Signed-off-by: Marek Behún
Reviewed-by: Heinrich Schuchardt
---
include/efi_loader.h | 17 +
1 file changed, 17 insertions(+)
diff --git a/include/efi_loader.h b/include
When apf27_defconfig is built with LTO, linking complains about
undefined reference to `nand_boot`. This is because it is referenced
from inline assembly. Make it visible.
Signed-off-by: Marek Behún
---
drivers/mtd/nand/raw/mxc_nand_spl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion
it thinks that array is empty (start and end
symbols are at the same address).
Signed-off-by: Marek Behún
---
arch/sandbox/cpu/os.c | 3 ++-
arch/sandbox/cpu/start.c| 3 ++-
arch/sandbox/cpu/u-boot-spl.lds | 8 +---
arch/sandbox/cpu/u-boot.lds | 8
Indent the linking commands so that they look cosmetically better.
Signed-off-by: Marek Behún
Reviewed-by: Bin Meng
---
Makefile | 12 +++-
scripts/Makefile.spl | 17 +++--
2 files changed, 18 insertions(+), 11 deletions(-)
diff --git a/Makefile b/Makefile
Fill in mtd->dev member with nor->dev.
This can be used by MTD OF partition parser.
Signed-off-by: Marek Behún
Reviewed-by: Pali Rohár
Reviewed-by: Miquel Raynal
Tested-by: Patrice Chotard
Cc: Jagan Teki
Cc: Priyanka Jain
Cc: Simon Glass
Cc: Heiko Schocher
Cc: Jagan Teki
Cc: P
from OF, even if they are defined.
Signed-off-by: Marek Behún
Reviewed-by: Miquel Raynal
Tested-by: Patrice Chotard
Cc: Simon Glass
Cc: Heiko Schocher
Cc: Jagan Teki
Cc: Patrick Delaunay
---
drivers/mtd/mtd_uboot.c | 106 +++-
drivers/mtd/mtdpart.c | 63
Add functions ofnode_get_addr_size_index_notrans(), which is a
non-translating version of ofnode_get_addr_size_index().
Some addresses are not meant to be translated, for example those of MTD
fixed-partitions.
Signed-off-by: Marek Behún
Reviewed-by: Simon Glass
Reviewed-by: Miquel Raynal
- the last patch now probes SPI NORs in both versions of
mtd_probe_devices(), that is when MTDPARTS is enabled or disabled
Marek
Cc: Jagan Teki
Cc: Priyanka Jain
Cc: Simon Glass
Cc: Heiko Schocher
Cc: Jagan Teki
Cc: Patrick Delaunay
Cc: Patrice CHOTARD
Cc: Miquel Raynal
Marek Behún (10):
dm
the nor->mtd structure, which is filled in by spi_nor_scan
anyway, instead of filling a separate struct mtd_info.
Signed-off-by: Marek Behún
Reviewed-by: Pali Rohár
Reviewed-by: Miquel Raynal
Tested-by: Patrice Chotard
Cc: Jagan Teki
Cc: Priyanka Jain
Cc: Simon Glass
Cc: Heiko Schocher
The device_probe() function does the same thing as mtd_probe() and
mtd_probe() is only used in mtd_probe_uclass_mtd_devs(), where the
probing can be made simpler by using uclass_foreach_dev_probe macro.
Signed-off-by: Marek Behún
Reviewed-by: Pali Rohár
Reviewed-by: Miquel Raynal
Tested
Add function for retrieving full node path of a given ofnode.
This uses np->full_name if OF is live, otherwise a call to
fdt_get_path() is made.
Signed-off-by: Marek Behún
Reviewed-by: Simon Glass
Reviewed-by: Miquel Raynal
Tested-by: Patrice Chotard
---
drivers/core/ofnode.c |
Print MTD's device OF path in the output of `mtd list` command.
Signed-off-by: Marek Behún
Reviewed-by: Miquel Raynal
Tested-by: Patrice Chotard
Cc: Jagan Teki
Cc: Priyanka Jain
Cc: Simon Glass
Cc: Heiko Schocher
Cc: Jagan Teki
Cc: Patrick Delaunay
---
cmd/mtd.c | 7 +++
1 file
_nor
- path: /soc/spi@10600/spi-nor@1
- type: NOR flash
- block size: 0x1000 bytes
- min I/O: 0x1 bytes
- 0x0000-0x0080 : "s25fl164k"
Signed-off-by: Marek Behún
Reviewed-by: Miquel Raynal
Tested-by: Patrice Chotard
Cc: Jagan Teki
Cc: Priyanka Jain
In order for `mtd list` U-Boot command to list SPI NOR devices without
the need to run `sf probe` before, we have to probe SPI NOR devices in
mtd_probe_devices().
Signed-off-by: Marek Behún
Reviewed-by: Pali Rohár
Reviewed-by: Miquel Raynal
Tested-by: Patrice Chotard
Cc: Jagan Teki
Cc
The argument can now also be MTD's DM device name or OF path.
Mention this is command help.
Signed-off-by: Marek Behún
Reviewed-by: Miquel Raynal
Tested-by: Patrice Chotard
Cc: Jagan Teki
Cc: Priyanka Jain
Cc: Simon Glass
Cc: Heiko Schocher
Cc: Jagan Teki
Cc: Patrick Delaunay
---
cmd
On Wed, 26 May 2021 22:28:34 +0530
Jagan Teki wrote:
> This series have some conflicts wrt my series about MTD UCLASS
> migration. Does this bypass that series?
>
> Jagan.
Jagan, I was working on top of Tom's master branch... Are the conflicts
big?
Marek
On Wed, 26 May 2021 08:52:58 -0400
Tom Rini wrote:
> On Wed, May 26, 2021 at 02:25:54AM +0200, Marek Behun wrote:
> > On Wed, 26 May 2021 01:27:56 +0200
> > Marek Behun wrote:
> >
> > > Tom, Simon,
> > >
> > > now that LTO is merged I am working on
> > > Support SPI NORs and OF partitions
On Wed, 2 Jun 2021 07:12:50 +0200
Stefan Roese wrote:
> > Hello Stefan! Thank you for review. Would you be sending these A3720
> > patches to 2021.07 version?
>
> My plan was to postpone these patches to the next release, as they
> seem quite intrusive. But please let me know if you think
On Wed, 26 May 2021 23:34:18 +0530
Jagan Teki wrote:
> On Wed, May 26, 2021 at 11:25 PM Marek Behún
> wrote:
> >
> > On Wed, 26 May 2021 22:28:34 +0530
> > Jagan Teki wrote:
> >
> > > This series have some conflicts wrt my series about MTD UCLASS
> &
armada-37xx.dtsi, but it only changes
name of a U-Boot's dts node to follow Linux' dts. No board code seems
to depend on this name.)
Marek
Marek Behún (7):
arm: mvebu: dts: turris_mox: add button and LED nodes
arm: mvebu: turris_mox: add support for board rescue mode
arm: mvebu: turris_mox
The node `internal-regs` is called `internal-regs@d000`
in Linux' device tree. Rename this in U-Boot also.
No in-tree code depends on this name, so this should be safe.
Signed-off-by: Marek Behún
---
arch/arm/dts/armada-37xx.dtsi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff
On Fri, 21 May 2021 10:11:47 -0400
Tom Rini wrote:
> On Thu, May 20, 2021 at 01:56:29PM -0500, Adam Ford wrote:
> > On Thu, May 20, 2021 at 6:25 AM Marek Behún
> > wrote:
> > >
> > > Enable LTO for some boards that were tested by people on U-Boot
> >
On Fri, 21 May 2021 10:11:47 -0400
Tom Rini wrote:
> On Thu, May 20, 2021 at 01:56:29PM -0500, Adam Ford wrote:
> > On Thu, May 20, 2021 at 6:25 AM Marek Behún
> > wrote:
> > >
> > > Enable LTO for some boards that were tested by people on U-Boot
> >
Update rescue mode boot command on Turris Omnia. We are compressing the
image with lzma now.
Signed-off-by: Marek Behún
---
board/CZ.NIC/turris_omnia/turris_omnia.c | 9 +++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c
b/board
environment variables
to their default values when the factory button is pressed.
Rescue boot from console can be invoked by running
run bootcmd_rescue
Signed-off-by: Marek Behún
---
board/CZ.NIC/turris_omnia/turris_omnia.c | 53 +---
include/configs/turris_omnia.h
On Wed, 2 Jun 2021 19:09:56 +0200
Marek Behún wrote:
> +#define TURRIS_MOX_BOOTCMD_RESCUE \
> + "setenv bootargs \"console=ttyMV0,115200 " \
> + "earlycon=ar3700_uart,0xd0012000\" && " \
> + "sf
On Wed, 2 Jun 2021 19:10:01 +0200
Marek Behún wrote:
> The node `internal-regs` is called `internal-regs@d000`
> in Linux' device tree. Rename this in U-Boot also.
>
> No in-tree code depends on this name, so this should be safe.
>
> Signed-off-by: Marek Behún
>
at standard UART baudrates between 1800 and
230400.
Signed-off-by: Pali Rohár
Reviewed-by: Marek Behún
---
drivers/serial/serial_mvebu_a3700.c | 14 ++
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/drivers/serial/serial_mvebu_a3700.c
b/drivers/serial
Reviewed-by: Marek Behún
---
drivers/serial/serial_mvebu_a3700.c | 67 +
1 file changed, 67 insertions(+)
diff --git a/drivers/serial/serial_mvebu_a3700.c
b/drivers/serial/serial_mvebu_a3700.c
index ba2ac5917f..c7e66fef87 100644
--- a/drivers/serial/serial_mvebu_a3700
This series adds support for more baudrates on Armada 3720 UART
(up to 6 MBaud).
Marek Behún (1):
clk: armada-37xx: Set DM_FLAG_PRE_RELOC
Pali Rohár (4):
serial: a37xx: Fix parent clock rate value and divider calculation
serial: a37xx: Use TBG as parent clock
serial: a37xx: Switch
config file.
Signed-off-by: Pali Rohár
Reviewed-by: Marek Behún
---
include/configs/mvebu_armada-37xx.h | 9 +++--
include/configs/turris_mox.h| 9 +++--
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/include/configs/mvebu_armada-37xx.h
b/include/configs
Setting DM_FLAG_PRE_RELOC for Armada 3720 clock drivers (TBG and
peripheral clocks) makes it possible for serial driver to retrieve clock
rates via clk API.
Signed-off-by: Marek Behún
---
drivers/clk/mvebu/armada-37xx-periph.c | 1 +
drivers/clk/mvebu/armada-37xx-tbg.c| 1 +
2 files changed
MBaud.
Slower baudrates with TBG as a parent clock can be achieved by
increasing TBG dividers and oversampling divider. When using the slowest
TBG clock, minimal working baudrate is 300.
Signed-off-by: Pali Rohár
Signed-off-by: Marek Behún
---
drivers/serial/serial_mvebu_a3700.c | 106
On Tue, 1 Jun 2021 16:59:52 +0200
Patrick DELAUNAY wrote:
> Hi Marek,
>
> I am trying to activate CONFIG_LTO for STMicroelectronics stm32mp15
> platform
>
> (stm32mp15_trusted_defconfig and stm32mp15_basic_defconfig).
>
>
> The config stm32mp15_basic_defconfig, with SPL supported failed to
Add nodes for SPI NOR partitions to the device tree of Turris MOX, as
are in Linux' device tree.
Signed-off-by: Marek Behún
---
arch/arm/dts/armada-3720-turris-mox.dts | 31 +
1 file changed, 31 insertions(+)
diff --git a/arch/arm/dts/armada-3720-turris-mox.dts
b/arch
Enable configuration options to support Turris network boot. This
includes FIT support and some crypto commands.
Signed-off-by: Marek Behún
---
configs/turris_mox_defconfig | 8
1 file changed, 8 insertions(+)
diff --git a/configs/turris_mox_defconfig b/configs/turris_mox_defconfig
. When factory reset
button is pressed, invoke rescue mode via distroboot by setting
`boot_targets` to `rescue`.
Rescue boot from console can be invoked by running
run bootcmd_rescue
Signed-off-by: Marek Behún
---
board/CZ.NIC/turris_mox/turris_mox.c | 71
configs
Configure blinking on ethernet PHY LEDs on the MOX A board when entering
rescue mode via reset button.
Signed-off-by: Marek Behún
---
board/CZ.NIC/turris_mox/turris_mox.c | 35
1 file changed, 35 insertions(+)
diff --git a/board/CZ.NIC/turris_mox/turris_mox.c
b
Add nodes for indicator LED and reset button so that board code can
implement board factory reset mechanism.
Signed-off-by: Marek Behún
---
arch/arm/dts/armada-3720-turris-mox.dts | 24
1 file changed, 24 insertions(+)
diff --git a/arch/arm/dts/armada-3720-turris
Add default fdtfile environment variable with value
marvell/armada-3720-turris-mox.dtb.
This can be useful for some boot scenarios.
Signed-off-by: Marek Behún
---
include/configs/turris_mox.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/configs/turris_mox.h b/include/configs
On Thu, 8 Jul 2021 08:54:51 +0900
Masami Hiramatsu wrote:
> Hi Marek,
>
> I found that this changes the mtd device name and makes 'mtdparts'
> doesn't work on my developerbox platform.
>
> Before this change,
> ---
> => sf probe
> SF: Detected mx66u51235f with page size 256 Bytes, erase
From: Pali Rohár
The binary header in kwbimage contains executable SPL code.
Print information about this binary header and not only information
about it's data part.
Signed-off-by: Pali Rohár
Reviewed-by: Marek Behún
---
tools/kwbimage.c | 24
1 file changed, 24
Add constant for SDIO value of the bootfrom header field.
Signed-off-by: Marek Behún
---
tools/kwbimage.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/kwbimage.h b/tools/kwbimage.h
index 0b6d05bef1..9856b44536 100644
--- a/tools/kwbimage.h
+++ b/tools/kwbimage.h
@@ -27,6 +27,7
image is
not used and must be set to 0x.
Signed-off-by: Pali Rohár
Reviewed-by: Marek Behún
---
tools/kwbimage.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/tools/kwbimage.c b/tools/kwbimage.c
index f40ba0994d..44bf5ee026 100644
--- a/tools/kwbimage.c
+++ b
From: Pali Rohár
In the case when the file name is specified relative to the current
working directory, it does not contain '/' character and strrchr()
returns NULL.
The following strcmp() function then crashes on NULL pointer
dereference.
Signed-off-by: Pali Rohár
Reviewed-by: Marek Behún
the
last DATA command.
Signed-off-by: Pali Rohár
Reviewed-by: Marek Behún
---
tools/kwbimage.c | 24 +++-
1 file changed, 23 insertions(+), 1 deletion(-)
diff --git a/tools/kwbimage.c b/tools/kwbimage.c
index dc2b0a12e6..99c74b081a 100644
--- a/tools/kwbimage.c
+++ b/tools
of returning to BootROM
directly, so that U-Boot's SPL framework is used for returning to
BootROM.
Signed-off-by: Pali Rohár
Reviewed-by: Marek Behún
---
arch/arm/mach-mvebu/spl.c | 48 ---
1 file changed, 25 insertions(+), 23 deletions(-)
diff --git a/arch
From: Pali Rohár
The data part of v1 images contains 32-bit checksum after the data.
Validate whether this checksum is correct.
Signed-off-by: Pali Rohár
Reviewed-by: Marek Behún
---
tools/kwbimage.c | 46 ++
1 file changed, 46 insertions(+)
diff
UART and NAND.
Note that the config options CONFIG_SPL_SPI_FLASH_SUPPORT,
CONFIG_SPL_SPI_LOAD and CONFIG_SPL_SPI_SUPPORT needs to be enabled as
config option CONFIG_SYS_U_BOOT_OFFS (used by kwbimage) depends on it.
Signed-off-by: Pali Rohár
Reviewed-by: Marek Behún
---
arch/arm/mach-mvebu/Kconfig
l via
kwboot")
Reviewed-by: Marek Behún
---
arch/arm/mach-mvebu/lowlevel_spl.S | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-mvebu/lowlevel_spl.S
b/arch/arm/mach-mvebu/lowlevel_spl.S
index 8718d7a43e..dde77b7652 100644
--- a/arch/arm/mach-mvebu/lowl
From: Pali Rohár
Add missing curly brackets for this else statement.
Signed-off-by: Pali Rohár
Reviewed-by: Marek Behún
---
tools/kwboot.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/kwboot.c b/tools/kwboot.c
index 6e66ad4ecf..e4d4267e47 100644
--- a/tools
decrease the final size of v1 kwbimage. This means there is more space
for main U-Boot binary.
Signed-off-by: Pali Rohár
Reviewed-by: Marek Behún
---
tools/kwbimage.c | 13 -
1 file changed, 13 deletions(-)
diff --git a/tools/kwbimage.c b/tools/kwbimage.c
index acd57267f4..656f3f9ae9
301 - 400 of 1644 matches
Mail list logo