Re: [PATCH 13/15] rockchip: rk3328: Add support to build bootable SPI image

2024-02-08 Thread Da Xue
On Wed, Feb 7, 2024 at 10:53 PM Dragan Simic wrote: > > Hello Jonas, > > On 2024-02-07 01:02, Jonas Karlman wrote: > > Similar to RK35xx the BootRom in RK3328 can read all data and look for > > idbloader at 0x8000, same as on SD and eMMC. > > > > Use the rksd format and modify the mkimage offset

Re: [RFT PATCH 0/2] mmc: meson-gx: improve MMC reliabilty

2023-11-29 Thread Da Xue
On Thu, Nov 23, 2023 at 8:54 AM Neil Armstrong wrote: > > On 15/09/2023 18:01, Jerome Brunet wrote: > > Amlogic MMC on the GX (and later) SoCs has been problematic for years, > > especially with u-boot. > > > > Linux has been fairly stable for a few years. It is using a fixed phase > > setting

Re: [PATCH v2] usb: xhci: Workaround to fix the USB halted endpoint issues

2023-10-13 Thread Da Xue
On Fri, Oct 13, 2023 at 7:47 AM Marek Vasut wrote: > > On 10/13/23 06:53, Venkatesh Yadav Abbarapu wrote: > > The xhci host controller driver trying to queue the URB's and it is > > getting halted at the endpoint, thereby hitting the BUG_ON's. > > Mostly these kind of random issues are seen on

Re: bootstd regression from distro_bootcmd for removable EFI boot and weird return codes for fs

2023-07-24 Thread Da Xue
On Mon, Jul 24, 2023 at 11:48 AM Da Xue wrote: > > I forgot to attach some additional details: > > ``` > sudo fdisk -l /dev/sda > Disk /dev/sda: 58.24 GiB, 62534975488 bytes, 122138624 sectors > Disk model: STORAGE DEVICE > Units: sectors of 1 * 512 = 512 bytes > Se

Re: bootstd regression from distro_bootcmd for removable EFI boot and weird return codes for fs

2023-07-24 Thread Da Xue
.EFI => echo $? 1 => ls mmc 1 /EFI/BOOT ./ ../ 51806720 BOOTAA64.EFI 1 file(s), 2 dir(s) => ls mmc 1 /EFI/BOOT/nonexist => echo $? 1 ``` On Mon, Jul 24, 2023 at 11:35 AM Da Xue wrote: > > Hi, > > I switch to bootstd and I am experiencing an iss

bootstd regression from distro_bootcmd for removable EFI boot and weird return codes for fs

2023-07-24 Thread Da Xue
Hi, I switch to bootstd and I am experiencing an issue with bootstd not detected EFI bootable file in /EFI/BOOT/BOOTAA64.EFI in certain image, buildroot specifically. The same setup works fine with distro_bootcmd. I have attached the logs. I have tried the following: 1) Directory and filename

Re: EFI breaks USB dual port detection - our observations

2023-07-18 Thread Da Xue
On Tue, Jul 18, 2023 at 3:13 PM Heinrich Schuchardt wrote: > > > Am 18. Juli 2023 20:37:04 MESZ schrieb Suniel Mahesh < > su...@amarulasolutions.com>: > >Hi, > > > >I am testing the USB infrastructure on a Rockchip RK3328 based > >roc-rk3328-cc target. > > > >The USB tree on the device is as

Re: [PATCH v2 0/1] meson: Demonstration of using binman to produce the image

2023-04-07 Thread Da Xue
On Wed, Apr 5, 2023 at 2:39 PM Simon Glass wrote: > > Hi Christian, > > On Mon, 3 Apr 2023 at 20:10, Christian Hewitt > wrote: > > > > > On 2 Apr 2023, at 6:41 am, Simon Glass wrote: > > > > > > Hi Mark, > > > > > > On Sun, 2 Apr 2023 at 09:28, Mark Kettenis > > > wrote: > > > > > > > > >

Re: [PATCH] sunxi-mmc: increase stabilization delay from 1ms to 20ms

2022-07-22 Thread Da Xue
On Fri, Jul 22, 2022 at 1:56 PM Jernej Škrabec wrote: > > Dne petek, 22. julij 2022 ob 18:55:14 CEST je Andre Przywara napisal(a): > > On 21/07/2022 23:08, Da Xue wrote: > > > > Hi, > > > > > Some users experienced problems booting u-boot from SPL hangin

[PATCH] sunxi-mmc: increase stabilization delay from 1ms to 20ms

2022-07-21 Thread Da Xue
. The delay can be replaced with: writel(SUNXI_MMC_GCTRL_RESET, >reg->gctrl); if (wait_for_bit_le32( >reg->gctrl, SUNXI_MMC_GCTRL_RESET, false, 20, false)) { printf("%s: Timeout\n", __func__); return -ETIMEDOUT; } Signed-off-by: Da Xue --- drivers/mmc/sunxi_mmc.c | 2 +- 1 fil

Re: Re: Re: Increasing stabilization time in sunxi_mmc_core_init

2022-07-21 Thread Da Xue
On Thu, Jul 21, 2022 at 4:58 PM Da Xue wrote: > > On Thu, Jul 21, 2022 at 4:49 PM Jernej Škrabec > wrote: > > > > Dne četrtek, 21. julij 2022 ob 22:33:09 CEST je Da Xue napisal(a): > > > On Thu, Jul 21, 2022 at 4:05 PM Jernej Škrabec > > wrote: > > &

Re: Re: Re: Increasing stabilization time in sunxi_mmc_core_init

2022-07-21 Thread Da Xue
On Thu, Jul 21, 2022 at 4:49 PM Jernej Škrabec wrote: > > Dne četrtek, 21. julij 2022 ob 22:33:09 CEST je Da Xue napisal(a): > > On Thu, Jul 21, 2022 at 4:05 PM Jernej Škrabec > wrote: > > > Dne četrtek, 21. julij 2022 ob 21:56:35 CEST je Da Xue napisal(a): > > >

Re: Re: Increasing stabilization time in sunxi_mmc_core_init

2022-07-21 Thread Da Xue
On Thu, Jul 21, 2022 at 4:05 PM Jernej Škrabec wrote: > > Dne četrtek, 21. julij 2022 ob 21:56:35 CEST je Da Xue napisal(a): > > On Thu, Jul 21, 2022 at 11:14 AM Jernej Škrabec > > > > wrote: > > > Hi! > > > > > > Dne četrtek, 21. ju

Re: Increasing stabilization time in sunxi_mmc_core_init

2022-07-21 Thread Da Xue
On Thu, Jul 21, 2022 at 11:14 AM Jernej Škrabec wrote: > > Hi! > > Dne četrtek, 21. julij 2022 ob 13:28:59 CEST je Andre Przywara napisal(a): > > On 21/07/2022 12:03, Da Xue wrote: > > > > Hi Da, > > > > > Users were reporting non-boot on our H5 b

Re: Pull request for efi-2021-07-rc5-2

2021-07-03 Thread Da Xue
On Sat, Jul 3, 2021 at 9:36 AM Heinrich Schuchardt wrote: > Am 3. Juli 2021 14:46:39 MESZ schrieb Da Xue : > >On Wed, Jun 30, 2021 at 8:06 AM Tom Rini wrote: > > > >> On Mon, Jun 28, 2021 at 09:47:53PM +0200, Heinrich Schuchardt wrote: > >> > >> > D

Re: Pull request for efi-2021-07-rc5-2

2021-07-03 Thread Da Xue
On Wed, Jun 30, 2021 at 8:06 AM Tom Rini wrote: > On Mon, Jun 28, 2021 at 09:47:53PM +0200, Heinrich Schuchardt wrote: > > > Dear Tom, > > > > I have removed the one patch for better EFI/DM integration that caused > > sandbox test problems on my last pull request. This topic needs more > >

[PATCH] configs: libretech: set SPI mode to 0

2021-07-02 Thread Da Xue
Kconfig defaults to mode 3 if CONFIG_SF_DEFAULT_MODE is not set. It becomes an issue since meson_spifc does not support SPI_CPHA. Needed after commit e2e95e5e25421fbef499e21bf94a5339701f9a99. Signed-off-by:Da Xue --- configs/libretech-ac_defconfig | 1 + configs/libretech-cc_v2_defconfig

Re: [PATCH V2] spi: Update speed/mode on change

2021-07-02 Thread Da Xue
On Fri, Jul 2, 2021 at 3:40 PM Marek Vasut wrote: > On 7/2/21 9:35 PM, Da Xue wrote: > > [...] > > >>>>>> Seems like you're hitting this code in drivers/spi/meson_spifc.c > >>>>>> > >>>>>> 250 static int meson

Re: [PATCH V2] spi: Update speed/mode on change

2021-07-02 Thread Da Xue
On Fri, Jul 2, 2021 at 3:06 PM Marek Vasut wrote: > On 7/2/21 8:28 PM, Da Xue wrote: > > On Fri, Jul 2, 2021 at 2:10 PM Marek Vasut wrote: > > > >> On 7/2/21 8:03 PM, Da Xue wrote: > >>> SF: Detected gd25lq128 with page size 256 Bytes, erase size 64 KiB, &g

Re: [PATCH V2] spi: Update speed/mode on change

2021-07-02 Thread Da Xue
On Fri, Jul 2, 2021 at 2:10 PM Marek Vasut wrote: > On 7/2/21 8:03 PM, Da Xue wrote: > > SF: Detected gd25lq128 with page size 256 Bytes, erase size 64 KiB, total > > 16 MiB > > SPI mode: 3 > > meson_spifc spi@8c80: Cannot set mode (err=-19) > > Failed to initi

Re: [PATCH V2] spi: Update speed/mode on change

2021-07-02 Thread Da Xue
Hi Marek, This patch breaks meson_spifc: SF: Detected gd25lq128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB meson_spifc spi@8c80: Cannot set mode (err=-19) Failed to initialize SPI flash at 0:0 (error -19) Best, Da On Wed, Jun 30, 2021 at 12:49 PM Tom Rini wrote: > On Thu, Jun

[PATCH] autoboot: fix MENUKEY

2021-07-02 Thread Da Xue
replace CONFIG_AUTOBOOT_USE_MENUKEY with CONFIG_AUTOBOOT_MENUKEY Signed-off-by: Da Xue --- common/autoboot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/autoboot.c b/common/autoboot.c index c834db7323..26bfd64acc 100644 --- a/common/autoboot.c +++ b/common

Re: [PATCH] autoboot: fix typos of CONFIG_AUTOBOOT_USE_MENUKEY

2021-07-02 Thread Da Xue
wrote: > On Mon, Jun 21, 2021 at 10:39:19PM -0400, Da Xue wrote: > > > replace typo CONFIG_USE_AUTOBOOT_MENUKEY with CONFIG_AUTOBOOT_USE_MENUKEY > > > > Signed-off-by: Da Xue > > Applied to u-boot/master, thanks! > > -- > Tom > -- Best, Da Xue General Ma

Re: [PATCH v2] disk: part_dos: update partition table entries after write

2021-06-21 Thread Da Xue
This breaks the build if CONFIG_CMD_MBR is enabled. Christian Melki sent a patch but it didn't get picked up? On Tue, Feb 2, 2021 at 9:32 AM Tom Rini wrote: > On Thu, Jan 28, 2021 at 09:10:07AM +0100, Gary Bisson wrote: > > > Fixes issues when switching from GPT to MBR partition tables. > > > >

[PATCH] autoboot: fix typos of CONFIG_AUTOBOOT_USE_MENUKEY

2021-06-21 Thread Da Xue
replace typo CONFIG_USE_AUTOBOOT_MENUKEY with CONFIG_AUTOBOOT_USE_MENUKEY Signed-off-by: Da Xue --- common/autoboot.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/autoboot.c b/common/autoboot.c index 0bb08e7a4c..e201c01ece 100644 --- a/common/autoboot.c

Re: [PATCH 2/3] ram: rk3328: add support ddr4 init

2020-06-20 Thread Da Xue
Hi Kever, Any chance you will be adding higher DDR4 speeds like 800/933/1066/1200? 333MHz is kind of limiting. We are trying to switch to upstream u-boot for ROC-RK3328-CC and ROC-RK3399-PC. Best, Da On Tue, Jan 7, 2020 at 2:16 AM Kever Yang wrote: > From: YouMin Chen > > Add

Re: [U-Boot] [PATCH v2 13/18] autoboot: Tidy up use of menukey

2020-05-04 Thread Da Xue
Hi Simon, I think there's something funny going on with this line: #define AUTOBOOT_MENUKEY CONFIG_USE_AUTOBOOT_MENUKEY Did you mean: #define AUTOBOOT_MENUKEY CONFIG_AUTOBOOT_MENUKEY? Best, Da On Mon, May 4, 2020 at 5:26 PM Da Xue wrote: > Hi Simon, > > The Kconfig doesn't match t

Re: [U-Boot] [PATCH v2 13/18] autoboot: Tidy up use of menukey

2020-05-04 Thread Da Xue
Hi Simon, The Kconfig doesn't match the common/autoboot.c. Kconfig is using AUTOBOOT_USE_MENUKEY and common/autoboot.c is CONFIG_USE_AUTOBOOT_MENUKEY. Best, Da On Sat, Jul 20, 2019 at 11:56 PM Simon Glass wrote: > Move the variable to the top of the file and adjust the code which uses it > to

Re: [U-Boot] U-Boot/EBBR plugfest at ELC-EU?

2019-08-21 Thread Da Xue
My flight out of Lyon is on the 31st. Happy to work on it anytime during the conference. On Thu, Aug 8, 2019, 4:06 AM Grant Likely wrote: > > > On 28/06/2019 09:19, Grant Likely wrote: > > Quick poll: who would be interested in a U-Boot/EBBR plugfest event > collocates with ELC-EU this year