Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-21 Thread Tony Dinh
Hi Pali, On Tue, Feb 21, 2023 at 12:22 PM Pali Rohár wrote: > > This patch series contains various improvements and fixes for existing > logical errors. Boot phase was adjusted to match behavior of Armada 385 > BootROM by inspecting and disassembling of BootROM binary dump itself. > Important inf

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-21 Thread Tony Dinh
Hi Pali, On Tue, Feb 21, 2023 at 3:14 PM Pali Rohár wrote: > > On Tuesday 21 February 2023 15:06:16 Tony Dinh wrote: > > Hi Pali, > > > > On Tue, Feb 21, 2023 at 12:22 PM Pali Rohár wrote: > > > > > > This patch series contains various improvements a

Re: [PATCH RFC u-boot-mvebu 19/59] tools: kwboot: Show image type and error parsing reasons

2023-02-21 Thread Tony Dinh
cksize)) { > + fprintf(stderr, "Image has invalid data size stored in image > header\n"); > goto err; > + } > > for_each_opt_hdr_v1 (ohdr, hdr) { > if (!opt_hdr_v1_valid_size(ohdr, (const uint8_t *)hdr + > hdrsz)) { > -- > 2.20.1 > Nominal cases (no error) with Armada 385 and KIrkwood 6192: Detected kwbimage v1 with SPI boot signature Detected kwbimage v0 with NAND boot signature Tested-by: Tony Dinh All the best, Tony

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-22 Thread Tony Dinh
Hi Pali, On Tue, Feb 21, 2023 at 11:58 PM Pali Rohár wrote: > > On Tuesday 21 February 2023 21:45:07 Tony Dinh wrote: > > Hi Pali, > > > > On Tue, Feb 21, 2023 at 3:14 PM Pali Rohár wrote: > > > > > > On Tuesday 21 February 2023 15:06:16 Tony Dinh wrot

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-22 Thread Tony Dinh
Hi Pali, On Wed, Feb 22, 2023 at 3:06 PM Pali Rohár wrote: > > On Wednesday 22 February 2023 14:16:36 Tony Dinh wrote: > > Hi Pali, > > > > On Tue, Feb 21, 2023 at 11:58 PM Pali Rohár wrote: > > > > > > On Tuesday 21 February 2023 21:45:07 Tony Dinh

Re: [PATCH RFC u-boot-mvebu 00/59] arm: mvebu: Various fixes

2023-02-22 Thread Tony Dinh
Hi Pali, On Wed, Feb 22, 2023 at 3:40 PM Pali Rohár wrote: > > On Wednesday 22 February 2023 15:16:06 Tony Dinh wrote: > > Hi Pali, > > > > On Wed, Feb 22, 2023 at 3:06 PM Pali Rohár wrote: > > > > > > On Wednesday 22 February 2023 14:16:36 Tony Dinh

Re: [PATCH RFC u-boot-mvebu 15/59] tools: kwboot: Fix parsing UART image without data checksum

2023-02-22 Thread Tony Dinh
UART images generated by Marvell tools. Tested with GTI Mirabox (Armada 370). Using the stock u-boot image from NAND mtd0 (nanddump), I've modified the u-boot CONFIG_SYS_PROMPT text using hexedit. The image checksum should be invalid after that. New kwboot booted it without problem. Tested-by

[PATCH] arm: mvebu: Enable NAND flash for Thecus N2350 board

2023-02-24 Thread Tony Dinh
Enable 512MB PXA3XX NAND flash when u-boot is running. Signed-off-by: Tony Dinh --- configs/n2350_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/n2350_defconfig b/configs/n2350_defconfig index b85ef0dfeb..247533ebb8 100644 --- a/configs/n2350_defconfig +++ b/configs

Re: [PATCH RFC u-boot-mvebu 57/59] arm: mvebu: Define env_sf_get_env_addr() also for Proper U-Boot

2023-02-24 Thread Tony Dinh
Hi Pali, On Tue, Feb 21, 2023 at 12:22 PM Pali Rohár wrote: > > Proper U-Boot moves SPI0 CS0 Flash mapping from 0xD400 to 0xF400 > and change its size from 64 MB to 8 MB. Definitions are already in > MBUS_SPI_BASE/MBUS_SPI_SIZE macros. So define these macros also for SPL > build, use them

Re: [PATCH RFC u-boot-mvebu 57/59] arm: mvebu: Define env_sf_get_env_addr() also for Proper U-Boot

2023-02-25 Thread Tony Dinh
Hi Pali, On Sat, Feb 25, 2023 at 1:13 PM Pali Rohár wrote: > > On Friday 24 February 2023 19:58:37 Tony Dinh wrote: > > Hi Pali, > > > > On Tue, Feb 21, 2023 at 12:22 PM Pali Rohár wrote: > > > > > > Proper U-Boot moves SPI0 CS0 Flash mapping from 0xD

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-25 Thread Tony Dinh
Hi Pali, Hi Martin, On Sat, Feb 25, 2023 at 5:41 AM Pali Rohár wrote: > > On Saturday 25 February 2023 11:47:07 Martin Rowe wrote: > > > While I haven't tested this patchset - I have tested SPI booting with > > > v2022.01 after applying lots of patches. > > > I found that the magic value reporte

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-25 Thread Tony Dinh
Hi Martin, On Sat, Feb 25, 2023 at 6:17 PM Martin Rowe wrote: > > > > > I'm not sure how to run proper timing tests on the process, but > > > > stopwatch timing just between seeing "Trying to boot" and "U-Boot > > > > 2023.04-rc2" showed the return to BootROM under 1 second, and the > > > > direc

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-26 Thread Tony Dinh
Hi Pali, On Sun, Feb 26, 2023 at 2:52 AM Pali Rohár wrote: > > On Saturday 25 February 2023 20:56:10 Tony Dinh wrote: > > Hi Martin, > > > > On Sat, Feb 25, 2023 at 6:17 PM Martin Rowe wrote: > > > > > > > > > I'm not sure how to run prope

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-27 Thread Tony Dinh
Hi Stefan, On Sun, Feb 26, 2023 at 11:40 PM Stefan Roese wrote: > > Hi Tony, > > On 2/27/23 01:11, Tony Dinh wrote: > > Hi Pali, > > > > On Sun, Feb 26, 2023 at 2:52 AM Pali Rohár wrote: > >> > >> On Saturday 25 February 2023 20:56:10 Tony Dinh wr

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-27 Thread Tony Dinh
Hi Pali, On Mon, Feb 27, 2023 at 1:57 PM Tony Dinh wrote: > > Hi Stefan, > > On Sun, Feb 26, 2023 at 11:40 PM Stefan Roese wrote: > > > > Hi Tony, > > > > On 2/27/23 01:11, Tony Dinh wrote: > > > Hi Pali, > > > > > > On Sun, Feb 2

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-27 Thread Tony Dinh
Hi Pali, On Mon, Feb 27, 2023 at 3:41 PM Tony Dinh wrote: > > Hi Pali, > > On Mon, Feb 27, 2023 at 1:57 PM Tony Dinh wrote: > > > > Hi Stefan, > > > > On Sun, Feb 26, 2023 at 11:40 PM Stefan Roese wrote: > > > > > > Hi Tony, > >

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-27 Thread Tony Dinh
Hi Pali, On Mon, Feb 27, 2023 at 4:42 PM Tony Dinh wrote: > > Hi Pali, > > On Mon, Feb 27, 2023 at 3:41 PM Tony Dinh wrote: > > > > Hi Pali, > > > > On Mon, Feb 27, 2023 at 1:57 PM Tony Dinh wrote: > > > > > > Hi Stefan, > >

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-28 Thread Tony Dinh
Hi Pali, On Tue, Feb 28, 2023 at 10:52 AM Pali Rohár wrote: > > On Tuesday 28 February 2023 10:48:24 Pali Rohár wrote: > > On Monday 27 February 2023 17:17:31 Tony Dinh wrote: > > > Hi Pali, > > > > > > On Mon, Feb 27, 2023 at 4:42 PM Tony Dinh wrote: >

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-02-28 Thread Tony Dinh
Hi Pali, On Tue, Feb 28, 2023 at 2:19 PM Pali Rohár wrote: > > On Tuesday 28 February 2023 13:51:24 Tony Dinh wrote: > > Hi Pali, > > > > On Tue, Feb 28, 2023 at 10:52 AM Pali Rohár wrote: > > > > > > On Tuesday 28 February 2023 10:48:24 Pali Rohár wr

[PATCH] arm: mvebu: Set common SPI flash default speed and mode

2023-03-02 Thread Tony Dinh
. The default of 10Mhz enables an almost instantaneously loading of the u-boot image. Note that this patch depends on this patch series (has been merged to u-boot-marvell/next): https://lists.denx.de/pipermail/u-boot/2023-March/511038.html Signed-off-by: Tony Dinh --- arch/arm/mach-mvebu/Kconfig

Re: [PATCH 2/2] arm: mvebu: clearfog: Add defconfig for SPI booting

2023-03-02 Thread Tony Dinh
Hi Stefan, On Mon, Feb 27, 2023 at 1:57 PM Tony Dinh wrote: > > Hi Stefan, > > On Sun, Feb 26, 2023 at 11:40 PM Stefan Roese wrote: > > > > Hi Tony, > > > > On 2/27/23 01:11, Tony Dinh wrote: > > > Hi Pali, > > > > > > On Sun, Feb 2

Re: [PATCH] arm: mvebu: Set common SPI flash default speed and mode

2023-03-02 Thread Tony Dinh
On Thu, Mar 2, 2023 at 5:26 PM Tony Dinh wrote: > > CONFIG_SF_DEFAULT_SPEED is used in SPL SPI to configure and probe the > flash device during DM SPI uclass probing process, if the > spi-max-frequency is not available in the DTB. Currently the max > frequency is not available,

[RESEND PATCH] arm: mvebu: Set common SPI flash default speed and mode

2023-03-02 Thread Tony Dinh
: Tony Dinh --- arch/arm/mach-mvebu/Kconfig | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/mach-mvebu/Kconfig b/arch/arm/mach-mvebu/Kconfig index cdb1776a66..8f744e2177 100644 --- a/arch/arm/mach-mvebu/Kconfig +++ b/arch/arm/mach-mvebu/Kconfig @@ -424,6 +424,16 @@ config

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-05 Thread Tony Dinh
Hi Pali, On Sun, Mar 5, 2023 at 3:55 AM Pali Rohár wrote: > > On Sunday 05 March 2023 04:21:42 Martin Rowe wrote: > > On Sat, 4 Mar 2023 at 10:51, Pali Rohár wrote: > > > > > Improve code for checking strapping pins which specifies boot mode source. > > > > > > Martin, could you test if Clearfog

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-05 Thread Tony Dinh
On Sun, Mar 5, 2023 at 2:44 PM Tony Dinh wrote: > > Hi Pali, > > On Sun, Mar 5, 2023 at 3:55 AM Pali Rohár wrote: > > > > On Sunday 05 March 2023 04:21:42 Martin Rowe wrote: > > > On Sat, 4 Mar 2023 at 10:51, Pali Rohár wrote: > > > > > &g

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-05 Thread Tony Dinh
Hi Pali, On Sun, Mar 5, 2023 at 2:54 PM Pali Rohár wrote: > > On Sunday 05 March 2023 14:46:55 Tony Dinh wrote: > > On Sun, Mar 5, 2023 at 2:44 PM Tony Dinh wrote: > > > > > > Hi Pali, > > > > > > On Sun, Mar 5, 2023 at 3:55 AM Pali Rohár wrote:

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-06 Thread Tony Dinh
Hi Pali, On Sun, Mar 5, 2023 at 4:41 PM Tony Dinh wrote: > > Hi Pali, > > On Sun, Mar 5, 2023 at 2:54 PM Pali Rohár wrote: > > > > On Sunday 05 March 2023 14:46:55 Tony Dinh wrote: > > > On Sun, Mar 5, 2023 at 2:44 PM Tony Dinh wrote: > > > > &

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-06 Thread Tony Dinh
Hi Pali, On Mon, Mar 6, 2023 at 4:11 PM Pali Rohár wrote: > > On Monday 06 March 2023 16:01:58 Tony Dinh wrote: > > Hi Pali, > > > > On Sun, Mar 5, 2023 at 4:41 PM Tony Dinh wrote: > > > > > > Hi Pali, > > > > > > On Sun, Mar 5, 202

Re: [PATCH RFC u-boot-mvebu 0/6] arm: mvebu: Fix boot mode detection

2023-03-07 Thread Tony Dinh
Hi Pali, On Mon, Mar 6, 2023 at 11:56 PM Pali Rohár wrote: > > On Monday 06 March 2023 20:15:07 Tony Dinh wrote: > > Hi Pali, > > > > On Mon, Mar 6, 2023 at 4:11 PM Pali Rohár wrote: > > > > > > On Monday 06 March 2023 16:01:58 Tony Dinh wrote: >

Re: [PATCH RFC u-boot-mvebu] arm: kirkwood: Move internal registers in arch_very_early_init() function

2023-03-11 Thread Tony Dinh
Hi Pali, On Sat, Mar 11, 2023 at 2:57 AM Pali Rohár wrote: > > Same change as was done for mvebu in commit 5bb2c550b11e ("arm: mvebu: Move > internal registers in arch_very_early_init() function") but for kirkwood. > > Signed-off-by: Pali Rohár > --- > Hello! Please test this RFC patch on more K

Re: [PATCH RFC u-boot-mvebu] arm: kirkwood: Move internal registers in arch_very_early_init() function

2023-03-12 Thread Tony Dinh
Hi Pali, On Sat, Mar 11, 2023 at 4:29 PM Pali Rohár wrote: > > On Saturday 11 March 2023 15:47:29 Tony Dinh wrote: > > Hi Pali, > > > > On Sat, Mar 11, 2023 at 2:57 AM Pali Rohár wrote: > > > > > > Same change as was done for mvebu in commit 5bb2c550b11

Re: [PATCH RFC u-boot-mvebu] arm: kirkwood: Move internal registers in arch_very_early_init() function

2023-03-12 Thread Tony Dinh
Hi Pali, On Sun, Mar 12, 2023 at 2:38 PM Pali Rohár wrote: > > On Sunday 12 March 2023 14:30:29 Tony Dinh wrote: > > Hi Pali, > > > > On Sat, Mar 11, 2023 at 4:29 PM Pali Rohár wrote: > > > > > > On Saturday 11 March 2023 15:47:29 Tony Dinh wrote: >

[PATCH] arm: kirkwood: Enable Debug UART for Zyxel NSA310S

2023-03-12 Thread Tony Dinh
It's useful to enable Debug UART for future DM Serial regression tests for Kirkwood boards. Also, see background discussion in this thread: https://lists.denx.de/pipermail/u-boot/2023-March/512010.html Signed-off-by: Tony Dinh --- configs/nsa310s_defconfig | 4 1 file chang

Re: [PATCH RFC u-boot-mvebu] arm: kirkwood: Move internal registers in arch_very_early_init() function

2023-03-13 Thread Tony Dinh
On Sun, Mar 12, 2023 at 5:12 PM Tony Dinh wrote: > > Hi Pali, > > On Sun, Mar 12, 2023 at 2:38 PM Pali Rohár wrote: > > > > On Sunday 12 March 2023 14:30:29 Tony Dinh wrote: > > > Hi Pali, > > > > > > On Sat, Mar 11, 2023 at 4:29 PM Pali Rohár

Re: [PATCH] arm: kirkwood: Enable uart0 dm-pre-reloc for Kirkwood boards

2023-03-14 Thread Tony Dinh
Hi all, I'm closing the loop on this thread. Please see below. On Fri, Feb 10, 2023 at 6:29 PM Tony Dinh wrote: > > Hi Pali, > > On Fri, Feb 10, 2023 at 1:44 PM Pali Rohár wrote: > > > > On Friday 10 February 2023 13:38:44 Tony Dinh wrote: > > > Hi Ste

Re: [PATCH] arm: kirkwood: Enable uart0 dm-pre-reloc for Kirkwood boards

2023-03-14 Thread Tony Dinh
Hi Pali, On Tue, Mar 14, 2023 at 2:09 PM Pali Rohár wrote: > > On Tuesday 14 March 2023 13:59:21 Tony Dinh wrote: > > Hi all, > > > > I'm closing the loop on this thread. Please see below. > > > > On Fri, Feb 10, 2023 at 6:29 PM Tony Dinh wrote: > &

Re: [PATCH] arm: kirkwood: Enable uart0 dm-pre-reloc for Kirkwood boards

2023-03-14 Thread Tony Dinh
Hi Pali, On Tue, Mar 14, 2023 at 2:30 PM Tony Dinh wrote: > > Hi Pali, > > On Tue, Mar 14, 2023 at 2:09 PM Pali Rohár wrote: > > > > On Tuesday 14 March 2023 13:59:21 Tony Dinh wrote: > > > Hi all, > > > > > > I'm closing the loop on t

[PATCH] console: Use flush() before panic and reset

2023-03-14 Thread Tony Dinh
To make sure the panic and the reset messages will go out, console flush() should be used. Sleep periods do not work in early u-boot phase when timer driver is not initialized yet. Reference: https://lists.denx.de/pipermail/u-boot/2023-March/512233.html Signed-off-by: Tony Dinh --- arch/arm

Re: [PATCH] console: Use flush() before panic and reset

2023-03-15 Thread Tony Dinh
Hi Simon, On Wed, Mar 15, 2023 at 12:43 PM Simon Glass wrote: > > On Tue, 14 Mar 2023 at 18:24, Tony Dinh wrote: > > > > To make sure the panic and the reset messages will go out, console flush() > > should be used. > > Sleep periods do not work in early u-boot

[PATCH] arm: kirkwood: pogo v4: Use a more common format for stdout-path

2023-03-15 Thread Tony Dinh
/dts/kirkwood-pogoplug-series-4-u-boot.dtsi +++ b/arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi @@ -1,7 +1,10 @@ // SPDX-License-Identifier: GPL-2.0+ /* * Copyright (C) 2023 Tony Dinh - */ -&uart0 { - u-boot,dm-pre-reloc; +*/ + +/ { + chosen { + stdout-

Re: [PATCH] arm: kirkwood: pogo v4: Use a more common format for stdout-path

2023-03-15 Thread Tony Dinh
Hi Pali, On Wed, Mar 15, 2023 at 2:58 PM Pali Rohár wrote: > > On Wednesday 15 March 2023 14:56:52 Tony Dinh wrote: > > The mainline Pogo V4 DTS uses a stdout-path format that is not > > recognizable by u-boot. Change it to a commonly used format. > > Cannot we teach u

[PATCH] netconsole: various improvements

2023-03-18 Thread Tony Dinh
- When Netconsole is running, stdin/stdout/stderr are set to nc. Reset stdin/stdout/stderr to serial (a sane deffault) before booting kernel. - Enable net_timeout when netconsole starts will give a better user experience if netconsole server is not running. Signed-off-by: Tony Dinh --- boot

Re: [PATCH] netconsole: various improvements

2023-03-19 Thread Tony Dinh
Hi Simon, On Sun, Mar 19, 2023 at 12:30 PM Simon Glass wrote: > > Hi Tony, > > On Sun, 19 Mar 2023 at 10:46, Tony Dinh wrote: > > > > - When Netconsole is running, stdin/stdout/stderr are set to nc. Reset > > stdin/stdout/stderr to serial (a sane deffault) befor

Re: [PATCH] netconsole: various improvements

2023-03-19 Thread Tony Dinh
Hi Pali, On Sun, Mar 19, 2023 at 12:36 PM Pali Rohár wrote: > > On Saturday 18 March 2023 14:46:25 Tony Dinh wrote: > > - When Netconsole is running, stdin/stdout/stderr are set to nc. Reset > > stdin/stdout/stderr to serial (a sane deffault) before booting kernel. > > T

Re: [PATCH] netconsole: various improvements

2023-03-20 Thread Tony Dinh
Hi Pali, On Mon, Mar 20, 2023 at 1:00 AM Pali Rohár wrote: > > On Sunday 19 March 2023 16:25:25 Tony Dinh wrote: > > Hi Pali, > > > > On Sun, Mar 19, 2023 at 12:36 PM Pali Rohár wrote: > > > > > > On Saturday 18 March 2023 14:46:25 Tony Dinh wrote: &

Re: kwboot: Marvell Dove UART booting

2023-03-20 Thread Tony Dinh
Hi Pali, On Mon, Mar 20, 2023 at 1:33 PM Pali Rohár wrote: > > Hello! After longer time I have something new in this area. > > On Wednesday 16 February 2022 20:18:31 Tony Dinh wrote: > > Hi Pali, > > > > Please see below. > > > > On Tue,

Re: [PATCH v4] bootstd: sata: Add bootstd support for ahci sata

2023-10-11 Thread Tony Dinh
Hi Tom, On Wed, Oct 11, 2023 at 7:43 AM Tom Rini wrote: > > On Sun, Sep 17, 2023 at 04:06:48PM -0700, Tony Dinh wrote: > > Add ahci sata bootdev and corresponding hunting function. > > > > Signed-off-by: Tony Dinh > > Reviewed-by: Simon Glass > > --- >

[PATCH v5] bootstd: sata: Add bootstd support for ahci sata

2023-10-11 Thread Tony Dinh
Add ahci sata bootdev and corresponding hunting function. Signed-off-by: Tony Dinh --- Changes in v5: - In bootmeth_script script_boot(), it's unnecessary to check for ret so remove it. While we're here, also initialize ret in declaration. Changes in v4: - Revise logic in bootmeth_s

[RESEND PATCH] arm: kirkwood: Pogo v4: Enable LTO

2023-10-16 Thread Tony Dinh
Enable building Pogo V4 u-boot image with LTO, which results in about 30K reduction in size. Rebased to latest master and resend. Signed-off-by: Tony Dinh --- configs/pogo_v4_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/pogo_v4_defconfig b/configs/pogo_v4_defconfig

Re: When do we merge bug fixes and new functionality

2023-10-22 Thread Tony Dinh
Hi Tom, Simon, Stefan, On Tue, Oct 10, 2023 at 12:14 AM Tony Dinh wrote: > > Hi Tom, Simon, Stefan, > > I have a few people waiting for these patches to get merged. So I hope > you don't mind (I'm not sure about the merging schedule), I'd bug you > guys about

Re: [PATCH v5] bootstd: sata: Add bootstd support for ahci sata

2023-10-23 Thread Tony Dinh
On Mon, Oct 23, 2023 at 12:08 PM Tom Rini wrote: > > On Wed, 11 Oct 2023 13:26:42 -0700, Tony Dinh wrote: > > > Add ahci sata bootdev and corresponding hunting function. > > > > > > I know this is recent but given their importance, applied to u-boot/master, >

[PATCH] arm: kirkwood: Enable bootstd for Pogo V4 board

2023-10-24 Thread Tony Dinh
Enable bootstd for Pogo V4 board, and remove distroboot. Signed-off-by: Tony Dinh --- configs/pogo_v4_defconfig | 3 ++- include/configs/pogo_v4.h | 35 ++- 2 files changed, 4 insertions(+), 34 deletions(-) diff --git a/configs/pogo_v4_defconfig b/configs

[PATCH] arm: kirkwood: Enable bootstd for Zyxel NSA310S board

2023-10-25 Thread Tony Dinh
Enable bootstd for Zyxel NSA310S board, and remove distroboot. Signed-off-by: Tony Dinh --- configs/nsa310s_defconfig | 3 ++- include/configs/nsa310s.h | 17 ++--- 2 files changed, 4 insertions(+), 16 deletions(-) diff --git a/configs/nsa310s_defconfig b/configs

Re: [PATCH] fixup! usb: xhci: Guard all calls to xhci_wait_for_event

2023-10-29 Thread Tony Dinh
On Sun, Oct 29, 2023 at 2:33 PM Peter Robinson wrote: > > On Sun, Oct 29, 2023 at 9:25 PM Marek Vasut wrote: > > > > On 10/27/23 08:03, Hector Martin wrote: > > > On 27/10/2023 09.36, Marek Vasut wrote: > > >> On 10/27/23 01:26, Hector Martin wrote: > > >>> Gah, I should've paid more attention to

[PATCH] bootstd: Skip over bad device during bootflows scanning

2023-10-30 Thread Tony Dinh
iant comes with USB, MMC, and eSATA ports. We have been using the same u-boot (starting with CONFIG_IDE and later with DM CONFIG_SATA) for both variants. This worked well with the old envs-scripting booting scheme. Signed-off-by: Tony Dinh --- boot/bootdev-uclass.c | 2 -- 1 file changed, 2 deletion

Re: Re bootstd: Skip over bad device during bootflows scanning

2023-10-31 Thread Tony Dinh
Hi Simon, On Tue, Oct 31, 2023 at 11:50 AM Simon Glass wrote: > > Hi Tony, > > Sorry I cannot reply to the patch[1]. > > Can you please send the console trace for this situation? I don't want > to ignore errors completely, so wonder if there is a special error > code which could be produced when

Re: [PATCH] bootstd: Skip over bad device during bootflows scanning

2023-10-31 Thread Tony Dinh
Hi Simon, On Mon, Oct 30, 2023 at 12:47 PM Tony Dinh wrote: > > During scanning for the next bootdev, if bootdev_next_prio() encounters > a device error (e.g. ENOSYS), let it continue scanning the next devices, > not stopping prematurely. > > Background: > > During scan

Re: [PATCH] bootstd: Skip over bad device during bootflows scanning

2023-10-31 Thread Tony Dinh
On Tue, Oct 31, 2023 at 12:26 PM Tony Dinh wrote: > > Hi Simon, > > On Mon, Oct 30, 2023 at 12:47 PM Tony Dinh wrote: > > > > During scanning for the next bootdev, if bootdev_next_prio() encounters > > a device error (e.g. ENOSYS), let it continue scanning the

Re: Re bootstd: Skip over bad device during bootflows scanning

2023-10-31 Thread Tony Dinh
Hi Simon, On Tue, Oct 31, 2023 at 12:00 PM Tony Dinh wrote: > > Hi Simon, > > On Tue, Oct 31, 2023 at 11:50 AM Simon Glass wrote: > > > > Hi Tony, > > > > Sorry I cannot reply to the patch[1]. > > > > Can you please send the console trace for t

Re: [PATCH] bootstd: Skip over bad device during bootflows scanning

2023-11-01 Thread Tony Dinh
Hi Simon, On Wed, Nov 1, 2023 at 9:10 AM Simon Glass wrote: > > Hi Tony, > > On Tue, 31 Oct 2023 at 13:45, Tony Dinh wrote: > > > > On Tue, Oct 31, 2023 at 12:26 PM Tony Dinh wrote: > > > > > > Hi Simon, > > > > > > On Mon, Oct 3

[PATCH v2] bootstd: Skip over bad device during bootflows scanning

2023-11-02 Thread Tony Dinh
e original Sheevaplug has MMC and USB only, but the later variant comes with USB, MMC, and eSATA ports. We have been using the same u-boot (starting with CONFIG_IDE and later with DM CONFIG_SATA) for both variants. This worked well with the old envs-scripting booting scheme. Signed-off-by: Tony Dinh ---

Re: [PATCH] arm: Use builtins for ffs/fls

2023-08-24 Thread Tony Dinh
on > --- > I only tested this on ARMv8. If someone has an ARMv5 or ARMv6 board, > please test this. Thanks for the patch! I've tested it with the Pogo V4 board (Kirkwood 88F6192, ARMv5) with LTO and SYS_THUMB_BUILD. Also nice size reduction: Before: 502K After: 499K So for ARMv

[PATCH] arm: kirkwood: Pogo v4: Enable LTO

2023-08-24 Thread Tony Dinh
Enable building Pogo V4 u-boot image with LTO, which results in about 30K reduction in size. Signed-off-by: Tony Dinh --- configs/pogo_v4_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/pogo_v4_defconfig b/configs/pogo_v4_defconfig index 3e3e811543..ad36da712b 100644

Re: [PATCH] bootstd: Drop some TODOs

2023-08-25 Thread Tony Dinh
Hi Simon, On Thu, Aug 24, 2023 at 6:48 PM Simon Glass wrote: > > The existing TODOs are done, so remove them. Add another that came up > today. > > Signed-off-by: Simon Glass > --- > > doc/develop/bootstd.rst | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/doc/develo

Re: [PATCH] bootstd: Drop some TODOs

2023-08-25 Thread Tony Dinh
Hi Simon, On Fri, Aug 25, 2023 at 4:53 PM Simon Glass wrote: > > Hi Tony, > > On Fri, 25 Aug 2023 at 14:17, Tony Dinh wrote: > > > > Hi Simon, > > > > On Thu, Aug 24, 2023 at 6:48 PM Simon Glass wrote: > > > > > > The existing TO

[PATCH] arm: kirkwood: Add support for ZyXEL NSA325 board

2023-08-25 Thread Tony Dinh
ZyXEL NSA325 specifications: Marvell Kirkwood 88F6282 SoC 1.6 GHz CPU 1x GBE LAN port (Marvell MV88E1318) 512 MB RAM 128 MB Eon NAND, SLC I2C 1x USB 3.0 (on PCIe bus) 2x USB 2.0 2x SATA (hot swap slots) Serial console Signed-off-by: Tony Dinh --- arch/arm/dts/Makefile| 1

Re: [PATCH] arm: kirkwood: Add support for ZyXEL NSA325 board

2023-08-29 Thread Tony Dinh
/#mf17689e3e963ab7a34fda34a97f67dea7a877b65 Stefan: "Just checking: Are the DT files imported from the Linux ones?" Yes, these DT files were copied verbatim from Linux. That's why we see some minor warnings about styles. All the best, Tony On Fri, Aug 25, 2023 at 8:33 PM Tony Dinh wrote: &

Re: [PATCH] bootstd: Drop some TODOs

2023-09-04 Thread Tony Dinh
Hi Simon, On Fri, Aug 25, 2023 at 5:51 PM Tony Dinh wrote: > > Hi Simon, > > On Fri, Aug 25, 2023 at 4:53 PM Simon Glass wrote: > > > > Hi Tony, > > > > On Fri, 25 Aug 2023 at 14:17, Tony Dinh wrote: > > > > > > Hi Simon, > >

[PATCH] bootstd: sata: Add bootstd support for ahci sata

2023-09-05 Thread Tony Dinh
Add ahci sata bootdev and corresponding hunting function. Signed-off-by: Tony Dinh --- drivers/ata/Makefile | 1 + drivers/ata/sata.c | 25 +++ drivers/ata/sata_bootdev.c | 62 ++ include/sata.h | 1 + 4 files changed

[PATCH] arm: mvebu: sata_mv: Add bootstd hook to enable sata_bootdev

2023-09-05 Thread Tony Dinh
Add hook in sata_mv probe to enable bootstd bootdev. Note: bootdev_setup_for_sibling_blk() invocation is a noop if bootsd is not enabled for ahci sata yet. Signed-off-by: Tony Dinh --- drivers/ata/sata_mv.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/ata

Re: [PATCH] bootstd: sata: Add bootstd support for ahci sata

2023-09-06 Thread Tony Dinh
Hi Simon, On Tue, Sep 5, 2023 at 9:00 PM Tony Dinh wrote: > > Add ahci sata bootdev and corresponding hunting function. > > Signed-off-by: Tony Dinh > --- > > drivers/ata/Makefile | 1 + > drivers/ata/sata.c | 25 +++ > driv

[PATCH v2] bootstd: sata: Add bootstd support for ahci sata

2023-09-07 Thread Tony Dinh
Add ahci sata bootdev and corresponding hunting function. Signed-off-by: Tony Dinh --- Changes in v2: - set devtype to sata in bootmeth_script for non-scsi SATA device boot/bootmeth_script.c | 12 ++-- drivers/ata/Makefile | 1 + drivers/ata/sata.c | 25

Re: [PATCH v2] bootstd: sata: Add bootstd support for ahci sata

2023-09-08 Thread Tony Dinh
On Thu, Sep 7, 2023 at 2:39 PM Tony Dinh wrote: > > Add ahci sata bootdev and corresponding hunting function. > > Signed-off-by: Tony Dinh > --- > > Changes in v2: > - set devtype to sata in bootmeth_script for non-scsi SATA device > > boot/bootmeth_script.c

[PATCH v3] bootstd: sata: Add bootstd support for ahci sata

2023-09-08 Thread Tony Dinh
Add ahci sata bootdev and corresponding hunting function. Signed-off-by: Tony Dinh --- Changes in v3: - Correct drivers/ata/Makefile to compile sata_bootdev only if ahci sata is enabled. Changes in v2: - set devtype to sata in bootmeth_script for non-scsi SATA device. boot/bootmeth_script.c

Re: [PATCH v3] bootstd: sata: Add bootstd support for ahci sata

2023-09-11 Thread Tony Dinh
Hi Simon, On Sun, Sep 10, 2023 at 3:37 PM Simon Glass wrote: > > Hi Tony, > > On Fri, 8 Sept 2023 at 13:10, Tony Dinh wrote: > > > > Add ahci sata bootdev and corresponding hunting function. > > > > Signed-off-by: Tony Dinh > > --- > > > >

bootstd: CACHE Misaligned operation errors (Marvell Armada 385)

2023-09-12 Thread Tony Dinh
I've been testing the boostd for a few Marvell boards and seeing this error on the Thecus N2350 (Marvell Armada 385, dual-core CPU). The "bootflow scan scsi" command triggered the "CACHE: Misaligned operation at range" error. However, this error did not affect the result of the scan, i.e. the bootf

Re: bootstd: CACHE Misaligned operation errors (Marvell Armada 385)

2023-09-13 Thread Tony Dinh
Hi Tom, On Wed, Sep 13, 2023 at 9:22 AM Tom Rini wrote: > > On Tue, Sep 12, 2023 at 12:38:00PM -0700, Tony Dinh wrote: > > > I've been testing the boostd for a few Marvell boards and seeing this > > error on the Thecus N2350 (Marvell Armada 385, dual-core CPU). T

Re: bootstd: CACHE Misaligned operation errors (Marvell Armada 385)

2023-09-13 Thread Tony Dinh
Hi Tom, On Wed, Sep 13, 2023 at 1:13 PM Tom Rini wrote: > > On Wed, Sep 13, 2023 at 12:56:53PM -0700, Tony Dinh wrote: > > Hi Tom, > > > > On Wed, Sep 13, 2023 at 9:22 AM Tom Rini wrote: > > > > > > On Tue, Sep 12, 2023 at 12:38:00PM -0700, Tony Dinh

Re: bootstd: CACHE Misaligned operation errors (Marvell Armada 385)

2023-09-13 Thread Tony Dinh
Hi Simon, On Wed, Sep 13, 2023 at 8:38 PM Simon Glass wrote: > > Hi Tom, > > On Wed, 13 Sept 2023 at 14:14, Tom Rini wrote: > > > > On Wed, Sep 13, 2023 at 12:56:53PM -0700, Tony Dinh wrote: > > > Hi Tom, > > > > > > On Wed, Sep 13, 2023 at 9

Re: bootstd: CACHE Misaligned operation errors (Marvell Armada 385)

2023-09-15 Thread Tony Dinh
Hi Tom, Hi Simon, On Wed, Sep 13, 2023 at 9:53 PM Tony Dinh wrote: > > Hi Simon, > > On Wed, Sep 13, 2023 at 8:38 PM Simon Glass wrote: > > > > Hi Tom, > > > > On Wed, 13 Sept 2023 at 14:14, Tom Rini wrote: > > > > > > On Wed, Sep 13, 202

Re: bootstd: CACHE Misaligned operation errors (Marvell Armada 385)

2023-09-15 Thread Tony Dinh
On Fri, Sep 15, 2023 at 6:32 PM Tony Dinh wrote: > > Hi Tom, Hi Simon, > > On Wed, Sep 13, 2023 at 9:53 PM Tony Dinh wrote: > > > > Hi Simon, > > > > On Wed, Sep 13, 2023 at 8:38 PM Simon Glass wrote: > > > > > > Hi Tom, >

Re: bootstd: CACHE Misaligned operation errors (Marvell Armada 385)

2023-09-16 Thread Tony Dinh
Hi Simon, On Fri, Sep 15, 2023 at 8:40 PM Tony Dinh wrote: > > On Fri, Sep 15, 2023 at 6:32 PM Tony Dinh wrote: > > > > Hi Tom, Hi Simon, > > > > On Wed, Sep 13, 2023 at 9:53 PM Tony Dinh wrote: > > > > > > Hi Simon, > > >

Re: [PATCH 0/9] Nokia RX-51: Small cleanups and UBI boot test case

2022-09-05 Thread Tony Dinh
Thanks Damiel! On Sun, Sep 4, 2022 at 3:10 PM Pali Rohár wrote: > > On Sunday 04 September 2022 22:58:19 Daniel Golle wrote: > > On Sun, Sep 04, 2022 at 12:28:24PM -0700, Tony Dinh wrote: > > > Hi Pali, > > > > > > On Sun, Sep 4, 2022 at 2:37 AM Pali Rohár

[PATCH] arm: kirkwood: nsa310s: Add Distro boot capability

2022-08-08 Thread Tony Dinh
CONFIG_UBIFS_SILENCE_MSG to reduce binary size. Note that this patch is depended on the following patch: https://patchwork.ozlabs.org/project/uboot/patch/20220807192709.21717-1-p...@kernel.org/ Signed-off-by: Tony Dinh --- board/zyxel/nsa310s/MAINTAINERS | 1 - configs/nsa310s_defconfig

[PATCH] arm: kirkwood: pogo_v4: Add Distro boot capability

2022-08-08 Thread Tony Dinh
unused configs to reduce binary size. Note that this patch is depended on the following patch: https://patchwork.ozlabs.org/project/uboot/patch/20220807192709.21717-1-p...@kernel.org/ Signed-off-by: Tony Dinh --- configs/pogo_v4_defconfig | 25 -- include/configs/pogo_v4.h

Re: [PATCH] arm: kirkwood: nsa310s: Add Distro boot capability

2022-08-08 Thread Tony Dinh
Hi Stefan, I need to resend this patch. Sorry for the noise! Thanks, Tony On Mon, Aug 8, 2022 at 7:35 PM Tony Dinh wrote: > > - Add distro boot to board include file and deconfig file > - Miscellaneous changes: > - Remove Gerald from maintainer list (email bounced) >

[RESEND PATCH] arm: kirkwood: nsa310s: Add Distro boot capability

2022-08-11 Thread Tony Dinh
CONFIG_UBIFS_SILENCE_MSG to reduce binary size. Note that this patch is depended on the following patch: https://patchwork.ozlabs.org/project/uboot/patch/20220807192709.21717-1-p...@kernel.org/ Signed-off-by: Tony Dinh --- board/zyxel/nsa310s/MAINTAINERS | 1 - configs/nsa310s_defconfig

Re: [RESEND PATCH] arm: kirkwood: nsa310s: Add Distro boot capability

2022-08-12 Thread Tony Dinh
Hi Stefan, On Thu, Aug 11, 2022 at 10:29 PM Stefan Roese wrote: > > Hi Tony, > > On 12.08.22 01:40, Tony Dinh wrote: > > - Add distro boot to board include file and deconfig file > > - Miscellaneous changes: > > - Remove Gerald from maintainer list (

[PATCH] arm: kirkwood: Add CONFIG_SUPPORT_PASSING_ATAGS

2022-08-17 Thread Tony Dinh
Add CONFIG_SUPPORT_PASSING_ATAGS and friends to support legacy image method of booting. Debian and OpenWrt installer use uImage with appended DTB for these Kirkwood boards. Signed-off-by: Tony Dinh --- configs/dockstar_defconfig | 3 +++ configs/dreamplug_defconfig | 3 +++ configs

Re: [PATCH] arm: mvebu: mbus: Fix mbus driver to work also after U-Boot relocation

2022-08-22 Thread Tony Dinh
Hi Pali, On Mon, Aug 22, 2022 at 4:00 PM Pali Rohár wrote: > > On Wednesday 17 August 2022 08:17:36 Stefan Roese wrote: > > On 10.08.22 14:46, Pali Rohár wrote: > > > mbus driver is initialized from arch_cpu_init() callback which is called > > > before relocation. This driver stores lot of functi

Re: mvebu - switch to orion-timer

2022-08-23 Thread Tony Dinh
Hi Stefan, I would like to see this too. I was thinking of doing it per board, but it is more appropriate to enable it for Arch_Kirkwood and Arch_MVEBU. Thanks, Tony On Tue, Aug 23, 2022 at 3:33 PM Pali Rohár wrote: > > Hello Stefan! Now when U-Boot contains new orion-timer.c driver, which > Mi

Re: mvebu - switch to orion-timer

2022-08-29 Thread Tony Dinh
Hi Stefan, On Mon, Aug 29, 2022 at 5:50 AM Pali Rohár wrote: > > On Monday 29 August 2022 14:07:29 Stefan Roese wrote: > > Hi Michael, Pali, Tony & all, > > > > On 24.08.22 09:35, Michael Walle wrote: > > > Hi, > > > > > > > On 24.08.22 00:33, Pali Rohár wrote: > > > > > Hello Stefan! Now when U-

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-08-30 Thread Tony Dinh
Hi Stefan, On Tue, Aug 30, 2022 at 4:53 AM Stefan Roese wrote: > > This patchset enhaces the recently added Orion Timer driver to support > all other Kirkwood & 32bit MVEBU Armada platforms. Additionally, this > timer support is then enabled per default for those platforms, so that > the board co

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-08-30 Thread Tony Dinh
Hi Stefan, On Tue, Aug 30, 2022 at 10:08 PM Stefan Roese wrote: > > Hi Tony, > > On 31.08.22 07:02, Stefan Roese wrote: > > Hi Tony, > > > > On 31.08.22 00:15, Tony Dinh wrote: > >> Hi Stefan, > >> > >> On Tue, Aug 30, 2022 at 4:53 AM S

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-08-30 Thread Tony Dinh
Hi Stefan, On Tue, Aug 30, 2022 at 11:19 PM Stefan Roese wrote: > > Hi Tony, > > On 31.08.22 07:08, Stefan Roese wrote: > > Hi Tony, > > > > On 31.08.22 07:02, Stefan Roese wrote: > >> Hi Tony, > >> > >> On 31.08.22 00:15, Tony Dinh wrot

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-08-31 Thread Tony Dinh
Hi Stefan, On Wed, Aug 31, 2022 at 12:22 AM Stefan Roese wrote: > > Hi Tony, > > On 31.08.22 08:30, Tony Dinh wrote: > > Hi Stefan, > > > > On Tue, Aug 30, 2022 at 10:08 PM Stefan Roese wrote: > >> > >> Hi Tony, > >> > >> On

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-08-31 Thread Tony Dinh
Hi Stefan, On Wed, Aug 31, 2022 at 8:08 AM Tony Dinh wrote: > > Hi Stefan, > > On Wed, Aug 31, 2022 at 12:22 AM Stefan Roese wrote: > > > > Hi Tony, > > > > On 31.08.22 08:30, Tony Dinh wrote: > > > Hi Stefan, > > > > > > On Tue,

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-08-31 Thread Tony Dinh
Hi Stefan, On Wed, Aug 31, 2022 at 2:53 PM Tony Dinh wrote: > > Hi Stefan, > > On Wed, Aug 31, 2022 at 8:08 AM Tony Dinh wrote: > > > > Hi Stefan, > > > > On Wed, Aug 31, 2022 at 12:22 AM Stefan Roese wrote: > > > > > > Hi Tony, > > &

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-09-01 Thread Tony Dinh
Hi Simon, On Wed, Aug 31, 2022 at 7:27 PM Simon Glass wrote: > > Hi Tony, > > On Wed, 31 Aug 2022 at 19:39, Tony Dinh wrote: > > > > Hi Stefan, > > > > On Wed, Aug 31, 2022 at 2:53 PM Tony Dinh wrote: > > > > > > Hi Stefan, > &

Re: [PATCH 0/6] Enable CONFIG_TIMER for all Kirwood / MVEBU boards

2022-09-01 Thread Tony Dinh
Hi Stefan R, On Thu, Sep 1, 2022 at 7:35 AM Simon Glass wrote: > > Hi, > > On Thu, 1 Sept 2022 at 03:27, Stefan Roese wrote: > > > > Hi Tony, > > > > On 01.09.22 09:39, Tony Dinh wrote: > > > > > > > > >>> Some ideas. >

  1   2   3   4   5   6   >