Boot failure on Rock-pi-4-a when compiling with clang.

2023-08-02 Thread Ying-Chun Liu (PaulLiu)
Hi all, I'd like to have some ideas for debugging this conditions. When compiling with default gnu toolchain. It works great. When compiling with clang (clang-14 or clang-15), I'll get hang sometimes. The following are two boot logs: 1. U-Boot SPL 2023.10-rc1-00207-g38dedebc54-dirty (Aug 03

Re: [PATCH v2 5/6] net: add fastboot TCP documentation and IP6-only mode

2023-07-14 Thread Ying-Chun Liu (PaulLiu)
Reviewed-by: Ying-Chun Liu (PaulLiu) On 2023/5/11 00:59, Dmitrii Merkurev wrote: Command to start IP6 only TCP fastboot: fastboot tcp -ipv6 Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon Fried --- cmd/fastboot.c | 29

Re: [PATCH 0/1] virtio: add driver for virtio_console devices

2023-06-13 Thread Ying-Chun Liu (PaulLiu)
On 2023/6/9 17:27, Bin Meng wrote: Hi, On Tue, Jun 6, 2023 at 9:26 PM Ying-Chun Liu (PaulLiu) wrote: This is an implementation of single-character virtio-console. Part of the patch is based on barebox implementations. To test the patch, we can build qemu_arm64_defconfig target. Enable

[PATCH 1/1] virtio: add driver for virtio_console devices

2023-06-06 Thread Ying-Chun Liu (PaulLiu)
From: "A. Cody Schuffelen" This is an implementation of single-character virtio-console. Part of the patch is based on barebox implementations. Signed-off-by: A. Cody Schuffelen [ Paul: pick from the Android tree. Rebase to the upstream. Small fixes. ] Signed-off-by: Ying-Chun Li

[PATCH 0/1] virtio: add driver for virtio_console devices

2023-06-06 Thread Ying-Chun Liu (PaulLiu)
This is an implementation of single-character virtio-console. Part of the patch is based on barebox implementations. To test the patch, we can build qemu_arm64_defconfig target. Enable CONFIG_VIRTIO_CONSOLE. And run qemu-system-aarch64 with -device virtio-serial-pci,id=virtio-serial0 \ -chardev

Re: [PATCH v2 3/6] net: introduce TCP/IP6 support

2023-05-24 Thread Ying-Chun Liu (PaulLiu)
On 2023/5/11 00:59, Dmitrii Merkurev wrote: Add TCP/IP6 related headers and reuse refactored TCP/IP implementation Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon Fried --- include/net/tcp6.h | 106

Re: [PATCH v2 2/6] net: prepare existing TCP stack to be reused by IP6

2023-05-24 Thread Ying-Chun Liu (PaulLiu)
. Expose TCP state machine related functions This allows us to reuse TCP logic between IP and IP6 stack. Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon Fried --- include/net/tcp.h | 109 +-- net/net.c | 18 ++- net

Re: [PATCH v2 1/6] net: split IP_TCP header into separate IP/IP6 and TCP headers

2023-05-24 Thread Ying-Chun Liu (PaulLiu)
Reviewed-by: Ying-Chun Liu (PaulLiu) On 2023/5/11 00:59, Dmitrii Merkurev wrote: This allows us to reuse TCP logic between IP and IP6 stack. Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon Fried --- include/net/tcp.h | 54

[PATCH 5/6] virtio: Allocate bounce buffers for devices with VIRTIO_F_IOMMU_PLATFORM

2023-03-29 Thread Ying-Chun Liu (PaulLiu)
-off-by: Ying-Chun Liu (PaulLiu) Cc: Bin Meng Link: https://android.googlesource.com/platform/external/u-boot/+/3e052749e7c50c4c1a6014e645ae3b9be3710c07 --- drivers/virtio/virtio_ring.c | 25 - include/virtio_ring.h| 5 - 2 files changed, 24 insertions(+), 6

[PATCH 6/6] virtio: Use bounce buffers when VIRTIO_F_IOMMU_PLATFORM is set

2023-03-29 Thread Ying-Chun Liu (PaulLiu)
to PAGE_SIZE in preparation for platform specific handling at page granularity. Signed-off-by: Will Deacon [ Paul: pick from the Android tree. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Bin Meng Link: https://android.googlesource.com/platform/external/u-boot

[PATCH 2/6] virtio: pci: Tear down VQs in virtio_pci_reset()

2023-03-29 Thread Ying-Chun Liu (PaulLiu)
before freeing the virtqueue structure itself. Signed-off-by: Will Deacon [ Paul: pick from the Android tree. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Bin Meng Link: https://android.googlesource.com/platform/external/u-boot/+/5ed54ccd83cbffd0d8719ce650604b4e44

[PATCH 4/6] virtio: Add helper functions to attach/detach vring descriptors

2023-03-29 Thread Ying-Chun Liu (PaulLiu)
to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Bin Meng Link: https://android.googlesource.com/platform/external/u-boot/+/f73258a4bfe968c5f935db45f2ec5cc0104ee796 --- drivers/virtio/virtio_ring.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/virtio/virtio_ring.c b/drivers

[PATCH 3/6] virtio: Allocate virtqueue in page-size units

2023-03-29 Thread Ying-Chun Liu (PaulLiu)
-by: Will Deacon [ Paul: pick from the Android tree. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Bin Meng Link: https://android.googlesource.com/platform/external/u-boot/+/b4bb5227d4cf4fdfcd8b4e1ff2692d3a54d1482a --- drivers/virtio/virtio_ring.c | 24

[PATCH 1/6] virtio: Expose VIRTIO_F_IOMMU_PLATFORM in device features

2023-03-29 Thread Ying-Chun Liu (PaulLiu)
From: Will Deacon If we detect the VIRTIO_F_IOMMU_PLATFORM transport feature for a device, then expose it in the device features. Signed-off-by: Will Deacon [ Paul: pick from the Android tree. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Bin Meng Link: https

[PATCH 0/6] virtio: Use bounce buffers when VIRTIO_F_IOMMU_PLATFORM set

2023-03-29 Thread Ying-Chun Liu (PaulLiu)
These patches will use bounce buffers when VIRTIO_F_IOMMU_PLATFORM feature is in a virtio device. This feature can be tested with qemu with -device virtio-iommu-pci. So that when a -device virtio-blk-pci with iommu_platform=true, it will uses the bounce buffer instead. Will Deacon (6): virtio:

[PATCH 3/3] armv8: enable HAFDBS for other ELx when FEAT_HAFDBS is present

2023-03-17 Thread Ying-Chun Liu (PaulLiu)
From: meitao u-boot could be run at EL1/EL2/EL3. so we set it as same as EL1 does. otherwise it will hang when enable mmu, that is what we encounter in our SOC. Signed-off-by: meitao [ Paul: pick from the Android tree. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom

[PATCH 2/3] arm64: Use level-2 for largest block mappings when FEAT_HAFDBS is present

2023-03-17 Thread Ying-Chun Liu (PaulLiu)
the Android tree. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom Rini Link: https://android.googlesource.com/platform/external/u-boot/+/417a73581a72ff6d6ee4b0938117b8a23e32f7e8 --- arch/arm/cpu/armv8/cache_v8.c | 14 ++ arch/arm/include/asm/global_data.h

[PATCH 1/3] arm64: Use FEAT_HAFDBS to track dirty pages when available

2023-03-17 Thread Ying-Chun Liu (PaulLiu)
to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom Rini Link: https://android.googlesource.com/platform/external/u-boot/+/3c433724e6f830a6b2edd5ec3d4a504794887263 --- arch/arm/cpu/armv8/cache_v8.c | 16 +++- arch/arm/include/asm/armv8/mmu.h | 14

[PATCH 0/3] Use FEAT_HAFDBS to track dirty pages

2023-03-17 Thread Ying-Chun Liu (PaulLiu)
For some ARM64 cores there is a facility that allows the page table walker to track the dirty state of a page. These commits enhances the performance of CMOs by VA. Marc Zyngier (2): arm64: Use FEAT_HAFDBS to track dirty pages when available arm64: Use level-2 for largest block mappings when

[PATCH 1/1] compulab: imx8mm-cl-iot-gate: Fix some function declarations in ddr.h

2023-03-13 Thread Ying-Chun Liu (PaulLiu)
We have a few places here that the function declarations do not match their prototypes, correct them. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom Rini Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team --- board/compulab/imx8mm-cl-iot-gate/ddr/ddr.h | 4 ++-- 1 file changed, 2

[PATCH 0/1] compulab: imx8mm-cl-iot-gate: Fix some function declarations in ddr.h

2023-03-13 Thread Ying-Chun Liu (PaulLiu)
We have a few places here that the function declarations do not match their prototypes, correct them. This bug was found by Tom. https://lists.denx.de/pipermail/u-boot/2023-March/511786.html And we fixes this bug by modifying ddr.h instead. Ying-Chun Liu (PaulLiu) (1): compulab: imx8mm-cl-iot

[PATCH 0/1] lib/vsprintf.c: fix integer overflow in vsprintf

2023-03-08 Thread Ying-Chun Liu (PaulLiu)
vsnprintf_internal() adds 'size' to 'buf' and vsprintf() sets 'size' to 'INT_MAX' which can overflow. This causes sprintf() to fail when initializing the environment on 8GB. Instead of using 'INT_MAX', we use SIZE_MAX - buf, which is the largest possible string that could fit without overflowing

[PATCH 1/1] lib/vsprintf.c: fix integer overflow in vsprintf

2023-03-08 Thread Ying-Chun Liu (PaulLiu)
without overflowing 'size'. Signed-off-by: Tom Cherry [ Paul: pick from the Android tree. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom Rini Link: https://android.googlesource.com/platform/external/u-boot/+/43aae5d4415e0f9d744fb798acd52429d09957ce --- lib/vsprintf.c

[PATCH 2/2] arm64: Reduce PT size estimation complexity

2023-02-14 Thread Ying-Chun Liu (PaulLiu)
it almost instantaneous instead of taking a large amount of time if 2MB mappings are in use instead of 1GB. Signed-off-by: Marc Zyngier Signed-off-by: Pierre-Clément Tosi [ Paul: pick from the Android tree. Fixup Pierre's commit. Rebase to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc

[PATCH 1/2] arm64: Reduce add_map() complexity

2023-02-14 Thread Ying-Chun Liu (PaulLiu)
to the upstream ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom Rini Link: https://android.googlesource.com/platform/external/u-boot/+/96ad729cf4cab53bdff8222bb3eb256f38b5c3a6 Link: https://android.googlesource.com/platform/external/u-boot/+/6be9330601d81545c7c941e3609f35bf68a09059 --- arch/arm/cpu

[PATCH 0/2] Reduce the complexity of add_map() and count_required_pts()

2023-02-14 Thread Ying-Chun Liu (PaulLiu)
Reduce the complexity of add_map() and count_required_pts() to gain better performance. Marc Zyngier (2): arm64: Reduce add_map() complexity arm64: Reduce PT size estimation complexity arch/arm/cpu/armv8/cache_v8.c | 201 +- 1 file changed, 79 insertions(+),

[PATCH v2 2/2] arm64: Initialize TLB memory if CMO_BY_VA_ONLY

2023-02-08 Thread Ying-Chun Liu (PaulLiu)
tables when using CMO_BY_VA_ONLY, these must be in a valid state from their allocation. Signed-off-by: Pierre-Clément Tosi [ Paul: pick from the Android tree. Fix checkpatch warnings, and rebased to the upstream. ] Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Tom Rini Link: https

[PATCH v2 1/2] arm: cpu: Add optional CMOs by VA

2023-02-08 Thread Ying-Chun Liu (PaulLiu)
-Chun Liu (PaulLiu) Cc: Tom Rini Link: https://android.googlesource.com/platform/external/u-boot/+/db5507f47f4f57f766d52f753ff2cc761afc213b Link: https://android.googlesource.com/platform/external/u-boot/+/2baf54e743380a1e4a6bc2dbdde020a2e783ff67 --- v2: Fix the Signed-off-by list. --- arch/arm/cpu

[PATCH v2 0/2] arm: cpu: Add optional CMOs by VA

2023-02-08 Thread Ying-Chun Liu (PaulLiu)
Exposing set/way cache maintenance to a virtual machine is unsafe, not least because the instructions are not permission-checked but also because they are not broadcast between CPUs. Consequently, KVM traps and emulates such maintenance in the host kernel using by-VA operations and looping over

[PATCH 2/2] arm64: Initialize TLB memory if CMO_BY_VA_ONLY

2023-02-07 Thread Ying-Chun Liu (PaulLiu)
, these must be in a valid state from their allocation. Signed-off-by: Ying-Chun Liu (PaulLiu) Signed-off-by: Pierre-Clément Tosi Cc: Tom Rini --- arch/arm/lib/cache.c | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/lib/cache.c b/arch/arm/lib/cache.c index 1a589c7e2a

[PATCH 1/2] arm: cpu: Add optional CMOs by VA

2023-02-07 Thread Ying-Chun Liu (PaulLiu)
instead of using the set/way instructions. Signed-off-by: Ying-Chun Liu (PaulLiu) Signed-off-by: Marc Zyngier Signed-off-by: Will Deacon Cc: Tom Rini --- arch/arm/cpu/armv8/Kconfig| 4 ++ arch/arm/cpu/armv8/cache.S| 50 +- arch/arm/cpu/armv8/cache_v8.c | 97

[PATCH 0/2] arm: cpu: Add optional CMOs by VA

2023-02-07 Thread Ying-Chun Liu (PaulLiu)
instead of using the set/way instructions. Ying-Chun Liu (PaulLiu) (2): arm: cpu: Add optional CMOs by VA arm64: Initialize TLB memory if CMO_BY_VA_ONLY arch/arm/cpu/armv8/Kconfig| 4 ++ arch/arm/cpu/armv8/cache.S| 50 +- arch/arm/cpu/armv8/cache_v8.c | 97

[PATCH v4 2/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc:

[PATCH v4 1/2] dts: imx8mp: assign binman_configuration label to config-SEQ

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
assign a label for config-SEQ so that the board dts can modify the configuration more easily. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team --- v2: just rebase to the latest master branch. v3: rebase to the latest master branch. v4: fix

[PATCH v4 0/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
h. v4: fix subject and commit log: node name -> label Ying-Chun Liu (PaulLiu) (2): dts: imx8mp: assign binman_configuration label to config-SEQ dts: imx8mp-rsb3720: modify configrations to load fip into memory arch/arm/dts/imx8mp-rsb3720-a1-u-boot.dtsi | 10 -- arch/arm/dts/imx8m

[PATCH v3 2/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc:

[PATCH v3 1/2] dts: imx8mp: assign binman_configuration node name to config-SEQ

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
assign a node name for config-SEQ so that the board dts can modify the configuration more easily. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team --- v2: just rebase to the latest master branch. v3: rebase to the latest master branch

[PATCH v3 0/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2023-01-17 Thread Ying-Chun Liu (PaulLiu)
nch. Ying-Chun Liu (PaulLiu) (2): dts: imx8mp: assign binman_configuration node name to config-SEQ dts: imx8mp-rsb3720: modify configrations to load fip into memory arch/arm/dts/imx8mp-rsb3720-a1-u-boot.dtsi | 10 -- arch/arm/dts/imx8mp-u-boot.dtsi| 2 +- 2 files changed, 5

Re: [PATCH v20 2/4] net: Add wget application

2022-11-08 Thread Ying-Chun Liu (PaulLiu)
On 2022/11/9 05:03, Sean Anderson wrote: On 11/8/22 01:17, Ying-Chun Liu (PaulLiu) wrote: From: "Ying-Chun Liu (PaulLiu)" This commit adds a simple wget command that can download files from http server. The command syntax is wget ${loadaddr} Signed-off-by: Duncan Hare

[PATCH v20 4/4] test: cmd: add test for wget command.

2022-11-07 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Simulate a TCP HTTP server's response for testing wget command. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Michal Simek Cc: Ramon Fried Cc: Simon Glass --- test/cmd/Makefile | 1 + test/cmd/wget

[PATCH v20 3/4] doc: cmd: wget: add documentation

2022-11-07 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Add documentation for the wget command. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Michal Simek Cc: Ramon Fried Cc: Simon Glass --- doc/usage/cmd/wget.rst | 61 ++

[PATCH v20 2/4] net: Add wget application

2022-11-07 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This commit adds a simple wget command that can download files from http server. The command syntax is wget ${loadaddr} Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Reviewed-by: Simon Glass Cc: Christian Gmeiner Cc: Joe Hersh

[PATCH v20 1/4] net: Add TCP protocol

2022-11-07 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: D

[PATCH v20 0/4] add TCP and HTTP for downloading images

2022-11-07 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This patch is a refresh from previous patches made by Duncan Hare . I've contacted him and continue to work on this patch. This patch introduce a TCP stack with SACK. And a simple wget command to download images from http server. v1-v12: Made by Dunc

[PATCH 1/1] imx8m: ddr_init: fix reading of DDR4 MR registers

2022-10-19 Thread Ying-Chun Liu (PaulLiu)
Accorting to commit 290ffe57886271a6 we need to read more significant bytes to get a non-zero value. However commit 7e9bd84883aeb1e2 removes it by accident. Thus we add the changes back. This is needed to let imx8mm-cl-iot-gate to boot correctly. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Fabio

[PATCH 0/1] imx8m: ddr_init: fix reading of DDR4 MR registers

2022-10-19 Thread Ying-Chun Liu (PaulLiu)
Accorting to commit 290ffe57886271a6 we need to read more significant bytes to get a non-zero value. However commit 7e9bd84883aeb1e2 removes it by accident. Thus we add the changes back. This is needed to let imx8mm-cl-iot-gate to boot correctly. Ying-Chun Liu (PaulLiu) (1): imx8m: ddr_init

[PATCH v19 2/4] net: Add wget application

2022-10-19 Thread Ying-Chun Liu (PaulLiu)
This commit adds a simple wget command that can download files from http server. The command syntax is wget ${loadaddr} Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Reviewed-by: Simon Glass Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Michal Simek Cc: Ramon Fried

[PATCH v19 3/4] doc: cmd: wget: add documentation

2022-10-19 Thread Ying-Chun Liu (PaulLiu)
Add documentation for the wget command. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Simon Glass --- doc/usage/cmd/wget.rst | 61 ++ doc/usage/index.rst| 1 + 2 files changed, 62 insertions(+) create mode 100644 doc/usage/cmd/wget.rst diff --git

[PATCH v19 4/4] test: cmd: add test for wget command.

2022-10-19 Thread Ying-Chun Liu (PaulLiu)
Simulate a TCP HTTP server's response for testing wget command. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Simon Glass --- test/cmd/Makefile | 1 + test/cmd/wget.c | 206 ++ 2 files changed, 207 insertions(+) create mode 100644 test/cmd/wget.c

[PATCH v19 1/4] net: Add TCP protocol

2022-10-19 Thread Ying-Chun Liu (PaulLiu)
Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu

[PATCH v19 0/4] add TCP and HTTP for downloading images

2022-10-19 Thread Ying-Chun Liu (PaulLiu)
for wget command. v19: Add unit test for wget command. Ying-Chun Liu (PaulLiu) (4): net: Add TCP protocol net: Add wget application doc: cmd: wget: add documentation test: cmd: add test for wget command. cmd/Kconfig| 7 + cmd/net.c | 13 + doc/usage/cmd

[PATCH v18 2/3] net: Add wget application

2022-10-17 Thread Ying-Chun Liu (PaulLiu)
This commit adds a simple wget command that can download files from http server. The command syntax is wget ${loadaddr} Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Reviewed-by: Simon Glass Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Michal Simek Cc: Ramon Fried

[PATCH v18 3/3] doc: cmd: wget: add documentation

2022-10-17 Thread Ying-Chun Liu (PaulLiu)
Add documentation for the wget command. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Simon Glass --- doc/usage/cmd/wget.rst | 61 ++ doc/usage/index.rst| 1 + 2 files changed, 62 insertions(+) create mode 100644 doc/usage/cmd/wget.rst diff --git

[PATCH v18 1/3] net: Add TCP protocol

2022-10-17 Thread Ying-Chun Liu (PaulLiu)
Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu

[PATCH v18 0/3] add TCP and HTTP for downloading images

2022-10-17 Thread Ying-Chun Liu (PaulLiu)
for wget command. Ying-Chun Liu (PaulLiu) (3): net: Add TCP protocol net: Add wget application doc: cmd: wget: add documentation cmd/Kconfig| 7 + cmd/net.c | 13 + doc/usage/cmd/wget.rst | 61 doc/usage/index.rst| 1 + include/net.h | 38

[PATCH v2 2/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2022-08-23 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. Signed-off-by: Ying-Chun Liu (PaulLiu

[PATCH v2 1/2] dts: imx8mp: assign binman_configuration node name to config-SEQ

2022-08-23 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" assign a node name for config-SEQ so that the board dts can modify the configuration more easily. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team --- v2: just rebase to the latest master branch.

[PATCH v2 0/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2022-08-23 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. v2: just rebase to the latest master br

[PATCH v17 2/2] net: Add wget application

2022-07-08 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This commit adds a simple wget command that can download files from http server. The command syntax is wget ${loadaddr} Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Michal Simek

[PATCH v17 1/2] net: Add TCP protocol

2022-07-08 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: D

[PATCH v17 0/2] add TCP and HTTP for downloading images

2022-07-08 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This patch is a refresh from previous patches made by Duncan Hare . I've contacted him and continue to work on this patch. This patch introduce a TCP stack with SACK. And a simple wget command to download images from http server. v1-v12: Made by Dunc

[PATCH v16 1/2] net: Add TCP protocol

2022-06-10 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: D

[PATCH v16 2/2] net: Add wget application

2022-06-10 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This commit adds a simple wget command that can download files from http server. The command syntax is wget ${loadaddr} Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Michal Simek

[PATCH v16 0/2] add TCP and HTTP for downloading images

2022-06-10 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This patch is a refresh from previous patches made by Duncan Hare . I've contacted him and continue to work on this patch. This patch introduce a TCP stack with SACK. And a simple wget command to download images from http server. v1-v12: Made by Dunc

[PATCH v15 1/2] net: Add TCP protocol

2022-06-10 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: D

[PATCH v15 2/2] net: Add wget application

2022-06-10 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This commit adds a simple wget command that can download files from http server. The command syntax is wget ${loadaddr} Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Michal Simek

[PATCH v15 0/2] add TCP and HTTP for downloading images

2022-06-10 Thread Ying-Chun Liu (PaulLiu)
From: "Ying-Chun Liu (PaulLiu)" This patch is a refresh from previous patches made by Duncan Hare . I've contacted him and continue to work on this patch. This patch introduce a TCP stack with SACK. And a simple wget command to download images from http server. v1-v12: Made by Dunc

[PATCH 1/1] configs: imx8mm-cl-iot-gate: enable extension command

2022-05-25 Thread Ying-Chun Liu (PaulLiu)
For imx8mm-cl-iot-gate we can use extension command to scan extension boards attached on the mainboard. We enable the extension command by default for users to detect the extension boards. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team

[PATCH 0/1] configs: imx8mm-cl-iot-gate: enable extension command

2022-05-25 Thread Ying-Chun Liu (PaulLiu)
For imx8mm-cl-iot-gate we can use extension command to scan extension boards attached on the mainboard. We enable the extension command by default for users to detect the extension boards. Ying-Chun Liu (PaulLiu) (1): configs: imx8mm-cl-iot-gate: enable extension command configs/imx8mm-cl-iot

[PATCH 2/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2022-05-08 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. Signed-off-by: Ying-Chun Liu (PaulLiu

[PATCH 1/2] dts: imx8mp: assign binman_configuration node name to config-SEQ

2022-05-08 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" assign a node name for config-SEQ so that the board dts can modify the configuration more easily. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Stefano Babic Cc: Fabio Estevam Cc: NXP i.MX U-Boot Team --- arch/arm/dts/imx8mp-u-boot.dtsi | 2 +- 1 fi

[PATCH 0/2] dts: imx8mp-rsb3720: modify configrations to load fip into memory

2022-05-08 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" The changes of commit 6a21c695213b ("arm: dts: imx8mp: add of-list support to common imx8mp-u-boot.dtsi") breaks the loading of the fip. This commit fixes the break by modify the configuration properly. Ying-Chun Liu (PaulLiu) (2):

[PATCH 2/2] cmd: mmc: allow to write protect single boot partition

2022-04-25 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" add arguments for mmc wp to assign which boot partition to protect. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Peng Fan Cc: Jaehoon Chung --- cmd/mmc.c | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/cmd/m

[PATCH 1/2] drivers: mmc: write protect single boot area

2022-04-25 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add features to write protect single boot area rather than all boot areas. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Peng Fan Cc: Jaehoon Chung --- drivers/mmc/mmc.c | 27 +++ include/mmc.h | 16 2 fil

[PATCH 0/2] allow to write protect single boot partition

2022-04-25 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Modify mmc wp command and mmc driver to allow write protect only a single boot partition. Ying-Chun Liu (PaulLiu) (2): drivers: mmc: write protect single boot area cmd: mmc: allow to write protect single boot partition cmd/mmc.c

Re: [PATCH v14 1/2] net: Add TCP protocol

2022-04-21 Thread Ying-Chun Liu (PaulLiu)
Hi Ying, You woke up an old can, Can you elaborate on the changes you did to the original patchset ? I'm reviewing this instead of Joe, so I want to get some context. I would appreciate it if you could separate the SACK support to a separate patch, preferably option based. The TCP stack is

[PATCH v14 2/2] net: Add wget application

2022-04-21 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" This commit adds a simple wget command that can download files from http server. Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Ramon Fried --- v13: Fix some issues which i

[PATCH v14 1/2] net: Add TCP protocol

2022-04-21 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: D

[PATCH v14 0/2] add TCP and HTTP for downloading images

2022-04-21 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" This patch is a refresh from previous patches made by Duncan Hare . I've contacted him and continue to work on this patch. This patch introduce a TCP stack with SACK. And a simple wget command to download images from http server. v13: Fix some is

[PATCH v2 1/1] imx8mm-cl-iot-gate: Remove redundant board_fix_fdt()

2022-04-20 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" In arch/arm/mach-imx/imx8m/soc.c there's an implementation of board_fix_fdt() introduced by commit 35bb60787b88. Remove the redundant one to avoid failed to build from source when enabling CONFIG_OF_BOARD_FIXUP. Signed-off-by: Ying-Chun Liu (PaulLiu)

[PATCH v2 0/1] imx8mm-cl-iot-gate: Remove redundant board_fix_fdt()

2022-04-20 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Previously there's no implementation of board_fix_fdt(). But commit 35bb60787b88 introduced one in arch/arm/mach-imx/imx8m/soc.c. Since the board_fix_fdt() in imx8mm-cl-iot-gate is empty, we should remove it and use the one from soc.c. v2: reword comm

[PATCH 1/1] imx8mm-cl-iot-gate: Remove redundant board_fix_fdt()

2022-04-20 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" In arch/arm/mach-imx/imx8m/soc.c there's an implementation of board_fix_fdt(). Remove the redundant one to avoid FTBFS. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: uboot-imx --- board/compulab/imx8mm-cl-iot-gate/imx8mm-cl-iot-gate.c | 5 - 1 file

[PATCH 0/1] imx8mm-cl-iot-gate: Remove redundant board_fix_fdt()

2022-04-20 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Previously there's no implementation of board_fix_fdt(). But recently there's one in arch/arm/mach-imx/imx8m/soc.c. Since the board_fix_fdt() in imx8mm-cl-iot-gate is empty, we should remove it and use the one from soc.c. Ying-Chun Liu (PaulLiu) (1):

[PATCH v13 2/2] net: Add wget application

2022-03-16 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" This commit adds a simple wget command that can download files from http server. Signed-off-by: Duncan Hare Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Christian Gmeiner Cc: Joe Hershberger Cc: Ramon Fried --- v13: Fix some issues which i

[PATCH v13 1/2] net: Add TCP protocol

2022-03-16 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Currently file transfers are done using tftp or NFS both over udp. This requires a request to be sent from client (u-boot) to the boot server. The current standard is TCP with selective acknowledgment. Signed-off-by: Duncan Hare Signed-off-by: D

[PATCH v13 0/2] add TCP and HTTP for downloading images

2022-03-16 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" This patch is a refresh from previous patches made by Duncan Hare . I've contacted him and continue to work on this patch. This patch introduce a TCP stack with SACK. And a simple wget command to download images from http server. v13: Fix some is

[RESEND PATCH v7 1/1] arm: imx8m: add support for Advantech RSB-3720

2022-02-08 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add initial support for Advantech RSB-3720 board. The initial support includes: - MMC - eMMC - I2C - FEC - Serial console Signed-off-by: Darren Huang Signed-off-by: Kevin12.Chen Signed-off-by: Phill.Liu Signed-off-by: Tim Liang Signed-off-by

[RESEND PATCH v7 0/1] arm: imx8m: add support for Advantech RSB-3720

2022-02-07 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Hi. I resend this patch for u-boot-imx due to v7 doesn't directly apply. Because a previous imx8mm changes for Kconfig and Makefile causes a conflict, I resend this patch for easier pick-up. Add initial support for Advantech RSB-3720 board. The initi

[PATCH v7 2/2] arm: imx8m: add support for Advantech RSB-3720

2022-01-26 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add initial support for Advantech RSB-3720 board. The initial support includes: - MMC - eMMC - I2C - FEC - Serial console Signed-off-by: Darren Huang Signed-off-by: Kevin12.Chen Signed-off-by: Phill.Liu Signed-off-by: Tim Liang Signed-off-by

[PATCH v7 1/2] arm: dts: add imx8mp-rsb3720-a1 dts file

2022-01-26 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add board dts for Advantech's imx8mp-rsb3720-a1 Signed-off-by: Darren Huang Signed-off-by: Kevin12.Chen Signed-off-by: Phill.Liu Signed-off-by: Tim Liang Signed-off-by: wei.zeng Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: uboot-imx --- v2: upd

[PATCH v7 0/2] arm: imx8m: add support for Advantech RSB-3720

2022-01-26 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add initial support for Advantech RSB-3720 board. The initial support includes: - MMC - eMMC - I2C - FEC - Serial console v2: update dts v3: remove unnecessary code. move board code to board/advantech v4: rebase to latest master branch. v5:

[RFC 2/2] drivers: dfu: flash firmware to inactive boot area and active it

2022-01-25 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" This commit implement flash to the inactive boot partition of eMMC when dfu_alt_info set mmcpart to "inactive". After flash to the inactive boot partition. It will switch the active partition to the one that just flashed. Signed-off-by: Yi

[RFC 1/2] drivers: mmc: write protect active boot area after mmc init.

2022-01-25 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" This commit implements write protection for active boot partition for eMMC. The active boot partition is write protected, and it is still able to write to the inactive boot partition. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: Peng Fan Cc: Jae

[RFC 0/2] A/B firmware update based in eMMC boot partition.

2022-01-25 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Hi all, I've implemented A/B firmware update based on eMMC hw partitions. Normally we have 2 boot partitions on eMMC. One is active and another is inactive. We can then flash the firmware to the inactive one and make it active. Also when booting we

[PATCH 1/1] configs: imx8mm-cl-iot-gate: update dfu_alt_info for single flash.bin

2022-01-11 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" We changed to single flash.bin now. So dfu_alt_info should be modified to reflect this change. Signed-off-by: Ying-Chun Liu (PaulLiu) --- include/configs/imx8mm-cl-iot-gate.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/inclu

[PATCH 0/1] configs: imx8mm-cl-iot-gate: update dfu_alt_info for single flash.bin

2022-01-11 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" imx8mm generate a single bootable flash.bin again. Previous it is flash.bin and u-boot.itb. So we need to modify dfu_alt_info for single flash.bin. Ying-Chun Liu (PaulLiu) (1): configs: imx8mm-cl-iot-gate: update dfu_alt_info for single flash.bin

[PATCH v6 2/2] arm: imx8m: add support for Advantech RSB-3720

2022-01-10 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add initial support for Advantech RSB-3720 board. The initial support includes: - MMC - eMMC - I2C - FEC - Serial console Signed-off-by: Darren Huang Signed-off-by: Kevin12.Chen Signed-off-by: Phill.Liu Signed-off-by: Tim Liang Signed-off-by

[PATCH v6 1/2] arm: dts: add imx8mp-rsb3720-a1 dts file

2022-01-10 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add board dts for Advantech's imx8mp-rsb3720-a1 Signed-off-by: Darren Huang Signed-off-by: Kevin12.Chen Signed-off-by: Phill.Liu Signed-off-by: Tim Liang Signed-off-by: wei.zeng Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: uboot-imx --- v2: upd

[PATCH v6 0/2] arm: imx8m: add support for Advantech RSB-3720

2022-01-10 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Add initial support for Advantech RSB-3720 board. The initial support includes: - MMC - eMMC - I2C - FEC - Serial console Ying-Chun Liu (PaulLiu) (2): arm: dts: add imx8mp-rsb3720-a1 dts file arm: imx8m: add support for Advantech RSB-3720 v2:

[PATCH 1/1] imx8mm-cl-iot-gate-optee: add CONFIG_SPL_MMC and CONFIG_SPL_SERIAL

2021-11-15 Thread Ying-Chun Liu
From: "Ying-Chun Liu (PaulLiu)" Previously these two options are called CONFIG_SPL_MMC_SUPPORT and CONFIG_SPL_SERIAL_SUPPORT. During the transition they are removed by accident. Thus adding them back. Signed-off-by: Ying-Chun Liu (PaulLiu) Cc: uboot-imx --- configs/imx8mm-c

  1   2   >