Re: [U-Boot] [PATCH] arm: mach-omap2: Enlarge SYS_MALLOC_F_LEN

2018-04-11 Thread Tom Rini
On Wed, Apr 11, 2018 at 09:26:40PM +0200, Sjoerd Simons wrote: > Since commit 8e14ba7bd524 ("gpio: omap_gpio: Add DM_FLAG_PRE_RELOC > flag") omap GPIO gets bound before relocation. Unfortunately due to > this, on at least the beaglebone black, the pre-relocation memory pool > gets exhausted befor

Re: [U-Boot] spl: spi: Move CONFIG_SPL_SPI_LOAD to Kconfig

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 04:05:27PM +0200, Marek Vasut wrote: > Add Kconfig entry for CONFIG_SPL_SPI_LOAD symbol and move all > configurations using it to Kconfig. > > Signed-off-by: Marek Vasut > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] ARM: Fix Makefile during SPL and TPL build

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 04:06:36PM +0200, Marek Vasut wrote: > The tiny variants of memset and memcpy implementations can be > built for TPL as well, check whether a TPL build is in progress > and avoid including the default variants. > > Signed-off-by: Marek Vasut > Cc: Simon Glass > Cc: Tom R

Re: [U-Boot] tpl: ymodem: Add CONFIG_TPL_YMODEM_SUPPORT to Kconfig

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 04:06:11PM +0200, Marek Vasut wrote: > Add Kconfig entry for CONFIG_TPL_YMODEM_SUPPORT symbol to match the SPL one. > > Signed-off-by: Marek Vasut > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature __

Re: [U-Boot] tpl: spi: Add CONFIG_TPL_SPI_LOAD to Kconfig

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 04:05:46PM +0200, Marek Vasut wrote: > Add Kconfig entry for CONFIG_TPL_SPI_LOAD symbol to match the SPL one. > > Signed-off-by: Marek Vasut > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [U-Boot] serial: Fix Makefile during SPL and TPL build

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 04:06:22PM +0200, Marek Vasut wrote: > This patch fixes a situation where CONFIG_DM_SERIAL is enabled for > regular U-Boot and SPL, but not for TPL. In that case, the build > will try to include serial-uclass into the TPL nonetheless, because > CONFIG_DM_SERIAL is set. > >

Re: [U-Boot] spl: ram: Add TPL Kconfig symbols

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 05:03:45PM +0200, Marek Vasut wrote: > Add TPL config symbols for RAM loading matching the SPL ones. > > Signed-off-by: Marek Vasut > Cc: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature _

Re: [U-Boot] spl: ram: Convert to CONFIG_IS_ENABLED

2018-04-11 Thread Tom Rini
On Sat, Apr 07, 2018 at 05:03:28PM +0200, Marek Vasut wrote: > This patch is a preparation for adding TPL support for RAM loading. > CONFIG_IS_ENABLED allows for proper handling of the U-Boot/SPL/TPL > differences in config symbol names. > > Signed-off-by: Marek Vasut > Cc: Tom Rini Applied to

[U-Boot] [PATCH] ARM: rmobile: Set maximum kernel size to 64 MiB on Gen3

2018-04-11 Thread Marek Vasut
The Gen3 kernel images are often above 8 MiB, increase the maximum kernel size to 64 MiB to future-proof it, just like many other ARM64 boards do. Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu --- include/configs/rcar-gen3-common.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/

[U-Boot] RSA Signed images/configs issue

2018-04-11 Thread John Schmoller
Hello all, I've been playing around with signed FIT images and I found some unexpected behavior. I was hoping to get some input on whether this behaves as expected or whether there's an issue that needs resolving. I have a board where I am attempting to sign both the config and image nodes of

[U-Boot] [PATCH 1/2] ARM: qemu-arm: Dynamically determine timer frequency

2018-04-11 Thread Tuomas Tynkkynen
After commit 46fc679ede5f69 ("arm: timer: get frequency for arch timer armv7 in cp15 cntfrq") the ARM architected timer driver knows how to determine the timer frequency at runtime by reading the CNTFRQ register, so we don't need to hardcode the timer frequency anymore. Signed-off-by: Tuomas Tynkk

[U-Boot] [PATCH 2/2] arm: move SYS_ARCH_TIMER to KConfig

2018-04-11 Thread Tuomas Tynkkynen
From: Andre Przywara SYS_ARCH_TIMER guards the usage of the ARM Generic Timer (aka arch timer) in U-Boot. At the moment it is mandatory for ARMv8 and used by a few ARMv7 boards. Add a proper Kconfig symbol to express this dependency properly, allowing certain board configuration to later disable

Re: [U-Boot] [RFC PATCH 03/13] arm: move SYS_ARCH_TIMER to KConfig

2018-04-11 Thread Tuomas Tynkkynen
Hi, On Thu, 30 Nov 2017 01:25:01 + Andre Przywara wrote: > SYS_ARCH_TIMER guards the usage of the ARM Generic Timer (aka arch > timer) in U-Boot. > At the moment it is mandatory for ARMv8 and used by two ARMv7 boards. > Add a proper Kconfig symbol to express this dependency properly, > allow

[U-Boot] [PULL] u-boot-sh/master

2018-04-11 Thread Marek Vasut
The following changes since commit d79dfd4519c3f357a2523acfeb26eca6f59eae4d: spl: ram: Add TPL Kconfig symbols (2018-04-11 13:22:06 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch changes up to 97ed677831e45b789fc19bd807273ff344

[U-Boot] [PULL] u-boot-usb/master

2018-04-11 Thread Marek Vasut
The following changes since commit c4446b1d6c96de406972690083e2884bf69bce5c: Merge git://git.denx.de/u-boot-ubi (2018-04-11 10:05:41 -0400) are available in the Git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to 2960e27e3834ef2e6d506b21a582bd97ac18bbb0

Re: [U-Boot] [PULL] u-boot-sh/master

2018-04-11 Thread Masahiro Yamada
2018-04-12 12:28 GMT+09:00 Marek Vasut : > The following changes since commit > d79dfd4519c3f357a2523acfeb26eca6f59eae4d: > > > > > > spl: ram: Add TPL Kconfig symbols (2018-04-11 13:22:06 -0400) > > > > > > are available in the Git repository at: > > git://git.denx.de/u-boot-sh.git master > >

Re: [U-Boot] [PATCH 03/12] libfdt: Safer access to strings section

2018-04-11 Thread David Gibson
On Tue, Apr 10, 2018 at 06:36:06PM -0400, Tom Rini wrote: > On Tue, Apr 10, 2018 at 10:42:45AM -0400, Simon Glass wrote: > > +U-Boot, Tom, Masahiro > > > > Hi David, > > > > On 10 April 2018 at 01:22, David Gibson wrote: > > > On Wed, Apr 04, 2018 at 01:21:10AM +0800, Simon Glass wrote: > > >> H

Re: [U-Boot] chiliSOM: USB bug

2018-04-11 Thread sdrb
Hi Marcin, Marcin Niestroj wrote: Hi Witold, On 11.04.2018 08:18, sdrb wrote: Hi, I use Grinn's chiliSOM and very old U-boot 2014.07 on it. Unfortunately the newest u-boot doesn't run SPL properly - so I'm forced to use 2014.07 version. What are your problems exactly with SPL? What versio

Re: [U-Boot] [PATCH 03/12] libfdt: Safer access to strings section

2018-04-11 Thread David Gibson
On Tue, Apr 10, 2018 at 10:42:45AM -0400, Simon Glass wrote: > +U-Boot, Tom, Masahiro > > Hi David, > > On 10 April 2018 at 01:22, David Gibson wrote: > > On Wed, Apr 04, 2018 at 01:21:10AM +0800, Simon Glass wrote: > >> Hi David, > >> > >> On 3 April 2018 at 23:02, David Gibson wrote: > >> > >

[U-Boot] [PATCH v2 00/18] bootvx: Various enhancements to booting VxWorks x86 kernels

2018-04-11 Thread Bin Meng
This introduces various enhancements to booting VxWorks x86 kernels. It also cleans up the 'bootvx' x86 path a little bit. Test was performed on MinnowMax, with VxWorks 7 generic x86/x64 images, with VGA text mode and EFI graphics mode console drivers. This series is available at u-boot-x86/bootv

[U-Boot] [PATCH v2 02/18] bootvx: x86: Prepare e820 related stuff from the given kernel memory base address

2018-04-11 Thread Bin Meng
At present two environment variables 'e820data'/'e820info' are required to boot a VxWorks x86 kernel, but this is superfluous. The offset of these two tables are actually at a fixed offset from the kernel memory base address and we can provide the kernel memory base address to U-Boot via only one v

[U-Boot] [PATCH v2 03/18] bootvx: x86: Explicitly clear the bootloader image size

2018-04-11 Thread Bin Meng
VxWorks bootloader stores its size at a pre-defined offset @ 0x5004. Later when VxWorks kernel boots up and system memory information is retrieved from the E820 table, the bootloader size will be subtracted from the total system memory size to calculate the size of available memory for the OS. Exp

[U-Boot] [PATCH v2 12/18] x86: Change default FRAMEBUFFER_VESA_MODE of some boards

2018-04-11 Thread Bin Meng
This changes some boards' default FRAMEBUFFER_VESA_MODE to use 32-bit pixel format for better VxWorks compatibility. Signed-off-by: Bin Meng --- Changes in v2: None configs/bayleybay_defconfig | 2 +- configs/minnowmax_defconfig | 2 +- configs/qemu-x86_64_defconfig

[U-Boot] [PATCH v2 16/18] bootvx: Exit if bootline address is not specified

2018-04-11 Thread Bin Meng
Exit the 'bootvx' command if bootline address is not specified. Signed-off-by: Bin Meng --- Changes in v2: None cmd/elf.c | 109 ++ 1 file changed, 53 insertions(+), 56 deletions(-) diff --git a/cmd/elf.c b/cmd/elf.c index 22ff254..0

[U-Boot] [PATCH v2 04/18] vxworks: x86: Rename e820info to e820_info

2018-04-11 Thread Bin Meng
This changes 'struct e820info' to 'struct e820_info' to conform with the coding style. Signed-off-by: Bin Meng --- Changes in v2: None cmd/elf.c | 6 +++--- include/vxworks.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/elf.c b/cmd/elf.c index 4638d79..071

[U-Boot] [PATCH v2 08/18] elf: Add ELF64 related structure defines

2018-04-11 Thread Bin Meng
This adds ELF header, program header and section header structure defines for the 64-bit ELF image. Signed-off-by: Bin Meng --- Changes in v2: None include/elf.h | 43 +++ 1 file changed, 43 insertions(+) diff --git a/include/elf.h b/include/elf.h index

[U-Boot] [PATCH v2 01/18] doc: vxworks: Minor update for clarity

2018-04-11 Thread Bin Meng
This corrects a typo and updates several places for clarity. Signed-off-by: Bin Meng Reviewed-by: Christian Gmeiner --- Changes in v2: None doc/README.vxworks | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/README.vxworks b/doc/README.vxworks index 3433e4f..eb1

[U-Boot] [PATCH v2 14/18] bootvx: x86: Make VxWorks EFI console driver happy

2018-04-11 Thread Bin Meng
When booting from EFI BIOS, VxWorks bootloader stores the EFI GOP framebuffer info at a pre-defined offset @ 0x6100. When VxWorks kernel boots up, its EFI console driver tries to find such a block and if the signature matches, the framebuffer information will be used to initialize the driver. Howe

[U-Boot] [PATCH v2 18/18] doc: vxworks: Update x86 specific instructions

2018-04-11 Thread Bin Meng
This updates the doc of booting VxWorks, like loading an x64 kernel, and how to make VxWorks graphics console driver work. Signed-off-by: Bin Meng --- Changes in v2: - update the graphics console driver information doc/README.vxworks | 21 +++-- 1 file changed, 19 insertions(+

[U-Boot] [PATCH v2 17/18] bootvx: x86: Assign bootaddr based on kernel memory base

2018-04-11 Thread Bin Meng
On VxWorks x86 its bootline address is at a pre-defined offset @ 0x1200. If 'bootaddr' is not passed via environment variable, we assign its value based on the kernel memory base address. Signed-off-by: Bin Meng --- Changes in v2: None cmd/elf.c | 91 +--

[U-Boot] [PATCH v2 05/18] x86: Use 'unsigned int' in install_e820_map() functions

2018-04-11 Thread Bin Meng
This fixes the following checkpatch warning: warning: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Bin Meng --- Changes in v2: None arch/x86/cpu/coreboot/sdram.c | 7 --- arch/x86/cpu/qemu/e820.c | 3 ++- arch/x86/cpu/tangier/sdram.c | 6 -- arch/x86/include/

[U-Boot] [PATCH v2 11/18] video: vesa: Change default FRAMEBUFFER_VESA_MODE

2018-04-11 Thread Bin Meng
This changes the default FRAMEBUFFER_VESA_MODE to use 32-bit pixel format for better VxWorks compatibility. Signed-off-by: Bin Meng --- Changes in v2: None drivers/video/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/Kconfig b/drivers/video/Kconfig in

[U-Boot] [PATCH v2 06/18] x86: Rename e820entry to e820_entry

2018-04-11 Thread Bin Meng
This changes 'struct e820entry' to 'struct e820_entry' to conform with the coding style. Signed-off-by: Bin Meng --- Changes in v2: None arch/x86/cpu/coreboot/sdram.c| 2 +- arch/x86/cpu/qemu/e820.c | 2 +- arch/x86/cpu/tangier/sdram.c | 4 ++-- arch/x86/include/asm/bootparam.h

[U-Boot] [PATCH v2 09/18] elf: Add a very simple ELF64 loader

2018-04-11 Thread Bin Meng
This adds a very simple ELF64 loader via program headers, similar to load_elf_image_phdr() that we already have. Signed-off-by: Bin Meng --- Changes in v2: - update the ELF32 and ELF64 loader comments cmd/elf.c | 44 +++- 1 file changed, 43 insertions(+

[U-Boot] [PATCH v2 13/18] pci: video: Only print out when everything is OK

2018-04-11 Thread Bin Meng
If video initialization fails, the "Video:" output message will be mixed with the next console log. Change to print out such message only when everything is OK, which improves the boot log readability. Signed-off-by: Bin Meng --- Changes in v2: None drivers/pci/pci_rom.c | 4 +--- 1 file chang

[U-Boot] [PATCH v2 15/18] bootvx: Refactor the bootline copy codes a little bit

2018-04-11 Thread Bin Meng
There is a small duplication in do_bootvx() that does the bootline copy. Refactor this a little bit to make it simpler. Signed-off-by: Bin Meng --- Changes in v2: None cmd/elf.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/cmd/elf.c b/cmd/elf.c index cd9

[U-Boot] [PATCH v2 10/18] bios: vesa: Guard setting vesa mode with CONFIG_FRAMEBUFFER_SET_VESA_MODE

2018-04-11 Thread Bin Meng
If CONFIG_FRAMEBUFFER_SET_VESA_MODE is not set, don't switch graphics card to VESA mode. This applies to both native mode and emulator mode of running the VGA BIOS. Signed-off-by: Bin Meng --- Changes in v2: None arch/x86/lib/bios.c | 4 drivers/bios_emulator/atibios.c | 4 +++

[U-Boot] [PATCH v2 07/18] elf: Clean up the ELF header file

2018-04-11 Thread Bin Meng
Fix various style violations in elf.h - use correct comment format if the comment fits in just one line - remove the ending period for the one-line comment - use tab for the indention instead of space - put the opening brace at the same line of a typedef/union - remove in a 'typedef struct' for co

[U-Boot] [PATCH] board: freescale: ls1012ardb: Add command to switch QSPI bank

2018-04-11 Thread Jagdish Gediya
Add command "boot_bank X" to switch the boot bank to either 1 or 2. Signed-off-by: Jagdish Gediya --- board/freescale/ls1012ardb/ls1012ardb.c | 85 + 1 file changed, 85 insertions(+) diff --git a/board/freescale/ls1012ardb/ls1012ardb.c b/board/freescale/ls1012ar

<    1   2