[PATCH v2 2/2] board: imx8mp: add boot.cmd for distro boot on iMX8MP

2020-12-17 Thread Alice Guo (OSS)
From: Alice Guo Distro Boot requires a U-Boot-specific script named boot.scr or boot.scr.uimg which contains boot commands to boot the system. The boot.cmd is such a file. Use mkimage to generate boot.scr or boot.scr.uimg from boot.cmd, and the command is: mkimage -A arm -O linux -T script -C non

[PATCH v2 1/2] imx8mp: configs: add support for distro boot commands

2020-12-17 Thread Alice Guo (OSS)
From: Alice Guo Supported boot device types in iMX8MP: MMC. CONFIG_CMD_PART is added for command part and CONFIG_CMD_FS_GENERIC is for command fstype. scriptaddr is the location in RAM where boot.scr.uimg/boot.scr will be loaded to prior to execution. kernel_addr_r is the location in RAM where

[PATCH v2 1/2] imx8mq: configs: add support for distro boot commands

2020-12-17 Thread Alice Guo (OSS)
From: Alice Guo Supported boot device types in iMX8MQ: MMC, DHCP. CONFIG_CMD_PART is added for command part and CONFIG_CMD_FS_GENERIC is for command fstype. scriptaddr is the location in RAM where boot.scr.uimg/boot.scr will be loaded to prior to execution. kernel_addr_r is the location in RAM

[PATCH v2 2/2] board: imx8mq: add boot.cmd for distro boot on iMX8MQ

2020-12-17 Thread Alice Guo (OSS)
From: Alice Guo Distro Boot requires a U-Boot-specific script named boot.scr or boot.scr.uimg which contains boot commands to boot the system. The boot.cmd is such a file. Use mkimage to generate boot.scr or boot.scr.uimg from boot.cmd, and the command is: mkimage -A arm -O linux -T script -C non

[PATCH v3 2/2] board: imx8mm: add boot.cmd for distro boot on iMX8MM

2020-12-17 Thread Alice Guo (OSS)
From: Alice Guo Distro Boot requires a U-Boot-specific script named boot.scr or boot.scr.uimg which contains boot commands to boot the system. The boot.cmd is such a file. Use mkimage to generate boot.scr or boot.scr.uimg from boot.cmd, and the command is: mkimage -A arm -O linux -T script -C non

[PATCH v3 1/2] imx8mm: configs: add support for distro boot commands

2020-12-17 Thread Alice Guo (OSS)
From: Alice Guo Supported boot device types in iMX8MM: MMC, DHCP. CONFIG_CMD_PART is added for command part and CONFIG_CMD_FS_GENERIC is for command fstype. CONFIG_BOOTCOMMAND which is defined in include/configs/imx8mm_evk.h is deleted because "run distro_bootcmd" is required to be the default

Re: [PATCH 0/2] Add SIMATIC IOT2050 board support

2020-12-17 Thread Jan Kiszka
On 18.12.20 07:04, Jan Kiszka wrote: > On 18.12.20 05:46, Lokesh Vutla wrote: >> Hi Jan, >> Sorry for the delayed response. >> >> On 04/12/20 1:29 pm, Jan Kiszka wrote: >>> This is the baseline support for the SIMATIC IOT2050 devices. >>> >>> Allows to boot mainline 5.10 kernels, but not the o

Re: [PATCH 0/2] Add SIMATIC IOT2050 board support

2020-12-17 Thread Jan Kiszka
On 18.12.20 05:46, Lokesh Vutla wrote: > Hi Jan, > Sorry for the delayed response. > > On 04/12/20 1:29 pm, Jan Kiszka wrote: >> This is the baseline support for the SIMATIC IOT2050 devices. >> >> Allows to boot mainline 5.10 kernels, but not the original BSP-derived >> kernel we currently s

Re: [PATCH 0/2] Add SIMATIC IOT2050 board support

2020-12-17 Thread Lokesh Vutla
Hi Jan, Sorry for the delayed response. On 04/12/20 1:29 pm, Jan Kiszka wrote: > This is the baseline support for the SIMATIC IOT2050 devices. > > Allows to boot mainline 5.10 kernels, but not the original BSP-derived > kernel we currently ship as reference. This is due to the TI sysfw AB

Re: [PATCH 16/18] dm: Use access methods for dev/uclass private data

2020-12-17 Thread Simon Glass
Hi Pratyush, On Thu, 17 Dec 2020 at 08:19, Pratyush Yadav wrote: > > [Dropping Jean-Jacques Hiblot because his email will bounce anyway.] > > Hi Simon, > > On 16/12/20 08:25AM, Simon Glass wrote: > > Most drivers use these access methods but a few do not. Update them. > > > > In some cases the a

[v4 17/17] configs: socfpga: Add defconfig for Agilex and Stratix 10 with ATF support

2020-12-17 Thread Siew Chin Lim
From: Chee Hong Ang Booting Agilex and Stratix 10 with ATF support. SPL now loads ATF (BL31), U-Boot proper and DTB from FIT image. The new boot flow with ATF support is as follow: SPL -> ATF (BL31) -> U-Boot proper -> OS (Linux) U-Boot proper now starts at 0x20 (CONFIG_SYS_TEXT_BASE). ATF

[v4 16/17] arm: socfpga: soc64: Enable FIT image generation using binman

2020-12-17 Thread Siew Chin Lim
Add new build target "fit-itb" for FIT image generation. In preparation to support Vendor Authorized Boot (VAB) for Intel SOC64 device in near future. With VAB, u-boot proper, dtb and arm trusted firmware need to be signed before FIT image generation. To align user experience for ATF boot with an

[v4 15/17] arm: socfpga: dts: soc64: Add binman node of FIT image with ATF support

2020-12-17 Thread Siew Chin Lim
Add binman node to device tree to generate the FIT image for u-boot (u-boot.itb) and OS kernel (kernel.itb). u-boot.itb contains arm trusted firmware (ATF), u-boot proper and u-boot device tree for ATF u-boot flow. kernel.itb contains Linux Image and Linux device tree. Signed-off-by: Siew Chin L

[v4 14/17] arm: socfpga: soc64: Skip handoff data access in SSBL

2020-12-17 Thread Siew Chin Lim
From: Chee Hong Ang SPL already setup the Clock Manager with the handoff data from OCRAM. When the Clock Manager's driver get probed again in SSBL, it shall skip the handoff data access in OCRAM. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/wrap_pll_config_s10.c | 3 ++- 1 file chang

[v4 13/17] arm: socfpga: soc64: SSBL shall not setup stack on OCRAM

2020-12-17 Thread Siew Chin Lim
From: Chee Hong Ang Since SSBL is running in DRAM, it shall setup the stack in DRAM instead of OCRAM which is occupied by SPL and handoff data. Signed-off-by: Chee Hong Ang --- include/configs/socfpga_soc64_common.h | 5 + 1 file changed, 5 insertions(+) diff --git a/include/configs/socfp

[v4 12/17] arm: socfpga: mailbox: Add 'SYSTEM_RESET' PSCI support to mbox_reset_cold()

2020-12-17 Thread Siew Chin Lim
From: Chee Hong Ang mbox_reset_cold() will invoke ATF's PSCI service when running in non-secure mode (EL2). Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/mailbox_s10.c | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/mach-socfpga/mailbox_s10.c b/arch/arm/mach-socfpga

[v4 11/17] arm: socfpga: soc64: Add ATF support for FPGA reconfig driver

2020-12-17 Thread Siew Chin Lim
From: Chee Hong Ang In non-secure mode (EL2), FPGA reconfiguration driver calls the SMC/PSCI services provided by ATF to configure the FPGA. Signed-off-by: Chee Hong Ang --- drivers/fpga/intel_sdm_mb.c | 139 1 file changed, 139 insertions(+) diff

[v4 10/17] arm: socfpga: soc64: Add ATF support for Reset Manager driver

2020-12-17 Thread Siew Chin Lim
From: Chee Hong Ang In non-secure mode (EL2), Reset Manager driver calls the SMC/PSCI service provided by ATF to enable/disable the SOCFPGA bridges. Signed-off-by: Chee Hong Ang Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/reset_manager_s10.c | 13 + 1 file changed, 13 i

[v4 09/17] net: designware: socfpga: Add ATF support for MAC driver

2020-12-17 Thread Siew Chin Lim
From: Chee Hong Ang In non-secure mode (EL2), MAC driver calls the SMC/PSCI services provided by ATF to setup the PHY interface. Signed-off-by: Chee Hong Ang Signed-off-by: Siew Chin Lim --- v2 --- Call secure register access helper function to write the secure register --- drivers/net/dwmac

[v4 08/17] mmc: dwmmc: socfpga: Add ATF support for MMC driver

2020-12-17 Thread Siew Chin Lim
From: Chee Hong Ang In non-secure mode (EL2), MMC driver calls the SMC/PSCI services provided by ATF to set SDMMC's DRVSEL and SMPLSEL. Signed-off-by: Chee Hong Ang Signed-off-by: Siew Chin Lim --- v2 --- Call secure register access helper function to write the secure register --- drivers/mm

[v4 07/17] arm: socfpga: Add secure register access helper functions for SoC 64bits

2020-12-17 Thread Siew Chin Lim
These secure register access functions allow U-Boot proper running at EL2 (non-secure) to access System Manager's secure registers by calling the ATF's PSCI runtime services (EL3/secure). Signed-off-by: Siew Chin Lim --- arch/arm/mach-socfpga/Makefile | 1 + .../mach-socfpga

[v4 06/17] arm: socfpga: soc64: Define SMC function identifiers for PSCI SiP services

2020-12-17 Thread Siew Chin Lim
From: Chee Hong Ang This header file defines the Secure Monitor Call (SMC) message protocol for ATF (BL31) PSCI runtime services. It includes all the PSCI SiP function identifiers for the secure runtime services provided by ATF. The secure runtime services include System Manager's registers acces

[v4 05/17] arm: socfpga: soc64: Add SMC helper function for Intel SOCFPGA (64bits)

2020-12-17 Thread Siew Chin Lim
From: Chee Hong Ang invoke_smc() allow U-Boot proper running in non-secure mode (EL2) to invoke SMC call to ATF's PSCI runtime services such as System Manager's registers access, 2nd phase bitstream FPGA reconfiguration, Remote System Update (RSU) and etc. smc_send_mailbox() is a send mailbox co

[v4 03/17] arm: socfpga: soc64: Override 'lowlevel_init' to support ATF

2020-12-17 Thread Siew Chin Lim
From: Chee Hong Ang Override 'lowlevel_init' to make sure secondary CPUs trapped in ATF instead of SPL. After ATF is initialized, it will signal the secondary CPUs to jump from SPL to ATF waiting to be 'activated' by Linux OS via PSCI call. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpg

[v4 04/17] arm: socfpga: Disable "spin-table" method for booting Linux

2020-12-17 Thread Siew Chin Lim
From: Chee Hong Ang Standard PSCI function "CPU_ON" provided by ATF is now used by Linux kernel to bring up the secondary CPUs to enable SMP booting in Linux on SoC 64bits platform. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --gi

[v4 02/17] arm: socfpga: soc64: Load FIT image with ATF support

2020-12-17 Thread Siew Chin Lim
From: Chee Hong Ang Instead of loading u-boot proper image (u-boot.img), SPL now loads FIT image (u-boot.itb) which includes u-boot proper, ATF and u-boot proper's DTB. For OS, u-boot now loads FIT images (kernel.itb) which includes Linux Image and Linux's DTB. Signed-off-by: Chee Hong Ang Sig

[v4 01/17] arm: socfpga: Add function for checking description from FIT image

2020-12-17 Thread Siew Chin Lim
From: Chee Hong Ang Add board_fit_config_name_match() for matching board name with device tree files in FIT image. This will ensure correct DTB file is loaded for different board type. Currently, we are not supporting multiple device tree files in FIT image therefore this function basically do no

[v4 00/17] Enable ARM Trusted Firmware for U-Boot

2020-12-17 Thread Siew Chin Lim
This is the 4th version of patchset to enable ARM Trusted Firmware for U-Boot for Intel Stratix10 and Agilex platform. New U-boot flow with ARM Trusted Firmware (ATF) support: SPL (EL3) -> ATF-BL31 (EL3) -> U-Boot Proper (EL2) -> Linux (EL1) SPL loads the u-boot.itb which consist of: 1) u-boot-no

Re: efi_selftest failure

2020-12-17 Thread Simon Glass
Hi Heinrich, On Mon, 14 Dec 2020 at 15:16, Simon Glass wrote: > > Hi Heinrich, > > On Mon, 14 Dec 2020 at 15:03, Heinrich Schuchardt wrote: > > > > Am 14. Dezember 2020 16:49:36 MEZ schrieb Simon Glass : > > >Hi Heinrich, > > > > > >I see this failure here: > > > > > >https://gitlab.denx.de/u-bo

RE: [EXT] RE: [PATCH v1 1/2] imx8mp: configs: add support for distro boot commands

2020-12-17 Thread Alice Guo (OSS)
> -Original Message- > From: ZHIZHIKIN Andrey > Sent: 2020年12月17日 19:21 > To: Alice Guo (OSS) ; sba...@denx.de; > feste...@gmail.com; Peng Fan > Cc: dl-uboot-imx ; Ye Li ; > u-boot@lists.denx.de; Alice Guo > Subject: [EXT] RE: [PATCH v1 1/2] imx8mp: configs: add support for distro boot

Re: [PATCH 6/6] cmd: Add MBR partition layout control utility

2020-12-17 Thread Heinrich Schuchardt
Am 17. Dezember 2020 12:27:39 MEZ schrieb Marek Szyprowski : >Add a 'mbr' command to let user create or verify MBR partition layout >based on the provided text description. The partition layout is >altearnatively read from 'mbr_parts' environment variable. This can be >used in scripts to help syst

Re: [PATCH 6/6] cmd: Add MBR partition layout control utility

2020-12-17 Thread Heinrich Schuchardt
Am 17. Dezember 2020 12:27:39 MEZ schrieb Marek Szyprowski : >Add a 'mbr' command to let user create or verify MBR partition layout >based on the provided text description. The partition layout is >altearnatively read from 'mbr_parts' environment variable. This can be >used in scripts to help syst

[PATCH] env: increment redund flag on read fail

2020-12-17 Thread Brandon Maier
If one of the reads fails when importing redundant environments (a single read failure), the env_flags wouldn't get initialized in env_import_redund(). If a user then calls saveenv, the new environment will have the wrong flags value. So on the next load the new environment will be ignored. While

[PATCH 20/20] x86: Fix header gaurd in asm/pmu.h

2020-12-17 Thread Simon Glass
This has the wrong name. Fix it. Signed-off-by: Simon Glass --- arch/x86/include/asm/pmu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/include/asm/pmu.h b/arch/x86/include/asm/pmu.h index b76bdf64a30..818e80881ec 100644 --- a/arch/x86/include/asm/pmu.h +++

[PATCH 17/20] x86: apl: Reduce size for TPL

2020-12-17 Thread Simon Glass
Update various drivers to use of_match_ptr() and to avoid including debug strings in TPL. Omit the WiFi driver entirely, since it is not used in TPL. This reduces the TPL binary size by about 608 bytes. Signed-off-by: Simon Glass --- arch/x86/cpu/apollolake/lpc.c| 13 -

[PATCH 18/20] x86: pinctrl: Drop unlikely error messages from TPL

2020-12-17 Thread Simon Glass
These errors are only really for development purposes. Drop them to reduce the size of TPL. The error numbers are still reported. This reduces the TPL binary size on coral by about 160 bytes. Signed-off-by: Simon Glass --- drivers/pinctrl/intel/pinctrl.c | 11 --- 1 file changed, 8 ins

[PATCH 19/20] x86: tpl: Remove unwanted devicetree string

2020-12-17 Thread Simon Glass
Update this driver to use of_match_ptr(). This reduces the TPL binary size by about 32 bytes. Signed-off-by: Simon Glass --- arch/x86/lib/tpl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/lib/tpl.c b/arch/x86/lib/tpl.c index 15b0212d190..04ff32277fd 100644 -

[PATCH 16/20] x86: apl: Update hostbridge to remove unwanted TPL code

2020-12-17 Thread Simon Glass
At present several strings from this file appear in the TPL binary. Add preprocessor checks to drop them. This reduces the TPL binary size by about 128 bytes. Signed-off-by: Simon Glass --- arch/x86/cpu/apollolake/hostbridge.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-

[PATCH 14/20] x86: Move call64 into its own section

2020-12-17 Thread Simon Glass
When this code is not used (e.g. by TPL) we want it to be excluded from the image. Put it in its own section so that this happens. Signed-off-by: Simon Glass --- arch/x86/cpu/i386/call64.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/cpu/i386/call64.S b/arch/x86/cpu/i386/call64.

[PATCH 15/20] x86: coral: Move fsp-m settings to a subnode

2020-12-17 Thread Simon Glass
At present these settings are in the node for host-bridge and so are visible in TPL as well as SPL. But they are only used for SPL. Move them to a subnode so that TPL does not included them. Signed-off-by: Simon Glass --- arch/x86/cpu/apollolake/fsp_m.c | 5 - arch/x86/dts/chromebook_cor

[PATCH 13/20] x86: apl: Use const for driver operations

2020-12-17 Thread Simon Glass
Update these declarations to const to ensure that the data ends up in the rodata section. Signed-off-by: Simon Glass --- arch/x86/cpu/apollolake/pmc.c| 2 +- arch/x86/cpu/intel_common/p2sb.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/cpu/apollolake/pmc.c

[PATCH 11/20] dtoc: Scan drivers for available information

2020-12-17 Thread Simon Glass
At present we simply record the name of a driver parsed from its implementation file. We also need to get the uclass and a few other things so we can instantiate devices at build time. Add support for collecting this information. This requires parsing each driver file. Signed-off-by: Simon Glass

[PATCH 10/20] dtoc: Convert _drivers to a dict

2020-12-17 Thread Simon Glass
At present this member holds a simple list of driver names. Update it to be a dict of DriverInfo, with the name being the key. This will allow more information to be added about each driver, in future patches. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 21 +

[PATCH 12/20] dtoc: Allow use of the of_match_ptr() macro

2020-12-17 Thread Simon Glass
Update the regex for the of_match member to allow of_match_ptr() so it matches both: .of_match = apl_hostbridge_ids, and .of_match = of_match_ptr(apl_hostbridge_ids), Without this, dtoc emits warnings and cannot find the drivers. Signed-off-by: Simon Glass --- tool

[PATCH 06/20] test: Move some test drivers into their own file

2020-12-17 Thread Simon Glass
At present several test drivers are part of the test file itself. Some of these are useful for of-platdata tests. Separate them out so we can use them for other things also. A few adjustments are needed so this driver can build for sandbox_spl as well. Signed-off-by: Simon Glass --- drivers/mi

[PATCH 09/20] dtoc: Output the struct values in a separate function

2020-12-17 Thread Simon Glass
Reduce the length of output_node() futher by moving the struct-output functionality into a two separate functions. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 50 ++ 1 file changed, 34 insertions(+), 16 deletions(-) diff --git a/tools/dtoc/dt

[PATCH 08/20] dtoc: Output the device in a separate function

2020-12-17 Thread Simon Glass
Reduce the length of output_node() by moving the device-output functionality into a separate function. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 33 ++--- 1 file changed, 22 insertions(+), 11 deletions(-) diff --git a/tools/dtoc/dtb_platdata.py b/t

[PATCH 07/20] dtoc: Make _output_list a top-level function

2020-12-17 Thread Simon Glass
It is annoying to have this function inside its parent since it makes the parent longer and hard to read. Move it to the top level. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 80 +++--- 1 file changed, 40 insertions(+), 40 deletions(-) diff --gi

[PATCH 05/20] test: Use a simple variable to record removed device

2020-12-17 Thread Simon Glass
At present the entire test state is effective passed into a test driver just to record which device was removed. This is unnecessary and makes it harder to track what is going on. Use a simple boolean instead. Also drop the unused 'removed' member while we are here. Signed-off-by: Simon Glass -

[PATCH 04/20] timer: Use a shorter error in TPL

2020-12-17 Thread Simon Glass
This error should not happen in normal use. Reduce the length of it to save space in the image. Add an empty spl.h file to sh since it appears to lack this. Signed-off-by: Simon Glass --- lib/time.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/time.c b/lib

[PATCH 03/20] arc: m68k: nds32: nios2: sh: xtensa: Add empty spl.h header

2020-12-17 Thread Simon Glass
At present it is not possible to include spl.h in on these architectures since the asm/spl.h file is not present. We want to be able to use the spl_phase() function, so add empty headers to make things build. Signed-off-by: Simon Glass --- arch/arc/include/asm/spl.h| 0 arch/m68k/include/as

[PATCH 02/20] sysreset: Use a shorter error with SPL

2020-12-17 Thread Simon Glass
Use a minimal error message to save space. Sort the header files while we are here. Signed-off-by: Simon Glass --- drivers/sysreset/sysreset-uclass.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/sysreset/sysreset-uclass.c b/drivers/sysreset/sysreset-

[PATCH 01/20] pinctrl: Drop post_bind() method when not needed

2020-12-17 Thread Simon Glass
This is not used with of-platdata, so remove it in that case. Signed-off-by: Simon Glass --- drivers/pinctrl/pinctrl-uclass.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-uclass.c b/drivers/pinctrl/pinctrl-uclass.c index aba88104747..4e474cbff73

[PATCH 00/20] dm: Preparation for enhanced of-platdata (part B)

2020-12-17 Thread Simon Glass
This series includes some refactoring of the dtoc tool and some changes to a few drivers (particularly on x86) to reduce TPL size. It is available at u-boot-dm/prep-working Simon Glass (20): pinctrl: Drop post_bind() method when not needed sysreset: Use a shorter error with SPL arc: m68k:

Re: AT91 - SAMA5D27 adding a new board - common initialisation code and file names

2020-12-17 Thread Eugen.Hristev
On 17.12.2020 17:09, Tim Small wrote: > Hi, > Hello, > I'm in the process of adding support to U-Boot for an AT91 SAMA5D27 > based board. There may be a USB port configuration change pending, but > otherwise it's functionally complete. > > The design is quite similar to the Microchip SAMA5D2 Xp

Question about env_flash variable in env/sf.c

2020-12-17 Thread Patrick DELAUNAY
Hi, I am reading the code in env/sf.c file (to add the .erase opt and support of "env erase" command), and I have a question about the static variable env_flash. Today it is a global flash pointer, initialized by the function setup_flash_device() And it is called in all the functions before to

[PATCH] board: ti: k2g: Add support for K2G ICE with 1GHz Silicon

2020-12-17 Thread Lokesh Vutla
Add board detection support for K2G ICE with FlagChip 1GHz silicon. Signed-off-by: Lokesh Vutla --- board/ti/ks2_evm/board.c | 4 ++-- board/ti/ks2_evm/board.h | 8 board/ti/ks2_evm/board_k2g.c | 7 +-- board/ti/ks2_evm/ddr3_k2g.c | 2 +- board/ti/ks2_evm/mux-k2g.h | 2 +-

Re: [PATCH] cmd: usb_mass_storage: show device interface name

2020-12-17 Thread Lukasz Majewski
On Thu, 17 Dec 2020 11:47:11 +0100 Marek Szyprowski wrote: > Show the interface name (i.e. 'mmc') in the information string to ease > user checking which device is exported via USB Mass Storage protocol. > > Signed-off-by: Marek Szyprowski > --- > cmd/usb_mass_storage.c | 4 ++-- > 1 file chan

Re: RK3399 DSI and panel driver question

2020-12-17 Thread Peter Robinson
> Does anyone have any experience with RK3399 DSI and panel bringup in u- > boot? I believe I have the vopl and mipi configured - I can see the > backlight come on at least - but I think I need a panel-specific > driver. Simple-panel doesn't send dsi commands so the panel never > inits. And I'm

Re: [PATCH/RFC] board: amlogic: Fix Odroid-C4 SD card reboot issue

2020-12-17 Thread Mark Kettenis
> From: Marek Szyprowski > Date: Thu, 17 Dec 2020 10:06:24 +0100 > > For the proper reboot Odroid C4 board requires to switch TFLASH_VDD_EN > pin to the input (high impedance?) mode, otherwise the board is stuck > in the middle of loading early stages of the bootloader from SD card. > > This has

RK3399 DSI and panel driver question

2020-12-17 Thread Michael J. Hammel
Does anyone have any experience with RK3399 DSI and panel bringup in u- boot? I believe I have the vopl and mipi configured - I can see the backlight come on at least - but I think I need a panel-specific driver. Simple-panel doesn't send dsi commands so the panel never inits. And I'm not clear

Re: [PATCH 16/18] dm: Use access methods for dev/uclass private data

2020-12-17 Thread Pratyush Yadav
[Dropping Jean-Jacques Hiblot because his email will bounce anyway.] Hi Simon, On 16/12/20 08:25AM, Simon Glass wrote: > Most drivers use these access methods but a few do not. Update them. > > In some cases the access is not permitted, so mark those with a FIXME tag > for the maintainer to chec

AT91 - SAMA5D27 adding a new board - common initialisation code and file names

2020-12-17 Thread Tim Small
Hi, I'm in the process of adding support to U-Boot for an AT91 SAMA5D27 based board. There may be a USB port configuration change pending, but otherwise it's functionally complete. The design is quite similar to the Microchip SAMA5D2 Xplained Board, to the extent that I have only 6 lines of code

[PATCH] rockchip: roc-pc-rk3399: fix boot from SPI flash on spi1

2020-12-17 Thread Markus Reichl
Set the default bus for the onboard SPI flash to 1. This fixes booting from U-Boot in SPI flash on the roc-pc-rk3399 board and it's mezzanine variant. Signed-off-by: Markus Reichl --- configs/roc-pc-mezzanine-rk3399_defconfig | 1 + configs/roc-pc-rk3399_defconfig | 1 + 2 files change

Orange pi zero plus and bitmap loading

2020-12-17 Thread aurélien gibaud
Hi, I am playing with an orange pi zero plus + latest armbian buster available image. When booting, i see the following error message from u-boot: *** Reading file would overwrite reserved memory **Failed to load '/boot/boot.bmp'* *There is no valid bmp file at the given address* The file itse

[PATCH] arm64: zynqmp: Add Ethernet node for zcu1285 revA

2020-12-17 Thread Michal Simek
From: Harini Katakam This patch add ethernet node gem1 to zcu1285 RevB. GMII to RGMII converter sits between MAC and external phy connected over GMII to MAC and RGMMI to external phy Signed-off-by: Harini Katakam Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu1285-revA.dts | 23 +

[PATCH] arm64: zynqmp: Add ethernet node for zc1275 revB

2020-12-17 Thread Michal Simek
From: Siva Durga Prasad Paladugu This patch add ethernet node gem1 to zc1275 RevB. GMII to RGMII converter sits between MAC and external phy connected over GMII to MAC and RGMMI to external phy. Signed-off-by: Siva Durga Prasad Paladugu Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-zcu

RE: [PATCH 3/4] Revert "lpc32xx: cpu: add support for soft reset"

2020-12-17 Thread Sylvain Lemieux
Hi Harald, Yes, we have board code that will call this function with a different value to generate a soft reset (i.e. no pulse on "RESOUT_N"). We have a need to be able to reset the processor (soft or hard) based on the need to generate or not a pulse on RESOUT_N signal. We will be able to kee

[PATCH] spi: zynqmp_gqspi: Fix unaligned data writes issue

2020-12-17 Thread Michal Simek
From: T Karthik Reddy When unaligned 3 bytes data write operation is performed, 3rd byte is being over written by 1st byte of 3 bytes data. This patch fixes it. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- drivers/spi/zynqmp_gqspi.c | 6 ++ 1 file changed, 2 insertions(

[PATCH 2/2] microblaze: Add nor device to distro boot

2020-12-17 Thread Michal Simek
From: T Karthik Reddy Add parallel nor device to distroboot for microblaze. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- include/configs/microblaze-generic.h | 17 - 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/include/configs/microblaze-gen

[PATCH 1/2] microblaze: Set script_offset_nor env variable

2020-12-17 Thread Michal Simek
From: T Karthik Reddy Set script_offset_nor env variable using CONFIG_BOOT_SCRIPT_OFFSET and nor flash start address to keep bootscript offset configurable. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- board/xilinx/microblaze-generic/microblaze-generic.c | 5 - 1 file c

Re: Please pull u-boot-dm/next into -next

2020-12-17 Thread Tom Rini
On Wed, Dec 16, 2020 at 07:10:58PM -0700, Simon Glass wrote: > Hi Tom, > > On Tue, 15 Dec 2020 at 09:28, Simon Glass wrote: > > > > Hi Tom, > > > > On Tue, 15 Dec 2020 at 07:06, Tom Rini wrote: > > > > > > On Mon, Dec 14, 2020 at 08:50:53AM -0700, Simon Glass wrote: > > > > > > > Hi Tom, > > > >

RE: imx8mp_evk: boot error "alloc space exhausted"

2020-12-17 Thread ZHIZHIKIN Andrey
Hello Peng, Just a gentle ping here: can you take a look at the failure reported below? I've also added Alice Guo since there was some work done om imx8mp_evk board, and uboot-imx list here. Thanks a lot! > -Original Message- > From: ZHIZHIKIN Andrey > Sent: Tuesday, December 8, 2020 2:

[PATCH 4/5] dfu: add support for the dfu_alt_info reintialization from the flashed script

2020-12-17 Thread Marek Szyprowski
Reinitialize DFU USB gadget after flashing the 'SCRIPT' entity to ensure that the potential changes to the 'dfu_alt_info' environment variable are applied. Signed-off-by: Marek Szyprowski --- cmd/dfu.c| 14 +- common/dfu.c | 3 +++ 2 files changed, 16 insertions(+), 1 deletion(-

[PATCH 0/5] DFU: new entity types and minor improvements

2020-12-17 Thread Marek Szyprowski
Hi All, This patchset adds support for SKIP and SCRIPT entity types to the DFU subsystem. They significantly extends the flexibility of the DFU subsystem. Together with the recently posted 'Add MBR partition table creation and verify command' patchset it allows to create the whole partition table

[PATCH 1/5] dfu: mmc: use the default MMC device if entity specifies it as -1

2020-12-17 Thread Marek Szyprowski
Use the default MMC device set in the command line if entity specifies it as -1. This allows to use the same dfu_alt_info string for different MMC devices (like embedded eMMC and external SD card if data layout is the same on both devices). Signed-off-by: Marek Szyprowski --- drivers/dfu/dfu_mmc

[PATCH 5/5] thor: add support for the dfu_alt_info reintialization from the flashed script

2020-12-17 Thread Marek Szyprowski
Reinitialize dfu_env_entities after flashing the 'SCRIPT' entity to ensure that the potential changes to the 'dfu_alt_info' environment variable are applied. Signed-off-by: Marek Szyprowski --- cmd/thordown.c | 19 --- drivers/usb/gadget/f_thor.c | 3 +++ include/th

[PATCH 2/5] dfu: add 'SKIP' entity

2020-12-17 Thread Marek Szyprowski
From: Jaehoon Chung Define a new 'SKIP' type for DFU entities. The flashed data are simply ignored without returning any error values. This allows to have the same board flashing procedure and images for the different board types or variants, where each board uses only the images relevant to it

[PATCH 3/5] dfu: add 'SCRIPT' entity

2020-12-17 Thread Marek Szyprowski
Define a new 'SCRIPT' type for DFU entities. The downloaded data are treated as simple u-boot's scripts and executed with run_command_list() function. Flashing the 'SCRIPT' entity might result in changing the 'dfu_alt_info' environment variable from the flashed script, so add a global variable for

[PATCH 2/6] disk: dos: add some defines for the hardcoded numbers

2020-12-17 Thread Marek Szyprowski
Add some handy defines for some hardcoded magic numbers related to extended partition handling. Signed-off-by: Marek Szyprowski --- disk/part_dos.c | 6 +++--- disk/part_dos.h | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/disk/part_dos.c b/disk/part_dos.c index ef706fb5

[PATCH 0/6] Add MBR partition table creation and verify command

2020-12-17 Thread Marek Szyprowski
Hi All, This patchset adds 'mbr' command to let one create or verify MBR (Master Boot Record) partition layout based on the provided text description. This can be used in scripts to help system flashing tools/scripts to ensure proper partition layout. It has been inspired by the 'gpt' command alre

[PATCH 1/6] disk: dos: rename write_mbr_partition to write_mbr_sector

2020-12-17 Thread Marek Szyprowski
write_mbr_partition() function name is a bit misleading, so rename it to write_mbr_sector(). This is a preparation for adding code for writing a complete MBR partition layout. Signed-off-by: Marek Szyprowski --- disk/part_dos.c | 2 +- drivers/fastboot/fb_mmc.c | 2 +- include/part.h

[PATCH 3/6] disk: dos: use generic macro for unaligned le32 access

2020-12-17 Thread Marek Szyprowski
Use a generic helper for reading LE32 integers. Signed-off-by: Marek Szyprowski --- disk/part_dos.c | 28 +--- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/disk/part_dos.c b/disk/part_dos.c index 20d35dc9cd..3b79b9b1b8 100644 --- a/disk/part_dos.c +++ b/

[PATCH 6/6] cmd: Add MBR partition layout control utility

2020-12-17 Thread Marek Szyprowski
Add a 'mbr' command to let user create or verify MBR partition layout based on the provided text description. The partition layout is altearnatively read from 'mbr_parts' environment variable. This can be used in scripts to help system image flashing tools to ensure proper partition layout. The sy

[PATCH 5/6] disk: dos: add code for creating MBR partition layout

2020-12-17 Thread Marek Szyprowski
Add a code for creating and writing MBR partition layout. The code generates similar layout of EBRs (Exteneded Block Records) and logical volumes as Linux's fdisk utility. Signed-off-by: Marek Szyprowski --- disk/part_dos.c | 167 disk/part_dos.h

[PATCH 4/6] disk: dos: make some functions static

2020-12-17 Thread Marek Szyprowski
Make functions not used outside this file static. Signed-off-by: Marek Szyprowski --- disk/part_dos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/disk/part_dos.c b/disk/part_dos.c index 3b79b9b1b8..2c4ad0b6ba 100644 --- a/disk/part_dos.c +++ b/disk/part_dos.c @@ -302,

RE: [PATCH v1 1/2] imx8mp: configs: add support for distro boot commands

2020-12-17 Thread ZHIZHIKIN Andrey
Hello Alice, > -Original Message- > From: U-Boot On Behalf Of Alice Guo (OSS) > Sent: Thursday, December 17, 2020 11:29 AM > To: sba...@denx.de; feste...@gmail.com; peng@nxp.com > Cc: uboot-...@nxp.com; ye...@nxp.com; u-boot@lists.denx.de; Alice Guo > > Subject: [PATCH v1 1/2] imx8mp

[PATCH] cmd: usb_mass_storage: show device interface name

2020-12-17 Thread Marek Szyprowski
Show the interface name (i.e. 'mmc') in the information string to ease user checking which device is exported via USB Mass Storage protocol. Signed-off-by: Marek Szyprowski --- cmd/usb_mass_storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/usb_mass_storage.c b

[PATCH v1 2/2] board: imx8mp: add boot.cmd for distro boot on iMX8MP

2020-12-17 Thread Alice Guo (OSS)
From: Alice Guo Distro Boot requires a U-Boot-specific script named boot.scr or boot.scr.uimg which contains boot commands to boot the system. The boot.cmd is such a file. Use mkimage to generate boot.scr or boot.scr.uimg from boot.cmd, and the command is: mkimage -A arm -O linux -T script -C non

[PATCH v1 1/2] imx8mp: configs: add support for distro boot commands

2020-12-17 Thread Alice Guo (OSS)
From: Alice Guo Supported boot device types in iMX8MP: MMC. CONFIG_CMD_PART is added for command part and CONFIG_CMD_FS_GENERIC is for command fstype. scriptaddr is the location in RAM where boot.scr.uimg/boot.scr will be loaded to prior to execution. kernel_addr_r is the location in RAM where

Re: [PATCH 3/4] Revert "lpc32xx: cpu: add support for soft reset"

2020-12-17 Thread Harald Seiler
Hello Sylvain, On Tue, 2020-12-15 at 17:29 +, Sylvain Lemieux wrote: > Hi, > > This functionality (soft vs hard reset) is used in multiple LPC32xx > products with our custom hardware. > > If this support is remove from upstream, we will have to maintain this > patch locally (out of tree). M

Re: [PATCH v2 2/7] console: Keep ->start() and ->stop() balanced

2020-12-17 Thread Andy Shevchenko
On Thu, Dec 17, 2020 at 1:16 AM Andy Shevchenko wrote: > There is no need to call ->start() for already started device. All the same, an already > there is no need to call ->stop() for devices still in use. > > For now enforce this only for CONSOLE_MUX case. now, enforce the CONSOLE_MUX ... >

Re: [PATCH 1/6] net: macb: use dummy descriptor for RBQP

2020-12-17 Thread Padmarao.Begari
Hi Eugen, This series of patches break my side of work(patches) so you need to create patches after my patches are going into master branch because my patches are already reviewed and tested. Regards Padmarao From: Eugen Hristev - M18282 Sent: Wednesday, Decemb

[PATCH/RFC] board: amlogic: Fix Odroid-C4 SD card reboot issue

2020-12-17 Thread Marek Szyprowski
For the proper reboot Odroid C4 board requires to switch TFLASH_VDD_EN pin to the input (high impedance?) mode, otherwise the board is stuck in the middle of loading early stages of the bootloader from SD card. This has been achieved by hijacking reset_misc() callback from the PSCI firmware in the

Re: [PATCH] board: amlogic: vim3: read ethernet MAC address from efuse

2020-12-17 Thread Jaehoon Chung
On 12/17/20 5:43 PM, Neil Armstrong wrote: > On 17/12/2020 08:26, Marek Szyprowski wrote: >> Add the board specific code for reading built-in ethernet MAC address >> from efuse. >> >> Signed-off-by: Marek Szyprowski >> --- >> board/amlogic/vim3/vim3.c | 19 +++ >> 1 file changed,

Re: [PATCH] board: amlogic: vim3: read ethernet MAC address from efuse

2020-12-17 Thread Neil Armstrong
On 17/12/2020 08:26, Marek Szyprowski wrote: > Add the board specific code for reading built-in ethernet MAC address > from efuse. > > Signed-off-by: Marek Szyprowski > --- > board/amlogic/vim3/vim3.c | 19 +++ > 1 file changed, 19 insertions(+) > > diff --git a/board/amlogic/vi