[U-Boot] [PATCH 2/2] board: allwinner: sun50i-h6: Add Orangepi Lite2 support

2018-11-04 Thread Jagan Teki
OrangePi Lite2 is Allwinner H6 based open-source SBC, which support: - Allwinner H6 Quad-core 64-bit ARM Cortex-A53 - GPU Mali-T720 - 1GB LPDDR3 RAM - AXP805 PMIC - AP6356S Wifi/BT - USB 2.0, USB 3.0 Host, OTG - HDMI port - 5V/2A DC power supply Signed-off-by: Jagan Teki --- arch/arm/dts/Makefil

[U-Boot] [PATCH 1/2] arm64: allwinner: h6: Add common orangepi nodes into dtsi

2018-11-04 Thread Jagan Teki
Based on the information from hardware schematics and orangepi vendor orangepi H6 boards, One Plus and Lite2 shares common nodes like axp805, uart, mmc0 etc. The common differences between them is - One Plus, has Ethernet - Lite2, has Wifi, USB3, CSI port. So, add common orangepi nodes into sun50i

Re: [U-Boot] [PATCH] board: rockchip: rk3399: add Rockpro64 board support

2018-11-04 Thread Jagan Teki
On 03/11/18 4:58 PM, Akash Gajjar wrote: Rockpro64 is rk3399 based board from pine64.org. add initial board support for Rockpro64. complete board support will be added later in upcoming patchsets. Signed-off-by: Akash Gajjar --- arch/arm/dts/Makefile |1 + arch/arm/d

Re: [U-Boot] [PATCH 0/4] sunxi: A64/H3/H5 DT updates

2018-11-04 Thread Jagan Teki
On Mon, Nov 5, 2018 at 11:20 AM Vasily Khoruzhick wrote: > > On Sun, Nov 4, 2018 at 9:13 PM Jagan Teki wrote: > > > > On Mon, Oct 29, 2018 at 6:27 AM Andre Przywara > > wrote: > > > > > > This updates the .dts and .dtsi files used in U-Boot to what will become > > > the new DTs in Linux 4.20 (a

[U-Boot] [PATCH 3/3] misc: fs_loader: Fix compiler warning

2018-11-04 Thread Keerthy
Fix compiler warning drivers/misc/fs_loader.c:193:9: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘size_t {aka long unsigned int}’ [-Wformat=] Signed-off-by: Keerthy --- drivers/misc/fs_loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[U-Boot] [PATCH 1/3] fs: Makefile: Add fs.c under SPL as well as it is needed for fs_loader

2018-11-04 Thread Keerthy
Add fs.c under SPL as well as it is needed for fs_loader Signed-off-by: Keerthy --- fs/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/Makefile b/fs/Makefile index bad0c2c..b4ca1b3 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -8,7 +8,6 @@ ifdef CONFIG_SPL_BUILD

[U-Boot] [PATCH 2/3] misc: fs_loader: Use device_get_global_by_ofnode to get to node

2018-11-04 Thread Keerthy
Instead of two staged ofnode_to_offset followed by device_get_global_by_of_offset approach, direcly use the device_get_global_by_ofnode to fetch the device. Signed-off-by: Keerthy --- drivers/misc/fs_loader.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/misc/f

[U-Boot] [PATCH v2 2/2] core: ofnode: Add ofnode_get_addr_size_index

2018-11-04 Thread Keerthy
Add ofnode_get_addr_size_index function to fetch the address and size of the reg space based on index. Signed-off-by: Keerthy --- Changes in v2: * Added the missing header file declaration of the new function. drivers/core/ofnode.c | 14 ++ include/dm/ofnode.h | 13 +++

[U-Boot] [PATCH v2 1/2] core: ofnode: Fix ofnode_get_addr_size_index function

2018-11-04 Thread Keerthy
Currently the else part of ofnode_get_addr_size_index function does not fetch addresses based on the index but rather just returns the base address. Fix that. Signed-off-by: Keerthy --- drivers/core/ofnode.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/driver

[U-Boot] [PATCH 2/2] core: ofnode: Add ofnode_get_addr_size_index

2018-11-04 Thread Keerthy
Add ofnode_get_addr_size_index function to fetch the address and size of the reg space based on index. Signed-off-by: Keerthy --- drivers/core/ofnode.c | 14 ++ include/dm/ofnode.h | 13 + 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/drivers/core/ofno

[U-Boot] [PATCH 1/2] core: ofnode: Fix ofnode_get_addr_size_index function

2018-11-04 Thread Keerthy
Currently the else part of ofnode_get_addr_size_index function does not fetch addresses based on the index but rather just returns the base address. Fix that. Signed-off-by: Keerthy --- drivers/core/ofnode.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/driver

Re: [U-Boot] [PATCH 2/2] core: ofnode: Add ofnode_get_addr_size_index

2018-11-04 Thread Keerthy
On Monday 05 November 2018 11:17 AM, Keerthy wrote: > Add ofnode_get_addr_size_index function to fetch the address > and size of the reg space based on index. I missed the header file hunk. I will send v2 in a bit. > > Signed-off-by: Keerthy > --- > drivers/core/ofnode.c | 14 ++

Re: [U-Boot] [PATCH 0/4] sunxi: A64/H3/H5 DT updates

2018-11-04 Thread Vasily Khoruzhick
On Sun, Nov 4, 2018 at 9:13 PM Jagan Teki wrote: > > On Mon, Oct 29, 2018 at 6:27 AM Andre Przywara wrote: > > > > This updates the .dts and .dtsi files used in U-Boot to what will become > > the new DTs in Linux 4.20 (anytime soon). > > Those updates are not too useful for U-Boot itself, but kee

[U-Boot] [PATCH 2/2] core: ofnode: Add ofnode_get_addr_size_index

2018-11-04 Thread Keerthy
Add ofnode_get_addr_size_index function to fetch the address and size of the reg space based on index. Signed-off-by: Keerthy --- drivers/core/ofnode.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c index c80e1cb.

[U-Boot] [PATCH 1/2] core: ofnode: Fix ofnode_get_addr_size_index function

2018-11-04 Thread Keerthy
Currently the else part of ofnode_get_addr_size_index function does not fetch addresses based on the index but rather just returns the base address. Fix that. Signed-off-by: Keerthy --- drivers/core/ofnode.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/driver

Re: [U-Boot] [PATCH 0/4] sunxi: A64/H3/H5 DT updates

2018-11-04 Thread Jagan Teki
On Mon, Oct 29, 2018 at 6:27 AM Andre Przywara wrote: > > This updates the .dts and .dtsi files used in U-Boot to what will become > the new DTs in Linux 4.20 (anytime soon). > Those updates are not too useful for U-Boot itself, but keep the DTs > consistent and allow to directly pass U-Boot's cop

Re: [U-Boot] [PATCH] mtd: nand: let the raw NAND devices be compiled upon selection

2018-11-04 Thread Jagan Teki
On Mon, Oct 29, 2018 at 2:37 PM Miquel Raynal wrote: > > Hi Jagan, > > Jagan Teki wrote on Tue, 23 Oct 2018 > 16:40:05 +0530: > > > On Thu, Oct 11, 2018 at 3:05 PM Miquel Raynal > > wrote: > > > > > > Today way is to rely on CMD_NAND to be selected and from the root > > > Makefile compile what

Re: [U-Boot] Issue with relocating code to DDR

2018-11-04 Thread Heiko Schocher
Hello SHEKHAR SINGH, Am 01.11.2018 um 14:44 schrieb SHEKHAR SINGH: Hi All, I am new to U-boot. Currently, I am working on developing U-boot for a new SOC. The SOC has arm926ej-s as the core and is implemented on Xilinx FPGA with SD-card as the boot device. With current setup DDR is already init

Re: [U-Boot] [PATCH v3 14/18] serial: 16550: allow the driver to support MediaTek serial

2018-11-04 Thread Ryder Lee
On Sat, 2018-11-03 at 00:09 -0600, Simon Glass wrote: > Hi Ryder, > > On 2 November 2018 at 09:15, Ryder Lee wrote: > > This patch adds an extra operation in ns16550.c to suuport MediaTek > > SoCs as we have a highspeed register which influences the calcualtion > > of the divisor. > > > > Note th

Re: [U-Boot] mt7623 bootup example

2018-11-04 Thread Ryder Lee
On Sun, 2018-11-04 at 11:38 +0100, Frank Wunderlich wrote: > Just to be clear...i tested v2 patches on rc1 > (https://github.com/frank-w/u-boot/tree/bpi-r2_v2) they working well. > > v3 have additional depencies (swig,python-dev same on rc1&rc3) and bootargs > seems not to be passed to kernel (r

Re: [U-Boot] [PATCH] efi_loader: Handle RELA absolute relocations properly

2018-11-04 Thread Bin Meng
On Mon, Nov 5, 2018 at 5:28 AM Alexander Graf wrote: > > With RELA absolute relocations, the relocation target contains our link > offset which we need to remove from the equation again. We did this > properly in the relative relocation path, but not in the absolute one. > > So let's do this for t

[U-Boot] [PATCH] efi_loader: Ensure memory allocations are page aligned

2018-11-04 Thread Alexander Graf
When the max_addr parameter of efi_find_free_memory() is within bounds of an existing map and fits the reservation, we just return that address as allocation value. That breaks however if max_addr is not page aligned. So ensure that it always comes to us page aligned, simplifying the allocation lo

Re: [U-Boot] [PATCH 00/13] dm: DM_FLAG_PRE_RELOC flag clean up

2018-11-04 Thread Simon Glass
Hi Bin, On 3 November 2018 at 03:48, Bin Meng wrote: > Hi Simon, > > On Sat, Nov 3, 2018 at 2:08 PM Simon Glass wrote: >> >> Hi Bin, >> >> On 1 November 2018 at 20:25, Bin Meng wrote: >> > On Sun, Oct 28, 2018 at 9:31 PM Adam Ford wrote: >> >> >> >> On Wed, Oct 24, 2018 at 8:32 AM Bin Meng wr

[U-Boot] [PATCH] efi_loader: Handle RELA absolute relocations properly

2018-11-04 Thread Alexander Graf
With RELA absolute relocations, the relocation target contains our link offset which we need to remove from the equation again. We did this properly in the relative relocation path, but not in the absolute one. So let's do this for the absolute one as well. That way, u-boot can have a TEXT_OFFSET

Re: [U-Boot] [PATCH v2 28/29] riscv: qemu: detect and boot the kernel passed by QEMU

2018-11-04 Thread Alexander Graf
On 04.11.18 13:52, Auer, Lukas wrote: > On Sat, 2018-11-03 at 20:33 +0100, Alexander Graf wrote: >> >> On 03.11.18 18:07, Auer, Lukas wrote: >>> On Tue, 2018-10-30 at 16:27 +0100, Alexander Graf wrote: On 30.10.18 16:02, Auer, Lukas wrote: > On Tue, 2018-10-30 at 13:55 +0100, Lukas

Re: [U-Boot] [PATCH v2 28/29] riscv: qemu: detect and boot the kernel passed by QEMU

2018-11-04 Thread Auer, Lukas
Hi Bin, On Sun, 2018-11-04 at 22:39 +0800, Bin Meng wrote: > Hi Lukas, > > On Tue, Oct 30, 2018 at 8:57 PM Lukas Auer > wrote: > > > > QEMU embeds the location of the kernel image in the device tree. > > Store > > this address in the environment as variable kernel_start and use it > > in > > CO

[U-Boot] [PATCH 2/3] efi_selftest: add test for memory allocation

2018-11-04 Thread Heinrich Schuchardt
This unit test checks the following runtime services: AllocatePages, FreePages, GetMemoryMap Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Makefile | 1 + lib/efi_selftest/efi_selftest_memory.c | 163 + 2 files changed, 164 insertions(+) create m

[U-Boot] [PATCH 0/3] fix GetMemoryMap()

2018-11-04 Thread Heinrich Schuchardt
The sandbox uses two different address rooms - one used internally by the sandbox and one usable for EFI. In efi_get_memory_map() we have to map the returned physical start addresses to EFI usable addresses. Add a unit test. Enable building the sandbox with CONFIG_EFI_SELFTEST=y. Heinrich Schuc

[U-Boot] [PATCH 3/3] efi_selftest: building sandbox with EFI_SELFTEST

2018-11-04 Thread Heinrich Schuchardt
Enable building the sandbox with CONFIG_EFI_SELFTEST. But do not select it by default as the network unit test may fail. Signed-off-by: Heinrich Schuchardt --- configs/sandbox_defconfig | 1 - lib/efi_selftest/Kconfig | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/config

[U-Boot] [PATCH 1/3] efi_loader: fix GetMemoryMap()

2018-11-04 Thread Heinrich Schuchardt
The sandbox uses two different address rooms - one used internally by the sandbox and one usable for EFI. Very unfortunately this has spilled into the EFI coding. In efi_get_memory_map() we have to map the returned physical start addresses to EFI usable addresses. Signed-off-by: Heinrich Schucha

Re: [U-Boot] [PATCH v11 4/6] efi: Split out test init/uninit into functions

2018-11-04 Thread Simon Glass
HI Heinrich, On 15 October 2018 at 11:34, Heinrich Schuchardt wrote: > On 10/15/2018 04:17 PM, Simon Glass wrote: >> The functions in bootefi are very long because they mix high-level code >> and control with the low-level implementation. To help with this, create >> functions which handle prepar

Re: [U-Boot] [PATCH v11 3/6] sandbox: smbios: Update to support sandbox

2018-11-04 Thread Simon Glass
Hi Alex, On 22 October 2018 at 12:32, Alexander Graf wrote: > > > > > Am 22.10.2018 um 18:49 schrieb Simon Glass : > > > > Hi Alex, > > > >> On 19 October 2018 at 01:27, Alexander Graf wrote: > >> > >> > >>> On 19.10.18 05:25, Simon Glass wrote: > >>> Hi Alex, > >>> > On 16 October 2018 at

[U-Boot] erase saved mmc-environment

2018-11-04 Thread Frank Wunderlich
Hi, i googled around but found no way to clear saved environment from mmc. currently i reset environment to the default and save it again env default -a;saveenv but how to clear the saved environment so that always the buildin gets loaded without manually reset it? regards Frank _

Re: [U-Boot] [PATCH v2 28/29] riscv: qemu: detect and boot the kernel passed by QEMU

2018-11-04 Thread Bin Meng
Hi Lukas, On Tue, Oct 30, 2018 at 8:57 PM Lukas Auer wrote: > > QEMU embeds the location of the kernel image in the device tree. Store > this address in the environment as variable kernel_start and use it in > CONFIG_BOOTCOMMAND to boot the kernel. Use the device tree passed by the > prior boot s

Re: [U-Boot] [PATCH v2] riscv: cache: Implement i/dcache [status, enable, disable]

2018-11-04 Thread Bin Meng
Hi Rick, On Thu, Nov 1, 2018 at 12:10 PM Andes wrote: > > From: Rick Chen > > AndeStar RISC-V(V5) provide mcache_ctl register which > can configure I/D cache as enabled or disabled. > > This CSR will be encapsulated by CONFIG_RISCV_NDS. > If you want to configure cache on AndeStar V5 > AE350 pla

Re: [U-Boot] [PATCH v4 12/17] board_f: Use static print_cpuinfo if CONFIG_CPU is active

2018-11-04 Thread Andy Shevchenko
On Sun, Nov 4, 2018 at 4:18 PM Bin Meng wrote: > On Sun, Nov 4, 2018 at 4:51 AM Andy Shevchenko > wrote: > > On Sat, Nov 3, 2018 at 10:45 PM Andy Shevchenko > > wrote: > > > On Fri, Oct 12, 2018 at 6:34 PM Bin Meng wrote: > > > > + .flags = DM_FLAG_PRE_RELOC, > > > > > > This ha

Re: [U-Boot] [PATCH v2] riscv: cache: Implement i/dcache [status, enable, disable]

2018-11-04 Thread Auer, Lukas
Hi Rick, On Thu, 2018-11-01 at 12:08 +0800, Andes wrote: > From: Rick Chen > > AndeStar RISC-V(V5) provide mcache_ctl register which > can configure I/D cache as enabled or disabled. > > This CSR will be encapsulated by CONFIG_RISCV_NDS. > If you want to configure cache on AndeStar V5 > AE350 p

Re: [U-Boot] [PATCH v4 12/17] board_f: Use static print_cpuinfo if CONFIG_CPU is active

2018-11-04 Thread Bin Meng
Hi Andy, On Sun, Nov 4, 2018 at 4:51 AM Andy Shevchenko wrote: > > On Sat, Nov 3, 2018 at 10:45 PM Andy Shevchenko > wrote: > > > > On Fri, Oct 12, 2018 at 6:34 PM Bin Meng wrote: > > > On Fri, Oct 12, 2018 at 10:00 PM Stefan Roese wrote: > > > > > diff --git a/arch/x86/cpu/baytrail/cpu.c b/ar

Re: [U-Boot] [PATCH v2 28/29] riscv: qemu: detect and boot the kernel passed by QEMU

2018-11-04 Thread Auer, Lukas
On Sat, 2018-11-03 at 20:33 +0100, Alexander Graf wrote: > > On 03.11.18 18:07, Auer, Lukas wrote: > > On Tue, 2018-10-30 at 16:27 +0100, Alexander Graf wrote: > > > > > > On 30.10.18 16:02, Auer, Lukas wrote: > > > > On Tue, 2018-10-30 at 13:55 +0100, Lukas Auer wrote: > > > > > QEMU embeds the

Re: [U-Boot] mt7623 bootup example

2018-11-04 Thread Frank Wunderlich
Just to be clear...i tested v2 patches on rc1 (https://github.com/frank-w/u-boot/tree/bpi-r2_v2) they working well. v3 have additional depencies (swig,python-dev same on rc1&rc3) and bootargs seems not to be passed to kernel (rc1=bpi-r2_v3_old and rc3 = bpi-r2_v3) > Gesendet: Samstag, 03. Novem

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

2018-11-04 Thread Marek Vasut
The following changes since commit fdaccfeb5e03e18c05be386b8a7c6be02be2cf15: Merge branch 'master' of git://git.denx.de/u-boot-socfpga (2018-10-31 17:15:55 -0400) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch changes up to a376dde1deb9cc42e3