[U-Boot] [PATCH 5/6] imx8: Add support to get container image set size

2019-09-19 Thread Peng Fan
To avoid hardcoded offset when adding u-boot.cnt to flash.bin, we use flexible offset which is calculated based on the size of the container image generated int the first stage. And pad u-boot.cnt at 1KB alignment. So add code to get the offset when SPL loading u-boot.cnt. Signed-off-by: Ye Li

[U-Boot] [PATCH 6/6] imx8: update README

2019-09-19 Thread Peng Fan
After u-boot.cnt is padded to flash.bin automatically by script, no need to burn the image mannually, so drop the step. Signed-off-by: Peng Fan --- board/freescale/imx8qm_mek/README | 1 - board/freescale/imx8qxp_mek/README | 1 - 2 files changed, 2 deletions(-) diff --git

[U-Boot] [PATCH 4/6] spl: nand: Introduce spl_nand_get_uboot_raw_page

2019-09-19 Thread Peng Fan
Introduce weak spl_nand_get_uboot_raw_page, then platform could have their own implementation. Signed-off-by: Peng Fan Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: Marek Vasut Cc: Andreas Dannenberg Cc: Alex Kiernan Cc: Stefan Roese Cc: Patrick Delaunay Cc: Miquel Raynal Cc: Michal Simek

[U-Boot] [PATCH 2/6] spl: spi: introduce spl_spi_get_uboot_raw_sector

2019-09-19 Thread Peng Fan
Introduce a weak function spl_spi_get_uboot_raw_sector, then platform could have their own implementation. Signed-off-by: Peng Fan Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: Marek Vasut Cc: Andreas Dannenberg Cc: Alex Kiernan Cc: Stefan Roese Cc: Patrick Delaunay Cc: Miquel Raynal Cc:

[U-Boot] [PATCH 3/6] spl: nor: introduce spl_nor_get_uboot_base

2019-09-19 Thread Peng Fan
Introduce weak spl_nor_get_uboot_base, then platform have their own implementation. Signed-off-by: Peng Fan Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: Marek Vasut Cc: Andreas Dannenberg Cc: Alex Kiernan Cc: Stefan Roese Cc: Patrick Delaunay Cc: Miquel Raynal Cc: Michal Simek ---

[U-Boot] [PATCH 1/6] spl: mmc: introduce spl_mmc_get_uboot_raw_sector

2019-09-19 Thread Peng Fan
Introduce a weak function spl_mmc_get_uboot_raw_sector, then platform could have their own implementation. Signed-off-by: Peng Fan Cc: Simon Goldschmidt Cc: Tien Fong Chee Cc: Marek Vasut Cc: Andreas Dannenberg Cc: Alex Kiernan Cc: Stefan Roese Cc: Patrick Delaunay Cc: Miquel Raynal Cc:

[U-Boot] Pull request: u-boot-rockchip-20190920

2019-09-19 Thread Kever Yang
Hi Tom, Please pull the rockchip update: - Fix rk3288 tinker and evb SPL boot fail - Enable get sn from cpuid for rk3399 rockpro64 board Travis: https://travis-ci.org/keveryang/u-boot/builds/586868859 Thanks, - Kever The following changes since commit a9fa70b7b7167487affc5d919e541872c99e814b:

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-19 Thread Simon South
On 2019-09-19 12:29 p.m., Jagan Teki wrote: It seems to be a memory overlap or similar. replace TPL with rkbin would be worth checking since the DRAM is managed by rkbin instead of TPL here. rkbin => SPL => U-Boot proper That configuration works and allows NetBSD to boot just fine. It's only

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-19 Thread Simon South
On 2019-09-19 11:48 a.m., Matwey V. Kornilov wrote: I have no idea what is going on. But are you sure that you tested the same u-boot binaries with or without binary TPL? I believe so. Here's how I build U-Boot with its own TPL: make -j2 distclean; rm idbloader.img make -j2

Re: [U-Boot] [EXT] Re: Question about device tree usage and ranges

2019-09-19 Thread Aaron Williams
On Thursday, September 19, 2019 4:43:27 AM PDT Stefan Roese wrote: Hi Stefan, > > -- > Hi Aaron, > > On 19.09.19 13:35, Aaron Williams wrote: > > Hi, > > > > In my device tree I need to translate some address via ranges but

Re: [U-Boot] [EXT] Re: Question about device tree usage and ranges

2019-09-19 Thread Aaron Williams
Hi Stefan, That doesn't explain the wrong endian. The code should be using fdt32_to_cpu for little-endian CPUs. -Aaron On Thursday, September 19, 2019 4:43:27 AM PDT Stefan Roese wrote: > > -- > Hi Aaron, > > On 19.09.19

Re: [U-Boot] [BUG] FreeBSD cannot boot with U-Boot patch efi_loader: parameter checks BLOCK_IO_PROTOCOL

2019-09-19 Thread Heinrich Schuchardt
On 9/13/19 11:48 PM, Heinrich Schuchardt wrote: Hello Emmanuel, booting current FreeBSD fails since patch f59f0825e8b9fdeb8abe43ffd10c5119ca1a032f efi_loader: parameter checks BLOCK_IO_PROTOCOL The reason is that the buffer used by FreeBSD to read is not block aligned. The UEFI spec requires

Re: [U-Boot] [PATCH 3/7] imx: mx6sabresd: fix splash logo drawing

2019-09-19 Thread Fabio Estevam
Hi Anatolij, On Thu, Sep 19, 2019 at 3:26 PM Fabio Estevam wrote: > > Hi Anatolij, > > On Thu, Sep 19, 2019 at 2:30 PM Anatolij Gustschin wrote: > > > > After mxc_ipuv3 DM_VIDEO conversion showing splash image > > doesn't work. Fix this. Also enable white on black console > > configuration as

Re: [U-Boot] [PATCH] Revert "mx6sabresd: convert to DM_VIDEO"

2019-09-19 Thread Fabio Estevam
Hi Anatolij, On Thu, Sep 19, 2019 at 2:38 PM Anatolij Gustschin wrote: > Could you please test on mx6sabresd with this [1] series applied? Yes, it works, thanks! Please apply your series for the upcoming 2019.10 release. Thanks ___ U-Boot mailing

Re: [U-Boot] [PATCH 3/7] imx: mx6sabresd: fix splash logo drawing

2019-09-19 Thread Fabio Estevam
Hi Anatolij, On Thu, Sep 19, 2019 at 2:30 PM Anatolij Gustschin wrote: > > After mxc_ipuv3 DM_VIDEO conversion showing splash image > doesn't work. Fix this. Also enable white on black console > configuration as it used to be with cfb_console driver. > > Signed-off-by: Anatolij Gustschin

Re: [U-Boot] [PATCH 0/7] am57xx: Implement Android 10 boot flow

2019-09-19 Thread Eugeniu Rosca
Hi Sam, On Thu, Sep 19, 2019 at 08:28:15PM +0300, Sam Protsenko wrote: > Android 10 brings a lot of new requirements for bootloaders: [1]. This > patch series attempts to implement such a boot process on BeagleBoard > X15 platform. Some common code is added too, which can be reused later > for

Re: [U-Boot] [PATCH] Revert "mx6sabresd: convert to DM_VIDEO"

2019-09-19 Thread Anatolij Gustschin
Hi Fabio, On Tue, 17 Sep 2019 10:02:54 -0300 Fabio Estevam feste...@gmail.com wrote: > The conversion to CONFIG_DM_VIDEO causes no output at all > in the LVDS panel. > > Switch back to the non-DM video option until this is resolved, > to avoid splashscreen functionality regression. Could you

[U-Boot] [PATCH 3/7] imx: mx6sabresd: fix splash logo drawing

2019-09-19 Thread Anatolij Gustschin
After mxc_ipuv3 DM_VIDEO conversion showing splash image doesn't work. Fix this. Also enable white on black console configuration as it used to be with cfb_console driver. Signed-off-by: Anatolij Gustschin --- configs/mx6sabresd_defconfig | 2 ++ include/configs/mx6sabre_common.h | 1 + 2

[U-Boot] [PATCH 6/7] imx: colibri_imx6: fix splash logo drawing

2019-09-19 Thread Anatolij Gustschin
Define "splashimage" variable in the default environment to enable splash screen drawing. Signed-off-by: Anatolij Gustschin --- include/configs/colibri_imx6.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/colibri_imx6.h b/include/configs/colibri_imx6.h index

[U-Boot] [PATCH 1/7] splash: fix logo drawing if CONFIG_VIDEO_LOGO enabled

2019-09-19 Thread Anatolij Gustschin
After mxc_ipuv3 DM_VIDEO conversion board configs with enabled CONFIG_VIDEO_LOGO do not show splash screen (previosly drawing splash screen worked via cfb_console driver with CONFIG_VIDEO_LOGO enabled). Use splash_source library for loading splash images when CONFIG_SPLASH_SOURCE is selected,

[U-Boot] [PATCH 2/7] imx: wandboard: fix splash logo drawing

2019-09-19 Thread Anatolij Gustschin
After mxc_ipuv3 DM_VIDEO conversion showing splash image doesn't work. Fix this. Also enable white on black console configuration as it used to be with cfb_console driver. Signed-off-by: Anatolij Gustschin --- configs/wandboard_defconfig | 2 ++ include/configs/wandboard.h | 1 + 2 files

[U-Boot] [PATCH 7/7] imx: mx6sabreauto: fix splash logo drawing

2019-09-19 Thread Anatolij Gustschin
Enable BMP code. Also configure white on black for video console. Signed-off-by: Anatolij Gustschin --- configs/mx6sabreauto_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index 516aac1f14..aabba4de14 100644 ---

[U-Boot] [PATCH 4/7] imx: apalis_imx6: fix splash logo drawing

2019-09-19 Thread Anatolij Gustschin
Define "splashimage" variable in the default environment to enable splash screen drawing. Signed-off-by: Anatolij Gustschin --- include/configs/apalis_imx6.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h index

[U-Boot] [PATCH 0/7] Fix splash logo for imx6 boards

2019-09-19 Thread Anatolij Gustschin
This series enables video logo for DM_VIDEO converted imx6 boards. Before DM_VIDEO conversion display init and the logo drawing was performed by cfb_console driver. After conversion the framebuffer console device is not used, display remains uninitialized. Fix this. Anatolij Gustschin (7):

[U-Boot] [PATCH 3/7] cmd: bootimg: Add bootimg command

2019-09-19 Thread Sam Protsenko
This command can be used to extract fields and image payloads from Android Boot Image. It can be used for example to implement boot flow where dtb is taken from boot.img (as v2 incorporated dtb inside of boot.img). Using this command, one can obtain needed dtb file from boot.img in scripting

[U-Boot] [PATCH 5/7] imx: icore: fix splash logo drawing

2019-09-19 Thread Anatolij Gustschin
Define "splashimage" variable in the default environment and enable BMP code. Also configure white on black for video console. Signed-off-by: Anatolij Gustschin --- configs/imx6dl_icore_nand_defconfig | 2 ++ configs/imx6q_icore_nand_defconfig | 2 ++ configs/imx6qdl_icore_mmc_defconfig | 2

[U-Boot] [PATCH 7/7] arm: ti: boot: Use correct dtb and dtbo on Android boot

2019-09-19 Thread Sam Protsenko
Read correct dtb file from boot.img/recovery.img and apply correct dtbo files from dtbo partition. Signed-off-by: Sam Protsenko --- include/configs/ti_armv7_common.h | 7 + include/environment/ti/boot.h | 44 --- 2 files changed, 48 insertions(+), 3

[U-Boot] [PATCH 6/7] env: ti: boot: Boot Android with dynamic partitions

2019-09-19 Thread Sam Protsenko
Changes: - use boot.img instead of boot_fit.img - use .dtb from boot.img v2 - implement recovery boot - always boot ramdisk from boot.img, we can't mount system as root now, as system is a logical partition inside of super partition - don't add "skip_initramfs" to cmdline anymore -

[U-Boot] [PATCH 5/7] env: ti: boot: Respect slot_suffix in AVB commands

2019-09-19 Thread Sam Protsenko
Signed-off-by: Sam Protsenko --- include/environment/ti/boot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/environment/ti/boot.h b/include/environment/ti/boot.h index 684a744f31..da99215fbd 100644 --- a/include/environment/ti/boot.h +++

[U-Boot] [PATCH 4/7] configs: am57xx_evm: Enable Android commands

2019-09-19 Thread Sam Protsenko
Enable Android commands that will be needed for Android 10 boot flow implementation, for all AM57x variants. Commands enabled: 1. 'bootimg': - CONFIG_CMD_BOOTIMG=y 2. 'ab_select': - CONFIG_ANDROID_AB=y - CONFIG_CMD_AB_SELECT=y 3. 'avb': - CONFIG_LIBAVB=y -

[U-Boot] [PATCH 1/7] image: android: Add functions for handling dtb field

2019-09-19 Thread Sam Protsenko
Android Boot Image v2 adds "DTB" payload (and corresponding field in the image header). Provide functions for its handling: - android_image_get_dtb_by_index(): Obtain DTB file from "DTB" part of boot image, by file index - android_image_print_dtb_contents(): Iterate over all DTB files in

[U-Boot] [PATCH 2/7] image: android: Add routine to get dtbo params

2019-09-19 Thread Sam Protsenko
Android Boot Image v1 adds "Recovery DTB" field in image header and associate payload in boot image itself [1]. Payload should be in Android DTB/DTBO format [2]. That "Recovery DTB" area should be only populated for non-A/B devices, and only in recovery image. Add function to get an address and

[U-Boot] [PATCH 0/7] am57xx: Implement Android 10 boot flow

2019-09-19 Thread Sam Protsenko
Android 10 brings a lot of new requirements for bootloaders: [1]. This patch series attempts to implement such a boot process on BeagleBoard X15 platform. Some common code is added too, which can be reused later for other platforms. [1] https://source.android.com/devices/bootloader Sam

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-19 Thread Matwey V. Kornilov
19.09.2019 11:56, Simon South пишет: > I've been unable so far to boot NetBSD on my PINE64 ROCK64 (v2.0, > Rockchip RK3328) using U-Boot built with its own TPL, the default since > commit ff3dd0a474. > > The same NetBSD image boots fine using the binary TPL supplied by Rockchip. > > The exact

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-19 Thread Jagan Teki
On Thu, Sep 19, 2019 at 4:02 PM Simon South wrote: > > I've been unable so far to boot NetBSD on my PINE64 ROCK64 (v2.0, > Rockchip RK3328) using U-Boot built with its own TPL, the default since > commit ff3dd0a474. > > The same NetBSD image boots fine using the binary TPL supplied by Rockchip. >

[U-Boot] Driving GPIO in SPL

2019-09-19 Thread Chris LaRocque
Hello I am trying to resolve an issue with a board based on the Beaglebone black. I am using U-Boot 2015.10, it is being built with Buildroot 2016.2 on OpenSuSE Leap 42.3 in a Virtualbox VM on a Windows 10 host. I want to set the pad registers for the mii interface to GPIO (mode 7), configure the

[U-Boot] [PATCH 1/2] mmc: add a driver callback for power-cycle

2019-09-19 Thread Yann Gautier
Some MMC peripherals require specific power cycle sequence, where some registers need to be written between the regulator is turned off and then back on. This is the case for the MMC IP embedded in STM32MP1 SoC. In STM32MP157 reference manual [1], the power cycle sequence is: 1. Reset the SDMMC

[U-Boot] [PATCH 2/2] mmc: stm32_sdmmc2: implement host_power_cycle callback

2019-09-19 Thread Yann Gautier
For the correct power cycle sequence with stm32_sdmmc2, the write of the power cycle value in PWRCTL field of SDMMC_POWER register is now done in stm32_sdmmc2_host_power_cycle() and no more in stm32_sdmmc2_pwrcycle(). Signed-off-by: Yann Gautier --- drivers/mmc/stm32_sdmmc2.c | 13

Re: [U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-19 Thread Matwey V. Kornilov
19.09.2019 11:56, Simon South пишет: > I've been unable so far to boot NetBSD on my PINE64 ROCK64 (v2.0, > Rockchip RK3328) using U-Boot built with its own TPL, the default since > commit ff3dd0a474. > > The same NetBSD image boots fine using the binary TPL supplied by Rockchip. > > The exact

Re: [U-Boot] [RFC 06/15] secure boot: rename CONFIG_SECURE_BOOT

2019-09-19 Thread Stefano Babic
On 19/09/19 17:02, Tom Rini wrote: > On Wed, Sep 18, 2019 at 10:26:34AM +0900, AKASHI Takahiro wrote: > >> The configuration, CONFIG_SECURE_BOOT, was scattered among different >> architecture directories for different implementation. This will prevent >> UEFI secure boot from being added later.

Re: [U-Boot] [RFC 06/15] secure boot: rename CONFIG_SECURE_BOOT

2019-09-19 Thread Tom Rini
On Wed, Sep 18, 2019 at 10:26:34AM +0900, AKASHI Takahiro wrote: > The configuration, CONFIG_SECURE_BOOT, was scattered among different > architecture directories for different implementation. This will prevent > UEFI secure boot from being added later. > > So let's rename them, giving each

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-19 Thread Simon Goldschmidt
Michal Simek schrieb am Do., 19. Sep. 2019, 16:22: > On 17. 09. 19 14:53, Simon Goldschmidt wrote: > > On Tue, Sep 17, 2019 at 2:48 PM Michal Simek > wrote: > >> > >> On 17. 09. 19 14:43, Simon Goldschmidt wrote: > >>> On Tue, Sep 17, 2019 at 1:22 PM Michal Simek > wrote: > > From:

Re: [U-Boot] [PATCH] spi: Fix manual relocation calling more times

2019-09-19 Thread Michal Simek
On 17. 09. 19 14:53, Simon Goldschmidt wrote: > On Tue, Sep 17, 2019 at 2:48 PM Michal Simek wrote: >> >> On 17. 09. 19 14:43, Simon Goldschmidt wrote: >>> On Tue, Sep 17, 2019 at 1:22 PM Michal Simek >>> wrote: From: Ashok Reddy Soma When two instances of AXI QSPI with

[U-Boot] [PATCH V2] spl: add a generic function board_init_f

2019-09-19 Thread Philippe Reynes
This commit add a generic function board_init_f that only initialize some device (for example serial). It avoid to define a board function only to launch the serial configuration. Signed-off-by: Philippe Reynes --- Changelog: v2: - fix the commit message (use board_init_f instead of

[U-Boot] u-boot: raspberry pi 4 with 4G ram, bdinfo: dram bank size is < 1G

2019-09-19 Thread Pi NewBie
With top of the tree(tot) uboot, and tot firmware, uboot command bdinfo shows the dram bank size as 0x3b40 which is <1G, but the rpi4 board has 4G of ram. However with kernel8.img in the firmware, linux kernel shows in /proc/meminfo cat /proc/meminfo MemTotal:3999784 kB MemFree:

[U-Boot] [PATCH] arm64: zynqmp: Enable bind/unbind commands

2019-09-19 Thread Michal Simek
These commands are useful in connection to usb and other devices that's why enable it by default. Signed-off-by: Michal Simek --- configs/xilinx_zynqmp_zcu102_revA_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/xilinx_zynqmp_zcu102_revA_defconfig

[U-Boot] [PATCH 4/4] pytest: add a new test for aes

2019-09-19 Thread Philippe Reynes
This commit add a simple test to check that a text may be ciphered and unciphered. Each step are checked with the known result. Signed-off-by: Philippe Reynes --- test/py/tests/test_aes.py | 48 +++ 1 file changed, 48 insertions(+) create mode 100644

[U-Boot] [PATCH 3/4] cmd: aes: use map_sysmem when accessing memory

2019-09-19 Thread Philippe Reynes
The aes command used to segfault when accessing memory in sandbox. The pointer accesses should be mapped. Signed-off-by: Philippe Reynes --- cmd/aes.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/aes.c b/cmd/aes.c index 7ff4a71..3db110c 100644 --- a/cmd/aes.c

[U-Boot] [PATCH 0/4] pytest: add a simple test to check the command aes

2019-09-19 Thread Philippe Reynes
This serie fix the command aes on sandbox and add a simple pytest for aes. The first and second patch enable the command aes on sandbox and sandbox64. Thr third patch fix the command aes on sandbox (adding map_sysmem to avoid a segfault), the forth patch add a simple pytest for the command aes.

[U-Boot] [PATCH 2/4] sandbox64: enable command aes

2019-09-19 Thread Philippe Reynes
This commit add the support of command aes. Then, it may be used on pytest. Signed-off-by: Philippe Reynes --- configs/sandbox64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox64_defconfig b/configs/sandbox64_defconfig index c177ff8..9332e34 100644 ---

[U-Boot] [PATCH 1/4] sandbox: enable command aes

2019-09-19 Thread Philippe Reynes
This commit enable the command aes on sandbox. Then, it may be used on pytest. Signed-off-by: Philippe Reynes --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 968ffda..d5872dd 100644 ---

Re: [U-Boot] [PATCH] cmd: avoid decimal conversion

2019-09-19 Thread Michal Simek
On 13. 09. 19 17:09, Tom Rini wrote: > On Wed, Sep 11, 2019 at 03:39:53PM +0200, Michal Simek wrote: > >> From: T Karthik Reddy >> >> This patch uses auto instead of decimal in simple_strtoul(). >> >> Signed-off-by: T Karthik Reddy >> Signed-off-by: Michal Simek >> --- >> >> cmd/test.c | 24

Re: [U-Boot] Question about device tree usage and ranges

2019-09-19 Thread Stefan Roese
Hi Aaron, On 19.09.19 13:35, Aaron Williams wrote: Hi, In my device tree I need to translate some address via ranges but I'm running into some issues. If I use ofnode_get_addr_size() it is not using the #address-cells and #size-cells nor is it performing the ranges translation. It always

[U-Boot] Question about device tree usage and ranges

2019-09-19 Thread Aaron Williams
Hi, In my device tree I need to translate some address via ranges but I'm running into some issues. If I use ofnode_get_addr_size() it is not using the #address-cells and #size-cells nor is it performing the ranges translation. It always assumes #address-cells and #size-cells is 2 and doesn't

[U-Boot] ROCK64 fails to boot using U-Boot TPL

2019-09-19 Thread Simon South
I've been unable so far to boot NetBSD on my PINE64 ROCK64 (v2.0, Rockchip RK3328) using U-Boot built with its own TPL, the default since commit ff3dd0a474. The same NetBSD image boots fine using the binary TPL supplied by Rockchip. The exact failure varies but it always seems memory-related.

Re: [U-Boot] [PATCH v2 1/2] dm: core: Add functions to read 64-bit dt properties

2019-09-19 Thread T Karthik Reddy
Hi, > -Original Message- > From: Michal Simek > Sent: Tuesday, September 17, 2019 6:56 PM > To: Simon Glass ; Bin Meng > Cc: Michal Simek ; U-Boot Mailing List b...@lists.denx.de>; T Karthik Reddy ; git > > Subject: Re: [PATCH v2 1/2] dm: core: Add functions to read 64-bit dt >

[U-Boot] [PATCH 2/2] tools: imx8mimage: add SECOND_LOADER_IVT

2019-09-19 Thread Peng Fan
Add SECOND_LOADER_IVT to support generate FIT image with IVT embedded. In android case, we need dual boot loader, with one SPL image support Dual U-Boot proper. In our case, we need dual u-boot.itb with ivt embedded for secure boot. When SECOND_LOADER_IVT included in cfg file, not add

[U-Boot] [PATCH 1/2] tools: imx8mimage: add SOC_TYPE

2019-09-19 Thread Peng Fan
Add SOC_TYPE for i.MX8MN usage. i.MX8MN ivt_offset needs to be 0, and for flexspi, the rom_image_offset needs to be 4KB. Signed-off-by: Peng Fan --- include/imximage.h | 1 + tools/imx8mimage.c | 20 ++-- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git

Re: [U-Boot] [PATCH v3 7/8] power: pmic: rk817: support rk817 pmic

2019-09-19 Thread Kever Yang
On 2019/9/19 下午4:09, Elaine Zhang wrote: From: Joseph Chen The RK817 is a Power Management IC (PMIC) for multimedia and handheld devices. They contains the following components: - Regulators(4*BUCKs, 1* BOOST, 9*LDOs, 1*SWITCH) - RTC - Clocking Signed-off-by: Joseph Chen

Re: [U-Boot] [PATCH v3 6/8] power: pmic: rk8xx: add pmic_shutdown() implement

2019-09-19 Thread Kever Yang
On 2019/9/19 下午4:09, Elaine Zhang wrote: From: Joseph Chen add rk8xx_shutdown for pmic shutdown. It is used in applications such as UBOOT shutdown charging. Signed-off-by: Joseph Chen Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang Thanks, - Kever --- drivers/power/pmic/rk8xx.c |

Re: [U-Boot] [PATCH v3 8/8] power: pmic: rk809: support rk809 pmic

2019-09-19 Thread Kever Yang
On 2019/9/19 下午4:09, Elaine Zhang wrote: From: Joseph Chen The RK809 is a Power Management IC (PMIC) for multimedia and handheld devices. They contains the following components: - Regulators(5*BUCKs, 9*LDOs, 2*SWITCHs) - RTC - Clocking Signed-off-by: Joseph Chen

Re: [U-Boot] [PATCH v3 5/8] dm: pmic: add pmic_shutdown() interface

2019-09-19 Thread Kever Yang
On 2019/9/19 下午4:09, Elaine Zhang wrote: From: Joseph Chen It is a common requirement to shutdown some PMIC. Provide some simple convenience functions to do this. Signed-off-by: Joseph Chen Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang Thanks, - Kever ---

Re: [U-Boot] [PATCH v3 4/8] power: pmic: rk805: support rk805 pmic

2019-09-19 Thread Kever Yang
On 2019/9/19 下午4:08, Elaine Zhang wrote: The RK805 are a Power Management IC (PMIC) for multimedia and handheld devices. They contains the following components: - Regulators(4*BUCKs, 3*LDOs) - RTC - Clocking Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang Thanks, - Kever

Re: [U-Boot] [PATCH v3 3/8] power: pmic: rk816: support rk816 pmic

2019-09-19 Thread Kever Yang
On 2019/9/19 下午4:08, Elaine Zhang wrote: The RK816 is a Power Management IC (PMIC) for multimedia and handheld devices. They contains the following components: - Regulators(4*BUCKs, 1*BOOST, 6*LDOs, 1*SWITCH) - RTC - Clocking Signed-off-by: Elaine Zhang Reviewed-by: Kever

Re: [U-Boot] [PATCH v3 2/8] power: regulator: rk8xx: update the driver for rk808 and rk818

2019-09-19 Thread Kever Yang
On 2019/9/19 下午4:08, Elaine Zhang wrote: In order to adapt the following pmics, make the interface more compatible. Support buck and ldo suspend voltage setting and getting. Supprot buck and ldo suspend enable/disable setting and getting. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang

Re: [U-Boot] [PATCH v3 1/8] dm: regulator: support regulator more state

2019-09-19 Thread Kever Yang
On 2019/9/19 下午4:08, Elaine Zhang wrote: From: Joseph Chen support parse regulator standard property: regulator-off-in-suspend; regulator-init-microvolt; regulator-suspend-microvolt: regulator_get_suspend_enable regulator_set_suspend_enable regulator_get_suspend_value

Re: [U-Boot] [PATCH 3/4] imx6: spl: Reduce SPL limit size in case CONFIG_SECURE_BOOT is enabled

2019-09-19 Thread Jagan Teki
Hi Stefano, On Wed, Sep 18, 2019 at 1:29 PM Stefano Babic wrote: > > Hi Jagan, Breno, > > On 17/09/19 09:13, Jagan Teki wrote: > > Hi Breno, > > > > On Thu, Jul 18, 2019 at 6:06 PM Breno Matheus Lima > > wrote: > >> > >> In case CONFIG_SECURE_BOOT is enabled we need to limit the SPL size to >

Re: [U-Boot] [PATCH 3/4] imx6: spl: Reduce SPL limit size in case CONFIG_SECURE_BOOT is enabled

2019-09-19 Thread Stefano Babic
On 19/09/19 07:37, Jagan Teki wrote: > Hi Stefano, > > On Wed, Sep 18, 2019 at 1:29 PM Stefano Babic wrote: >> >> Hi Jagan, Breno, >> >> On 17/09/19 09:13, Jagan Teki wrote: >>> Hi Breno, >>> >>> On Thu, Jul 18, 2019 at 6:06 PM Breno Matheus Lima >>> wrote: In case CONFIG_SECURE_BOOT

Re: [U-Boot] [PATCH 3/4] imx6: spl: Reduce SPL limit size in case CONFIG_SECURE_BOOT is enabled

2019-09-19 Thread Stefano Babic
Hi Breno, On 19/09/19 03:31, Breno Matheus Lima wrote: > HI Stefano and Jagan, > > Em qua, 18 de set de 2019 às 04:59, Stefano Babic escreveu: >> >> Hi Jagan, Breno, >> >> On 17/09/19 09:13, Jagan Teki wrote: >>> Hi Breno, >>> >>> On Thu, Jul 18, 2019 at 6:06 PM Breno Matheus Lima >>> wrote:

Re: [U-Boot] rockchip: rk3399: TPL: rockpro64: Wrong memory size detected【请注意,邮件由u-boot-boun...@lists.denx.de代发】 detected

2019-09-19 Thread Jagan Teki
Hi Kever, On Wed, Sep 18, 2019 at 10:31 AM Jagan Teki wrote: > > On Wed, Sep 18, 2019 at 9:09 AM Kever Yang wrote: > > > > Hi Jagan, > > > > Seems like your and Kurt's board have different DRAM type: > > > > - 16bit row + 1 CS > > > > - 15bit row + 2 CS > > > > Capacity detect function is

[U-Boot] [PATCH v2 6/6] net: ti: cpsw: convert to use dev/ofnode api

2019-09-19 Thread Grygorii Strashko
Conver TI CPSW driver to use dev/ofnode api. Signed-off-by: Grygorii Strashko --- drivers/net/ti/cpsw.c | 119 ++ include/cpsw.h| 2 +- 2 files changed, 51 insertions(+), 70 deletions(-) diff --git a/drivers/net/ti/cpsw.c

[U-Boot] [PATCH v2 5/6] net: ti: am65x-cpsw: fix mac tx internal delay for rgmii-rxid mode

2019-09-19 Thread Grygorii Strashko
Now AM65x CPSW2G driver will disable MAC TX internal delay for PHY interface mode "rgmii-rxid" which is incorrect. Hence, fix it by keeping default value (enabled) for MAC TX internal delay when "rgmii-rxid" interface mode is selected. Signed-off-by: Grygorii Strashko ---

[U-Boot] [PATCH v2 2/6] net: ti: cpsw: move parsing of dt port's parameters in separate func

2019-09-19 Thread Grygorii Strashko
Move parsing of dt port's parameters in separate func for better code readability. Signed-off-by: Grygorii Strashko --- drivers/net/ti/cpsw.c | 57 +-- 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/drivers/net/ti/cpsw.c

[U-Boot] [PATCH v2 4/6] net: ti: cpsw: fix mac tx internal delay for rgmii-rxid mode

2019-09-19 Thread Grygorii Strashko
Now TI CPSW driver will disable MAC TX internal delay for PHY interface mode "rgmii-rxid" which is incorrect. Hence, fix it by keeping default value (enabled) for MAC TX internal delay when "rgmii-rxid" interface mode is selected. Signed-off-by: Grygorii Strashko --- drivers/net/ti/cpsw.c | 2

[U-Boot] [PATCH v2 3/6] net: ti: cpsw: add support for standard eth "max-speed" dt property

2019-09-19 Thread Grygorii Strashko
This patch adds support for standard Ethernet "max-speed" DT property to allow PHY link speed limitation. Signed-off-by: Grygorii Strashko --- drivers/net/ti/cpsw.c | 15 +++ include/cpsw.h| 1 + 2 files changed, 16 insertions(+) diff --git a/drivers/net/ti/cpsw.c

[U-Boot] [PATCH v2 0/6] net: ti: set of fixes and improvements

2019-09-19 Thread Grygorii Strashko
Hi All, This series introduces set of fixes and improvements for TI CPSW and AM654x CPSW networking drivers. Patch 1 - Enables support of 10Mbit link speeds for TI CPSW driver. Patch 3 - Adds support of standard Ethernet "max-speed" DT property. Patches 4-5 - fix mac tx internal delay for

[U-Boot] [PATCH v2 1/6] net: ti: cpsw: enable 10Mbps link speed support in rgmii mode

2019-09-19 Thread Grygorii Strashko
According to TRMs the 10Mbps link speed is supported in RGMII only when CPSW2G MAC SL is configured for External Control ("in band") mode CPSW_SL_MACCTRL.EXT_EN(18) = 1. Hence update cpsw_slave_update_link() to follow documentation. [1] https://patchwork.kernel.org/patch/10285239/ Signed-off-by:

[U-Boot] [PATCH 3/3] arm64: zynqmp: Add a2197 memory board revA

2019-09-19 Thread Michal Simek
Similar to processor board but i2c structure is completely different. Signed-off-by: Michal Simek --- arch/arm/dts/Makefile| 1 + arch/arm/dts/zynqmp-a2197-m-revA.dts | 461 +++ board/xilinx/zynqmp/zynqmp-a2197-m-revA | 1 +

[U-Boot] [PATCH 2/3] arm64: zynqmp: Add System Controller for a2197-g/p

2019-09-19 Thread Michal Simek
Similar SCs but different wiring. - dc_i2c is connected to X-PRC cards that's why label is required to have an option to hook up some devices. - Exactly identify i2c devices on x-prc boards. In case of missing i2c connection devices won't be accessible. - USB 0 should be device mode with

[U-Boot] [PATCH 1/3] arm64: zynqmp: Add generic a2197 system controller config

2019-09-19 Thread Michal Simek
Add generic configuration for a2197-p/-m/-g boards. Signed-off-by: Michal Simek --- arch/arm/dts/Makefile |1 + arch/arm/dts/zynqmp-a2197-revA.dts| 89 ++ .../zynqmp/zynqmp-a2197-revA/psu_init_gpl.c | 1171 +

[U-Boot] [PATCH 0/3] arm64: zynqmp: Add support for Versal system controller

2019-09-19 Thread Michal Simek
Hi, these patches are adding support for System controller on Versal board which is capable to monitor and talk to Versal device. Thanks, Michal Michal Simek (3): arm64: zynqmp: Add generic a2197 system controller config arm64: zynqmp: Add System Controller for a2197-g/p arm64: zynqmp:

[U-Boot] [PATCH v3 7/8] power: pmic: rk817: support rk817 pmic

2019-09-19 Thread Elaine Zhang
From: Joseph Chen The RK817 is a Power Management IC (PMIC) for multimedia and handheld devices. They contains the following components: - Regulators(4*BUCKs, 1* BOOST, 9*LDOs, 1*SWITCH) - RTC - Clocking Signed-off-by: Joseph Chen Signed-off-by: Elaine Zhang ---

[U-Boot] [PATCH v3 6/8] power: pmic: rk8xx: add pmic_shutdown() implement

2019-09-19 Thread Elaine Zhang
From: Joseph Chen add rk8xx_shutdown for pmic shutdown. It is used in applications such as UBOOT shutdown charging. Signed-off-by: Joseph Chen Signed-off-by: Elaine Zhang --- drivers/power/pmic/rk8xx.c | 39 +++ 1 file changed, 39 insertions(+) diff --git

[U-Boot] [PATCH v3 8/8] power: pmic: rk809: support rk809 pmic

2019-09-19 Thread Elaine Zhang
From: Joseph Chen The RK809 is a Power Management IC (PMIC) for multimedia and handheld devices. They contains the following components: - Regulators(5*BUCKs, 9*LDOs, 2*SWITCHs) - RTC - Clocking Signed-off-by: Joseph Chen Signed-off-by: Elaine Zhang --- drivers/power/pmic/rk8xx.c

[U-Boot] [PATCH v3 5/8] dm: pmic: add pmic_shutdown() interface

2019-09-19 Thread Elaine Zhang
From: Joseph Chen It is a common requirement to shutdown some PMIC. Provide some simple convenience functions to do this. Signed-off-by: Joseph Chen Signed-off-by: Elaine Zhang --- drivers/power/pmic/pmic-uclass.c | 11 +++ include/power/pmic.h | 9 + 2 files

[U-Boot] [PATCH v3 4/8] power: pmic: rk805: support rk805 pmic

2019-09-19 Thread Elaine Zhang
The RK805 are a Power Management IC (PMIC) for multimedia and handheld devices. They contains the following components: - Regulators(4*BUCKs, 3*LDOs) - RTC - Clocking Signed-off-by: Elaine Zhang --- drivers/power/pmic/rk8xx.c | 1 + drivers/power/regulator/rk8xx.c | 17

[U-Boot] [PATCH v3 3/8] power: pmic: rk816: support rk816 pmic

2019-09-19 Thread Elaine Zhang
The RK816 is a Power Management IC (PMIC) for multimedia and handheld devices. They contains the following components: - Regulators(4*BUCKs, 1*BOOST, 6*LDOs, 1*SWITCH) - RTC - Clocking Signed-off-by: Elaine Zhang --- drivers/power/pmic/rk8xx.c | 1 +

[U-Boot] [PATCH v3 2/8] power: regulator: rk8xx: update the driver for rk808 and rk818

2019-09-19 Thread Elaine Zhang
In order to adapt the following pmics, make the interface more compatible. Support buck and ldo suspend voltage setting and getting. Supprot buck and ldo suspend enable/disable setting and getting. Signed-off-by: Elaine Zhang --- drivers/power/regulator/rk8xx.c | 547

[U-Boot] [PATCH v3 0/8] power: pmic: support more PMIC

2019-09-19 Thread Elaine Zhang
Support more PMIC and improve compatibility between pmics. Change in V3: [PATCH v3 1/8]: Add document instructions, Correct error handling. [PATCH v3 2/8]: No change. [PATCH v3 3/8]: No change. [PATCH v3 4/8]: No change. [PATCH v3 5/8]: Update commit message. [PATCH v3 6/8]: Update commit

[U-Boot] [PATCH v3 1/8] dm: regulator: support regulator more state

2019-09-19 Thread Elaine Zhang
From: Joseph Chen support parse regulator standard property: regulator-off-in-suspend; regulator-init-microvolt; regulator-suspend-microvolt: regulator_get_suspend_enable regulator_set_suspend_enable regulator_get_suspend_value regulator_set_suspend_value Signed-off-by: Joseph Chen

Re: [U-Boot] [PATCH 3/4] imx6: spl: Reduce SPL limit size in case CONFIG_SECURE_BOOT is enabled

2019-09-19 Thread Breno Matheus Lima
HI Stefano and Jagan, Em qua, 18 de set de 2019 às 04:59, Stefano Babic escreveu: > > Hi Jagan, Breno, > > On 17/09/19 09:13, Jagan Teki wrote: > > Hi Breno, > > > > On Thu, Jul 18, 2019 at 6:06 PM Breno Matheus Lima > > wrote: > >> > >> In case CONFIG_SECURE_BOOT is enabled we need to limit

[U-Boot] [PATCH] rockchip: rk3399: Add Libre Computer Board ROC-RK3399-PC

2019-09-19 Thread Jagan Teki
Add initial support for Libre Computer Board ROC-RK3399-PC. Specification - Rockchip RK3399 - 4GB LPDDR4 dual-channel 64-bit RAM - SD card slot - eMMC socket - 16M Byte SPI Flash - Gigabit ethernet - PCIe 4X slot - WiFI/BT module socket - HDMI Out, DP, MIPI DSI/CSI, eDP - USB 2.0 Hostx3 Type-Cx2

Re: [U-Boot] [PATCH 1/2] rockchip: evb-rk3288: Drop explicit SPL_TEXT

2019-09-19 Thread Jagan Teki
On Wed, Sep 18, 2019 at 3:27 PM Kever Yang wrote: > > SPL_TEXT_BASE is 0x0 by default, based on the kconfig > definition move in below commit. > > "configs: move CONFIG_SPL_TEXT_BASE to Kconfig" > (sha1: f89d6133eef2e068f9c33853b6584d7fcbfa9d2e) > > So, don't define it explicitly. > >

Re: [U-Boot] [PATCH 6/7] configs: tinker: Enable SDRAM, SPL stack

2019-09-19 Thread Jagan Teki
On Wed, Sep 18, 2019 at 3:24 PM Kever Yang wrote: > > > On 2019/9/18 下午1:25, Jagan Teki wrote: > > On Wed, Sep 18, 2019 at 10:36 AM Kever Yang > > wrote: > >> > >> On 2019/9/17 下午2:10, Jagan Teki wrote: > >>> SPL sets up SDRAM while in its board_init_f() > >>> function, it is possible for the

[U-Boot] [RFC PATCH 3/3] add infrastructure for collecting entropy

2019-09-19 Thread Rasmus Villemoes
A recurring theme on LKML is the boot process deadlocking due to some process blocking waiting for random numbers, while the kernel's Cryptographic Random Number Generator (crng) is not initalized yet, but that very blocking means no activity happens that would generate the entropy necessary to

[U-Boot] [RFC PATCH 1/3] u-boot/sha256.h: add SHA256_INIT macro

2019-09-19 Thread Rasmus Villemoes
To be used for statically initializing a sha256 context. Signed-off-by: Rasmus Villemoes --- include/u-boot/sha256.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/u-boot/sha256.h b/include/u-boot/sha256.h index 9aa1251789..10f42091ee 100644 ---

[U-Boot] [RFC PATCH 0/3] collect entropy, populate /chosen/rng-seed

2019-09-19 Thread Rasmus Villemoes
[This is very much an early Request For Comments - it builds and shows a sketch of what I have in mind, but has not really been tested. The rest of the cover letter is copied from patch 3.] A recurring theme on LKML is the boot process deadlocking due to some process blocking waiting for random

[U-Boot] [RFC PATCH 2/3] u-boot/sha256.h: include linux/types.h

2019-09-19 Thread Rasmus Villemoes
One cannot use sha256.h by itself - the includer must already have made sure that uint32_t and friends are defined; i.e., having included linux/types.h either directly or indirectly. That's a little annoying, so just make the header self-contained. Signed-off-by: Rasmus Villemoes ---