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

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

[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] 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

Re: [PATCH] kirkwood: dns325: Enable 2nd harddrive

2023-08-11 Thread Tony Dinh
t; @@ -89,6 +89,7 @@ int board_early_init_f(void) > kw_gpio_set_blink(DNS325_GPIO_LED_POWER , 1); > > kw_gpio_set_value(DNS325_GPIO_SATA0_EN , 1); > + kw_gpio_set_value(DNS325_GPIO_SATA1_EN , 1); > return 0; > } > > -- > 2.41.0 > Reviewed-by: Tony Dinh All the best, Tony

Re: F2-NAS2 and NSA325 contributions

2023-06-29 Thread Tony Dinh
otfs will need fake-hwclock anyway.. All the best, Tony > czw., 29 cze 2023 o 21:01 Tony Dinh napisał(a): > > > > Hi Henry, > > > > On Thu, Jun 29, 2023 at 6:53 PM Tony Dinh wrote: > > > > > > Hi Heny, > > > > > > On Thu, J

Re: F2-NAS2 and NSA325 contributions

2023-06-29 Thread Tony Dinh
Hi Henry, On Thu, Jun 29, 2023 at 6:53 PM Tony Dinh wrote: > > Hi Heny, > > On Thu, Jun 29, 2023 at 6:01 PM Henry Smith wrote: > > > > Hello, > > > > I'm a hobbyist that has been playing with Linkstation LS-WVL years > > ago. After frying UA

Re: F2-NAS2 and NSA325 contributions

2023-06-29 Thread Tony Dinh
Hi Heny, On Thu, Jun 29, 2023 at 6:01 PM Henry Smith wrote: > > Hello, > > I'm a hobbyist that has been playing with Linkstation LS-WVL years > ago. After frying UART on that, I got Terramaster F2-NAS2 later and > got u-boot from the main tree to work on it. > > Both landed in the closet until I

[Test] arm: mvebu: PCI_MVEBU driver on Kirkwood boards

2023-06-21 Thread Tony Dinh
Hi Pali, FYI. In reference to this patch: https://lore.kernel.org/all/20230114164125.1298-1-p...@kernel.org/ Recently, I built a new Linux kernel 6.3.x for the Kirkwood boards and discovered that the PCI_MVEBU driver was marked as BROKEN in Linux mainline. That was a surprise for me, since I've b

[PATCH] arm: mvebu: Enable gpio-fan for Thecus N2350 board

2023-06-20 Thread Tony Dinh
Add gpio-fan in the DTS and enable the GPIO in board file to start the fan during boot. Note that this patch depends on https://patchwork.ozlabs.org/project/uboot/patch/20230606214539.4229-1-mibo...@gmail.com/ Signed-off-by: Tony Dinh --- arch/arm/dts/armada-385-thecus-n2350.dts | 15

[PATCH] arm: mvebu: Clean up Thecus N2350 board DTS

2023-06-06 Thread Tony Dinh
- Update the Thecus N2350 DTS to conform with latest device-tree binding and styles. - Correct typo in mdio node. Signed-off-by: Tony Dinh --- arch/arm/dts/armada-385-thecus-n2350.dts | 210 +++ 1 file changed, 98 insertions(+), 112 deletions(-) diff --git a/arch/arm/dts

Re: mmc: Read eMMC partition access bits before card reset

2023-05-18 Thread Tony Dinh
Hi Stefan, On Wed, May 17, 2023 at 1:26 AM Stefan Roese wrote: > > Hi Pali, > > On 5/17/23 00:30, Pali Rohár wrote: > > On Tuesday 16 May 2023 14:56:46 Tom Rini wrote: > >> On Tue, May 16, 2023 at 08:52:23PM +0200, Pali Rohár wrote: > >>> On Tuesday 16 May 2023 11:36:20 Tom Rini wrote: > On

Re: [RFC PATCH v8 23/23] DO NOT MERGE: only to make CI happy

2023-05-12 Thread Tony Dinh
set CONFIG_LTO for kirkwoord sheevaplug and phytec bk4r1, otherwise it > hits its board size limit. For Sheevaplug CONFIG_LTO: Acked-by: Tony Dinh All the best, Tony > > We also disable some check for pylint as it was not able to find future for > commit object. > > Signed-off-

Re: [RESEND PATCH v2] netconsole: various improvements

2023-05-08 Thread Tony Dinh
On Mon, May 8, 2023 at 3:53 PM Tony Dinh wrote: > > Hi Simon, > > On Mon, May 8, 2023 at 2:23 PM Simon Glass wrote: > > > > Hi Tony, > > > > On Sun, 7 May 2023 at 22:25, Tony Dinh wrote: > > > > > > Hi Tom, > > > > > > On F

Re: [RESEND PATCH v2] netconsole: various improvements

2023-05-08 Thread Tony Dinh
Hi Simon, On Mon, May 8, 2023 at 2:23 PM Simon Glass wrote: > > Hi Tony, > > On Sun, 7 May 2023 at 22:25, Tony Dinh wrote: > > > > Hi Tom, > > > > On Fri, May 5, 2023 at 11:34 AM Tom Rini wrote: > > > > > > On Mon, Apr 03, 2023 a

Re: [RESEND PATCH v2] netconsole: various improvements

2023-05-07 Thread Tony Dinh
Hi Tom, On Fri, May 5, 2023 at 11:34 AM Tom Rini wrote: > > On Mon, Apr 03, 2023 at 02:41:52PM -0700, Tony Dinh wrote: > > > Use CONFIG_CONSOLE_MUX for netconsole. When netconsole is running, > > stdin/stdout/stder must be set to some primary console, in addtion to nc. &

Re: [RESEND PATCH v2] netconsole: various improvements

2023-04-24 Thread Tony Dinh
Hi Simon, On Mon, Apr 24, 2023 at 12:43 PM Simon Glass wrote: > > Hi Tony, > > On Wed, 19 Apr 2023 at 21:55, Tony Dinh wrote: > > > > On Wed, Apr 19, 2023 at 6:22 PM Tony Dinh wrote: > > > > > > HI Simon, > > > > > > On Tue, Apr 18,

Re: [RESEND PATCH v2] netconsole: various improvements

2023-04-19 Thread Tony Dinh
On Wed, Apr 19, 2023 at 6:22 PM Tony Dinh wrote: > > HI Simon, > > On Tue, Apr 18, 2023 at 6:46 PM Simon Glass wrote: > > > > Hi Tony, > > > > On Mon, 3 Apr 2023 at 15:42, Tony Dinh wrote: > > > > > > Use CONFIG_CONSOLE_MUX for netconsole

Re: [RESEND PATCH v2] netconsole: various improvements

2023-04-19 Thread Tony Dinh
HI Simon, On Tue, Apr 18, 2023 at 6:46 PM Simon Glass wrote: > > Hi Tony, > > On Mon, 3 Apr 2023 at 15:42, Tony Dinh wrote: > > > > Use CONFIG_CONSOLE_MUX for netconsole. When netconsole is running, > > stdin/stdout/stder must be set to some primary console, in

Re: [PATCH] ddr: marvell: a38x: Perform DDR training sequence again for 2nd boot

2023-04-15 Thread Tony Dinh
Hi Pali, I've created a pull request for this patch to the Marvell repo. https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell/pull/41 Thanks, Tony On Thu, Apr 13, 2023 at 11:06 PM Stefan Roese wrote: > > On 4/3/23 06:42, Tony Dinh wrote: > > - DDR Training sequence

Re: [RESEND PATCH v2] netconsole: various improvements

2023-04-13 Thread Tony Dinh
Hi Ramon, Hi Joe, Any comments on this patch? Thanks, Tony On Mon, Apr 3, 2023 at 2:42 PM Tony Dinh wrote: > > Use CONFIG_CONSOLE_MUX for netconsole. When netconsole is running, > stdin/stdout/stder must be set to some primary console, in addtion to nc. > For example, stdin=ser

Re: [PATCH] ddr: marvell: a38x: Perform DDR training sequence again for 2nd boot

2023-04-11 Thread Tony Dinh
Hi Stefan, On Tue, Apr 11, 2023 at 1:36 AM Stefan Roese wrote: > > Hi Tony, > > On 4/3/23 06:42, Tony Dinh wrote: > > - DDR Training sequence happens very fast. The speedup in boot time is > > negligible by skipping the training sequence during 2nd boot or after. > >

Re: [PATCH] ddr: marvell: a38x: Perform DDR training sequence again for 2nd boot

2023-04-06 Thread Tony Dinh
Hi Pali, Could you review this patch? Thanks, Tony On Sun, Apr 2, 2023 at 9:42 PM Tony Dinh wrote: > > - DDR Training sequence happens very fast. The speedup in boot time is > negligible by skipping the training sequence during 2nd boot or after. > So remove the check and skip. >

Re: [RFC PATCH v1] arm: lib: add __gnu_thumb1_case_si

2023-04-04 Thread Tony Dinh
Hi Francis, On Sun, Apr 2, 2023 at 3:17 AM Pali Rohár wrote: > > On Saturday 01 April 2023 15:17:59 Tony Dinh wrote: > > Hi Francis, > > > > On Sat, Apr 1, 2023 at 2:55 PM Francis Laniel > > wrote: > > > > > > The assembly for __gnu_thumb1_case_s

[RESEND PATCH v2] netconsole: various improvements

2023-04-03 Thread Tony Dinh
the list of devices in stdin/stdout/stderr. Signed-off-by: Tony Dinh --- Changes in v2: - Select CONFIG_CONSOLE_MUX if CONFIG_NETCONSOLE is enabled - Add new functions in netconsole driver to support CONSOLE_MUX - Add new function to encapsulate the process of stopping netconsole from bootm

Re: [PATCH v2] netconsole: various improvements

2023-04-03 Thread Tony Dinh
Hi all, I've missed one line of code in bootm.c. +#include So I will resend this patch. Thanks, Tony On Sun, Apr 2, 2023 at 1:31 PM Tony Dinh wrote: > > Use CONFIG_CONSOLE_MUX for netconsole. When netconsole is running, > stdin/stdout/stder must be set to some primary console,

[PATCH] ddr: marvell: a38x: Perform DDR training sequence again for 2nd boot

2023-04-02 Thread Tony Dinh
limbo state, where the BootROM has recorded that it is already in a 2nd boot. The training must be repeated in this scenario to get out of this limbo state, but due to the check it cannot be performed. Signed-off-by: Tony Dinh --- drivers/ddr/marvell/a38x/mv_ddr_plat.c | 7 --- 1 file

[PATCH v2] netconsole: various improvements

2023-04-02 Thread Tony Dinh
the list of devices in stdin/stdout/stderr. Signed-off-by: Tony Dinh --- Changes in v2: - Select CONFIG_CONSOLE_MUX if CONFIG_NETCONSOLE is enabled - Add new functions in netconsole driver to support CONSOLE_MUX - Add new function to encapsulate the process of stopping netconsole from bootm

Re: [RFC PATCH v1] arm: lib: add __gnu_thumb1_case_si

2023-04-01 Thread Tony Dinh
Hi Francis, On Sat, Apr 1, 2023 at 2:55 PM Francis Laniel wrote: > > The assembly for __gnu_thumb1_case_si was taken from upstream gcc and adapted > as width suffix was removed for the add instruction [1]. > > Signed-off-by: Francis Laniel > Tested-by: Tony Dinh > [1] >

Re: [RFC PATCH v7 23/23] DO NOT MERGE: only to make CI happy

2023-03-31 Thread Tony Dinh
Hi Francis, On Thu, Mar 30, 2023 at 3:14 PM Francis Laniel wrote: > > Hi. > > Le jeudi 30 mars 2023, 21:17:33 WEST Tony Dinh a écrit : > > Hi Francis, > > > > On Thu, Mar 30, 2023 at 12:50 PM Francis Laniel > > > > wrote: > > > This commit se

Re: [PATCH u-boot-mvebu 0/7] arm: mvebu: Boot support for 4K Native disks

2023-03-30 Thread Tony Dinh
hould be power > of two. I don't have any board that can boot from SATA. But I ran regression tests on the Pogo V4 (Kirkwood 6192). kwboot and boot from NAND works fine. Tested-by: Tony Dinh Thanks, Tony > Pali Rohár (7): > arm: mvebu: spl: Do not hardcode SATA block size to 512

Re: [RFC PATCH v7 23/23] DO NOT MERGE: only to make CI happy

2023-03-30 Thread Tony Dinh
Hi Francis, On Thu, Mar 30, 2023 at 12:50 PM Francis Laniel wrote: > > This commit set CONFIG_HUSH_PARSER_2021 as the default to trigger the CI with > this parser. > > Nonetheless, the keymile (i.e. VENDOR_KM) board family is not compatible with > new 2021 hush parser. > Indeed, This boards used

Re: DM SPI flash improvements

2023-03-26 Thread Tony Dinh
Hi Simon, On Sun, Mar 26, 2023 at 9:01 PM Simon Glass wrote: > > Hi Tony, > > On Mon, 27 Mar 2023 at 12:28, Tony Dinh wrote: > > > > Hi Simon, > > > > I'm investigating a problem with the Thecus N2350 board that has SPI > > flash on controller 1

DM SPI flash improvements

2023-03-26 Thread Tony Dinh
Hi Simon, I'm investigating a problem with the Thecus N2350 board that has SPI flash on controller 1, but not on controller 0. Booting with SPI SPL is not possible with CONFIG_SF_DEFAULT_BUS=1. Reference: https://lists.denx.de/pipermail/u-boot/2023-March/511517.html That led me to the drivers/mt

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

2023-03-25 Thread Tony Dinh
On Sat, Mar 25, 2023 at 12:27 PM Tony Dinh wrote: > > Hi Pali, > > On Sat, Mar 25, 2023 at 6:30 AM Pali Rohár wrote: > > > > On Saturday 04 March 2023 11:50:30 Pali Rohár wrote: > > > Improve code for checking strapping pins which specifies boot mode source. >

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

2023-03-25 Thread Tony Dinh
Hi Pali, On Sat, Mar 25, 2023 at 6:30 AM Pali Rohár wrote: > > On Saturday 04 March 2023 11:50:30 Pali Rohár wrote: > > Improve code for checking strapping pins which specifies boot mode source. > > > > Martin, could you test if Clearfog can be still configured into UART > > booting mode via HW s

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] 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: [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-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

[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] 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] 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] 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] 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] 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

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 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 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

[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-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: >

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-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 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 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-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-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-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 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

[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] 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,

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

[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-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

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-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-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 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 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-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-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-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 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 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

[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 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

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 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 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 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-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 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

[PATCH] arm: mvebu: Use 4K sector for Thecus N2350 SPI flash

2023-02-16 Thread Tony Dinh
Since the SPI flash chip mx25l3205d on this board has 4K-sector capability, enable it for the envs. Signed-off-by: Tony Dinh --- configs/n2350_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/n2350_defconfig b/configs/n2350_defconfig index dcb2c96791

arm: lib1funcs.S: Plan to resync Linux code?

2023-02-14 Thread Tony Dinh
Hi Marek, Do you have plans to resync Linux lib1funcs.S to u-boot? Tom mentioned it it this thread: https://lists.denx.de/pipermail/u-boot/2023-January/504287.html And one of the reasons it came up was that an armv5 board (Pogo V4) has both CONFIG_LTO and CONFIG_SYS_THUMB_BUILD enabled. And we e

Re: [PATCH] arm: kirkwood: Enable uart0 dm-pre-reloc for Pogoplug V4 board

2023-02-13 Thread Tony Dinh
On Mon, Feb 13, 2023 at 1:12 AM Stefan Roese wrote: > > Hi Michael, > > On 2/13/23 09:48, Michael Walle wrote: > > Am 2023-02-13 09:43, schrieb Stefan Roese: > >> On 2/10/23 22:08, Tony Dinh wrote: > >>> When DM_SERIAL is enabled, the device-tree tag u-boot,

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

2023-02-10 Thread Tony Dinh
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 Stefan, > > Hi Pali, > > > > On Fri, Feb 10, 2023 at 9:29 AM Pali Rohár wrote: > > > > > > On Thursday 09 Februar

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

2023-02-10 Thread Tony Dinh
Hi Stefan, Hi Pali, On Fri, Feb 10, 2023 at 9:29 AM Pali Rohár wrote: > > On Thursday 09 February 2023 17:37:54 Tony Dinh wrote: > > Hi Pali, > > > > On Thu, Feb 9, 2023 at 1:45 PM Pali Rohár wrote: > > > > > > On Thursday 09 February 2023 1

[PATCH] arm: kirkwood: Enable uart0 dm-pre-reloc for Pogoplug V4 board

2023-02-10 Thread Tony Dinh
When DM_SERIAL is enabled, the device-tree tag u-boot,dm-pre-reloc is required for this board to boot over UART with kwboot. Enable this in kirkwood-pogoplug-series-4-u-boot.dtsi. Signed-off-by: Tony Dinh --- arch/arm/dts/kirkwood-pogoplug-series-4-u-boot.dtsi | 7 +++ 1 file changed, 7

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

2023-02-09 Thread Tony Dinh
Hi Pali, On Thu, Feb 9, 2023 at 1:45 PM Pali Rohár wrote: > > On Thursday 09 February 2023 13:33:23 Tony Dinh wrote: > > Hi Stefan, > > > > On Wed, Feb 8, 2023 at 11:15 PM Stefan Roese wrote: > > > > > > Hi Tony, > > > > &

[PATCH] arm: mvebu: Add support for Synology DS116 (Armada 385)

2023-02-09 Thread Tony Dinh
) - GPIO fan - serial console Note that this patch depends on the add-support for Thecus N2350 patch: https://patchwork.ozlabs.org/project/uboot/patch/20230201231306.7010-1-mibo...@gmail.com/ Signed-off-by: Tony Dinh --- arch/arm/dts/Makefile | 1 + arch/arm/dts/armada-385

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

2023-02-09 Thread Tony Dinh
Hi Stefan, On Wed, Feb 8, 2023 at 11:15 PM Stefan Roese wrote: > > Hi Tony, > > On 2/9/23 04:17, Tony Dinh wrote: > > Hi Stefan, > > > > On Fri, Feb 3, 2023 at 4:11 PM Tony Dinh wrote: > >> > >> Hi Pali, > >> > >> On Fri, Fe

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

2023-02-08 Thread Tony Dinh
Hi Stefan, On Fri, Feb 3, 2023 at 4:11 PM Tony Dinh wrote: > > Hi Pali, > > On Fri, Feb 3, 2023 at 2:05 PM Pali Rohár wrote: > > > > On Thursday 02 February 2023 19:04:45 Pali Rohár wrote: > > > On Wednesday 01 February 2023 13:13:16 Tony Dinh wrote: > >

[RESEND PATCH v2] arm: mvebu: Power up 2nd SATA port for Thecus N2350

2023-02-06 Thread Tony Dinh
-by: Tony Dinh --- Changes in v2: - Use BIT macros to make it easier to see which GPIOs are used. - Resent to correct missing BIT(0) in N2350_GPP_OUT_VAL_MID board/thecus/n2350/n2350.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/thecus/n2350/n2350.c b/board/thecus

Re: [PATCH] arm: mvebu: Power up 2nd SATA port for Thecus N2350

2023-02-06 Thread Tony Dinh
Hi Stefan, Looks like I botched this V2 patch :) I will resend it. Thanks, Tony On Sun, Feb 5, 2023 at 1:29 PM Tony Dinh wrote: > > Currently, only the 1st SATA port is powered up (by GPIO1 12). > Add GPIO1 13 in board initialization to power up the 2nd SATA port. > > Note

[PATCH v2] arm: mvebu: Power up 2nd SATA port for Thecus N2350

2023-02-06 Thread Tony Dinh
-by: Tony Dinh --- Changes in v2: Use BIT macros to make it easier to see which GPIOs are used. board/thecus/n2350/n2350.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/thecus/n2350/n2350.c b/board/thecus/n2350/n2350.c index 4cfdfba662..190b7034ef 100644 --- a/board

Re: [PATCH] arm: mvebu: Power up 2nd SATA port for Thecus N2350

2023-02-06 Thread Tony Dinh
Hi Stefan, On Mon, Feb 6, 2023 at 2:01 AM Stefan Roese wrote: > > Hi Tony, > > On 2/5/23 22:28, Tony Dinh wrote: > > Currently, only the 1st SATA port is powered up (by GPIO1 12). > > Add GPIO1 13 in board initialization to power up the 2nd SATA port. > > > >

[PATCH] arm: mvebu: Power up 2nd SATA port for Thecus N2350

2023-02-05 Thread Tony Dinh
-by: Tony Dinh --- board/thecus/n2350/n2350.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/thecus/n2350/n2350.c b/board/thecus/n2350/n2350.c index 4cfdfba662..58028a0695 100644 --- a/board/thecus/n2350/n2350.c +++ b/board/thecus/n2350/n2350.c @@ -25,7 +25,7

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

2023-02-03 Thread Tony Dinh
Hi Pali, On Fri, Feb 3, 2023 at 2:05 PM Pali Rohár wrote: > > On Thursday 02 February 2023 19:04:45 Pali Rohár wrote: > > On Wednesday 01 February 2023 13:13:16 Tony Dinh wrote: > > > Hi all, > > > > > > On Wed, Feb 1, 2023 at 11:05 AM Pali Rohár wrote: &

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

2023-02-03 Thread Tony Dinh
Hi Stefan, On Thu, Feb 2, 2023 at 8:28 PM Tony Dinh wrote: > > Hi all, > > On Thu, Feb 2, 2023 at 3:59 PM Tony Dinh wrote: > > > > Hi all, > > > > On Thu, Feb 2, 2023 at 10:04 AM Pali Rohár wrote: > > > > > > On Wednesday 01

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

2023-02-02 Thread Tony Dinh
Hi all, On Thu, Feb 2, 2023 at 3:59 PM Tony Dinh wrote: > > Hi all, > > On Thu, Feb 2, 2023 at 10:04 AM Pali Rohár wrote: > > > > On Wednesday 01 February 2023 13:13:16 Tony Dinh wrote: > > > Hi all, > > > > > > On Wed, Feb 1, 2023 at 11:05 AM

<    1   2   3   4   5   6   >