[PATCH v3 13/13] mtd: decommission the NAND museum

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit f7025a43a9da26. The MTD subsystem has its own small museum of ancient NANDs in a form of the CONFIG_MTD_NAND_MUSEUM_IDS configuration option. The museum contains stone age NANDs with 256 bytes pages, as well as iron age NANDs with 512 bytes per page

[PATCH v3 12/13] mtd: nand: toshiba: Retrieve ECC requirements from extended ID

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit fb3bff5b407e58. This patch enables support to read the ECC strength and size from the NAND flash using Toshiba Memory SLC NAND extended-ID. This patch is based on the information of the 6th ID byte of the Toshiba Memory SLC NAND. Signed-off-by: Mich

[PATCH v3 11/13] mtd: nand: Move Macronix specific initialization in nand_macronix.c

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 3b5206f4be9b65. Move Macronix specific initialization logic into nand_macronix.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v3: - U

[PATCH v3 10/13] mtd: nand: Move AMD/Spansion specific init/detection logic in nand_amd.c

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 229204da53b31d. Move AMD/Spansion specific initialization/detection logic into nand_amd.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes i

[PATCH v3 09/13] mtd: nand: Move Micron specific init logic in nand_micron.c

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 10d4e75c36f6c1. Move Micron specific initialization logic into nand_micron.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v3: - Use c

[PATCH v3 08/13] mtd: nand: Move Toshiba specific init/detection logic in nand_toshiba.c

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 9b2d61f80b060c. Move Toshiba specific initialization and detection logic into nand_toshiba.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Change

[PATCH v3 06/13] mtd: nand: Move Samsung specific init/detection logic in nand_samsung.c

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit c51d0ac59f2420. Move Samsung specific initialization and detection logic into nand_samsung.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Change

[PATCH v3 07/13] mtd: nand: Move Hynix specific init/detection logic in nand_hynix.c

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 01389b6bd2f4f7. Move Hynix specific initialization and detection logic into nand_hynix.c. This is part of the "separate vendor specific code from core" cleanup process. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in

[PATCH v3 05/13] mtd: nand: Export symbol nand_decode_ext_id

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi In preparation of moving specific nand support that are not jedec or onfi Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/mtd/nand/raw/nand_base.c | 3 ++- include/linux/mtd/rawnand.h | 3 +++ 2 files changed, 5 i

[PATCH v3 04/13] mtd: nand: Get rid of mtd variable in function calls

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi chip points to mtd. Passing chip is enough to have a reference to mtd when is necessary Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v3: - Fix code style warnings raised by patman. drivers/mtd/nand/raw/nand_base.c | 25 +--

[PATCH v3 02/13] mtd: nand: Store nand ID in struct nand_chip

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 7f501f0a72036d. Store the NAND ID in struct nand_chip to avoid passing id_data and id_len as function parameters. Signed-off-by: Michael Trimarchi Signed-off-by: Dario Binacchi --- Changes in v3: - Use commit sha1 with 13 digits. - Fix code style

[PATCH v3 03/13] mtd: nand: Add manufacturer specific initialization/detection steps

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit abbe26d144ec22. A lot of NANDs are implementing generic features in a non-generic way, or are providing advanced auto-detection logic where the NAND ID bytes meaning changes with the NAND generation. Providing this vendor specific initialization ste

[PATCH v3 01/13] mtd: nand: Get rid of busw parameter

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 29a198a1592d83. Auto-detection functions are passed a busw parameter to retrieve the actual NAND bus width and eventually set the correct value in chip->options. Rework the nand_get_flash_type() function to get rid of this extra parameter and let det

[PATCH v3 00/13] Port manufacturer specific initialization

2022-07-20 Thread Dario Binacchi
In preparation of re-sync of mtd stack, we opt to move the current stack slowly in order to have a more easy sync and test. We would like to prepare uboot to support no-jedec and no-onfi compliant nand so we need to clean up a bit the code we have now and upstream some of the support. In this serie

RE: [PATCH] spi: cadence_ospi_versal: Reset ospi controller using reset driver api's

2022-07-20 Thread Soma, Ashok Reddy
Hi, Please ignore this patch. I will send this as part of another patch series. Thanks, Ashok -Original Message- From: Ashok Reddy Soma Sent: Wednesday, July 20, 2022 3:36 PM To: u-boot@lists.denx.de Cc: ja...@amarulasolutions.com; Simek, Michal ; g...@xilinx.com; git (AMD-Xilinx) ; R

[RFCv1] CI: Move to Ubuntu 2022.04 "Jammy" for CI base

2022-07-20 Thread Tom Rini
- We now have a new enough sbsigntools in the distro, stop building. - Use the 20220531 tag for Jammy. - Move to pygit2 1.9.2 (current version) as the old one doesn't build on "Jammy". - Add the working directory to the list of safe directories for git. - Adjust where we have "exit on error" set i

Re: [PATCH 3/4] ARM: imx8: DH: Use common mac address functions

2022-07-20 Thread Marek Vasut
On 7/4/22 13:11, Philip Oberfichtner wrote: To reduce code duplication, let the imx8 based DH boards use the common code for setting up their mac addresses. Signed-off-by: Philip Oberfichtner Tested-by: Marek Vasut

Re: [PATCH 1/4] board: dhelectronics: Implement common mac address functions

2022-07-20 Thread Marek Vasut
On 7/4/22 13:11, Philip Oberfichtner wrote: [...] +++ b/board/dhelectronics/common/dh_common.c @@ -0,0 +1,64 @@ [...] +int dh_get_mac_from_eeprom(unsigned char *enetaddr, const char *alias) +{ + struct udevice *dev; + int ret, offset; + + offset = fdt_path_offset(gd->fdt_b

Re: [PATCH 4/4] ARM: stm32: DH: Use common mac address functions

2022-07-20 Thread Marek Vasut
On 7/4/22 13:11, Philip Oberfichtner wrote: To reduce code duplication, let the stm32 based DH boards use the common code for setting up their mac addresses. Signed-off-by: Philip Oberfichtner "MAC address" is written in capitals , please fix the lowercase 'mac' all over the place and make

Re: [PATCH 2/4] ARM: imx6: DH: Use common mac address functions

2022-07-20 Thread Marek Vasut
On 7/4/22 13:11, Philip Oberfichtner wrote: To reduce code duplication, let the imx6 based DH boards use the common code for setting up their mac addresses. Signed-off-by: Philip Oberfichtner Tested-by: Marek Vasut

Re: [PATCH 01/19] video: Renname vbe.h to vesa.h

2022-07-20 Thread Bin Meng
Hi Simon, On Thu, Jul 21, 2022 at 1:00 AM Simon Glass wrote: > > We want to use VBE to mean Verfiied Boot for Embedded in U-Boot. Rename typo: Verified Is there a doc link to describe the Verified Boot for Embedded ? Just want to make sure if this acronym is the correct one to replace another e

Re: [PATCH v2] Improve Windows build documentation

2022-07-20 Thread Bin Meng
On Wed, Jul 20, 2022 at 11:00 PM Martin Bonner wrote: > > I have recently build the u-boot tools on Windows and ran into > difficulties. This patch to the documentation would have avoided > those difficulties. Contentious points: > > * While I have run the document through a rst previewer, I hav

How to create a bootable SPL for USB booting for the i.MX8M Mini

2022-07-20 Thread Patrick Boettcher
Hi list, We are having some difficulties getting USB-boot (for a starter with SPL) to work on a imx8mm. Doing this is part of a debug-session for another problem, which is worth mentioning, as it has been discussed on this list in January/February 2022. The original problem: we have a "complete"

u-boot 2022.04 for MCIMX6S7 board (TS-7970)

2022-07-20 Thread DataSelfService Srl
Hi, while trying to port OEM u-boot (https://github.com/embeddedTS/u-boot) for TS-7970 (https://www.embeddedts.com/products/TS-7970) to latest 2022.04, I cannot get the init.S running. Connecting GDB+JLink it appears at certain point the processor does not execute: ``` 0x17802200 : push{r3, l

MVEBU A38x Regulator

2022-07-20 Thread Tony Dinh
Hi Pali/Marek, I'm writing u-boot for the Synology DS116 (Armada 385, dual core, 1.8 Ghz). I could not seem to get the DM Regulator to power up the SATA port on this board. I'm using Stefan ./board/Marvell/db-88f6820-gp as the starting point, and using the latest DTS https://github.com/torvalds/l

Re: [PATCH] drivers: xen: events: fix build issues with disabled Xen HVC

2022-07-20 Thread Nastya Vicodin
Reviewed-by: Anastasiia Lukianenko On Mon, Jul 4, 2022 at 3:05 PM Dmytro Firsov wrote: > Some setups do not use Xen hypervisor console for logging, e.g. they > use emulated PL011 hardware or shared peripherals (real UART). In such > cases Xen HVC will be disabled on a build time and will cause

Re: Please pull u-boot-ubi

2022-07-20 Thread Tom Rini
On Wed, Jul 20, 2022 at 09:02:41AM +0200, Heiko Schocher wrote: > Hello Tom, > > please pull from: > > The following changes since commit fc97ff2695d6d7fbea7d5fda7b080f405d6ee744: > > Merge https://source.denx.de/u-boot/custodians/u-boot-sunxi (2022-07-19 > 10:52:15 -0400) > > are available

Re: [PATCH 10/19] buildman: Incorporate the genboardscfg.py tool

2022-07-20 Thread Tom Rini
On Wed, Jul 20, 2022 at 09:01:04AM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 18 Jul 2022 at 06:11, Tom Rini wrote: > > > > On Thu, Jul 14, 2022 at 04:21:57AM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Wed, 13 Jul 2022 at 12:21, Tom Rini wrote: > > > > > > > > On Wed, Jul 13, 20

Re: [PATCH v2] drivers: xen: unmap Enlighten page before jumping to Linux

2022-07-20 Thread Nastya Vicodin
Reviewed-by: Anastasiia Lukianenko On Tue, Jul 19, 2022 at 5:55 PM Dmytro Firsov wrote: > This commit fixes issue with usage of Xen hypervisor shared info page. > Previously U-boot did not unmap it at the end of OS boot process. Xen > did not prevent guest from this. So, it worked, but caused w

[PATCH 19/19] vbe: Add a new vbe command

2022-07-20 Thread Simon Glass
Add a command to look at VBE methods and their status. Provide a test for all of this as well. Signed-off-by: Simon Glass --- arch/sandbox/dts/sandbox.dtsi | 13 arch/sandbox/dts/test.dts | 15 + cmd/Kconfig | 10 +++ cmd/Makefile | 1 + cmd/

[PATCH 18/19] vbe: Support VBE simple

2022-07-20 Thread Simon Glass
Add support for VBE simple, which permits firmware update of a single image stored in MMC or another block device. Signed-off-by: Simon Glass --- boot/Kconfig | 12 ++ boot/Makefile| 1 + boot/vbe_simple.c| 304 +

[PATCH 17/19] vbe: Add initial support for VBE

2022-07-20 Thread Simon Glass
Create a new bootmeth for VBE along with a library to handle finding the VBE methods. Signed-off-by: Simon Glass --- boot/Kconfig | 9 boot/Makefile | 2 + boot/vbe.c| 119 ++ include/bootstd.h | 2 + include/vbe.h | 4

[PATCH 14/19] bootstd: Fix comment in bootmeth test

2022-07-20 Thread Simon Glass
Correct the comment at the top of this file. Signed-off-by: Simon Glass --- test/boot/bootmeth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/boot/bootmeth.c b/test/boot/bootmeth.c index 07776c5368d..81421f550b5 100644 --- a/test/boot/bootmeth.c +++ b/test/boot/bootm

[PATCH 16/19] bootstd: Provide a bootmeth method to obtain state info

2022-07-20 Thread Simon Glass
Some bootmeths can provide information about what is available to boot. For example, VBE simple provides access to the firmware state. Add a new method for this, along with a sandbox test. Signed-off-by: Simon Glass --- boot/bootmeth-uclass.c | 10 ++ boot/bootmeth_distro.c | 14 ++

[PATCH 15/19] bootstd: Detect empty bootmeth ordering

2022-07-20 Thread Simon Glass
If the ordering produces no entries, this is an error. Report it, so that the caller doesn't try to continue with a NULL bootmeth. This fixes a crash in the bootflow_iter test when running with the sandbox 'default' device tree, instead of the required 'test' one. Signed-off-by: Simon Glass ---

[PATCH 11/19] dm: core: Add support for writing u32 with ofnode

2022-07-20 Thread Simon Glass
Add a new function to write an integer to an ofnode (live tree or flat tree). Signed-off-by: Simon Glass --- drivers/core/ofnode.c | 15 +++ include/dm/ofnode.h | 10 ++ test/dm/ofnode.c | 16 3 files changed, 41 insertions(+) diff --git a/drivers/co

[PATCH 12/19] event: Add an event for device tree fixups

2022-07-20 Thread Simon Glass
At present there is a confusing array of functions that handle the device tree fix-ups needed for booting an OS. We should be able to switch to using events to clean this up. As a first step, create a new event type and call it from the standard place. Note that this event uses the ofnode interfa

[PATCH 13/19] read: Support sandbox

2022-07-20 Thread Simon Glass
Update the 'read' command to work correctly with sandbox. Signed-off-by: Simon Glass --- cmd/read.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/read.c b/cmd/read.c index 99c7e3854e1..fecfadaa1fa 100644 --- a/cmd/read.c +++ b/cmd/read.c @@ -10,6 +10,7 @@ #include

[PATCH 10/19] ofnode: Allow writing to a flat tree

2022-07-20 Thread Simon Glass
In generally it is not permitted to implement an ofnode function only for flat tree or live tree. Both must be supported. Also the code for live tree access should be in of_access.c rather than ofnode.c which is really just for holding the API-conversion code. Update ofnode_write_prop() accordingl

[PATCH 09/19] dm: core: Prepare for updating the device tree with ofnode

2022-07-20 Thread Simon Glass
Add some documentation and a new flag so that we can safely enabled using the ofnode interface to write to the device tree. Signed-off-by: Simon Glass --- doc/develop/driver-model/livetree.rst | 26 ++ include/test/test.h | 2 ++ test/test-main.c

[PATCH 08/19] dm: core: Tidy up ofnode-writing test

2022-07-20 Thread Simon Glass
Update this test to use the livetree flag so that special check can be avoided. Also drop a few blank lines. Signed-off-by: Simon Glass --- test/dm/ofnode.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/test/dm/ofnode.c b/test/dm/ofnode.c index 0aeaaeb7f8c..ce9

[PATCH 06/19] dm: core: Move ofnode-writing test to ofnode

2022-07-20 Thread Simon Glass
This fits better in the ofnode tests, so move it. Signed-off-by: Simon Glass --- test/dm/ofnode.c | 56 ++ test/dm/test-fdt.c | 53 --- 2 files changed, 56 insertions(+), 53 deletions(-) diff --git a/test/dm/

[PATCH 07/19] dm: core: Swap parameters of ofnode_write_prop()

2022-07-20 Thread Simon Glass
It is normal for the length to come after the value in libfdt. Follow this same convention with ofnode. Signed-off-by: Simon Glass --- drivers/core/ofnode.c | 6 +++--- include/dm/ofnode.h | 6 +++--- test/dm/ofnode.c | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git

[PATCH 05/19] ofnode: Introduce support for multiple trees

2022-07-20 Thread Simon Glass
At present ofnode only works with a single device tree, for the most part. This is the control FDT used by U-Boot. When booting an OS we may obtain a different device tree and want to modify it. Add some initial support for this into the ofnode API. Note that we don't permit aliases in this other

[PATCH 04/19] ofnode: Add a note about how livetree updates work

2022-07-20 Thread Simon Glass
The unflattening algorithm results in a single block of memory being allocated for the whole tree. When writing new properties, these are allocated new memory outside that block. When the block is freed, the allocated properties remain. Document how this works and the potential memory leak, as wel

[PATCH 02/19] video: Rename structs and functions to avoid VBE

2022-07-20 Thread Simon Glass
Rename these to VESA, itself an abbreviation, to avoid a conflict with Verified Boot for Embedded. Rename this to avoid referencing VBE. Signed-off-by: Simon Glass --- arch/x86/lib/bios.c | 10 +- arch/x86/lib/fsp/fsp_graphics.c | 2 +- drivers/bios_emulator/atibios.c | 16

[PATCH 03/19] dm: core: Split out the declaration of ofnode

2022-07-20 Thread Simon Glass
This is used by a lot of files, but ofnode.h needs to include a lot of header files. This can create dependency cycles, particularly with global_data.h which must include various declarations. Split the core delcarations into a separate file to fix this. Signed-off-by: Simon Glass --- include/

[PATCH 01/19] video: Renname vbe.h to vesa.h

2022-07-20 Thread Simon Glass
We want to use VBE to mean Verfiied Boot for Embedded in U-Boot. Rename the existing VBE (Vesa BIOS extensions) to allow this. Signed-off-by: Simon Glass --- arch/x86/lib/bios.c | 2 +- arch/x86/lib/coreboot_table.c | 2 +- arch/x86/lib/fsp/fsp_graphics.c | 2 +- cmd/elf.c

[PATCH 00/19] vbe: Verified Boot for Embedded initial support

2022-07-20 Thread Simon Glass
This adds the concept of a VBE method to U-Boot, along with an implementation of the 'VBE simple' method, basically a simple way of updating firmware in MMC from userspace and monitoring it from U-Boot. VBE simple is implemented in fwupd. U-Boot's role is to set up the device tree with the require

[PATCH v3 01/13] mtd: nand: Get rid of busw parameter

2022-07-20 Thread Dario Binacchi
From: Michael Trimarchi Upstream linux commit 29a198a1592d83. Auto-detection functions are passed a busw parameter to retrieve the actual NAND bus width and eventually set the correct value in chip->options. Rework the nand_get_flash_type() function to get rid of this extra parameter and let det

Re: [PATCH 2/5] firmware: zynqmp: Load config overlay for core0 to pmufw

2022-07-20 Thread Stefan Herbrechtsmeier
Hi, Am 19.07.22 um 06:44 schrieb Soma, Ashok Reddy: Hi Stefan, -Original Message- From: Stefan Herbrechtsmeier Sent: Saturday, July 16, 2022 4:48 PM To: Simek, Michal ; Ashok Reddy Soma ; u-boot@lists.denx.de Cc: adrian.fiergol...@fastree3d.com; jh80.ch...@samsung.com; s...@svenpeter

[PATCH v3 4/4] spi: spi-mem: Allow address 0 for SPI mem operations

2022-07-20 Thread Xavier Drudis Ferran
Trying to boot my Rock Pi 4B from its XTX SPI NOR Flash failed when my custom compiled TF-A had a load address of 0. The same TF-A booted correctly from MMC. Add a local variable to spi_mem_exec_op() to determine operation direction, instead of testing rx_buf or tx_buf for null value, so that a b

[PATCH v3 3/4] spi-nor: Adapt soft reset to XTX25F32B in Rock Pi 4 rev 1.4

2022-07-20 Thread Xavier Drudis Ferran
XTX25F32B does not use octal mode and accepts soft reset, despite its SFDP tables. Soft reset at U-Boot exit seems to be required to write to /dev/mtd0 from flashrom in linux. Soft reset at U-Boot start seems to help booting from SPI (at least with the dts properties I'm using). The first soft res

[PATCH v3 2/4] rockchip: rk-3399: rock-pi-4: dts: Add XTX SPI NOR 4MiB Flash chip in Rock Pi 4 boards from rev 1.4 on.

2022-07-20 Thread Xavier Drudis Ferran
Configure Rock Pi 4 to boot from SPI NOR Flash. Based on flash chip, board documentation and tests, this is the fastest I could use it. This seems to be the minimum necessary configuration for Rock Pi 4 to be able to boot from SPI NOR Flash. With the next patch, it works to sf probe 1:0, sf read

[PATCH v3 1/4] mtd: spi: spi-nor: Add Rock pi 4b new flash chip

2022-07-20 Thread Xavier Drudis Ferran
Radxa Rock Pi 4B from version 1.4 on carries a 4MiB XTX Technology Inc 25F32B SPI NOR Flash. (previous versions had pads where users could solder different chips). Add its parameters to spi-nor-ids.c so U-Boot can discover it and (after further changes) we can boot from SPI. Note that the Flash

[PATCH v3 0/4] mtd: spi: spi-nor: rk3399: rock-pi-4: u-boot/next Support SPI NOR Flash in Rock Pi 4 (XTX xt25f32b)

2022-07-20 Thread Xavier Drudis Ferran
The Radxa Rock Pi 4 board is sold from revision 1.4 with a soldered 4Mb SPI NOR Flash. This series allows to use it from U-Boot and boot from it. This series applies to u-boot/master. Changes since v2: - rebased on master - droped 5th path, and enabled CONFIG_SPL_DM_SEQ_ALIAS instead

[PATCH v3 0/4] mtd: spi: spi-nor: rk3399: rock-pi-4: u-boot/next Support SPI NOR Flash in Rock Pi 4 (XTX xt25f32b)

2022-07-20 Thread Xavier Drudis Ferran
The Radxa Rock Pi 4 board is sold from revision 1.4 with a soldered 4Mb SPI NOR Flash. This series allows to use it from U-Boot and boot from it. This series applies to u-boot/master. Changes since v2: - rebased on master - droped 5th path, and enabled CONFIG_SPL_DM_SEQ_ALIAS instead

Re: [PATCH v4] patman: By default don't pass "--no-tree" to checkpatch for linux

2022-07-20 Thread Simon Glass
On Tue, 19 Jul 2022 at 16:00, Douglas Anderson wrote: > > When you pass "--no-tree" to checkpatch it disables some extra checks > that are important for Linux. Specifically I want checks like: > > warning: DT compatible string "boogie,woogie" appears un-documented > check ./Documentation/devic

Re: binman issue on ubuntu 20.04

2022-07-20 Thread Simon Glass
Hi Belisko, On Tue, 19 Jul 2022 at 03:21, Belisko Marek wrote: > > Hi, > > I'm trying to compile an older u-boot (2017.03) with Ubuntu 20.04. > Machine is sunxi. COmpilation went fine but when binman assembles > u-boot-sunxi-with-spl.bin it stuck somewhere. I've enabled python > traces and it loo

Re: [PATCH 10/19] buildman: Incorporate the genboardscfg.py tool

2022-07-20 Thread Simon Glass
Hi Tom, On Mon, 18 Jul 2022 at 06:11, Tom Rini wrote: > > On Thu, Jul 14, 2022 at 04:21:57AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 13 Jul 2022 at 12:21, Tom Rini wrote: > > > > > > On Wed, Jul 13, 2022 at 09:28:06AM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Tue

Re: [RFC PATCH 7/8] binman: add support for skipping file concatenation for mkimage

2022-07-20 Thread Simon Glass
Hi Quentin, On Mon, 18 Jul 2022 at 03:39, Quentin Schulz wrote: > > Hi Simon, > > On 7/16/22 13:58, Simon Glass wrote: > > On Fri, 15 Jul 2022 at 09:37, Quentin Schulz wrote: > >> > >> From: Quentin Schulz > >> > >> Some image types handled by mkimage require the datafiles to be passed > >> ind

Re: [PATCH] console: Add option to keep it silent until env is loaded

2022-07-20 Thread Simon Glass
Hi Harald, On Mon, 18 Jul 2022 at 09:08, Harald Seiler wrote: > > Hi Simon, > > On Wed, 2022-07-13 at 09:28 -0600, Simon Glass wrote: > > Hi Harald, > > > > On Tue, 12 Jul 2022 at 05:58, Harald Seiler wrote: > > > > > > Hi Simon, > > > > > > On Tue, 2022-07-12 at 04:58 -0600, Simon Glass wrote:

Re: [PATCH] Provide more details of exactly how configuration signatures are calculated

2022-07-20 Thread Simon Glass
Hi Martin, On Wed, 20 Jul 2022 at 02:46, Martin Bonner wrote: > > OK. I've just realized there is an important warning missing from > this (if you verify a configuration signature outside u-boot, you > _must_ verify the hashes for the kernel, fdt, and ramdisk images match > too). What is the pr

Re: Reading GPIOs with DM_GPIO before device tree is loaded

2022-07-20 Thread Simon Glass
Hi Hugo, On Wed, 20 Jul 2022 at 04:54, Hugo Villeneuve wrote: > > Hi, > in board_early_init_f(), i call a custom function get_som_revision() to read > some GPIOs that are used to determine the SOM revision. This function > basically sets the iomux, and then uses > gpio_request/gpio_direction_i

[PATCH v3 3/3] cmd: avb: remove mmc naming from generic block code

2022-07-20 Thread Andrii Chepurnyi
From: Andrii Chepurnyi From: Andrii Chepurnyi Part of avb code uses mmc notation, but in fact it uses generic block functions. Signed-off-by: Andrii Chepurnyi --- common/avb_verify.c | 52 ++-- include/avb_verify.h | 13 +-- 2 files changed, 3

[PATCH v3 2/3] cmd: avb: introduce optional interface parameter to avb init

2022-07-20 Thread Andrii Chepurnyi
From: Andrii Chepurnyi From: Andrii Chepurnyi Originally, avb implementation relay on mmc block devices. The interface parameter will give the ability to use avb with various block devices by choosing the exact interface type. By default (if no interface parameter is provided) mmc interface wil

[PATCH v2] Improve Windows build documentation

2022-07-20 Thread Martin Bonner
I have recently build the u-boot tools on Windows and ran into difficulties. This patch to the documentation would have avoided those difficulties. Contentious points: * While I have run the document through a rst previewer, I haven't run the full test suite. I know, I know, everyone thinks _th

[PATCH v3 1/3] cmd: bcb: introduce optional interface parameter to bcb

2022-07-20 Thread Andrii Chepurnyi
From: Andrii Chepurnyi From: Andrii Chepurnyi Originally, bcb implementation relay on mmc block devices. The interface parameter will give the ability to use bcb with various block devices by choosing the exact interface type. By default (if no interface parameter is provided) mmc interface wil

[PATCH v3 0/3] Support various block interfaces for avb and bcb

2022-07-20 Thread Andrii Chepurnyi
Hello. Originally bcb and avb utilities implementation relay on mmc block devices. This patch series adds an optional interface parameter to those utilities, which gives the ability to use bcb and avb on various block devices. The patch set was tested using xenguest_arm64 based board and pvblock i

Error: unrecognized opcode on riscv64

2022-07-20 Thread Alex
Attempting to compile the latest master code for qemu (virt) and the unmatched shows the following error: arch/riscv/cpu/cpu.c: Assembler messages: arch/riscv/cpu/cpu.c:96: Error: unrecognized opcode `csrs sstatus,a5' arch/riscv/cpu/cpu.c:97: Error: unrecognized opcode `csrw 0x003,0' Any

Re: [PATCH v5 19/23] FWU: synquacer: Add FWU Multi bank update support for DeveloperBox

2022-07-20 Thread Jassi Brar
On Wed, Jul 20, 2022 at 2:54 AM Ilias Apalodimas wrote: > > Hi Jassi, > > On Tue, 19 Jul 2022 at 18:27, Jassi Brar wrote: > > > > On Mon, 18 Jul 2022 at 16:00, Tom Rini wrote: > > > On Mon, Jul 18, 2022 at 10:31:56AM -0500, Jassi Brar wrote: > > > > > > > > > > > > > > > > > > > > + > > > > > >

Re: [RESEND v9 7/9] bootmenu: add removable media entries

2022-07-20 Thread Ilias Apalodimas
Hi Kojima-san [...] > + > + /* add non-existent boot option */ > + for (i = 0; i < count; i++) { > + u32 boot_index; > + u16 var_name[9]; > + > + if (!opt[i].exist) { > + ret = eficonfig_get_unused_bootoption(var_name, >

[PATCH 40/53] imx: imx93_evk: Add basic board support

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add basic board codes and defconfig for i.MX93 11x11 EVK board. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/dts/Makefile |3 + arch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 157 +++ arch/arm/dts/imx93-11x11-evk.dts | 527 +++

[PATCH 53/53] imx: imx8mm-icore: migrate to use BINMAN

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Use BINMAN instead of imx specific packing method. Signed-off-by: Peng Fan Reviewed-by: Alper Nebi Yasak --- arch/arm/mach-imx/imx8m/Kconfig | 1 + arch/arm/mach-imx/imx8m/imximage-8mm-lpddr4.cfg | 10 +- configs/imx8mm-icore-mx8mm-ctouch2_defconfig

[PATCH 08/53] imx: add USB2_BOOT type

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add USB2_BOOT type for i.MX8ULP and i.MX9 Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/boot_mode.h | 1 + arch/arm/mach-imx/imx_romapi.c| 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/mach-imx/boot_mode.h b/arc

[PATCH 13/53] imx: imx9: Add CCM and clock API support

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add clock API to support CCM root clock and LPCG setting Set the CCM AUTHEN register to allow non-secure world to set root clock and lpcg. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/ccm_regs.h | 266 arch/arm/include/asm/arch-imx9/c

[PATCH 52/53] arm: dts: imx8m: shrink ddr firmware size to actual file size

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan After we switch to use BINMAN_SYMBOLS, there is no need to pad the file size to 0x8000 and 0x4000. After we use BINMAN_SYMBOLS, the u-boot-spl-ddr.bin shrink about 36KB with i.MX8MP-EVK. Tested-by: Tim Harvey #imx8m[m,n,p]-venice Signed-off-by: Peng Fan Reviewed-by: Alper Nebi Y

[PATCH 18/53] imx: imx9: support romapi

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan i.MX9 shares same ROM API with i.MX8ULP, so make the i.MX8ULP the function prototype common and usable by i.MX9. Also include mmc env functions that use ROM API. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx8ulp/sys_proto.h | 4 -- arch/arm/include/asm/mach-imx/sys

[PATCH 46/53] net: eqos: add function to get phy node and address

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Since new atheros PHY driver needs to access its PHY node through phy device, we have to assign the phy node in ethernet controller driver. Otherwise the PHY driver will fail to get some nodes and properties. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos

[PATCH 49/53] tools: image: support i.MX93

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Support build i.MX93 container image with mkimage Signed-off-by: Peng Fan --- include/imx8image.h | 15 +++-- tools/imx8image.c | 79 + 2 files changed, 78 insertions(+), 16 deletions(-) diff --git a/include/imx8image.h b/includ

[PATCH 44/53] net: dwc_eth_qos: public some functions

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Move macros and structures to header file and make some functions public, so that could used by other files, this is to prepare split platform specific config to one file. Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 280 +- drivers

[PATCH 41/53] imx: imx93_evk: Set ARM clock to 1.7Ghz

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Set ARM clock to OD frequency 1.7Ghz, since we have set PMIC VDD_SOC to Overdrive voltage 0.9V Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/clock.h | 4 +++- arch/arm/mach-imx/imx9/clock.c | 9 + board/freescale/imx93_evk/spl.c

[PATCH 43/53] net: dwc_eth_qos: fix build break when CLK not enabled

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan When CONFIG_CLK is not enabled, there will be buil break: "error: ‘eqos’ undeclared (first use in this function)" Take eqos definition out the CONFIG_CLK ifdef. Signed-off-by: Peng Fan --- drivers/net/dwc_eth_qos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[PATCH 35/53] imx: imx9: Support multiple env storages at runtime

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Select env storages according to boot device at runtime Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/soc.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/arch/arm/mach-imx/imx9/soc.c b/arch/arm/mach-imx/imx9/soc.c

[PATCH 51/53] ddr: imx8m: helper: load ddr firmware according to binman symbols

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan By reading binman symbols, we no need hard coded IMEM_LEN/DMEM_LEN after we update the binman dtsi to drop 0x8000/0x4000 length for the firmware. And that could save binary size for many KBs. Tested-by: Tim Harvey #imx8m[m,n,p]-venice Signed-off-by: Peng Fan Reviewed-by: Alper

[PATCH 48/53] board: freescale: imx93_evk: support ethernet

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add ethernet support Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 7 + board/freescale/imx93_evk/imx93_evk.c | 32 +++ configs/imx93_11x11_evk_defconfig | 9 +++ 3 files changed, 48 insertions(+) diff --git a/

[PATCH 38/53] ddr: imx9: enable Performance monitor counter

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Add Kconfig for enabling reference events counter in DDRC performance monitor by default Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/ddr/imx/imx9/Kconfig| 6 ++ drivers/ddr/imx/imx9/ddr_init.c | 4 2 files changed, 10 insertions(+) diff --git a/drivers/d

[PATCH 39/53] arm: dts: Add i.MX93 SoC DTSi file

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add the DTSi file and DT header files for i.MX93 SoC Signed-off-by: Ye Li Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- arch/arm/dts/imx93.dtsi | 688 include/dt-bindings/clock/imx93-clock.h | 203 +++ include/dt-bindings/pow

[PATCH 45/53] net: dwc_eth_qos: move i.MX code out

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Move i.MX code to a standalone file to make it easy for adding new platform support Reviewed-by: Ramon Fried Signed-off-by: Peng Fan --- drivers/net/Makefile | 1 + drivers/net/dwc_eth_qos.c | 92 -- drivers/net/dwc_eth_qos.h | 2 +

[PATCH 34/53] imx: imx9: Support booting m33 from Acore

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add bootaux command to support on-demand booting M33 from u-boot. It kicks M33 via ATF by "bootaux 0x201e 0" Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/Makefile | 4 + arch/arm/mach-imx/imx9/imx_bootaux.c | 133 +++ arch/arm/mach-imx/im

[PATCH 37/53] ddr: imx: Add i.MX9 DDR controller driver

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Since i.MX9 uses same DDR PHY with i.MX8M, split the DDRPHY to a common directory under imx, then use dedicated ddr controller driver for each iMX9 and iMX8M. The DDRPHY registers are space compressed, so it needs conversion to access the DDRPHY address. Introduce a common PHY addres

[PATCH 36/53] imx: imx9: clock: Add DDR clock support

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Implement the DDR driver clock interfaces for set DDR rate and bypass DDR PLL Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/clock.h | 3 ++ arch/arm/mach-imx/imx9/clock.c | 41 ++ 2 files changed, 44 insertions(+)

[PATCH 33/53] imx: imx9: Add M33 release prepare function

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan To support on-demand booting M33 image from A core. SPL needs to follow M33 kick up sequence to release M33 firstly, then set M33 CPUWAIT signal. ATF will clear CPUWAIT to kick M33 to run. The prepare function also works around the M33 TCM ECC issue by clean the TCM. Also enable s

[PATCH 28/53] misc: imx8ulp: move fuse.c from imx8ulp to sentinel

2022-07-20 Thread Peng Fan (OSS)
From: Alice Guo The i.MX93 platform wants to reuse drivers/misc/imx8ulp/fuse.c. Moving fuse.c from the folder imx8ulp to sentinel makes it can be used by other platforms. Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- drivers/misc/Makefile | 2 -- drivers/misc/imx8ul

[PATCH 25/53] imx: imx9: Add AHAB boot support

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Add AHAB driver for iMX9 to do authentication by calling sentinel API Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/mach-imx/imx9/Kconfig | 5 + arch/arm/mach-imx/imx9/Makefile | 1 + arch/arm/mach-imx/imx9/ahab.c | 346 3 files

[PATCH 22/53] misc: S400_API: New API for FW status and chip info

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add new API to get sentinel FW status and SoC chip info Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 13 + drivers/misc/sentinel/s400_api.c | 61 2 files changed, 74 insertions(+) diff --git a/

[PATCH 27/53] misc: S400_API: Rename imx8ulp_s400_msg to sentinel_msg

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Use more generic name for S40x msg structure Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/include/asm/mach-imx/s400_api.h | 2 +- arch/arm/mach-imx/imx8ulp/rdc.c | 2 +- arch/arm/mach-imx/imx9/trdc.c| 2 +- drivers/misc/sentinel/s400_api.c

[PATCH 32/53] imx: imx9: Add MIX power init

2022-07-20 Thread Peng Fan (OSS)
From: Peng Fan Add power init of MEDIAMIX, MLMIX and DDRMIX. And clear isolation of MIPI DSI/CSI, USBPHY after the power up. SPL should call the power init in its boot sequence before accessing above three MIX and USB. Signed-off-by: Peng Fan --- arch/arm/include/asm/arch-imx9/imx-regs.h | 1

[PATCH 31/53] imx: imx9: Add gpio registers structure

2022-07-20 Thread Peng Fan (OSS)
From: Ye Li Add GPIO registers structure for iMX93, so that we can enable lpgpio driver Signed-off-by: Ye Li Signed-off-by: Peng Fan --- arch/arm/Kconfig | 1 + arch/arm/include/asm/arch-imx9/gpio.h | 20 2 files changed, 21 insertions(+) diff --git

[PATCH 30/53] misc: fuse: update the code for accessing fuse of i.MX93

2022-07-20 Thread Peng Fan (OSS)
From: Alice Guo Sentinel have read access of OTP shadow register 0-511, and fsb have read access of shadow 0-51/312-511. Reviewed-by: Ye Li Signed-off-by: Alice Guo Signed-off-by: Peng Fan --- drivers/misc/sentinel/fuse.c | 86 +++- 1 file changed, 74 insertio

  1   2   >