[PATCH 6/6] configs/roc-pc-rk3399_defconfig: Enable SPL DFU for roc-pc-rk3399

2025-02-10 Thread Arnaud Patard
Add needed configuration to enable SPL DFU. Signed-off-by: Arnaud Patard --- configs/roc-pc-rk3399_defconfig | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/configs/roc-pc-rk3399_defconfig b/configs/roc-pc-rk3399_defconfig index 0ef86748778..a02deefbaf8 100644

[PATCH 3/6] arch/arm/mach-rockchip/rk3399/rk3399.c: Add gadget device to boot devices

2025-02-10 Thread Arnaud Patard
Define the device node used when booting over usb, allowing to use 'same-as-spl' boot entry. Signed-off-by: Arnaud Patard --- arch/arm/mach-rockchip/rk3399/rk3399.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-rockchip/rk3399/rk3399.c b/arch/arm/mach-rockchip/rk3

[PATCH 4/6] include/configs/rk3399_common.h: define CFG_EXTRA_ENV_SETTINGS in XPL build

2025-02-10 Thread Arnaud Patard
To use SPL DFU, some environment variables are needed so define CFG_EXTRA_ENV_SETTINGS for XPL builds. Signed-off-by: Arnaud Patard --- include/configs/rk3399_common.h | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/include/configs/rk3399_common.h b

[PATCH 5/6] arch/arm/dts/rk3399-roc-pc-u-boot.dtsi: Prepare for SPL DFU

2025-02-10 Thread Arnaud Patard
For SPL DFU booting, define u-boot,spl-boot-order and configure usb nodes for enabling the gadget in SPL. Signed-off-by: Arnaud Patard --- arch/arm/dts/rk3399-roc-pc-u-boot.dtsi | 23 +++ 1 file changed, 23 insertions(+) diff --git a/arch/arm/dts/rk3399-roc-pc-u-boot.dtsi

[PATCH 0/6] roc-pc-rk3399: Add SPL_DFU support

2025-02-10 Thread Arnaud Patard
oaded over the otg port with a file generated with Rockchip boot_merger. Then u-boot SPL is downloading/booting over DFU the u-boot proper (uboot.itb). Arnaud Patard (6): drivers/Makefile: Fix TPL build with dwc3 generic arch/arm/mach-rockchip/spl-boot-order.c: Add DFU boot media arch/arm

[PATCH 1/6] drivers/Makefile: Fix TPL build with dwc3 generic

2025-02-10 Thread Arnaud Patard
ble building drivers/usb/common.c in TPL. Signed-off-by: Arnaud Patard --- drivers/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/Makefile b/drivers/Makefile index 0e1f58c515b..7cee5750396 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -78,6 +78,7

[PATCH 2/6] arch/arm/mach-rockchip/spl-boot-order.c: Add DFU boot media

2025-02-10 Thread Arnaud Patard
Make it possible to boot over gadget. Signed-off-by: Arnaud Patard --- arch/arm/mach-rockchip/spl-boot-order.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-rockchip/spl-boot-order.c b/arch/arm/mach-rockchip/spl-boot-order.c index 3dce9b30898..7cc410d0ae7 100644 --- a

Re: [PATCH 1/6] drivers/Makefile: Fix TPL build with dwc3 generic

2025-02-11 Thread Arnaud Patard
Hi, On Tue, 2025-02-11 at 14:50 +0100, Quentin Schulz wrote: > Hi Arnaud, > > On 2/11/25 9:51 AM, Arnaud Patard wrote: > > On Mon, 2025-02-10 at 09:51 -0600, Tom Rini wrote: > > > On Mon, Feb 10, 2025 at 03:29:58PM +, Arnaud Patard wrote: > > > > When bu

Re: [PATCH 1/6] drivers/Makefile: Fix TPL build with dwc3 generic

2025-02-11 Thread Arnaud Patard
On Mon, 2025-02-10 at 09:51 -0600, Tom Rini wrote: > On Mon, Feb 10, 2025 at 03:29:58PM +0000, Arnaud Patard wrote: > > When building TPL with DWC3 generic enabled, the following error is > > occuring: > > aarch64-linux-gnu-ld.bfd: drivers/usb/dwc3/dwc3-gener

Re: [PATCH 0/3] Add support for RAM boot from maskrom mode

2025-03-19 Thread Arnaud Patard
[3] > https://source.denx.de/u-boot/contributors/kwiboo/u-boot/-/commits/ramboot-v1 > I've tested this tree tagged by "ramboot-v1" on rk3399 and rk3588 with the generated u-boot-rockchip-usb47?.bin files and it's working fine. This work sounds very useful imho, and possibly easier to use than DFU in SPL. Any hope to see this merged in next release ? If it helps: Tested-by: Arnaud Patard

Re: [PATCH] rockchip: Enable usb gadget on Radxa ROCK 5C

2025-03-26 Thread Arnaud Patard
Hi, On Wed, 2025-03-26 at 10:25 +0900, FUKAUMI Naoki wrote: > Hi Arnaud, > > Basically, the Type-A OTG port of the Radxa ROCK series is intended > to > be used in HOST mode (unless there is a HOST/DEVICE switch). yeah, I know that by default, it's intended as host but it's not hard to hook a ca

[PATCH] rockchip: Enable usb gadget on Radxa ROCK 5C

2025-03-25 Thread Arnaud Patard
rk3588 devices if they would need a similar change. [1] for SPL DFU, I've used the serie https://patchwork.ozlabs.org/project/uboot/list/?series=443761 Signed-off-by: Arnaud Patard --- arch/arm/dts/rk3588s-rock-5c-u-boot.dtsi | 12 1 file changed, 12 insertions(+) diff --git

Re: [PATCH 0/7] rockchip: Add boot from USB OTG port

2025-05-07 Thread Arnaud Patard
Hi, On Tue, 2025-05-06 at 15:53 +0800, Kever Yang wrote: > Hi Naoki, > > On 2025/2/11 13:33, FUKAUMI Naoki wrote: > > This patch series adds the ability to boot from the USB OTG port to > > the RK3588, RK3568, RK3566, RK3399, RK3328, and RK3308. > > > > Use rkflashtool[1] or rkusbboot[2] > > Do