[PATCH 1/2] usb: gadget: Add a config option to set the SPL product ID

2022-04-19 Thread Alban Bedel
It might be desirable to have a different product ID for the SPL gadget. Several boards use dubious hack to achieve this like adding an hardcoded offset to the configurable main product ID. Add a new config option to set the product ID to use in the SPL and use it in the ethernet and download

[PATCH] usb: dwc3-generic: Fix the iMX8MQ support

2022-04-19 Thread Alban Bedel
The binding of iMX8MQ USB controller doesn't use child nodes like the other devices supported in this driver. To support it split the child nodes parsing to its own function and add a field to the platform data to indicate that we should just use the top node. Signed-off-by: Alban Bedel ---

[PATCH 2/2] mach-imx: Use CONFIG_SPL_USB_GADGET_PRODUCT_NUM

2022-04-19 Thread Alban Bedel
Remove the hardcoded USB product ID offset for the SPL as it doesn't work anymore for the product ID needed for iMX8 with current flashing tools. Update all the defconfig of iMX boards that have CONFIG_SPL_USB_GADGET enabled to still return the same product ID. Signed-off-by: Alban Bedel ---

[PATCH] devres: Use the correct devres implementation in SPL builds

2022-04-19 Thread Alban Bedel
When CONFIG_DEVRES is set, but CONFIG_SPL_DM is not set devres code is not included in the SPL. But dm/devres.h only check for CONFIG_DEVRES to select if the full implementation should be used. So if any devres function is used in the SPL with this config the link fails. Fix the ifdef in the

[PATCH] imx: spl: Default to SPD when booting from USB serial download

2022-04-19 Thread Alban Bedel
On the iMX platforms the USB boot is in fact boot from USB serial download and not from a USB mass storage. So returning BOOT_DEVICE_USB typically doesn't make sense as USB SPD is then used to continue booting, for this we need to return BOOT_DEVICE_BOARD. Still return BOOT_DEVICE_USB when USB

[BUG] keyboard doesn't work on Olimex teres-I notebook

2022-04-19 Thread Milan P . Stanić
[ Please CC to me, I'm not subscribed to mailing list ] Hi, On u-boot release 2022.04 keyboard doesn't work in u-boot on Olimex TERES-I notebook. With git bisect I found that commit 35ae126c16a6a9149edc6638faaa247f67b8a400 is introduced this. Reverting this commit solved problem and in my test

Re: [PATCH] Fix spelling of "followed" in kwboot.1

2022-04-19 Thread Marek Behún
On Sat, 16 Apr 2022 15:42:00 -0700 Vagrant Cascadian wrote: > Signed-off-by: Vagrant Cascadian Hello Vagrant, The commit title should be prefixed with tools: kwboot: The commit message shouldn't be empty. If you don't have anything to say, just copy commit title. Marek

Re: [PATCH 07/10] dm: core: Allow devres to be disabled in SPL

2022-04-19 Thread Tom Rini
On Sun, Mar 27, 2022 at 02:26:19PM -0600, Simon Glass wrote: > At present if devres is enabled in U-Boot proper it is enabled in SPL. > We don't normally want it there, so disable it. > > Signed-off-by: Simon Glass > Tested-by: Angus Ainslie Applied to u-boot/master, thanks! -- Tom

Re: [PATCH 02/10] sandbox: Correct loss of early output in SPL

2022-04-19 Thread Tom Rini
On Sun, Mar 27, 2022 at 02:26:14PM -0600, Simon Glass wrote: > At present fputc() is used before the console is available, then write() > is used. These are not compatible. Since fputc() buffers internally it is > better to use the write(), so that a partial line is immediately > displayed. > >

Re: [PATCH 04/10] Makefile: Avoid resetting link flags in config.mk

2022-04-19 Thread Tom Rini
On Sun, Mar 27, 2022 at 02:26:16PM -0600, Simon Glass wrote: > This makes it impossible to change them elsewhere. The default value is > 'empty' anyway, so just drop it. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 03/10] Makefile: Drop a stale comment about linking

2022-04-19 Thread Tom Rini
On Sun, Mar 27, 2022 at 02:26:15PM -0600, Simon Glass wrote: > The bug mentioned here is fixed, so drop the comment. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 05/10] sandbox: Allow link flags to be given

2022-04-19 Thread Tom Rini
On Sun, Mar 27, 2022 at 02:26:17PM -0600, Simon Glass wrote: > At present the link flags are not used for sandbox. Update the command > line to use them. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 06/10] sandbox: Align linker lists to a 32-byte boundary

2022-04-19 Thread Tom Rini
On Sun, Mar 27, 2022 at 02:26:18PM -0600, Simon Glass wrote: > Use this larger boundary to ensure that linker lists at least start on the > maximum possible alignment boundary. See also the CONFIG_LINKER_LIST_ALIGN > setting, but that is host-arch-specific, so it seems better to use the > largest

[PATCH] i2c: ihs: intel: Fix typo in comments (actual)

2022-04-19 Thread Michal Simek
s/actucal/actual/g Signed-off-by: Michal Simek --- drivers/i2c/ihs_i2c.c | 2 +- drivers/i2c/intel_i2c.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/ihs_i2c.c b/drivers/i2c/ihs_i2c.c index ecca90628e79..d715714638ff 100644 --- a/drivers/i2c/ihs_i2c.c

Re: [PATCH v2] pstore: Support already existing reserved-memory node

2022-04-19 Thread Detlev Casanova
Hi Daniel, The patch only checks the existence of the reserved-memory node. I guess that before, adding the reserved-memory node failed and so nothing else was happening. Now, the node is found and then, it adds the ramoops subnode to it, making it double because it is already there in your

[PATCH 1/2] usb: dwc3: core: Fix warnings when building without driver model

2022-04-19 Thread Alban Bedel
Commit f150b8d28b4e ("usb: dwc3: Enable undefined length INCR burst type") introduced code that assign the content of dwc->dev to a variable. But in u-boot the type of this field changes if building with driver model enabled or not. As this variable is then only used once just remove it and use

[PATCH 1/2] usb: dwc3: core: fix warnings when building without driver model

2022-04-19 Thread Alban Bedel
Commit f150b8d28b4e ("usb: dwc3: Enable undefined length INCR burst type") introduced code that assign the content of dwc->dev to a variable. But in u-boot the type of this field changes if building with driver model enabled or not. As this variable is then only used once just remove it and use

Re: [PATCH 3/7] disk: define nullified functions for !PARTITIONS

2022-04-19 Thread Tom Rini
On Tue, Apr 19, 2022 at 01:11:23PM +0900, AKASHI Takahiro wrote: > On Mon, Apr 18, 2022 at 11:09:38PM -0400, Tom Rini wrote: > > On Tue, Apr 19, 2022 at 10:01:54AM +0900, AKASHI Takahiro wrote: > > > > > Some defconfig enables CMD_PART even if none of any partition table > > > types

Re: [PATCH] net: marvell: mvgbe: Set PHY page 0 before phy_connect

2022-04-19 Thread Stefan Roese
Hi Tony, On 4/12/22 22:18, Tony Dinh wrote: For most Kirkwood boards, the PHY page is already set to page 0 (in register 22) before phy_connect is invoked. But some board like the Zyxel NSA310S (which uses the network chip MV88E1318S), the PHY page is not set to page 0. There seems to be some

[PATCH] Convert CONFIG_SYS_MEM_TOP_HIDE to Kconfig

2022-04-19 Thread Michal Simek
This converts CONFIG_SYS_MEM_TOP_HIDE to Kconfig to be able to enable it also for other boards. Help text description is taken from comment in common/board_f.c. It also slightly change behavior because every board defines it as 0x0 now that's why code is enabled by default but compiler should

Re: [PATCH 08/10] dm: core: Deal with a wrinkle with linker lists

2022-04-19 Thread Tom Rini
On Sun, Mar 27, 2022 at 02:26:20PM -0600, Simon Glass wrote: > When every member of a linker list is aligned by the compiler, we can no > longer rely on the sizeof of the struct to determine the number of > entries. > > For example, if the struct size is 0x90 but every entry is aligned to 0xa0 >

Re: [PATCH 1/2] usb: dwc3: core: Fix warnings when building without driver model

2022-04-19 Thread Michael Walle
Hi, +#if CONFIG_IS_ENABLED(DM_USB) static void dwc3_core_stop(struct dwc3 *dwc) will __maybe_unused work? -michael

Pull request: u-boot-rockchip-20220418

2022-04-19 Thread Kever Yang
Hi Tom, Please pull the rockchip updates: - Add rk3066 SoC support; - Add rk3066 MK808 board support; - dts sync from kernel for rk322x, rk3288; - some other board level config update; Gitlab ci: https://source.denx.de/u-boot/custodians/u-boot-rockchip/-/pipelines/11773 Thanks, - Kever The

[PATCH v2 0/2] Support various block interfaces for avb and bcb

2022-04-19 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

[PATCH v2 1/2] cmd: bcb: introduce optional interface parameter to bcb

2022-04-19 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

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

2022-04-19 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

[PATCH 2/2] imx: Fix build error

2022-04-19 Thread Gaurav Jain
From: Ye Li Fix wrong environment.h and remove DECLARE_GLOBAL_DATA_PTR Fixes: 30e39ac7c9 (imx: imx7 Support for Manufacturing Protection) Signed-off-by: Ye Li Reviewed-by: Gaurav Jain --- arch/arm/mach-imx/cmd_mfgprot.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH 1/2] imx: Update FSL_MFGPROT config for iMX8M

2022-04-19 Thread Gaurav Jain
From: Ye Li Update the Kconfig and Makefile to allow build for iMX8M and restrict the build only in u-boot. Signed-off-by: Ye Li Reviewed-by: Gaurav Jain --- arch/arm/mach-imx/Kconfig | 2 +- arch/arm/mach-imx/Makefile | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git

Re: [PATCH] usb: dwc3-generic: Fix the iMX8MQ support

2022-04-19 Thread Angus Ainslie
Hi Alban, On 2022-04-19 01:07, Alban Bedel wrote: The binding of iMX8MQ USB controller doesn't use child nodes like the other devices supported in this driver. To support it split the child nodes parsing to its own function and add a field to the platform data to indicate that we should just

Re: [PATCH v2] pstore: Support already existing reserved-memory node

2022-04-19 Thread Detlev Casanova
Hey Daniel, I see that the node is called ramoops@0x42ff. We usually don't set the 0x in device tree nodes, and that's why the fdt_add_subnode function doesn't see it and add ramoops@42ff (it just compares the text). For Linux, both nodes are the same and it complains. I think the

Re: [PATCH v2] pstore: Support already existing reserved-memory node

2022-04-19 Thread Detlev Casanova
Hi Daniel, On Tuesday, April 19, 2022 12:14:07 P.M. EDT Daniel Golle wrote: > Hi Detlev, > > On Tue, Apr 19, 2022 at 09:58:00AM -0400, Detlev Casanova wrote: > > Hey Daniel, > > > > I see that the node is called ramoops@0x42ff. We usually don't set the > > 0x in device tree nodes, and

[PATCH] include: configs: am**x/j721e/j721s2_evm.h: Move the stack pointer init address in arm64

2022-04-19 Thread Aswath Govindraju
Currently, in case of arm64 bootloader and U-Boot the stack pointer is initialized at an offset of NON_SECURE_MSRAM_SIZE from arm64 SPL's text base address. After jumping to arm64, execution is done out of DDR. Therefore, having an offset corresponding to the size of MSRAM does not have any

[PATCH] i.MX8 crypto/fsl: Enable fsl CAAM rng driver

2022-04-19 Thread Gaurav Jain
rng driver enabled to read random number using caam. Signed-off-by: Gaurav Jain --- drivers/crypto/fsl/jr.c | 8 +++- drivers/crypto/fsl/rng.c | 8 +++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c index

Re: [PATCH] Convert CONFIG_SYS_MEM_TOP_HIDE to Kconfig

2022-04-19 Thread Tom Rini
On Tue, Apr 19, 2022 at 02:01:02PM +0200, Michal Simek wrote: > This converts CONFIG_SYS_MEM_TOP_HIDE to Kconfig to be able to enable it > also for other boards. > Help text description is taken from comment in common/board_f.c. > It also slightly change behavior because every board defines it as

Re: [PATCH] Convert CONFIG_SYS_MEM_TOP_HIDE to Kconfig

2022-04-19 Thread Michal Simek
On 4/19/22 16:25, Tom Rini wrote: On Tue, Apr 19, 2022 at 02:01:02PM +0200, Michal Simek wrote: This converts CONFIG_SYS_MEM_TOP_HIDE to Kconfig to be able to enable it also for other boards. Help text description is taken from comment in common/board_f.c. It also slightly change behavior

Re: [PATCH v2] pstore: Support already existing reserved-memory node

2022-04-19 Thread Daniel Golle
Hi Detlev, On Tue, Apr 19, 2022 at 09:58:00AM -0400, Detlev Casanova wrote: > Hey Daniel, > > I see that the node is called ramoops@0x42ff. We usually don't set the 0x > in device tree nodes, and that's why the fdt_add_subnode function doesn't see > it and add ramoops@42ff (it just

[PATCH v3] bosch: Add initial board support for ACC

2022-04-19 Thread Philip Oberfichtner
The Bosch ACC (Air Center Control) Board is based on the i.MX6D. Signed-off-by: Philip Oberfichtner --- Changes in v3: - Rename acc to bosch-acc - Sync device tree with Linux Changes in v2: - Adapt defconfig and device tree to new bootcount driver - Clean up CONFIG_ENV_FLAGS_LIST_STATIC - Fix

Re: Pull request: u-boot-rockchip-20220418

2022-04-19 Thread Tom Rini
On Tue, Apr 19, 2022 at 05:17:05PM +0800, Kever Yang wrote: > Hi Tom, > > Please pull the rockchip updates: > - Add rk3066 SoC support; > - Add rk3066 MK808 board support; > - dts sync from kernel for rk322x, rk3288; > - some other board level config update; > > Gitlab ci: >

[PATCH 1/1] dm: fix formatting of uclass dump

2022-04-19 Thread Heinrich Schuchardt
Insert an empty line after each uclass independent of whether it has devices or not. Signed-off-by: Heinrich Schuchardt --- drivers/core/dump.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/core/dump.c b/drivers/core/dump.c index f2f9cacc56..253e5bb4b5 100644 ---

Re: [PATCH] nds32: Remove the architecture

2022-04-19 Thread Tom Rini
On Wed, Apr 06, 2022 at 09:21:25AM -0400, Tom Rini wrote: > As removal of nds32 has been ack'd for the Linux kernel, remove support > here as well. > > Cc: Rick Chen > Signed-off-by: Tom Rini Ping? -- Tom signature.asc Description: PGP signature

Re: tools/image-host.c build error

2022-04-19 Thread Tom Rini
On Tue, Apr 19, 2022 at 09:02:14PM +0200, Mark Kettenis wrote: > Hello Philippe, > > commit 6e052d1cbafbedbfba73070da483111f2ae68e5a broke building u-boot > on OpenBSD: > > tools/image-host.c:1208:10: error: use of undeclared identifier 'ENODATA' > > The problem here is that ENODATA isn't in

Re: [PATCH 2/2] arm: layerscape: Disable erratum A009007 on LS1021A, LS1043A, and LS1046A

2022-04-19 Thread Sean Anderson
On 2/22/22 1:38 PM, Sean Anderson wrote: > This erratum is reported to cause problems on these processors [1-3]. > The problem is usually with the clocking, which is supposed to be > configured by the RCW [4]. However, if it is not set, or if the default > clocking is not correct, then this

[PATCH] usb: xhci-dwc3: Support role switch default role

2022-04-19 Thread Mark Kettenis
When the device tree indicates support for role switching through the "usb-role-switch" property, take the "role-switch-default-mode" property into account when deciding which role to put the controller into. This makes USB devices work on Apple M1 systems where the device tree may include a

[PATCH] arm: apple: Point stdout-path to framebuffer when keyboard present

2022-04-19 Thread Mark Kettenis
Unless you have a spare Apple Silicon machine, getting access to the serial port on Apple Silicon machines requires special hardware. Given that most machines come with a built-in screen the framebuffer is likely to be the most convenient output device for most users. While U-Boot will output to

tools/image-host.c build error

2022-04-19 Thread Mark Kettenis
Hello Philippe, commit 6e052d1cbafbedbfba73070da483111f2ae68e5a broke building u-boot on OpenBSD: tools/image-host.c:1208:10: error: use of undeclared identifier 'ENODATA' The problem here is that ENODATA isn't in POSIX proper (it is part of the obsolete XSI STREAMS option so typically absent

[PATCH] misc: Fix always compiling MISC even for SPL/TPL

2022-04-19 Thread Sean Anderson
We should only build support for misc if the appropriate SPL/TPL symbol is defined. Fixes: aaba703fd0 ("spl: misc: Allow misc drivers in SPL and TPL") Signed-off-by: Sean Anderson --- drivers/misc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] arm: apple: Don't clear framebuffer

2022-04-19 Thread Mark Kettenis
Enable CONFIG_NO_FB_CLEAR to preserve the Asahi logo. Since that logo is drawn on a black background also enable CONFIG_SYS_WHITE_ON_BLACK such that text printed by U-Boot is still visible. Signed-off-by: Mark Kettenis --- configs/apple_m1_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff

Re: Handle unaligned read at fs layer?

2022-04-19 Thread Tom Rini
On Sat, Apr 16, 2022 at 08:54:48AM +0800, Qu Wenruo wrote: > Hi U-boot fs guys, > > With my previous rework on U-boot btrfs, and my own btrfs-fuse project, > it turns out that, although U-boot implements its fs with a very fuse > like interface, there are still some quality-of-life features

Re: Falcon Mode Support For Uncompressed Kernel Images

2022-04-19 Thread Tom Rini
On Wed, Feb 02, 2022 at 04:53:11PM -0500, Nathan Barrett-Morrison wrote: > Hi Tom, > > I've attached version 2 of the patch. I believe this should adhere more > closely to your suggestions. > > Keep in mind, CONFIG_IS_ENABLED will not work for checking > CMD_BOOTI/CMD_BOOTZ in this case, as

Re: [PATCH] net: marvell: mvgbe: Set PHY page 0 before phy_connect

2022-04-19 Thread Tony Dinh
Hi Stefan, On Tue, Apr 19, 2022 at 3:29 AM Stefan Roese wrote: > > Hi Tony, > > On 4/12/22 22:18, Tony Dinh wrote: > > For most Kirkwood boards, the PHY page is already set to page 0 > > (in register 22) before phy_connect is invoked. But some board like > > the Zyxel NSA310S (which uses the

Re: Falcon Mode Support For Uncompressed Kernel Images

2022-04-19 Thread Nathan Barrett-Morrison
Hi Tom, Let's see if this works any better. Using a new mail client that is supposed to not modify whitespace: >From f1c34333f79996bd2927a60f4858c01699431cba Mon Sep 17 00:00:00 2001 From: Nathan Barrett Morrison Date: Wed, 2 Feb 2022 15:05:18 -0500 Subject: [PATCH v2] Add in the ability to

Re: [PATCH 1/1] drivers: add memory disk support

2022-04-19 Thread Tom Rini
On Tue, Apr 19, 2022 at 11:16:41PM +0200, Heinrich Schuchardt wrote: > In some scenarios it is desirable to package U-Boot with other files into > a single blob. This patch allows to embed a memory disk into the U-Boot > binary. This memory disk can be accessed like any other block > device as

drivers: mtd: spi: Use correct 4 byte mode enablement for ISSI SPI flash devices alongside spi-nor-tiny.c subsystem

2022-04-19 Thread Nathan Barrett-Morrison
Hi All, I noticed this was missing from the spi-nor-tiny.c subsystem while trying to use an ISSI SPI flash device with the U-Boot SPL. This patch will allow 4 byte addressing mode to be enabled with ISSI flash devices while inside the U-Boot SPL / using spi-nor-tiny.c. Sincerely, Nathan

Falcon Mode Support For Uncompressed Kernel Images

2022-04-19 Thread Nathan Barrett-Morrison
Hi Tom, While trying to bring up Falcon Mode boot on an ARM64 board, I discovered that there is no path which allows you to use an uncompressed kernel image (booti). I've added this path and attached the relevant patch. Sincerely, Nathan >From f1c34333f79996bd2927a60f4858c01699431cba Mon Sep

Re: [PATCH 1/5] patman: test_util: Fix printing results for failed tests

2022-04-19 Thread Simon Glass
On Sat, 2 Apr 2022 at 11:06, Alper Nebi Yasak wrote: > > When printing a python tool's test results, the entire list of failed > tests and their tracebacks are reprinted for every failed test. This > makes the test output quite unreadable. Fix the loop to print failures > and tracebacks one at a

Re: [PATCH 2/5] patman: test_util: Handle nonexistent tests while loading tests

2022-04-19 Thread Simon Glass
On Sat, 2 Apr 2022 at 11:06, Alper Nebi Yasak wrote: > > It's possible to request a specific test to run when trying to run a > python tool's tests. If we request a nonexistent test, the unittest > loaders generate a fake test that reports this as an error. However, we > get these fake tests even

Re: [PATCH 5/5] patman: test_util: Print test stdout/stderr within test summaries

2022-04-19 Thread Simon Glass
On Sat, 2 Apr 2022 at 11:06, Alper Nebi Yasak wrote: > > While running tests for a python tool, the tests' outputs get printed in > whatever order they happen to run, without any indication as to which > output belongs to which test. Unittest supports capturing these outputs > and printing them

Re: binman and faked blobs failures

2022-04-19 Thread Simon Glass
Hi, On Sat, 16 Apr 2022 at 11:30, Alper Nebi Yasak wrote: > > On 12/04/2022 00:28, Tom Rini wrote: > > [...] > > > > Note that nothing changed for the board but on the second build now the > > faked blob is unhappy and causes a failure message that I don't see the > > first time, and probably

Re: [PATCH 3/7] binman: Don't reset offset/size if image doesn't allow repacking

2022-04-19 Thread Simon Glass
On Sun, 27 Mar 2022 at 09:32, Alper Nebi Yasak wrote: > > When an image has the 'allow-repack' property, binman includes the > original offset and size properties from the image description in the > fdtmap. These are later used as the packing constraints when replacing > entries in an image, so

Re: [PATCH 3/5] patman: test_util: Use unittest text runner to print test results

2022-04-19 Thread Simon Glass
On Sat, 2 Apr 2022 at 11:06, Alper Nebi Yasak wrote: > > The python tools' test utilities handle printing test results, but the > output is quite bare compared to an ordinary unittest run. Delegate > printing the results to a unittest text runner, which gives us niceties > like clear separation

Re: [PATCH 1/1] drivers: add memory disk support

2022-04-19 Thread Heinrich Schuchardt
On 4/19/22 23:26, Tom Rini wrote: On Tue, Apr 19, 2022 at 11:16:41PM +0200, Heinrich Schuchardt wrote: In some scenarios it is desirable to package U-Boot with other files into a single blob. This patch allows to embed a memory disk into the U-Boot binary. This memory disk can be accessed like

Re: [PATCH 2/7] binman: Collect bintools for images when replacing entries

2022-04-19 Thread Simon Glass
On Sun, 27 Mar 2022 at 09:32, Alper Nebi Yasak wrote: > > Binman entries can use other executables to compute their data, usually > in their ObtainContents() methods. Subclasses of Entry_section would use > bintools in their BuildSectionData() method instead, which is called > from several places

Re: [PATCH 7/7] binman: Refuse to replace sections for now

2022-04-19 Thread Simon Glass
On Sun, 27 Mar 2022 at 09:32, Alper Nebi Yasak wrote: > > Binman interfaces allow attempts to replace any entry in the image with > arbitrary data. When trying to replace sections, the changes in the > section entry's data are not propagated to its child entries. This, > combined with how

Re: [PATCH 5/7] binman: Create FIT subentries in the FIT section, not its parent

2022-04-19 Thread Simon Glass
Hi Alper, On Sun, 27 Mar 2022 at 09:32, Alper Nebi Yasak wrote: > > When reading images from a file, each entry's data is read from its > parent section as specified in the Entry.Create() call that created it. > The FIT entry type has been creating its subentries under its parent > (their

Re: [PATCH 1/1] drivers: add memory disk support

2022-04-19 Thread Tom Rini
On Tue, Apr 19, 2022 at 11:55:00PM +0200, Heinrich Schuchardt wrote: > On 4/19/22 23:26, Tom Rini wrote: > > On Tue, Apr 19, 2022 at 11:16:41PM +0200, Heinrich Schuchardt wrote: > > > > > In some scenarios it is desirable to package U-Boot with other files into > > > a single blob. This patch

Re: [PATCH 2/2] arch: layerscape: Add SFP binding

2022-04-19 Thread Michael Walle
Hi Sean, > This adds an SFP binding for the processors it is present on. I have > only tested this for the LS1046A. > > Signed-off-by: Sean Anderson There is an upstream binding Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml Are you aware of that? Could you submit a patch

U-Boot and switching away from arch/arm/mach-imx/mkimage_fit_atf.sh

2022-04-19 Thread Tom Rini
Hey all, Currently, the following defconfigs are the only ones left using the above mentioned script, rather than binman, to generate the final binaries: configs/cgtqmx8_defconfig configs/imx8mm-icore-mx8mm-ctouch2_defconfig configs/imx8mm-icore-mx8mm-edimm2.2_defconfig What's needed to migrate

Re: [PATCH 1/2] arm: layerscape: Add sfp driver

2022-04-19 Thread Sean Anderson
On 4/19/22 4:58 PM, Sean Anderson wrote: > This adds a driver for the Security Fuse Processor (SFP) present on > LS1012A, LS1021A, LS1043A, and LS1046A processors. It holds the > Super-Root Key (SRK), One-Time-Programmable Master Key (OTPMK), and > other "security" related fuses. Similar devices

[PATCH 1/1] drivers: add memory disk support

2022-04-19 Thread Heinrich Schuchardt
In some scenarios it is desirable to package U-Boot with other files into a single blob. This patch allows to embed a memory disk into the U-Boot binary. This memory disk can be accessed like any other block device as 'mem 0'. Signed-off-by: Heinrich Schuchardt --- MAINTAINERS

Re: Falcon Mode Support For Uncompressed Kernel Images

2022-04-19 Thread Nathan Barrett-Morrison
One more time -- >From f1c34333f79996bd2927a60f4858c01699431cba Mon Sep 17 00:00:00 2001 From: Nathan Barrett-Morrison Date: Wed, 2 Feb 2022 15:05:18 -0500 Subject: [PATCH v2] Add in the ability to load and boot an uncompressed kernel image during the Falcon Mode boot sequence. This is

Re: Falcon Mode Support For Uncompressed Kernel Images

2022-04-19 Thread Tom Rini
On Tue, Apr 19, 2022 at 05:31:52PM -0400, Nathan Barrett-Morrison wrote: > Hi Tom, > > While trying to bring up Falcon Mode boot on an ARM64 board, I discovered > that there is no path which allows you to use an uncompressed kernel image > (booti). I've added this path and attached the relevant

Re: spl: spi: Raw Kernel Image Support for Falcon Mode Boot Via SPI Devices

2022-04-19 Thread Sean Anderson
Hi Nathan, On 4/19/22 5:38 PM, Nathan Barrett-Morrison wrote: > [You don't often get email from nathan.morri...@timesys.com. Learn why this > is important at http://aka.ms/LearnAboutSenderIdentification.] > > Hi Tom, > > I believe this patch is still relevant, so I'm resubmitting it. It was

Re: spl: spi: Raw Kernel Image Support for Falcon Mode Boot Via SPI Devices

2022-04-19 Thread Nathan Barrett-Morrison
Hi Sean, Thanks for the response. I don't have my embedded board I'm doing this on quite up to this version of U-Boot, but it does appear your patchset should resolve my issue in the future. So please disregard my patch, I think we're good! Sincerely, Nathan On 4/19/22 17:43, Sean Anderson

Re: [PATCH 1/7] binman: Fix unique names having '/.' for images read from files

2022-04-19 Thread Simon Glass
On Sun, 27 Mar 2022 at 09:32, Alper Nebi Yasak wrote: > > Binman can embed a copy of the image description into the images it > builds as a fdtmap entry, but it omits the /binman/ prefix > from the node paths while doing so. When reading an already-built image > file, entries are reconstructed

Re: [PATCH 6/7] binman: Test replacing non-section entries in FIT subsections

2022-04-19 Thread Simon Glass
On Sun, 27 Mar 2022 at 09:32, Alper Nebi Yasak wrote: > > A previous patch fixes binman to correctly extract FIT subentries. This > makes it easier to test replacing these entries as we can write tests > using an existing helper function that relies on extracting the replaced > entry. > > Add

Re: spl: spi: Raw Kernel Image Support for Falcon Mode Boot Via SPI Devices

2022-04-19 Thread Sean Anderson
Hi Nathan, On 4/19/22 5:49 PM, Nathan Barrett-Morrison wrote: > [You don't often get email from nathan.morri...@timesys.com. Learn why this > is important at http://aka.ms/LearnAboutSenderIdentification.] > > Hi Sean, > > Thanks for the response. I don't have my embedded board I'm doing this

Re: [PATCH 1/1] drivers: add memory disk support

2022-04-19 Thread Heinrich Schuchardt
On 4/19/22 23:54, Simon Glass wrote: > Hi Heinrich, > > On Tue, 19 Apr 2022 at 15:14, Heinrich Schuchardt > wrote: >> >> In some scenarios it is desirable to package U-Boot with other files into >> a single blob. This patch allows to embed a memory disk into the U-Boot >> binary. This memory

Re: [PATCH 1/1] drivers: add memory disk support

2022-04-19 Thread Tom Rini
On Wed, Apr 20, 2022 at 12:20:43AM +0200, Heinrich Schuchardt wrote: > On 4/19/22 23:54, Simon Glass wrote: > > Hi Heinrich, > > > > On Tue, 19 Apr 2022 at 15:14, Heinrich Schuchardt > > wrote: > >> > >> In some scenarios it is desirable to package U-Boot with other files into > >> a single blob.

Re: [PATCH] cmd: Add pause command

2022-04-19 Thread Tom Rini
On Mon, Dec 20, 2021 at 10:49:46PM -0500, Samuel Dionne-Riel wrote: > This command is being introduced with the goal of allowing user-friendly > "generic use case" U-Boot builds to pause until user input under some > situations. > > The main use case would be when a boot failure happens, to

[PATCH 1/2] arm: layerscape: Add sfp driver

2022-04-19 Thread Sean Anderson
This adds a driver for the Security Fuse Processor (SFP) present on LS1012A, LS1021A, LS1043A, and LS1046A processors. It holds the Super-Root Key (SRK), One-Time-Programmable Master Key (OTPMK), and other "security" related fuses. Similar devices (sharing the same name) are present on other

[PATCH 2/2] arch: layerscape: Add SFP binding

2022-04-19 Thread Sean Anderson
This adds an SFP binding for the processors it is present on. I have only tested this for the LS1046A. Signed-off-by: Sean Anderson --- arch/arm/dts/fsl-ls1012a.dtsi | 7 +++ arch/arm/dts/fsl-ls1043a.dtsi | 7 +++ arch/arm/dts/fsl-ls1046a.dtsi | 7 +++ arch/arm/dts/ls1021a.dtsi

[PATCH] board: ls1046afrwy: Remove Manish Tomar's email

2022-04-19 Thread Sean Anderson
Manish Tomar's email bounces. Remove it, and reassign the config he was maintaining to the primary maintainer for the board. Signed-off-by: Sean Anderson --- board/freescale/ls1046afrwy/MAINTAINERS | 4 1 file changed, 4 deletions(-) diff --git a/board/freescale/ls1046afrwy/MAINTAINERS

Re: Falcon Mode Support For Uncompressed Kernel Images

2022-04-19 Thread Tom Rini
On Tue, Apr 19, 2022 at 05:16:21PM -0400, Nathan Barrett-Morrison wrote: > Hi Tom, > > Let's see if this works any better. Using a new mail client that is supposed > to not modify whitespace: > > From f1c34333f79996bd2927a60f4858c01699431cba Mon Sep 17 00:00:00 2001 > From: Nathan Barrett

drivers: mtd: spi: Allow Quad I/O enablement for ISSI SPI flash devices alongside spi-nor-tiny.c subsystem

2022-04-19 Thread Nathan Barrett-Morrison
Hi All, I noticed this was missing from the spi-nor-tiny.c subsystem while trying to use an ISSI SPI flash device with the U-Boot SPL. This patch will allow Quad (4x) I/O mode to be enabled with ISSI flash devices while inside the U-Boot SPL / using spi-nor-tiny.c. Sincerely, Nathan >From

spl: spi: Raw Kernel Image Support for Falcon Mode Boot Via SPI Devices

2022-04-19 Thread Nathan Barrett-Morrison
Hi Tom, I believe this patch is still relevant, so I'm resubmitting it. It was previously marked as superseded. Thanks, Nathan >From 0bb98a42bcb01c078f63513d9151d307dbfd6ccd Mon Sep 17 00:00:00 2001 From: Nathan Barrett-Morrison Date: Tue, 19 Apr 2022 17:35:21 -0400 Subject: [PATCH v2] Allow

Re: [PATCH 2/2] arch: layerscape: Add SFP binding

2022-04-19 Thread Sean Anderson
Hi Michael, On 4/19/22 7:26 PM, Michael Walle wrote: Hi Sean, This adds an SFP binding for the processors it is present on. I have only tested this for the LS1046A. Signed-off-by: Sean Anderson There is an upstream binding Documentation/devicetree/bindings/nvmem/fsl,layerscape-sfp.yaml

Re: [PATCH v2] soc: xilinx: versal: fix out of bounds array access

2022-04-19 Thread Jorge Ramirez-Ortiz, Foundries
On 16/04/22, Jorge Ramirez-Ortiz wrote: > The call to xilinx_pm_request requires an array of a larger size. > > Signed-off-by: Jorge Ramirez-Ortiz > --- > drivers/soc/soc_xilinx_versal.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/soc/soc_xilinx_versal.c

[PATCH] tools: kwboot: Fix spelling of "followed" in kwboot.1

2022-04-19 Thread Vagrant Cascadian
Fix spelling of "followed" in kwboot.1 manpage. Series: 2 Signed-off-by: Vagrant Cascadian --- Changes in v2: Use "tools: kwboot:" prefix. Add full commit message. doc/kwboot.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/kwboot.1 b/doc/kwboot.1 index

RE: [PATCH 2/2] arm: layerscape: Disable erratum A009007 on LS1021A, LS1043A, and LS1046A

2022-04-19 Thread Ran Wang
Hi Sean, > -Original Message- > From: Sean Anderson > Sent: Wednesday, April 20, 2022 3:32 AM > To: u-boot@lists.denx.de; Priyanka Jain > Cc: Yinbo Zhu ; Ran Wang ; Prabhakar > Kushwaha ; Tom > Rini > Subject: Re: [PATCH 2/2] arm: layerscape: Disable erratum A009007 on LS1021A, >

Re: [PATCH 3/7] disk: define nullified functions for !PARTITIONS

2022-04-19 Thread Tom Rini
On Wed, Apr 20, 2022 at 11:17:21AM +0900, AKASHI Takahiro wrote: > Hi Tom, > > On Tue, Apr 19, 2022 at 08:12:07AM -0400, Tom Rini wrote: > > On Tue, Apr 19, 2022 at 01:11:23PM +0900, AKASHI Takahiro wrote: > > > On Mon, Apr 18, 2022 at 11:09:38PM -0400, Tom Rini wrote: > > > > On Tue, Apr 19,

[PATCH 1/2] riscv: ae350: Fix OF_BOARD boot failure

2022-04-19 Thread Andes
From: Rick Chen Enable OF_HAS_PRIOR_STAGE for ae350 boards with OF_BOARD Fixes: 239d22c79520 ("fdt: Enable OF_HAS_PRIOR_STAGE for most boards with OF_BOARD") Signed-off-by: Rick Chen --- board/AndesTech/ax25-ae350/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[PATCH 2/2] riscv: ae350: Fix OF_BOARD boot failure

2022-04-19 Thread Andes
From: Rick Chen Disable BINMAN_FDT for ae350 boards which don't actually use it. Fixes: 836eac7c6fe3 ("fdt: Make OF_BOARD a bool option") Signed-off-by: Rick Chen --- configs/ae350_rv32_spl_defconfig | 1 + configs/ae350_rv32_spl_xip_defconfig | 1 + configs/ae350_rv64_spl_defconfig |

[PATCH] riscv: ae350: Fix xip config boot failure

2022-04-19 Thread Andes
From: Rick Chen It will fail to boot with ae350_rv[32|64]_spl_xip_defconfig. It need to add OONFIG_XIP to get the specific HW address for DTB. Also drop OF_SEPARATE in board_fdt_blob_setup() because it will never reach here anyway.It only allow OF_BOARD to call board_fdt_blob_setup() in

Re: [PATCH 3/7] disk: define nullified functions for !PARTITIONS

2022-04-19 Thread AKASHI Takahiro
Hi Tom, On Tue, Apr 19, 2022 at 08:12:07AM -0400, Tom Rini wrote: > On Tue, Apr 19, 2022 at 01:11:23PM +0900, AKASHI Takahiro wrote: > > On Mon, Apr 18, 2022 at 11:09:38PM -0400, Tom Rini wrote: > > > On Tue, Apr 19, 2022 at 10:01:54AM +0900, AKASHI Takahiro wrote: > > > > > > > Some defconfig