Re: data abort when run 'dhcp'

2023-07-21 Thread qianfan
please try this two patches? http://patchwork.ozlabs.org/project/uboot/patch/20220402025836.19374-1-qianfangui...@163.com/ http://patchwork.ozlabs.org/project/uboot/patch/20220402025836.19374-2-qianfangui...@163.com/ Thanks Thanks, Miquèl 在 2022/3/24 17:33, qianfan 写道: 在 2022/3/23 18:12

Re: [PATCH v2] lib: sparse: allocate FASTBOOT_MAX_BLK_WRITE instead of small number

2023-07-07 Thread qianfan
s Korpershoek --- Changes in v2: - Use FASTBOOT_MAX_BLK_WRITE instead of blkcnt (Qianfan) - Link to v1: https://lore.kernel.org/r/20230616-sparse-flash-fix-v1-1-6bafeacc5...@baylibre.com --- drivers/fastboot/fb_mmc.c | 2 -- include/image-sparse.h| 2 ++ lib/image-sparse.c| 3 ++- 3 f

Re: [PATCH] lib: sparse: allocate blkcnt instead of arbitrary small number

2023-06-19 Thread qianfan
在 2023/6/16 21:26, Mattijs Korpershoek 写道: Commit 62649165cb02 ("lib: sparse: Make CHUNK_TYPE_RAW buffer aligned") fixed cache alignment for systems with a D-CACHE. However it introduced some performance regressions [1] on system flashing huge images, such as Android. On AM62x SK EVM, we

Re: [PATCH 2/2] drivers: thermal: Introduce sun8i_thermal

2023-02-27 Thread qianfan
在 2023/2/24 19:06, Andre Przywara 写道: On Mon, 13 Feb 2023 10:42:56 +0800 qianfangui...@163.com wrote: Hi, sorry for the delay, somehow this mail never made it into my inbox. From: qianfan Zhao Portting sun8i_thermal.c from linux-5.15 drivers and drop interrupt features. Next

Re: [PATCH] drivers: mmc: Reset watchdog when accessing mmc device

2022-10-27 Thread qianfan
在 2022/10/26 17:18, Jaehoon Chung 写道: Hi, -Original Message- From: qianfan [mailto:qianfangui...@163.com] Sent: Tuesday, August 30, 2022 12:43 PM To: Jaehoon Chung ; u-boot@lists.denx.de Cc: Peng Fan Subject: Re: [PATCH] drivers: mmc: Reset watchdog when accessing mmc device 在

Re: [PATCH] drivers: mmc: Reset watchdog when accessing mmc device

2022-08-29 Thread qianfan
在 2022/7/26 16:31, Jaehoon Chung 写道: On 7/13/22 16:32, qianfangui...@163.com wrote: From: qianfan Zhao watchdog will reset when 'mmc read' or 'ext4load' a large file from mmc device. Reset watchdog when accessing mmc device. I don't know why this patch is need. Hi: maybe your's board

Re: [PATCH v2] sunxi: psci: Fix sunxi_power_switch on sun8i-r40 platform

2022-07-02 Thread qianfan
在 2022/6/25 8:51, Andre Przywara 写道: On Sat, 14 May 2022 11:52:01 +0800 Chen-Yu Tsai wrote: Hi Qianfan, On Sat, May 14, 2022 at 11:19 AM wrote: From: qianfan Zhao linux system will die if we offline one of the cpu on R40 based board: eg: echo 0 > /sys/devices/system/cpu/cpu3/onl

Re: [PATCH v1] drivers: spi: sunxi: Fix spi speed settting

2022-07-02 Thread qianfan
在 2022/7/2 15:50, qianfan 写道: 在 2022/7/2 11:09, qianfan 写道: 在 2022/6/28 8:34, Andre Przywara 写道: On Thu,  9 Jun 2022 17:09:39 +0800 qianfangui...@163.com wrote: Hi Qianfan, From: qianfan Zhao dm_spi_claim_bus run spi_set_speed_mode first and then ops->claim_bus, but spi cl

Re: [PATCH v1] drivers: spi: sunxi: Fix spi speed settting

2022-07-02 Thread qianfan
在 2022/7/2 11:09, qianfan 写道: 在 2022/6/28 8:34, Andre Przywara 写道: On Thu,  9 Jun 2022 17:09:39 +0800 qianfangui...@163.com wrote: Hi Qianfan, From: qianfan Zhao dm_spi_claim_bus run spi_set_speed_mode first and then ops->claim_bus, but spi clock is enabled when sun4i_spi_claim_

Re: [PATCH v1] drivers: spi: sunxi: Fix spi speed settting

2022-07-01 Thread qianfan
在 2022/6/28 8:34, Andre Przywara 写道: On Thu, 9 Jun 2022 17:09:39 +0800 qianfangui...@163.com wrote: Hi Qianfan, From: qianfan Zhao dm_spi_claim_bus run spi_set_speed_mode first and then ops->claim_bus, but spi clock is enabled when sun4i_spi_claim_bus, that will make sun4i_spi_set_sp

Re: [PATCH v2] sunxi: psci: Fix sunxi_power_switch on sun8i-r40 platform

2022-05-13 Thread qianfan
在 2022/5/14 11:52, Chen-Yu Tsai 写道: Hi, On Sat, May 14, 2022 at 11:19 AM wrote: From: qianfan Zhao linux system will die if we offline one of the cpu on R40 based board: eg: echo 0 > /sys/devices/system/cpu/cpu3/online Fixed sunxi_power_switch based on allwinner lichee 3.10 ker

Re: [PATCH v1] sunxi: Make SYS_VENDOR, SYS_BOARD, SYS_CONFIG_NAME configurable

2022-04-27 Thread qianfan
在 2022/4/28 8:16, Andre Przywara 写道: On Wed, 27 Apr 2022 08:42:09 +0800 qianfan wrote: Hi, 在 2022/4/26 20:49, Andre Przywara 写道: On Thu, 21 Apr 2022 11:32:11 +0800 qianfangui...@163.com wrote: Hi, From: qianfan Zhao The board is not configurable if use sunxi soc. Add Kconfig items

Re: [PATCH v1] sunxi: Make SYS_VENDOR, SYS_BOARD, SYS_CONFIG_NAME configurable

2022-04-26 Thread qianfan
在 2022/4/26 20:49, Andre Przywara 写道: On Thu, 21 Apr 2022 11:32:11 +0800 qianfangui...@163.com wrote: Hi, From: qianfan Zhao The board is not configurable if use sunxi soc. Add Kconfig items and make custom board available. What problem does that solve? And apart from that, I am afraid

Re: [PATCH v2 2/2] net: eth-uclass: Fix data abort when tftp get nonexistent file via usb

2022-04-14 Thread qianfan
在 2022/4/14 12:39, Ramon Fried 写道: On Sat, Apr 2, 2022 at 5:58 AM wrote: From: qianfan Zhao tftp_handler do eth_halt when TFTP_ERROR, but eth_halt will remove eth device if it is an usb network. usbeth's private data will be unaccessable when usb_eth_free_pkt, touch it will trigger data

Re: [PATCH v1] net: eth-uclass: Fix eth_halt

2022-04-01 Thread qianfan
在 2022/4/2 3:26, Ramon Fried 写道: On Mon, Mar 28, 2022 at 9:14 AM wrote: From: qianfan Zhao eth_device_priv maybe unaccessable after @stop handler due to eth device is removed in @stop. Setting private data before @stop handler. This also fix data abort bug when run dhcp or tftp command

Re: data abort when run 'dhcp'

2022-03-25 Thread qianfan
17:33, qianfan 写道: 在 2022/3/23 18:12, Heinrich Schuchardt 写道: On 3/23/22 11:07, qianfan wrote: 在 2022/3/23 17:51, Heinrich Schuchardt 写道: On 3/23/22 10:13, qianfan wrote: 在 2022/3/23 16:02, qianfan 写道: 在 2022/3/23 15:45, qianfan 写道: 在 2022/3/23 10:28, qianfan 写道: Hi: I had a custom

Re: data abort when run 'dhcp'

2022-03-24 Thread qianfan
在 2022/3/23 18:12, Heinrich Schuchardt 写道: On 3/23/22 11:07, qianfan wrote: 在 2022/3/23 17:51, Heinrich Schuchardt 写道: On 3/23/22 10:13, qianfan wrote: 在 2022/3/23 16:02, qianfan 写道: 在 2022/3/23 15:45, qianfan 写道: 在 2022/3/23 10:28, qianfan 写道: Hi: I had a custom AM335X board

Re: How to debug u-boot data abort

2022-03-24 Thread qianfan
在 2022/3/24 11:18, AKASHI Takahiro 写道: On Wed, Mar 23, 2022 at 09:27:08AM +0100, Heinrich Schuchardt wrote: On 3/23/22 08:45, qianfan wrote: 在 2022/3/23 10:28, qianfan 写道: Hi: I had a custom AM335X board connected my computer by usbnet. It always report data abort when 'dhcp': Next

Re: data abort when run 'dhcp'

2022-03-23 Thread qianfan
t you just submit some patchs about malloc, could you please also check this? 在 2022/3/23 18:12, Heinrich Schuchardt 写道: On 3/23/22 11:07, qianfan wrote: 在 2022/3/23 17:51, Heinrich Schuchardt 写道: On 3/23/22 10:13, qianfan wrote: 在 2022/3/23 16:02, qianfan 写道: 在 2022/3/23 15:45, qianfan 写道:

Re: data abort when run 'dhcp'

2022-03-23 Thread qianfan
在 2022/3/23 17:51, Heinrich Schuchardt 写道: On 3/23/22 10:13, qianfan wrote: 在 2022/3/23 16:02, qianfan 写道: 在 2022/3/23 15:45, qianfan 写道: 在 2022/3/23 10:28, qianfan 写道: Hi: I had a custom AM335X board connected my computer by usbnet. It always report data abort when 'dhcp': Next

Re: data abort when run 'dhcp'

2022-03-23 Thread qianfan
在 2022/3/23 16:02, qianfan 写道: 在 2022/3/23 15:45, qianfan 写道: 在 2022/3/23 10:28, qianfan 写道: Hi: I had a custom AM335X board connected my computer by usbnet. It always report data abort when 'dhcp': Next it the log: U-Boot 2022.01-rc1-00183-gfa5b4e2d19-dirty (Feb 25 2022 - 15:45:02

data abort when run 'dhcp'

2022-03-23 Thread qianfan
在 2022/3/23 15:45, qianfan 写道: 在 2022/3/23 10:28, qianfan 写道: Hi: I had a custom AM335X board connected my computer by usbnet. It always report data abort when 'dhcp': Next it the log: U-Boot 2022.01-rc1-00183-gfa5b4e2d19-dirty (Feb 25 2022 - 15:45:02 +0800) CPU  : AM335X-GP rev 2.1

Re: How to debug u-boot data abort

2022-03-23 Thread qianfan
在 2022/3/23 15:51, Abder 写道: Le mer. 23 mars 2022 à 03:28, qianfan a écrit : Hi: I had a custom AM335X board connected my computer by usbnet. It always report data abort when 'dhcp': Next it the log: U-Boot 2022.01-rc1-00183-gfa5b4e2d19-dirty (Feb 25 2022 - 15:45:02 +0800) CPU : AM335X

Re: How to debug u-boot data abort

2022-03-23 Thread qianfan
在 2022/3/23 10:28, qianfan 写道: Hi: I had a custom AM335X board connected my computer by usbnet. It always report data abort when 'dhcp': Next it the log: U-Boot 2022.01-rc1-00183-gfa5b4e2d19-dirty (Feb 25 2022 - 15:45:02 +0800) CPU  : AM335X-GP rev 2.1 Model: WISDOM AM335X CCT DRAM

How to debug u-boot data abort

2022-03-22 Thread qianfan
Hi: I had a custom AM335X board connected my computer by usbnet. It always report data abort when 'dhcp': Next it the log: U-Boot 2022.01-rc1-00183-gfa5b4e2d19-dirty (Feb 25 2022 - 15:45:02 +0800) CPU  : AM335X-GP rev 2.1 Model: WISDOM AM335X CCT DRAM:  512 MiB NAND:  256 MiB MMC:   OMAP

Re: 'bmp display' convert 24bit bmp to 16bit lcd format

2021-12-28 Thread qianfan
在 2021/12/28 16:52, Simon Glass 写道: Hi Qianfan, +Anatolij Gustschin On Mon, 20 Dec 2021 at 18:22, qianfan wrote: Hi: I had tested 'bmp display' command with 24bits bmp picture, **video_bmp_display** function always convert 24bits picture to RGB555 format if the lcd is 16bits. But most

'bmp display' convert 24bit bmp to 16bit lcd format

2021-12-20 Thread qianfan
Hi: I had tested 'bmp display' command with 24bits bmp picture, **video_bmp_display** function always convert 24bits picture to RGB555 format if the lcd is 16bits. But most of all lcd controller is RGB565 format. Should we improve this? Thanks

Re: [PATCH] driver: gadget: fastboot: Link endpoint and descriptors

2021-11-14 Thread qianfan
-rc1-01417-gcf8017ac80 (Nov 15 2021 - 13:35:51 +0800) Trying to boot from USB eth eth0: eth_cpsw, eth1: usb_ether using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in MAC de:ad:be:ef:00:01 HOST MAC de:ad:be:ef:00:00 在 2021/11/5 21:29, Sean Anderson 写道: On 11/5/21 2:28 AM, qianfan wrote: 在 2021/

Re: [PATCH] lib: sparse: Make CHUNK_TYPE_RAW buffer aligned

2021-11-07 Thread qianfan
在 2021/11/5 23:06, Sean Anderson 写道: Hi quanfan, Thanks for the patch. I had something similar in mind. On 11/5/21 1:46 AM, qianfangui...@qq.com wrote: From: qianfan Zhao CHUNK_TYPE_RAW buffer is not aligned, and flash sparse images by fastboot will report "Misaligned operation"

Re: [PATCH] driver: gadget: fastboot: Link endpoint and descriptors

2021-11-05 Thread qianfan
在 2021/11/4 0:53, Sean Anderson 写道: On 9/16/21 3:02 AM, qianfangui...@163.com wrote: From: qianfan Zhao If the downloading file size is equal to the partition size, "fastboot flash" can't work, at least in sunxi platform, because used an uninitalized point: ep->desc.

fastboot flash sparse image: buffer aligned

2021-11-04 Thread qianfan
Hi: I'm testing 'fastboot flash' command with sparse images. Due to we write CHUNK_TYPE_RAW format data from unaligned buffer to mmc, the u-boot will report warinnig messages like this: "CACHE: Misaligned operation at range [8428, 84001028]" if DCACHE is enabled. Is it a bug that we need

fastboot flash sparse image: buffer aligned

2021-11-04 Thread qianfan
Hi: I'm testing 'fastboot flash' command with sparse images. Due to we write CHUNK_TYPE_RAW format data from unaligned buffer to mmc, the u-boot will report warinnig messages like this: "CACHE: Misaligned operation at range [8428, 84001028]" if DCACHE is enabled. Is it a bug that we need

fastboot: boot: Relocate ramdisk

2021-11-01 Thread qianfan Zhao
Hi: The u-boot doesn't relocated ramdisk if we booting linux by using next fastboot command: (FASTBOOT_BUF_ADDR is configed to 0x8200) "fastboot boot arch/arm/boot/zImage ramdisk.cpio arch/arm/boot/dts/imx6ull-myir-mys-6ulx-eval.dtb -c 'console=ttymxc0,115200 root=/dev/ram0

Re: [PATCH 1/4] phy-sun4i-usb: Fix sun8i_r40_cfg

2021-06-30 Thread qianfan
multiplex. Many thanks for that! This indeed enables OTG functionality for me (although with some changes). That means that actually a similar patch needs to go through Linux. Do you plan on enabling support in Linux as well? sure. From: qianfan Zhao The address of sun8i_r40's phyctrl