Re: [PATCH v1 0/2] imx8m: fix secure boot

2021-08-05 Thread Peng Fan (OSS)
On 2021/8/6 12:44, Heiko Schocher wrote: This series fixes secure boot on imx8m based boards. Tim also detected this issue and the patches fixed on his hardware also the problem, see discussion here:

[PATCH 3/3] Add fdt network helper to Makefile

2021-08-05 Thread Tony Dinh
Add fdt_support_net.c to common/Makefile Signed-off-by: Tony Dinh --- common/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/Makefile b/common/Makefile index 9063ed9391..94678d26d8 100644 --- a/common/Makefile +++ b/common/Makefile @@ -28,7 +28,7 @@

[PATCH 2/3] Add fdt network helper functions

2021-08-05 Thread Tony Dinh
Add fdt network helper functions common/fdt_support_net.c Signed-off-by: Tony Dinh --- common/fdt_support_net.c | 46 1 file changed, 46 insertions(+) create mode 100644 common/fdt_support_net.c diff --git a/common/fdt_support_net.c

[PATCH 1/3] Add fdt network helper header file

2021-08-05 Thread Tony Dinh
Add include header file include/fdt_support_net.h Signed-off-by: Tony Dinh --- include/fdt_support_net.h | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 include/fdt_support_net.h diff --git a/include/fdt_support_net.h

[PATCH 0/3] common: Add fdt network helper

2021-08-05 Thread Tony Dinh
At the moment, there is no common fdt helper function specific to decoding network related information from FDTs. This new helper functional group fdt_support_net is intended to be used by board-specific code within U-Boot for various network related chores. In this patch, create the 1st

[PATCH v1 2/2] imx: spl: implement spl_load_simple_fit_fix_load

2021-08-05 Thread Heiko Schocher
read the address where the IVT header must sit from IVT image header, loaded from SPL into an malloced buffer and copy the IVT header to this address May make this dependend on SoC ? Signed-off-by: Heiko Schocher --- arch/arm/mach-imx/spl.c | 33 + 1 file

[PATCH v1 1/2] spl_fit. add hook to make fixes after fit header is loaded

2021-08-05 Thread Heiko Schocher
add hook function spl_load_simple_fit_fix_load() which is called after fit image header is loaded. Signed-off-by: Heiko Schocher --- common/spl/spl_fit.c | 11 +++ include/spl.h| 8 2 files changed, 19 insertions(+) diff --git a/common/spl/spl_fit.c

[PATCH v1 0/2] imx8m: fix secure boot

2021-08-05 Thread Heiko Schocher
This series fixes secure boot on imx8m based boards. Tim also detected this issue and the patches fixed on his hardware also the problem, see discussion here: https://lists.denx.de/pipermail/u-boot/2021-July/454351.html Problem is that the IVT header gets loaded to a memallocated buffer, but

Re: [PATCH v2 2/6] efi_loader: add secure boot variable measurement

2021-08-05 Thread Masahisa Kojima
On Thu, 15 Jul 2021 at 15:44, Heinrich Schuchardt wrote: > > > > On 7/14/21 3:00 PM, Masahisa Kojima wrote: > > TCG PC Client PFP spec requires to measure the secure > > boot policy before validating the UEFI image. > > This commit adds the secure boot variable measurement > > of "SecureBoot",

Re: Proposal: U-Boot MTD (rewriting old story)

2021-08-05 Thread Bin Meng
On Fri, Aug 6, 2021 at 3:40 AM Tom Rini wrote: > > On Thu, Aug 05, 2021 at 01:20:51PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 4 Aug 2021 at 12:49, Tom Rini wrote: > > > > > > On Wed, Aug 04, 2021 at 10:09:55AM -0600, Simon Glass wrote: > > > > Hi Jagan, > > > > > > > > On Tue, 3

Re: [PATCH v2 0/3] efi: Minimal revert to rodata change

2021-08-05 Thread Simon Glass
Hi Takahiro, On Thu, 5 Aug 2021 at 18:13, KASHI Takahiro wrote: > > On Thu, Aug 05, 2021 at 09:46:07AM -0600, Simon Glass wrote: > > Hi Heinrich, > > > > On Thu, 5 Aug 2021 at 09:29, Heinrich Schuchardt wrote: > > > > > > > > > > > > On 02.08.21 16:44, Simon Glass wrote: > > > > The changes to

Re: [PATCH v2 0/3] efi: Minimal revert to rodata change

2021-08-05 Thread KASHI Takahiro
On Thu, Aug 05, 2021 at 09:46:07AM -0600, Simon Glass wrote: > Hi Heinrich, > > On Thu, 5 Aug 2021 at 09:29, Heinrich Schuchardt wrote: > > > > > > > > On 02.08.21 16:44, Simon Glass wrote: > > > The changes to move from devicetree to rodata take things in the wrong > > > direction for various

Re: [PATCH v2 13/32] pci: usb: Drop DM_PCI from ohci

2021-08-05 Thread Tom Rini
On Sun, Aug 01, 2021 at 06:54:26PM -0600, Simon Glass wrote: > Now that DM_PCI is always enabled we don't need to check it. Drop this > old condition and update the comment. > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > drivers/usb/host/ohci-hcd.c | 15 +-- >

Re: [PATCH] Revert "arm: bootm: Disable LMB reservation for command line and board info on arm64"

2021-08-05 Thread Tom Rini
On Thu, Aug 05, 2021 at 11:53:24PM +0200, Marek Vasut wrote: > On 8/2/21 3:00 PM, Tom Rini wrote: > > On Mon, Aug 02, 2021 at 02:54:22AM +0200, Marek Vasut wrote: > > > On 7/29/21 6:58 PM, Tom Rini wrote: > > > > > > [...] > > > > > > > > > so when did rcar3 introduce something there that

[PATCH 1/1] cmd/part: correct alignment of partition list

2021-08-05 Thread Heinrich Schuchardt
When running 'part list' for an ISO partition the numbers are not under the labels. Correct the alignment of the ISO partition list. With the patch the output looks like: Part Start Sect x Size Type 1 3720 5024512 U-Boot Signed-off-by: Heinrich Schuchardt ---

Re: [PATCH 2/2] doc: fix Latex margins

2021-08-05 Thread Tom Rini
On Fri, Aug 06, 2021 at 12:20:01AM +0200, Heinrich Schuchardt wrote: > Adjust the Latex formatting to match Linux v5.13.1: > > * add Latex margins > * reformat the code in doc/conf.py to match Linux > > Signed-off-by: Heinrich Schuchardt Is a larger re-sync effort not warranted? Or are we

Re: [PATCH] Revert "arm: bootm: Disable LMB reservation for command line and board info on arm64"

2021-08-05 Thread Marek Vasut
On 8/3/21 11:51 PM, Tom Rini wrote: On Mon, Aug 02, 2021 at 05:27:59PM -0400, Tom Rini wrote: On Thu, Jul 29, 2021 at 09:22:02AM +0200, Jan Kiszka wrote: From: Jan Kiszka This reverts commit 2359fa7a87848626bcbd3399e92c657595880cd7. While the goal is valid and there is surely unused memory

Re: [PATCH] Revert "arm: bootm: Disable LMB reservation for command line and board info on arm64"

2021-08-05 Thread Marek Vasut
On 8/2/21 3:00 PM, Tom Rini wrote: On Mon, Aug 02, 2021 at 02:54:22AM +0200, Marek Vasut wrote: On 7/29/21 6:58 PM, Tom Rini wrote: [...] so when did rcar3 introduce something there that shouldn't be reserved? And you had phrased this to me on IRC as about reserving spot for ATAGS, and that

Re: [PATCH] Revert "arm: bootm: Disable LMB reservation for command line and board info on arm64"

2021-08-05 Thread Marek Vasut
On 8/2/21 4:44 PM, Tom Rini wrote: On Mon, Aug 02, 2021 at 04:34:29PM +0200, Jan Kiszka wrote: On 02.08.21 16:27, Tom Rini wrote: On Mon, Aug 02, 2021 at 04:03:01PM +0200, Jan Kiszka wrote: On 02.08.21 15:04, Tom Rini wrote: On Mon, Aug 02, 2021 at 01:54:57PM +0200, Jan Kiszka wrote: On

[PATCH 2/2] doc: fix Latex margins

2021-08-05 Thread Heinrich Schuchardt
Adjust the Latex formatting to match Linux v5.13.1: * add Latex margins * reformat the code in doc/conf.py to match Linux Signed-off-by: Heinrich Schuchardt --- doc/conf.py | 31 +++ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/doc/conf.py

[PATCH 1/2] doc: require Sphinx 2.44

2021-08-05 Thread Heinrich Schuchardt
Require Sphinx 2.44 to build the documentation. Remove all code related to earlier versions. Signed-off-by: Heinrich Schuchardt --- doc/conf.py | 77 ++--- doc/sphinx/kerneldoc.py | 26 ++ 2 files changed, 5 insertions(+), 98

[PATCH 0/2] doc: update Sphinx build system

2021-08-05 Thread Heinrich Schuchardt
We require Sphinx 2.44. Adjust the coding accordingly. In Linux the margins of Latex documents were fixed. Update our files accordingly. Heinrich Schuchardt (2): doc: require Sphinx 2.44 doc: fix Latex margins doc/conf.py | 108

[PATCH 1/1] efi_loader: Uri() device path node

2021-08-05 Thread Heinrich Schuchardt
iPXE used Uri() device path nodes. So we should support them in the device path to text protocol. Signed-off-by: Heinrich Schuchardt --- include/efi_api.h| 6 ++ lib/efi_loader/efi_device_path_to_text.c | 13 + 2 files changed, 19 insertions(+) diff

Please pull u-boot-video

2021-08-05 Thread Anatolij Gustschin
Hi Tom, please pull new video patches. gitlab CI: https://source.denx.de/u-boot/custodians/u-boot-video/-/pipelines/8588 Thanks! The following changes since commit 5371593aed56ee11cbb6cc6ac8d058fcd9b8f58c: Merge https://source.denx.de/u-boot/custodians/u-boot-sunxi (2021-07-31 20:51:24

[PATCH] display_options: Do not use %llu in print_size

2021-08-05 Thread Matwey V. Kornilov
tiny-printf variant doesn't know how to handle %llu format string, but both tiny-printf and print_size can meet in SPL when TFTP is used to obtain main u-boot image. This is known to lead to critical boot issue at AM335x platform when printf is catched in infinite loop. To avoid such issues and

Re: U-Boot Digest, Vol 158, Issue 63

2021-08-05 Thread Tom Rini
On Tue, Aug 03, 2021 at 09:21:57AM -0400, Oleksandr G Zhadan wrote: > Hi Tom, > > Thanks for the quick notes. > > As I already mentioned, unfortunately, I did not notice any "warnings" in > time - we haven’t been building the bootloader recently, but our customer is > using it. > > My only

tiny-printf: endless loop for %llu format

2021-08-05 Thread Matwey V. Kornilov
Hi, I am trying to boot AM335x platform via TFTP and found another one issue related to tiny-printf: print_size() in lib/display_options.c relies on printf("%llu Bytes%s", size, s); and it surprisingly leads to infinite looping when tiny-printf is used in SPL. So, I am afraid that TFTP

Re: Proposal: U-Boot MTD (rewriting old story)

2021-08-05 Thread Tom Rini
On Thu, Aug 05, 2021 at 01:20:51PM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 4 Aug 2021 at 12:49, Tom Rini wrote: > > > > On Wed, Aug 04, 2021 at 10:09:55AM -0600, Simon Glass wrote: > > > Hi Jagan, > > > > > > On Tue, 3 Aug 2021 at 09:01, Jagan Teki > > > wrote: > > > > > > > > Yes,

Re: [PATCH v2] tiny-printf: Handle %pM format when CONFIG_SPL_NET_SUPPORT is enabled

2021-08-05 Thread Simon Glass
On Thu, 5 Aug 2021 at 13:06, Matwey V. Kornilov wrote: > > %pM format string is used to print MAC-address and this is required while SPL > network boot. > > This patch fixes the SPL boot issues like the following: > > Trying to boot from USB eth > ## Error: flags type check failure for

Re: Proposal: U-Boot MTD (rewriting old story)

2021-08-05 Thread Simon Glass
Hi Tom, On Wed, 4 Aug 2021 at 12:49, Tom Rini wrote: > > On Wed, Aug 04, 2021 at 10:09:55AM -0600, Simon Glass wrote: > > Hi Jagan, > > > > On Tue, 3 Aug 2021 at 09:01, Jagan Teki wrote: > > > > > > Yes, this is the old discussion and triggered again now since we had a > > > discussion on the

Re: [PATCH v3 2/3] arm: Add an __image_copy_start symbol for ARMv8

2021-08-05 Thread Simon Glass
Hi Scott, On Wed, 4 Aug 2021 at 13:53, Scott Wood wrote: > > On Sun, 2021-08-01 at 14:59 -0600, Simon Glass wrote: > > This symbol is needed for binman to locate the start of the image. Add it. > > > > Note: the existing line to bring in the .__image_copy_start symbol does > > not appear to do

[PATCH v2] tiny-printf: Handle %pM format when CONFIG_SPL_NET_SUPPORT is enabled

2021-08-05 Thread Matwey V. Kornilov
%pM format string is used to print MAC-address and this is required while SPL network boot. This patch fixes the SPL boot issues like the following: Trying to boot from USB eth ## Error: flags type check failure for "ethaddr" <= "40309614M" (type: m) ## Error inserting "ethaddr"

Re: [PATCH v7 5/6] rockchip: px30: add support for SFC for Odroid Go Advance

2021-08-05 Thread Chris Morgan
On Thu, Aug 05, 2021 at 04:27:52PM +0800, Jon Lin wrote: > From: Chris Morgan > > The Odroid Go Advance uses a Rockchip Serial Flash Controller with an > XT25F128B SPI NOR flash chip. This adds support for both. Note that > while both the controller and chip support quad mode, only two lines >

Re: [PATCH v7 1/6] spi: rockchip_sfc: add support for Rockchip SFC

2021-08-05 Thread Chris Morgan
On Thu, Aug 05, 2021 at 04:56:31PM +0530, Jagan Teki wrote: > On Thu, Aug 5, 2021 at 1:57 PM Jon Lin wrote: > > > > From: Chris Morgan > > > > This patch adds support for the Rockchip serial flash controller > > found on the PX30 SoC. It should work for versions 3-5 of the SFC > > IP, however I

Re: [PATCH v7 3/6] rockchip: px30: add the serial flash controller

2021-08-05 Thread Chris Morgan
On Thu, Aug 05, 2021 at 05:00:44PM +0530, Jagan Teki wrote: > On Thu, Aug 5, 2021 at 1:57 PM Jon Lin wrote: > > > > From: Chris Morgan > > > > Add the serial flash controller to the devicetree for the PX30. > > > > Signed-off-by: Chris Morgan > > Signed-off-by: Jon Lin > > --- > > > > (no

Nvidia/Cuda on ARM using U-Boot

2021-08-05 Thread Benjamin Krill
Hi, does anyway have experience with Nvidia GPUs with Cuda on ARM with underlaying U-BOOT? I see an kernel error when trying to initialize cuda in my code: INIT CUDA [ 62.609001] NVRM: failed to register with the ACPI subsystem! [ 62.614980] NVRM: failed to unregister from the ACPI

Re: [PATCH 0/9] meson64_android: Android boot flow using abootimg

2021-08-05 Thread Tom Rini
On Thu, Aug 05, 2021 at 05:17:19PM +0200, Mattijs Korpershoek wrote: > The SEI-610 and SEI-510 boards are well supported in the > Android Open Source project via the yukawa [1] platform. > > Their U-Boot version, despite being public [2] is not in mainline. > > Android 10 and higher have

Re: [PATCH 1/9] configs: meson64: permit redefining SYS_MALLOC_LEN

2021-08-05 Thread Tom Rini
On Thu, Aug 05, 2021 at 06:20:53PM +0200, Neil Armstrong wrote: > On 05/08/2021 17:17, Mattijs Korpershoek wrote: > > Permit redefining SYS_MALLOC_LEN for board specific configs. > > This is especially useful for Android with AVB, which requires a malloc > > length of 128M. > > > > Signed-off-by:

[PATCH 1/2] rockchip: px30: add support for setting cpll clock

2021-08-05 Thread Chris Morgan
From: Chris Morgan Starting with commit 92f1e9a4b31c ("clk: Detect failure to set defaults") the clk driver for the PX30 for the Odroid Go Advance would no longer probe correctly, because setting the cpll and gpu clocks are not supported with the clk_px30 U-Boot driver. This adds support for

[PATCH 2/2] rockchip: board: remove SCLK_GPU from U-Boot DT

2021-08-05 Thread Chris Morgan
From: Chris Morgan Starting with commit 92f1e9a4b31c ("clk: Detect failure to set defaults") the clk driver for the PX30 would fail to probe for the Odroid Go Advance. This patch is to remove the clock for the GPU from the U-Boot specific devicetree, as that clock is not supported by the U-Boot

[PATCH 0/2] rockchip: board: Fix bug for clk driver for OGA

2021-08-05 Thread Chris Morgan
From: Chris Morgan This series is to fix a problem with probing the clk_px30 driver that began with commit 92f1e9a4b31c ("clk: Detect failure to set defaults"). The driver fails to probe because 2 clocks are unsupported. One clock (the cpll) was simple to add to the driver and the other clock

Re: Building htmldocs

2021-08-05 Thread Tom Rini
On Thu, Aug 05, 2021 at 10:17:19AM -0600, Simon Glass wrote: > Hi, > > On Thu, 5 Aug 2021 at 10:04, Tom Rini wrote: > > > > On Thu, Aug 05, 2021 at 10:02:31AM -0600, Simon Glass wrote: > > > Hi, > > > > > > On Thu, 5 Aug 2021 at 09:59, Tom Rini wrote: > > > > > > > > On Thu, Aug 05, 2021 at

Re: [PATCH] tiny-printf: Handle %pM format when CONFIG_SPL_NET_SUPPORT is enabled

2021-08-05 Thread Simon Glass
Hi Matwey, On Thu, 5 Aug 2021 at 06:43, Matwey V. Kornilov wrote: > > %pM format string is used to print MAC-address and this is required while SPL > network boot. > > This patch fixes the SPL boot issues like the following: > > Trying to boot from USB eth > ## Error: flags type check

Re: [PATCH 9/9] configs: sei510/610: android bootflow via abootimg

2021-08-05 Thread Neil Armstrong
On 05/08/2021 17:17, Mattijs Korpershoek wrote: > From: Guillaume La Roque > > Activate the following Kconfig options: > * AVB for Android Verified Boot support > * ADTIMGfor merging DTBOs > * ABOOTIMG for extracting Android boot image > > Also rework the partitioning tables: > - add

Re: [PATCH 7/9] configs: sei510/sei610: reformat PARTS_default

2021-08-05 Thread Neil Armstrong
On 05/08/2021 17:17, Mattijs Korpershoek wrote: > There is a mix of spaces and tabs at the leading \. This makes updating > theses lines harder. > > Add a single space before each \ for some consistency. > > Signed-off-by: Mattijs Korpershoek > --- > include/configs/sei510.h | 14

Re: [PATCH 8/9] configs: sei510/sei610: don't use hard-coded gpt uuids

2021-08-05 Thread Neil Armstrong
On 05/08/2021 17:17, Mattijs Korpershoek wrote: > doc/README.gpt states: > >> The fields 'uuid' and 'uuid_disk' are optional if CONFIG_RANDOM_UUID is >> enabled. A random uuid will be used if omitted or they point to an empty/ >> non-existent environment variable. The environment variable will be

Re: [PATCH 4/9] configs: meson64_android: implement A/B slot support

2021-08-05 Thread Neil Armstrong
On 05/08/2021 17:17, Mattijs Korpershoek wrote: > Implement A/B slot selection using the U-Boot ab_select command. > > Keep support for non A/B. > > Not: We need to redefine the recovery partition label, as RecoveryOS > is included in the boot image for A/B systems [1] > > [1]

Re: [PATCH 6/9] configs: meson64_android: boot android via abootimg

2021-08-05 Thread Neil Armstrong
On 05/08/2021 17:17, Mattijs Korpershoek wrote: > From: Guillaume La Roque > > Since Android 10, we are required to use a "dtbo" partition which > includes the various device-tree overlays [1]. > It's also possible to provide a "dtb" partition. > > This is supported via the "abootimg" command.

Re: [PATCH 5/9] configs: meson64_android: define BOOT_CMD macro

2021-08-05 Thread Neil Armstrong
On 05/08/2021 17:17, Mattijs Korpershoek wrote: > BOOT_CMD might be different based on CONFIG_CMD_ABOOTIMG. > > To prepare for abootimg support, extract the boot command > to a dedicated macro. > > Signed-off-by: Guillaume La Roque > Signed-off-by: Mattijs Korpershoek > --- >

Re: [PATCH 3/9] configs: meson64_android: implement AVB support

2021-08-05 Thread Neil Armstrong
On 05/08/2021 17:17, Mattijs Korpershoek wrote: > AVB (Android Verified Boot) is well supported in U-Boot already. > Add support for it in meson64_android. > > This is controlled by the "force_avb" environment variable and the > CONFIG_CMD_AVB option. > > Signed-off-by: Guillaume La Roque >

Re: [PATCH 2/9] configs: meson64_android: increase SYS_MALLOC_LEN to 128M for AVB

2021-08-05 Thread Neil Armstrong
On 05/08/2021 17:17, Mattijs Korpershoek wrote: > To prepare for AVB support, increase SYS_MALLOC_LEN to 128M. > This value has been found by testing the following on khadas vim3l: > => avb init > => avb verify > > Signed-off-by: Mattijs Korpershoek > --- > include/configs/meson64_android.h

Re: [PATCH 1/9] configs: meson64: permit redefining SYS_MALLOC_LEN

2021-08-05 Thread Neil Armstrong
On 05/08/2021 17:17, Mattijs Korpershoek wrote: > Permit redefining SYS_MALLOC_LEN for board specific configs. > This is especially useful for Android with AVB, which requires a malloc > length of 128M. > > Signed-off-by: Guillaume La Roque > Signed-off-by: Mattijs Korpershoek > --- >

Re: Building htmldocs

2021-08-05 Thread Simon Glass
Hi, On Thu, 5 Aug 2021 at 10:04, Tom Rini wrote: > > On Thu, Aug 05, 2021 at 10:02:31AM -0600, Simon Glass wrote: > > Hi, > > > > On Thu, 5 Aug 2021 at 09:59, Tom Rini wrote: > > > > > > On Thu, Aug 05, 2021 at 05:54:52PM +0200, Heinrich Schuchardt wrote: > > > > > > > > > > > > On 05.08.21

Re: Building htmldocs

2021-08-05 Thread Tom Rini
On Thu, Aug 05, 2021 at 10:02:31AM -0600, Simon Glass wrote: > Hi, > > On Thu, 5 Aug 2021 at 09:59, Tom Rini wrote: > > > > On Thu, Aug 05, 2021 at 05:54:52PM +0200, Heinrich Schuchardt wrote: > > > > > > > > > On 05.08.21 17:41, Simon Glass wrote: > > > > Hi, > > > > > > > > I cannot do this at

Re: Building htmldocs

2021-08-05 Thread Simon Glass
Hi, On Thu, 5 Aug 2021 at 09:59, Tom Rini wrote: > > On Thu, Aug 05, 2021 at 05:54:52PM +0200, Heinrich Schuchardt wrote: > > > > > > On 05.08.21 17:41, Simon Glass wrote: > > > Hi, > > > > > > I cannot do this at present: > > > > > > $ make htmldocs > > >

Re: Building htmldocs

2021-08-05 Thread Tom Rini
On Thu, Aug 05, 2021 at 05:54:52PM +0200, Heinrich Schuchardt wrote: > > > On 05.08.21 17:41, Simon Glass wrote: > > Hi, > > > > I cannot do this at present: > > > > $ make htmldocs > > doc/board/freescale/b4860qds.rst:170:duplicate label > > board/freescale/b4860qds:switch settings, other

Re: Building htmldocs

2021-08-05 Thread Heinrich Schuchardt
On 05.08.21 17:41, Simon Glass wrote: Hi, I cannot do this at present: $ make htmldocs doc/board/freescale/b4860qds.rst:170:duplicate label board/freescale/b4860qds:switch settings, other instance in doc/board/freescale/b4860qds.rst Hello Simon, that is for origin/master? I am not able

Re: [PATCH v2 0/3] efi: Minimal revert to rodata change

2021-08-05 Thread Simon Glass
Hi Heinrich, On Thu, 5 Aug 2021 at 09:29, Heinrich Schuchardt wrote: > > > > On 02.08.21 16:44, Simon Glass wrote: > > The changes to move from devicetree to rodata take things in the wrong > > direction for various reasons: > > > > - devicetree is where config should be stored > > We are not

Building htmldocs

2021-08-05 Thread Simon Glass
Hi, I cannot do this at present: $ make htmldocs doc/board/freescale/b4860qds.rst:170:duplicate label board/freescale/b4860qds:switch settings, other instance in doc/board/freescale/b4860qds.rst Regards, Simon

Re: [PATCH v2 0/3] efi: Minimal revert to rodata change

2021-08-05 Thread Heinrich Schuchardt
On 02.08.21 16:44, Simon Glass wrote: The changes to move from devicetree to rodata take things in the wrong direction for various reasons: - devicetree is where config should be stored We are not talking about configuration here at all. - it provides no memory production in any case,

[PATCH 7/9] configs: sei510/sei610: reformat PARTS_default

2021-08-05 Thread Mattijs Korpershoek
There is a mix of spaces and tabs at the leading \. This makes updating theses lines harder. Add a single space before each \ for some consistency. Signed-off-by: Mattijs Korpershoek --- include/configs/sei510.h | 14 +++--- include/configs/sei610.h | 14 +++--- 2 files

[PATCH 8/9] configs: sei510/sei610: don't use hard-coded gpt uuids

2021-08-05 Thread Mattijs Korpershoek
doc/README.gpt states: > The fields 'uuid' and 'uuid_disk' are optional if CONFIG_RANDOM_UUID is > enabled. A random uuid will be used if omitted or they point to an empty/ > non-existent environment variable. The environment variable will be > set to the generated UUID. The 'gpt guid' command

[PATCH 3/9] configs: meson64_android: implement AVB support

2021-08-05 Thread Mattijs Korpershoek
AVB (Android Verified Boot) is well supported in U-Boot already. Add support for it in meson64_android. This is controlled by the "force_avb" environment variable and the CONFIG_CMD_AVB option. Signed-off-by: Guillaume La Roque Signed-off-by: Mattijs Korpershoek ---

[PATCH 9/9] configs: sei510/610: android bootflow via abootimg

2021-08-05 Thread Mattijs Korpershoek
From: Guillaume La Roque Activate the following Kconfig options: * AVB for Android Verified Boot support * ADTIMGfor merging DTBOs * ABOOTIMG for extracting Android boot image Also rework the partitioning tables: - add a misc partition to handle BCB messages - add a dtbo partition to

[PATCH 6/9] configs: meson64_android: boot android via abootimg

2021-08-05 Thread Mattijs Korpershoek
From: Guillaume La Roque Since Android 10, we are required to use a "dtbo" partition which includes the various device-tree overlays [1]. It's also possible to provide a "dtb" partition. This is supported via the "abootimg" command. On Yukawa, the assumption is that we have only a "dtbo"

[PATCH 5/9] configs: meson64_android: define BOOT_CMD macro

2021-08-05 Thread Mattijs Korpershoek
BOOT_CMD might be different based on CONFIG_CMD_ABOOTIMG. To prepare for abootimg support, extract the boot command to a dedicated macro. Signed-off-by: Guillaume La Roque Signed-off-by: Mattijs Korpershoek --- include/configs/meson64_android.h | 6 -- 1 file changed, 4 insertions(+), 2

[PATCH 4/9] configs: meson64_android: implement A/B slot support

2021-08-05 Thread Mattijs Korpershoek
Implement A/B slot selection using the U-Boot ab_select command. Keep support for non A/B. Not: We need to redefine the recovery partition label, as RecoveryOS is included in the boot image for A/B systems [1] [1] https://source.android.com/devices/tech/ota/ab/ab_implement#recovery

[PATCH 2/9] configs: meson64_android: increase SYS_MALLOC_LEN to 128M for AVB

2021-08-05 Thread Mattijs Korpershoek
To prepare for AVB support, increase SYS_MALLOC_LEN to 128M. This value has been found by testing the following on khadas vim3l: => avb init => avb verify Signed-off-by: Mattijs Korpershoek --- include/configs/meson64_android.h | 4 1 file changed, 4 insertions(+) diff --git

[PATCH 0/9] meson64_android: Android boot flow using abootimg

2021-08-05 Thread Mattijs Korpershoek
The SEI-610 and SEI-510 boards are well supported in the Android Open Source project via the yukawa [1] platform. Their U-Boot version, despite being public [2] is not in mainline. Android 10 and higher have significantly reworked the bootloader requirements: * bootloader should pass slot

[PATCH 1/9] configs: meson64: permit redefining SYS_MALLOC_LEN

2021-08-05 Thread Mattijs Korpershoek
Permit redefining SYS_MALLOC_LEN for board specific configs. This is especially useful for Android with AVB, which requires a malloc length of 128M. Signed-off-by: Guillaume La Roque Signed-off-by: Mattijs Korpershoek --- include/configs/meson64.h | 2 ++ 1 file changed, 2 insertions(+) diff

Re: [PATCH] test/py: tpm2: Skip tpm pytest based on env variable

2021-08-05 Thread Tom Rini
On Thu, Aug 05, 2021 at 05:56:50AM +, T Karthik Reddy wrote: > Hello Tom Rini, > > > -Original Message- > > From: Tom Rini > > Sent: Wednesday, August 4, 2021 8:52 PM > > To: Ashok Reddy Soma > > Cc: u-boot@lists.denx.de; miquel.ray...@bootlin.com; git ; > > T Karthik Reddy > >

[PATCH] tiny-printf: Handle %pM format when CONFIG_SPL_NET_SUPPORT is enabled

2021-08-05 Thread Matwey V. Kornilov
%pM format string is used to print MAC-address and this is required while SPL network boot. This patch fixes the SPL boot issues like the following: Trying to boot from USB eth ## Error: flags type check failure for "ethaddr" <= "40309614M" (type: m) ## Error inserting "ethaddr"

Re: [PATCH 3/5] arm: dts: stm32mp157c-odyssey-som: set the SDMMC2 VQMMC supply

2021-08-05 Thread Grzegorz Szymaszek
Hi, On Wed, Jun 02, 2021 at 09:18:57AM +0200, Patrice Chotard wrote: > On 5/28/21 6:54 PM, Grzegorz Szymaszek wrote: > > Set the SDMMC2 VQMMC supply to vdd (buck3). Note that in the > > corresponding Linux kernel device tree, the supply is set to v3v3 > > (buck4), which is wrong. > > Do you

list of Ethernet Phys supported by uboot

2021-08-05 Thread Boris Genow
Hi all, I am looking for a list of Ethernet Phys supported by uboot, especially for the Lantiq/Intel/Maxlinear PHY11G (PEF 7071/7072). Under drivers/net/phy I have not found a special driver for it or is there a generic support? Thanks & Regards Boris NOTE:

Re: [PATCH 4/4] EFI: console: improve vidconsole unicode output

2021-08-05 Thread Heinrich Schuchardt
On 8/4/21 12:22 PM, Artem Lapkin wrote: If EFI_CONSOLE_UTF_SAFE is enabled and vidconsole is active, unicode characters will be replaced with "." for all console outputs. The TrueType console is meant to support Unicode including the special characters used by GRUB like left and right

Re: [PATCH 3/4] EFI: console: max rows and cols user limit

2021-08-05 Thread Heinrich Schuchardt
On 8/4/21 12:22 PM, Artem Lapkin wrote: Setup the max rows and columns limit for the EFI console output. Why should a user set this up? The size of serial console depends on the remote computers console windows size. The size of a video console depends on the attached monitor. So we have to

Re: [PATCH 1/4] EFI: console: query_vidconsole: multiplex adaptation

2021-08-05 Thread Heinrich Schuchardt
On 8/4/21 12:22 PM, Artem Lapkin wrote: Fixed detection of vidconsole from within a multiplexed stdout string. As you know, a user can use a comma-separated list of devices to set stdin, stdout and stderr. For example, "setenv stdout serial,vidconsole" is a multiplexed string. Signed-off-by:

Re: am335x_evm: failed to boot via USB

2021-08-05 Thread Matwey V. Kornilov
чт, 5 авг. 2021 г. в 10:59, Matwey V. Kornilov : > > чт, 5 авг. 2021 г. в 01:39, Tom Rini : > > > > On Wed, Aug 04, 2021 at 11:38:02PM +0300, Matwey V. Kornilov wrote: > > > > > Hi, > > > > > > I am trying to boot an am335x based board (BeagleBone Black) from USB > > > using v2021.07. I see the

Re: [PATCH v7 6/6] rockchip: px30: Support configure SFC

2021-08-05 Thread Jagan Teki
On Thu, Aug 5, 2021 at 1:58 PM Jon Lin wrote: > > Make px30 SFC clock configurable > > Signed-off-by: Jon Lin > --- Reviewed-by: Jagan Teki

Re: [PATCH v7 4/6] mtd: spi-nor-ids: Add XTX XT25F128B

2021-08-05 Thread Jagan Teki
On Thu, Aug 5, 2021 at 1:56 PM Jon Lin wrote: > > From: Chris Morgan > > Adds support for XT25F128B used on Odroid Go Advance. Unfortunately > this chip uses a continuation code which I cannot seem to parse, so > there are possibly going to be collisions with chips that use the same >

Re: [PATCH v7 3/6] rockchip: px30: add the serial flash controller

2021-08-05 Thread Jagan Teki
On Thu, Aug 5, 2021 at 1:57 PM Jon Lin wrote: > > From: Chris Morgan > > Add the serial flash controller to the devicetree for the PX30. > > Signed-off-by: Chris Morgan > Signed-off-by: Jon Lin > --- > > (no changes since v5) > > Changes in v5: > - px30 use "rockchip, sfc" as compatible id > >

Re: [PATCH v7 1/6] spi: rockchip_sfc: add support for Rockchip SFC

2021-08-05 Thread Jagan Teki
On Thu, Aug 5, 2021 at 1:57 PM Jon Lin wrote: > > From: Chris Morgan > > This patch adds support for the Rockchip serial flash controller > found on the PX30 SoC. It should work for versions 3-5 of the SFC > IP, however I am only able to test it on v3. > > This is adapted from the WIP SPI-MEM

[PATCH v7 5/6] rockchip: px30: add support for SFC for Odroid Go Advance

2021-08-05 Thread Jon Lin
From: Chris Morgan The Odroid Go Advance uses a Rockchip Serial Flash Controller with an XT25F128B SPI NOR flash chip. This adds support for both. Note that while both the controller and chip support quad mode, only two lines are connected to the chip. Changing the pinctrl to bus2 and setting tx

[PATCH v7 6/6] rockchip: px30: Support configure SFC

2021-08-05 Thread Jon Lin
Make px30 SFC clock configurable Signed-off-by: Jon Lin --- Changes in v7: - Make px30 SFC clock configurable drivers/clk/rockchip/clk_px30.c | 32 1 file changed, 32 insertions(+) diff --git a/drivers/clk/rockchip/clk_px30.c b/drivers/clk/rockchip/clk_px30.c

[PATCH v7 1/6] spi: rockchip_sfc: add support for Rockchip SFC

2021-08-05 Thread Jon Lin
From: Chris Morgan This patch adds support for the Rockchip serial flash controller found on the PX30 SoC. It should work for versions 3-5 of the SFC IP, however I am only able to test it on v3. This is adapted from the WIP SPI-MEM driver for the SFC on mainline Linux. Note that the main

[PATCH v7 3/6] rockchip: px30: add the serial flash controller

2021-08-05 Thread Jon Lin
From: Chris Morgan Add the serial flash controller to the devicetree for the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v5) Changes in v5: - px30 use "rockchip, sfc" as compatible id arch/arm/dts/px30.dtsi | 38 ++ 1

[PATCH v7 4/6] mtd: spi-nor-ids: Add XTX XT25F128B

2021-08-05 Thread Jon Lin
From: Chris Morgan Adds support for XT25F128B used on Odroid Go Advance. Unfortunately this chip uses a continuation code which I cannot seem to parse, so there are possibly going to be collisions with chips that use the same manufacturer/ID. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin

[PATCH v7 0/6] rockchip_sfc: add support for Rockchip SFC

2021-08-05 Thread Jon Lin
Changes in v7: - Make sfc-use-dma configurable - Remove SPI_NOR_HAS_TB and SPI_NOR_HAS_LOCK - Make px30 SFC clock configurable Changes in v6: - Fix dma transfer logic - Fix the error of the way to wait for dma transfer finished status Changes in v5: - Support dma transfer - Add

[PATCH v7 2/6] rockchip: px30: Add support for using SFC

2021-08-05 Thread Jon Lin
From: Chris Morgan This patch adds support for setting the correct pin configuration for the Rockchip Serial Flash Controller found on the PX30. Signed-off-by: Chris Morgan Signed-off-by: Jon Lin --- (no changes since v1) arch/arm/mach-rockchip/px30/px30.c | 64

Re: am335x_evm: failed to boot via USB

2021-08-05 Thread Matwey V. Kornilov
чт, 5 авг. 2021 г. в 01:39, Tom Rini : > > On Wed, Aug 04, 2021 at 11:38:02PM +0300, Matwey V. Kornilov wrote: > > > Hi, > > > > I am trying to boot an am335x based board (BeagleBone Black) from USB > > using v2021.07. I see the following issue when trying to boot via USB > > (USB based network):

RE: [PATCH] tools: add fdt_add_pubkey

2021-08-05 Thread Roman Kopytin
Thanks a lot. Can I create 1 patch with tool + test? -Original Message- From: Rasmus Villemoes Sent: Thursday, August 5, 2021 10:56 AM To: Roman Kopytin ; U-Boot-Denx Subject: Re: [PATCH] tools: add fdt_add_pubkey Caution: This is an external email. Be cautious while opening links or

Re: [PATCH] tools: add fdt_add_pubkey

2021-08-05 Thread Rasmus Villemoes
On 03/08/2021 13.00, Roman Kopytin wrote: Hi Roman Thanks for picking this up. A few notes on the process: - Don't attach the patch, it must be inline in the email. But do not copy-paste it in to your mail client, that will most likely make it whitespace-damaged. git send-email is your friend.