[BUG] DM_VIDEO broken on imx6q

2020-08-01 Thread Soeren Moch
Hi, unfortunately the patch [1] is only the first part to get DM_VIDEO running properly on tbs2910 for u-boot-2020.10. With this, I get a valid video output signal, but no actual video console output, only a blank screen. After some debugging, no with access to a HDMI monitor, the problem seems t

Re: PowerPC progress

2020-08-01 Thread Wolfgang Denk
Dear Tom, In message <20200731185425.GK6965@bill-the-cat> you wrote: > > Which particular area are you worried about currently? I believe we've > had another good sized removal of PowerPC platforms and everything > that's left is what's wanted and being further migrated and updated. Actually we

Re: [PATCH v6 0/4] usb: xhci: Load Raspberry Pi 4 VL805's firmware

2020-08-01 Thread Nicolas Saenz Julienne
Hi Stefan, On Sat, 2020-08-01 at 14:25 +0200, Stefan Agner wrote: > Hi Nicolas, > > I do have USB MSD boot working with at least two USB flash drives > successfully. > > I now tried using a USB NVMe enclosure (ICY BOX with a JMicron chip in > it). It seems that U-Boot has troubles enumerating th

[PATCH 2/2] tools: env: Avoid an uninited warning with was_locked

2020-08-01 Thread Simon Glass
Set this variable to 0 to avoid a warning about an unused variable. This happens on gcc 7.5.0 for me. Signed-off-by: Simon Glass --- tools/env/fw_env.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c index ccbeb5552bc..66cb9d2a25e 1006

[PATCH 1/2] tools: env: Fix printf() warning in fw_env

2020-08-01 Thread Simon Glass
The printf() string produces a warning about %d not matching size_t. Fix it and put the format string on one line to avoid a checkpatch warning. Signed-off-by: Simon Glass --- tools/env/fw_env.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/env/fw_env.c b/tools/e

[PATCH 16/16] cros: Add information about booting Chrome OS on x86

2020-08-01 Thread Simon Glass
Recent versions of Chrome OS do not have a kernel in the root disk, to save space. With the improvements to the 'zboot' command it is fairly easy to load the kernel from the raw partition. Add instructions on how to do this. Signed-off-by: Simon Glass --- doc/README.chromium | 32 +

[PATCH 13/16] x86: zboot: Add an option to dump the setup information

2020-08-01 Thread Simon Glass
There is a lot of information in the setup block and it is quite hard to decode manually. Add a 'zboot dump' command to decode it into a human-readable format. Signed-off-by: Simon Glass --- arch/x86/include/asm/e820.h | 1 + arch/x86/lib/zimage.c | 199 +

[PATCH 14/16] x86: zboot: Allow overriding the command line

2020-08-01 Thread Simon Glass
When booting Chrome OS images the command line is stored separately from the kernel. Add a way to specify this address so that images boot correctly. Also add comments to the zimage.h header. Signed-off-by: Simon Glass --- arch/x86/include/asm/zimage.h | 30 +- arch

[PATCH 11/16] x86: zboot: Set environment variables for image locations

2020-08-01 Thread Simon Glass
At present it is not possible to tell from a script where the setup block is, or where the image was loaded to. Add environment variables for this. Signed-off-by: Simon Glass --- README| 4 arch/x86/lib/zimage.c | 3 +++ 2 files changed, 7 insertions(+) diff --git a/README

[PATCH 15/16] cros: Update chromium documentation

2020-08-01 Thread Simon Glass
A few things have changed since this was written about 18 months ago. Update the README. Signed-off-by: Simon Glass --- doc/README.chromium | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/doc/README.chromium b/doc/README.chromium index 8f67da6c728..c56545cb7ff 10064

[PATCH 10/16] x86: zboot: Add an 'setup' subcommand

2020-08-01 Thread Simon Glass
Add a subcommand that sets up the kernel ready for execution. Signed-off-by: Simon Glass --- arch/x86/lib/zimage.c | 52 ++- 1 file changed, 42 insertions(+), 10 deletions(-) diff --git a/arch/x86/lib/zimage.c b/arch/x86/lib/zimage.c index 2210ff69b72..4

[PATCH 09/16] x86: zboot: Add an 'info' subcommand

2020-08-01 Thread Simon Glass
Add a little subcommand that prints out where the kernel was loaded and its setup pointer. Run it by default in the normal boot. Signed-off-by: Simon Glass --- arch/x86/lib/zimage.c | 17 ++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/arch/x86/lib/zimage.c b/ar

[PATCH 12/16] x86: zboot: Allow setting a separate setup base address

2020-08-01 Thread Simon Glass
At present the setup block is always obtained from the image automatically. In some cases it can be useful to use a setup block obtained elsewhere, e.g. if the image has already been unpacked. Add an argument to support this and update the logic to use it if provided. Signed-off-by: Simon Glass -

[PATCH 08/16] x86: zboot: Add a 'go' subcommand

2020-08-01 Thread Simon Glass
Split out the code that actually boots linux into a separate sub-command. Add base_ptr to the state to support this. Show an error if the boot fails, since this should not happen. Signed-off-by: Simon Glass --- arch/x86/lib/zimage.c | 26 +++--- 1 file changed, 23 insertion

[PATCH 04/16] x86: zboot: Move kernel-version code into a function

2020-08-01 Thread Simon Glass
To help reduce the size and complexity of load_zimage(), move the code that reads the kernel version into a separate function. Update get_boot_protocol() to allow printing the 'Magic signature' message only once, under control of its callers. Signed-off-by: Simon Glass --- arch/x86/lib/zimage.c

[PATCH 07/16] x86: zboot: Set up a sub-command structure

2020-08-01 Thread Simon Glass
Add subcommands to zboot. At present there is only one called 'start' which does the whole boot. It is the default command so is optional. Change the 's' string variable to const while we are here. Signed-off-by: Simon Glass --- arch/x86/lib/zimage.c | 64 ++

[PATCH 06/16] x86: zimage: Disable interrupts just before booting

2020-08-01 Thread Simon Glass
At present if an error occurs while setting up the boot, interrupts are left disabled. Move this call later in the sequence to avoid this problem. Signed-off-by: Simon Glass --- arch/x86/lib/zimage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/lib/zimage.c b/arc

[PATCH 03/16] x86: zimage: Avoid using #ifdef

2020-08-01 Thread Simon Glass
Use IS_ENABLED() instead of #ifdef in this file. Signed-off-by: Simon Glass --- arch/x86/lib/zimage.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/arch/x86/lib/zimage.c b/arch/x86/lib/zimage.c index a79971f052c..3c8081a48bb 100644 --- a/arch/x86/lib/zimage.

[PATCH 05/16] x86: zboot: Correct image type

2020-08-01 Thread Simon Glass
At present U-Boot sets a loader type of 8 which means LILO version 8, according to the spec. Update it to 0x80, which means U-Boot with no particular version. Signed-off-by: Simon Glass --- arch/x86/lib/zimage.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/lib/

[PATCH 00/16] x86: zboot: Enhance the 'zboot' command

2020-08-01 Thread Simon Glass
This command is currently monolithic and does not support scripts which want to adjust the boot process. This series updates it to be more like 'bootm', in that it has sub-commands for each stage of the boot. This allows some stages to be adjusted or skipped. It also adds a way to dump out the set

[PATCH 01/16] x86: Update the bootparam header

2020-08-01 Thread Simon Glass
This header is missing a few of the newer features from the specification. Add these as well as a link to the spec. Also use the BIT() macros where appropriate. Signed-off-by: Simon Glass --- arch/x86/include/asm/bootparam.h | 25 +++-- 1 file changed, 19 insertions(+), 6 de

[PATCH 02/16] x86: zimage: Use a state struct to hold the state

2020-08-01 Thread Simon Glass
At present the 'zboot' command does everything in one go. It would be better if it supported sub-commands like bootm, so it is possible to examine what will be booted before actually booting it. In preparation for this, move the 'state' of the command into a struct. This will allow it to be shared

Pull request for UEFI sub-system for efi-2020-10-rc2

2020-08-01 Thread Heinrich Schuchardt
Dear Tom, the following changes since commit a2d051e7b6a8f87add1067d936bb0c805a47b0df: Merge branch '2020-07-31-more-env-updates' (2020-07-31 10:13:07 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2020-10-rc2 for you to fetc

[PATCH v2 1/1] riscv: additional crash information

2020-08-01 Thread Heinrich Schuchardt
If an exception occurs, the relocated program counter and return address are required for an analysis. With this patch you get: => exception undefined Unhandled exception: Illegal instruction EPC: 80595908 RA: 8059c0c6 TVAL: 8030c01e EPC: 80007908

[PATCH v2 1/1] riscv: additional crash information

2020-08-01 Thread Heinrich Schuchardt
If an exception occurs, the relocated program counter and return address are required for an analysis. With this patch you get: => exception undefined Unhandled exception: Illegal instruction EPC: 80595908 RA: 8059c0c6 TVAL: 8030c01e EPC: 80007908

Re: [PATCH] riscv: additional crash information

2020-08-01 Thread Sean Anderson
On 8/1/20 9:59 AM, Heinrich Schuchardt wrote: > On 8/1/20 3:53 PM, Sean Anderson wrote: >> On 7/29/20 4:36 PM, Heinrich Schuchardt wrote: >>> If an exception occurs, the relocated program counter and return address >>> are required for an analysis. >> >> Thanks for putting together a patch for this

Re: [PATCH] riscv: additional crash information

2020-08-01 Thread Heinrich Schuchardt
On 8/1/20 3:53 PM, Sean Anderson wrote: > On 7/29/20 4:36 PM, Heinrich Schuchardt wrote: >> If an exception occurs, the relocated program counter and return address >> are required for an analysis. > > Thanks for putting together a patch for this. I realized after I added > the feature originally t

Re: [PATCH] riscv: additional crash information

2020-08-01 Thread Sean Anderson
On 7/29/20 4:36 PM, Heinrich Schuchardt wrote: > If an exception occurs, the relocated program counter and return address > are required for an analysis. Thanks for putting together a patch for this. I realized after I added the feature originally that I had left out RA from the default error info

Re: [PATCH 2/6] configs: reduce stack size of Sipeed MAIX

2020-08-01 Thread Sean Anderson
On 7/29/20 11:42 AM, Heinrich Schuchardt wrote: > The K210 has only 8 MiB RAM thereof 2 MiB reserved for AI. > > Allow only 1 MiB for the stack. > > Signed-off-by: Heinrich Schuchardt > --- > configs/sipeed_maix_bitm_defconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/configs/

Re: [PATCH 0/6] efi_selftest: allow UEFI testing on MAIX

2020-08-01 Thread Sean Anderson
On 7/29/20 11:42 AM, Heinrich Schuchardt wrote: > For RISC-V testing on real hardware the Sipeed MAIX boards provides an > affordable solution. > > UEFI testing fails on the MAIX BiT with Mic because the UEFI sub-system > reserves 16 MiB for the stack though the board only has 8 MiB. > > The firs

Re: [PATCH v6 0/4] usb: xhci: Load Raspberry Pi 4 VL805's firmware

2020-08-01 Thread Stefan Agner
Hi Nicolas, I do have USB MSD boot working with at least two USB flash drives successfully. I now tried using a USB NVMe enclosure (ICY BOX with a JMicron chip in it). It seems that U-Boot has troubles enumerating the device at first, but "usb reset" helps: U-Boo 2020.07 (Jul 25 2020 - 06:55:15

Re: [PATCH v2 00/18] Add new board: Xen guest for ARM64

2020-08-01 Thread Anastasiia Lukianenko
Hi Julien, On Thu, 2020-07-30 at 20:25 +0100, Julien Grall wrote: > Hi, > > On 20/07/2020 12:02, Anastasiia Lukianenko wrote: > > From: Anastasiia Lukianenko > > > > This work introduces Xen [1] guest ARM64 board support in U-Boot > > with > > para-virtualized (PV) [2] block and serial drivers:

Re: [PATCH 3/6] riscv: load addresses for Sipeed MAIX

2020-08-01 Thread Heinrich Schuchardt
On 7/29/20 5:42 PM, Heinrich Schuchardt wrote: > Define default load addresses and the device tree name for the Sipeed MAIX. > > Signed-off-by: Heinrich Schuchardt > --- > include/configs/sipeed-maix.h | 9 + > 1 file changed, 9 insertions(+) > > diff --git a/include/configs/sipeed-maix.h