[PATCH] arm: kirkwood: Convert to DM Serial for various Kirkwood boards

2022-12-29 Thread Tony Dinh
For Kirkwood boards, it is necessary to have early malloc in DRAM area when Driver Model for Serial is enabled. Please see Michael's patch here: https://lore.kernel.org/u-boot/20220817193809.1059688-20-mich...@walle.cc/ This patch enables the early malloc in DRAM for all Kirkwood boards. Note

[PATCH 1/1] Dockerfile: add package texinfo

2022-12-29 Thread Heinrich Schuchardt
In preparation of adding the infodocs target to our CI install the prerequisite texinfo software package. Signed-off-by: Heinrich Schuchardt --- tools/docker/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index

[PATCH 1/1] doc: building documentation

2022-12-29 Thread Heinrich Schuchardt
Provide a man-page describing how to build the U-Boot documentation. Signed-off-by: Heinrich Schuchardt --- doc/build/documentation.rst | 90 + doc/build/index.rst | 1 + 2 files changed, 91 insertions(+) create mode 100644

Re: [PATCH 00/17] Support android boot image v3/v4

2022-12-29 Thread Tom Rini
On Sat, 26 Nov 2022 17:59:14 +0100, Safae Ouajih wrote: > * This is based on Roman Stratiienko's work to support boot image header > version 3 and 4. > > * This supports the new boot image headers v3, v4 and bootconfig feature. >

[PATCH] fs/btrfs: handle data extents, which crosss stripe boundaries, correctly

2022-12-29 Thread Qu Wenruo
[BUG] Since btrfs supports single device RAID0 at mkfs time after btrfs-progs v5.14, if we create a single device raid0 btrfs, and created a file crossing stripe boundary: # mkfs.btrfs -m dup -d raid0 test.img # mount test.img mnt # xfs_io -f -c "pwrite 0 128K" mnt/file # umount mnt

Re: Possible bug in BTRFS w/ Duplication

2022-12-29 Thread Qu Wenruo
On 2022/12/29 22:12, Heinrich Schuchardt wrote: On 12/28/22 21:51, Sam Winchenbach wrote: Hello, Hello, I have hit the following situation when trying to load files from a BTRFS partition with duplication enabled. You mean multi-device? For DUP/RAID1 duplication, they don't have stripe

Re: CONFIG migration quirk

2022-12-29 Thread Tom Rini
On Thu, Dec 29, 2022 at 04:54:35PM -0600, Simon Glass wrote: > Hi Tom, > > If I: > > 1. Revert 9ef3ba85bf3 kbuild: Remove checking for adhoc CONFIG symbols > 2. rm scripts/config_whitelist.txt > 3. run ./scripts/build-whitelist.sh > > Then I get about 930 unmirgrated CONFIG options: > > $ wc

Re: [PATCH 0/5] vidconsole: refactoring and support for wider fonts

2022-12-29 Thread Mark Kettenis
> From: Dzmitry Sankouski > Date: Mon, 26 Dec 2022 22:49:24 +0300 > > Modern mobile phones typically have high pixel density. > Bootmenu is hardly readable on those with 8x16 font. > > This patch series aims to add wider fonts for devices with high ppi. > > Add 16x32 ter font from linux, and

CONFIG migration quirk

2022-12-29 Thread Simon Glass
Hi Tom, If I: 1. Revert 9ef3ba85bf3 kbuild: Remove checking for adhoc CONFIG symbols 2. rm scripts/config_whitelist.txt 3. run ./scripts/build-whitelist.sh Then I get about 930 unmirgrated CONFIG options: $ wc scripts/config_whitelist.txt 930 930 21243 scripts/config_whitelist.txt It

Re: [PATCH 3/5] video console: add support for fonts wider than 1 byte

2022-12-29 Thread Simon Glass
Hi Dzmitry, On Mon, 26 Dec 2022 at 13:50, Dzmitry Sankouski wrote: > > Devices with high ppi may benefit from wider fonts. > > Current width implementation is limited by 1 byte, i.e. 8 bits. > New version iterates VIDEO_FONT_BYTE_WIDTH times, to process all > width bytes, thus allowing fonts

Re: [PATCH 4/5] video console: add 16x32 ter font from linux

2022-12-29 Thread Simon Glass
Hi Dzmitry, On Tue, 27 Dec 2022 at 07:44, Dzmitry Sankouski wrote: > > Modern mobile phones typically have high pixel density. > Bootmenu is hardly readable on those with 8x16 font. > > Add 16x32 ter font from linux, and allow font size configuration. That second bit should really be in a

Re: [PATCH v1 1/1] arm64: versal: enable config_of_separate

2022-12-29 Thread Simon Glass
On Fri, 23 Dec 2022 at 02:57, Neal Frager wrote: > > Enable CONFIG_OF_SEPARATE, so that the u-boot.dtb is built by default for > versal devices. > > Signed-off-by: Neal Frager > --- > configs/xilinx_versal_virt_defconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass For

Re: [PATCH u-boot 2/2] Makefile: Build working u-boot-dtb.bin target also for mpc85xx

2022-12-29 Thread Simon Glass
Hi Pali, On Wed, 28 Dec 2022 at 14:06, Pali Rohár wrote: > > U-Boot build process currently always produces broken u-boot-dtb.bin binary > for PowerPC mpc85xx architecture on boards which needs mpc85xx reset > vector. For these boards this (intermediate) binary is not used as input > for any

Re: [PATCH 2/5] video console: refactoring and optimization

2022-12-29 Thread Simon Glass
Hi Dzmitry, On Mon, 26 Dec 2022 at 13:50, Dzmitry Sankouski wrote: > > - get rid of code duplications in switch across bpp values > - extract common pixel fill logic in two functions one per > horizontal and vertical filling > - rearrange statements in put_xy* methods in unified way > - replace

Re: [PATCH v2 1/2] lib: zstd: update to latest Linux zstd 1.5.2

2022-12-29 Thread Simon Glass
Hi Brandon, On Tue, 27 Dec 2022 at 09:16, Brandon Maier wrote: > > Update the zstd implementation to match Linux zstd 1.5.2 from commit > 2aa14b1ab2. > > This was motivated by running into decompression corruption issues when > trying to uncompress files compressed with newer versions of zstd.

Re: [PATCH 1/5] video console: unite normal and rotated files

2022-12-29 Thread Simon Glass
Hi Dzmitry, On Mon, 26 Dec 2022 at 13:49, Dzmitry Sankouski wrote: > > Put video console driver code in one file. This isn't quite true as we still have TrueType. Also, what combine them? > > Signed-off-by: Dzmitry Sankouski > --- > drivers/video/Kconfig | 8 +- >

Re: Rockchip RK3328 4-byte addressing problem in SPI

2022-12-29 Thread Simon Glass
+Kever Yang On Thu, 22 Dec 2022 at 18:30, Marcin Woźniak wrote: > > Hello, > > I would like to let you know how i've lost about 2 weeks because of lack > of Rockchip BOOTROM documentation. > > I tried to use Mainline Uboot to Boot NanoPI R2S using soldered SPI > Winbond 25Q256 chip. > > I had to

Re: [PATCH 2/2] test: compression: use ut_assert for errors

2022-12-29 Thread Simon Glass
On Wed, 28 Dec 2022 at 16:54, Brandon Maier wrote: > > Use the ut_assert macros for more useful error messages. > > Signed-off-by: Brandon Maier > --- > test/compression.c | 56 +- > 1 file changed, 25 insertions(+), 31 deletions(-) > Reviewed-by:

Re: [PATCH 1/2] test: compression: check with trailing garbage in input

2022-12-29 Thread Simon Glass
On Wed, 28 Dec 2022 at 16:54, Brandon Maier wrote: > > The Linux kernel appends 4 bytes to the end of compressed kernel Images > containing the uncompressed image size. They are used to make > self-decompressing Images easier. However for archs that don't support > self-decompression, like ARM64,

Re: [PATCH 5/5] video console: remove unused 4x6 font

2022-12-29 Thread Simon Glass
Hi Dzmitry, On Mon, 26 Dec 2022 at 13:50, Dzmitry Sankouski wrote: > > Remove video_font_4x6.h file because it's unused. > > Signed-off-by: Dzmitry Sankouski > --- > drivers/video/Kconfig|6 - > include/video_font.h |4 +- > include/video_font_4x6.h | 2155

Re: [PATCH 2/2] cmd: net: wget: fix Kconfig dependency

2022-12-29 Thread Simon Glass
On Wed, 28 Dec 2022 at 09:27, Michael Walle wrote: > > The wget command uses TCP, but fails to select PROT_TCP in Kconfig. > Instead it selects the non-existing symbol TCP. Fix the typo. > > Signed-off-by: Michael Walle > --- > cmd/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] CI: Rework rockchip jobs in Azure

2022-12-29 Thread Simon Glass
On Tue, 27 Dec 2022 at 10:48, Tom Rini wrote: > > The rockchip job is getting close to the hard time limit in Azure for > the free tier. Split this in to 32bit and 64bit board jobs. > > Signed-off-by: Tom Rini > --- > .azure-pipelines.yml | 6 -- > 1 file changed, 4 insertions(+), 2

Re: [PATCH v2 2/2] test: compression: add zstd uncompression test

2022-12-29 Thread Simon Glass
Hi Brandon, On Tue, 27 Dec 2022 at 11:45, Maier, Brandon L Collins wrote: > > Hi Sean, > > > From: Sean Anderson > > On 12/27/22 09:46, Brandon Maier wrote: > > > +static const unsigned long zstd_compressed_size = 197; > > > > You can use ARRAY_SIZE (or sizeof) for this. > > sizeof() - 1 as

Re: Broken socrates board (Was: Re: Broken commit de47ff536363289f92f85ed1e4901724d238432d)

2022-12-29 Thread Simon Glass
Hi Pali, On Wed, 28 Dec 2022 at 11:51, Pali Rohár wrote: > > On Wednesday 28 December 2022 17:50:43 Pali Rohár wrote: > > And back to this issue... > > > > On Tuesday 02 August 2022 11:13:38 Pali Rohár wrote: > > > Hello Tom! > > > > > > Your commit de47ff536363289f92f85ed1e4901724d238432d

Re: [PATCH 1/2] net: wget: fix implicit declaration

2022-12-29 Thread Simon Glass
On Wed, 28 Dec 2022 at 09:27, Michael Walle wrote: > > The compiler complains about the missing declaration of print_size(): > net/wget.c:415:3: warning: implicit declaration of function ‘print_size’ > [-Wimplicit-function-declaration] > > Fix it. > > Signed-off-by: Michael Walle > --- >

Re: [PATCH v3 2/3] net: fm: Add firmware name parameter

2022-12-29 Thread Simon Glass
Hi Sean, On Thu, 29 Dec 2022 at 10:53, Sean Anderson wrote: > > In order to read the firmware from the filesystem, we need a file name. > Read the firmware name from the device tree, using the firmware-name > property. This property is commonly used in Linux to determine the > correct name to

Re: [PATCH v3 3/3] net: fm: Support loading firmware from a filesystem

2022-12-29 Thread Simon Glass
Hi Sean, On Thu, 29 Dec 2022 at 10:54, Sean Anderson wrote: > > This adds a new method to load Fman firmware from a filesystem. This > allows users to use regular files instead of hard-coded offsets for the > firmware. > > Signed-off-by: Sean Anderson > Reviewed-by: Ramon Fried > --- > > (no

Re: [PATCH u-boot] ata: Fix dependency for CONFIG_SATA_SIL

2022-12-29 Thread Simon Glass
On Thu, 29 Dec 2022 at 11:15, Pali Rohár wrote: > > sata_sil.c is PCI driver and without CONFIG_PCI is building of U-Boot failing: > > LD u-boot > ld.bfd: drivers/ata/sata_sil.o: in function `sil_exec_cmd': > drivers/ata/sata_sil.c:148: undefined reference to

Re: sandbox: "Reset Status: WARM Reset Status: COLD"

2022-12-29 Thread Simon Glass
Hi Heinrich, On Thu, 29 Dec 2022 at 03:18, Heinrich Schuchardt wrote: > > Hello Simon, > > the sandbox prints the following line when started: > "Reset Status: WARM Reset Status: COLD" This seems to be when you use the -T flag. > > This does not make much sense. Either the last reset was WARM

Re: [PATCH] PowerPC: Update dependencies on *SYS_MPC85XX_NO_RESETVEC

2022-12-29 Thread Tom Rini
On Thu, Dec 29, 2022 at 09:50:03AM -0500, Tom Rini wrote: > In 96699f097a02 ("powerpc: mpc85xx: Use binman to embed dtb inside > U-Boot") we introduce CONFIG_MPC85XX_HAVE_RESET_VECTOR and do so via > Kconfig. However, much later in de47ff536363 ("Convert > CONFIG_SYS_MPC85XX_NO_RESETVEC to

Re: [PATCH] PowerPC: Rework PBL location choice

2022-12-29 Thread Tom Rini
On Wed, Dec 28, 2022 at 10:52:51AM -0500, Tom Rini wrote: > When converting CONFIG_SDCARD and CONFIG_SPIFLASH to Kconfig, one set of > uses wasn't converted correctly. Allow for the case where platforms > don't rely on "PBL" to boot but instead use other mechanisms. See the > link below for more

Re: [PATCH 2/2] cmd: net: wget: fix Kconfig dependency

2022-12-29 Thread Tom Rini
On Wed, Dec 28, 2022 at 04:27:15PM +0100, Michael Walle wrote: > The wget command uses TCP, but fails to select PROT_TCP in Kconfig. > Instead it selects the non-existing symbol TCP. Fix the typo. > > Signed-off-by: Michael Walle Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH 1/2] net: wget: fix implicit declaration

2022-12-29 Thread Tom Rini
On Wed, Dec 28, 2022 at 04:27:14PM +0100, Michael Walle wrote: > The compiler complains about the missing declaration of print_size(): > net/wget.c:415:3: warning: implicit declaration of function ‘print_size’ > [-Wimplicit-function-declaration] > > Fix it. > > Signed-off-by: Michael Walle

Re: [PATCH] CI: Rework rockchip jobs in Azure

2022-12-29 Thread Tom Rini
On Tue, Dec 27, 2022 at 11:48:08AM -0500, Tom Rini wrote: > The rockchip job is getting close to the hard time limit in Azure for > the free tier. Split this in to 32bit and 64bit board jobs. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description:

Re: Pull request for efi-2023-01-rc5-2

2022-12-29 Thread Tom Rini
On Thu, Dec 29, 2022 at 02:54:07PM +0100, Heinrich Schuchardt wrote: > The following changes since commit adcee0791f3318ead9b22879e2ce9409f400dcab: > > Merge https://source.denx.de/u-boot/custodians/u-boot-pmic > (2022-12-26 21:00:20 -0500) > > are available in the Git repository at: > >

Re: [PATCH] PowerPC: Update dependencies on *SYS_MPC85XX_NO_RESETVEC

2022-12-29 Thread Pali Rohár
On Thursday 29 December 2022 09:50:03 Tom Rini wrote: > In 96699f097a02 ("powerpc: mpc85xx: Use binman to embed dtb inside > U-Boot") we introduce CONFIG_MPC85XX_HAVE_RESET_VECTOR and do so via > Kconfig. However, much later in de47ff536363 ("Convert > CONFIG_SYS_MPC85XX_NO_RESETVEC to Kconfig") I

[PATCH u-boot] ata: Fix dependency for CONFIG_SATA_SIL

2022-12-29 Thread Pali Rohár
sata_sil.c is PCI driver and without CONFIG_PCI is building of U-Boot failing: LD u-boot ld.bfd: drivers/ata/sata_sil.o: in function `sil_exec_cmd': drivers/ata/sata_sil.c:148: undefined reference to `dm_pci_phys_to_bus' ld.bfd: drivers/ata/sata_sil.o: in function

[PATCH v3 3/3] net: fm: Support loading firmware from a filesystem

2022-12-29 Thread Sean Anderson
This adds a new method to load Fman firmware from a filesystem. This allows users to use regular files instead of hard-coded offsets for the firmware. Signed-off-by: Sean Anderson Reviewed-by: Ramon Fried --- (no changes since v1) drivers/net/fm/fm.c | 25 -

[PATCH v3 2/3] net: fm: Add firmware name parameter

2022-12-29 Thread Sean Anderson
In order to read the firmware from the filesystem, we need a file name. Read the firmware name from the device tree, using the firmware-name property. This property is commonly used in Linux to determine the correct name to use (and can be seen in several device trees in U-Boot). Signed-off-by:

[PATCH v3 1/3] misc: fs_loader: Add function to get the chosen loader

2022-12-29 Thread Sean Anderson
The fs_loader device is used to pull in settings via the chosen node. However, there was no library function for this, so arria10 was doing it explicitly. This function subsumes that, and uses ofnode_get_chosen_node instead of navigating the device tree directly. Because fs_loader pulls its config

[PATCH v3 0/3] net: fm: Add support for loading firmware from filesystem

2022-12-29 Thread Sean Anderson
This adds support for loading Fman firmware from a filesystem using the firmware loader subsystem. It was originally part of [1], but has been split off because it is conceptually separate. [1] https://lore.kernel.org/u-boot/20220324182306.2037094-1-sean.ander...@seco.com/ Changes in v3: -

[PATCH] PowerPC: Update dependencies on *SYS_MPC85XX_NO_RESETVEC

2022-12-29 Thread Tom Rini
In 96699f097a02 ("powerpc: mpc85xx: Use binman to embed dtb inside U-Boot") we introduce CONFIG_MPC85XX_HAVE_RESET_VECTOR and do so via Kconfig. However, much later in de47ff536363 ("Convert CONFIG_SYS_MPC85XX_NO_RESETVEC to Kconfig") I converted the symbol that is the inverse of this to Kconfig.

Re: Possible bug in BTRFS w/ Duplication

2022-12-29 Thread Heinrich Schuchardt
On 12/28/22 21:51, Sam Winchenbach wrote: Hello, Hello, I have hit the following situation when trying to load files from a BTRFS partition with duplication enabled. In the first example I read a 16KiB file - __btrfs_map_block() changes the length to something larger than the file being

Pull request for efi-2023-01-rc5-2

2022-12-29 Thread Heinrich Schuchardt
The following changes since commit adcee0791f3318ead9b22879e2ce9409f400dcab: Merge https://source.denx.de/u-boot/custodians/u-boot-pmic (2022-12-26 21:00:20 -0500) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2023-01-rc5-2 for

[PATCH 3/3] efi_loader: adjust sorting of capsules

2022-12-29 Thread Heinrich Schuchardt
Up to now we only compared the first letter of the capsule name to sort them alphabetically. Properly sort by the Unicode alphabet. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_capsule.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git

[PATCH 2/3] test: unit test for u16_strcasecmp()

2022-12-29 Thread Heinrich Schuchardt
Provide a unit test for u16_strcasecmp(). Signed-off-by: Heinrich Schuchardt --- test/unicode_ut.c | 25 + 1 file changed, 25 insertions(+) diff --git a/test/unicode_ut.c b/test/unicode_ut.c index 3547aeffe7..382b796516 100644 --- a/test/unicode_ut.c +++

[PATCH 1/3] lib: add function u16_strcasecmp()

2022-12-29 Thread Heinrich Schuchardt
Provide a function for comparing UTF-16 strings in a case insensitive manner. Signed-off-by: Heinrich Schuchardt --- include/charset.h | 13 + lib/charset.c | 26 ++ 2 files changed, 39 insertions(+) diff --git a/include/charset.h b/include/charset.h

[PATCH 3/3] efi_loader: adjust sorting of capsules

2022-12-29 Thread Heinrich Schuchardt
The UEFI specification requires to apply capsules in alphabetical order. The current implementation only sorted by the first letter due to using strcmp() which will stop at the first zero byte. * Provide function u16_strcasecmp() for case insensitive comparision of UTF-16 strings * Provide a

Re: [PATCH 0/5] add support for hs bootflows to am62a

2022-12-29 Thread Kamlesh Gurudasani
Bryan Brattlof writes: > Hello everyone! > > Texas Instruments has started to enable security settings inside all the > boot ROM and TIFS firmware in all of their SoCs. One of the few changes > this brings is ROM and TIFS will now begin protecting the RAM regions > they're using with firewalls.

Re: Bug#1012269: u-boot-exynos on Odroid XU4 searches for exynos5422-smdk5420xu4.dtb instead of exynos5422-odroidxu4.dtb

2022-12-29 Thread Jochen Sprickerhof
* Vagrant Cascadian [2022-12-28 18:00]: Hrm. This suggests the fix might not have been effective, which should have been included in 2022.07... CCing upstream... commit e744bf3a4ba442a0e9ee1c509c70e1452e3a15d0 Author: Tom Rini Date: Wed Jun 8 14:30:14 2022 -0400 odroid_xu3: Fix

[PATCH 1/1] efi_loader: use u16_strlen() in efi_var_mem_ins()

2022-12-29 Thread Heinrich Schuchardt
Don't duplicate library functionality. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_var_mem.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/efi_loader/efi_var_mem.c b/lib/efi_loader/efi_var_mem.c index 0bac594e00..d71ccb31df 100644 ---

sandbox: "Reset Status: WARM Reset Status: COLD"

2022-12-29 Thread Heinrich Schuchardt
Hello Simon, the sandbox prints the following line when started: "Reset Status: WARM Reset Status: COLD" This does not make much sense. Either the last reset was WARM or COLD but not both. sandbox_sysreset_get_status() and sandbox_warm_sysreset_get_status() should determine the reset status

Re: [PATCH 1/1] efi_loader: typo non-volatile in efi_var_restore

2022-12-29 Thread Ilias Apalodimas
On Thu, 29 Dec 2022 at 10:25, Heinrich Schuchardt wrote: > > It is volatile variables that we do not allow to be restored from file. > > Signed-off-by: Heinrich Schuchardt > --- > lib/efi_loader/efi_var_file.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

[PATCH 1/1] efi_loader: typo non-volatile in efi_var_restore

2022-12-29 Thread Heinrich Schuchardt
It is volatile variables that we do not allow to be restored from file. Signed-off-by: Heinrich Schuchardt --- lib/efi_loader/efi_var_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/efi_loader/efi_var_file.c b/lib/efi_loader/efi_var_file.c index

Re: [PATCH] efi_loader: avoid adding variables twice

2022-12-29 Thread Heinrich Schuchardt
On 12/29/22 07:55, Ilias Apalodimas wrote: When the efi subsystem starts we restore variables that are both in a file or stored into the .efi_runtime section of U-Boot. However once a variable gets created or changed the preseeded entries will end up in the file. As a consequence on the next

[PATCH v2] efi_loader: avoid adding variables twice

2022-12-29 Thread Ilias Apalodimas
When the efi subsystem starts we restore variables that are both in a file or stored into the .efi_runtime section of U-Boot. However once a variable gets created or changed the preseeded entries will end up in the file. As a consequence on the next boot we will end up adding identical variable