[PATCH] lib: move phdr increment to for loop heading

2024-08-17 Thread Maxim Moskalets
Shifting this pointer in the loop will be more logical when working with the code later, because you can see at a glance what exactly changes at each iteration. Moreover, the code remains equivalent because this variable is not used after the loop. Signed-off-by: Maxim Moskalets --- lib/elf.c

[PATCH v6] board: rockchip: add Radxa ROCK 3 Model C

2024-08-08 Thread Maxim Moskalets
From: Maxim Moskalets Based on rock-3a-rk3568_defconfig. Tested on v1.31 revision. Board Specifications: - Rockchip RK3566 - 1/2/4GB LPDDR4 2112MT/s - eMMC socket - uSD card slot - M.2 2230 Connector - GbE LAN with POE - 3.5mm jack with mic - HDMI 2.0, MIPI DSI/CSI - USB 3.0 Host, USB 2.0 Host

[PATCH v5] board: rockchip: add Radxa ROCK 3 Model C

2024-08-03 Thread Maxim Moskalets
From: Maxim Moskalets Based on rock-3a-rk3568_defconfig. Tested on v1.31 revision. Board Specifications: - Rockchip RK3566 - 1/2/4GB LPDDR4 2112MT/s - eMMC socket - uSD card slot - M.2 2230 Connector - GbE LAN with POE - 3.5mm jack with mic - HDMI 2.0, MIPI DSI/CSI - USB 3.0 Host, USB 2.0 Host

[PATCH v4] board: rockchip: add Radxa ROCK 3 Model C

2024-07-22 Thread Maxim Moskalets
expansion ports Signed-off-by: Maxim Moskalets Suggested-by: Jonas Karlman Reviewed-by: Jonas Karlman --- v4: fixed typo in commit-msg moved maintainers record to file for rk3568 boards renamed from ROCK 3 Model C to ROCK3C v3: add suggested by Jonas Karlman in

[PATCH v3] board: rockchip: add Radxa ROCK 3 Model C

2024-07-22 Thread Maxim Moskalets
expansion ports Signed-off-by: Maxim Moskalets Suggested-by: Jonas Karlman --- v3: add suggested by Jonas Karlman in https://lore.kernel.org/all/bbb81dd1-e318-423d-8258-db7556ce6...@kwiboo.se/ v2: rebase to updated upstream dts --- MAINTAINERS | 7

[PATCH v2] rockchip: bring-up to Radxa Rock 3C board

2024-07-21 Thread Maxim Moskalets
Just copy of rock-3a-rk3568_defconfig with dts for rock-3c-rk3566. Separated from the original due to the use of different DTS, than fixed primarily network support. Signed-off-by: Maxim Moskalets --- configs/rock-3c-rk3566_defconfig | 93 1 file changed, 93

[PATCH] rockchip: bring-up to Radxa Rock 3C board

2024-07-19 Thread Maxim Moskalets
Just copy of rock-3a-rk3568_defconfig with dts for rock-3c-rk3566. Separated from the original due to the use of different DTS, than fixed primarily network support. Signed-off-by: Maxim Moskalets --- configs/rock-3c-rk3566_defconfig | 93 +++ .../src/arm64/rockchip/rk3566-rock

[PATCH] cmd: correct ELF-related commands dependencies

2024-07-15 Thread Maxim Moskalets
Enable BOOTM_ELF by default for all configs with LIB_ELF selected. Use OF_LIBFDT as dependency for CMD_ELF_FDT_SETUP. Signed-off-by: Maxim Moskalets --- cmd/Kconfig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 0cf0d8ad8ab..5d34282c196

[PATCH] doc: fit: add ELF image to list of image formats

2024-07-15 Thread Maxim Moskalets
Signed-off-by: Maxim Moskalets --- doc/usage/fit/source_file_format.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/usage/fit/source_file_format.rst b/doc/usage/fit/source_file_format.rst index 15990e3ff54..cb5da5af2dd 100644 --- a/doc/usage/fit/source_file_format.rst +++ b/doc

[PATCH v3] doc: add bootelf command documentation

2024-06-30 Thread Maxim Moskalets
Signed-off-by: Maxim Moskalets --- v3: Separate -p -s into different lines. v2: Add Configuration section. --- doc/usage/cmd/bootelf.rst | 61 +++ 1 file changed, 61 insertions(+) create mode 100644 doc/usage/cmd/bootelf.rst diff --git a/doc

[PATCH v2] doc: add bootelf command documentation

2024-06-30 Thread Maxim Moskalets
Signed-off-by: Maxim Moskalets --- v2: Add Configuration section. --- doc/usage/cmd/bootelf.rst | 58 +++ 1 file changed, 58 insertions(+) create mode 100644 doc/usage/cmd/bootelf.rst diff --git a/doc/usage/cmd/bootelf.rst b/doc/usage/cmd/bootelf.rst

[PATCH] doc: add bootelf command documentation

2024-06-30 Thread Maxim Moskalets
Signed-off-by: Maxim Moskalets --- doc/usage/cmd/bootelf.rst | 52 +++ 1 file changed, 52 insertions(+) create mode 100644 doc/usage/cmd/bootelf.rst diff --git a/doc/usage/cmd/bootelf.rst b/doc/usage/cmd/bootelf.rst new file mode 100644 index 00

[PATCH] cmd: add resize for FDT in bootelf

2024-06-28 Thread Maxim Moskalets
In some FDTs, there is not enough free memory to add nodes, so this operation fails. Signed-off-by: Maxim Moskalets --- cmd/elf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/elf.c b/cmd/elf.c index 32b7462f92..673c6c3051 100644 --- a/cmd/elf.c +++ b/cmd/elf.c @@ -68,6 +68,8 @@ int

[PATCH v5] cmd: bootm: add ELF file support

2024-06-21 Thread Maxim Moskalets
Some operating systems (e.g. seL4) and embedded applications are ELF images. It is convenient to use FIT-images to implement trusted boot. Added "elf" image type for booting using bootm command. Signed-off-by: Maxim Moskalets --- v5: used func from lib/elf.c to avoid dependenc

[PATCH v5] cmd: move ELF load and boot to lib/elf.c

2024-06-05 Thread Maxim Moskalets
From: Maxim Moskalets Loading and running the ELF image is the responsibility of the library and should not be associated with the command line interface. It is also required to run ELF images from FIT with the bootm command so as not to depend on the command line interface. Signed-off-by

[PATCH] cmd: move ELF load and boot to lib/elf.c

2024-06-05 Thread Maxim Moskalets
From: Maxim Moskalets Loading and running the ELF image is the responsibility of the library and should not be associated with the command line interface. It is also required to run ELF images from FIT with the bootm command so as not to depend on the command line interface. Signed-off-by

[PATCH v4] cmd: move ELF load and boot to lib/elf.c

2024-05-20 Thread Maxim Moskalets
From: Maxim Moskalets Loading and running the ELF image is the responsibility of the library and should not be associated with the command line interface. It is also required to run ELF images from FIT with the bootm command so as not to depend on the command line interface. Signed-off-by

[PATCH v3] cmd: move ELF load and boot to lib/elf.c

2024-05-20 Thread Maxim Moskalets
From: Maxim Moskalets Loading and running the ELF image is the responsibility of the library and should not be associated with the command line interface. It is also required to run ELF images from FIT with the bootm command so as not to depend on the command line interface. Signed-off-by

[PATCH v3] cmd: move ELF load and boot to lib/elf.c

2024-05-20 Thread Maxim Moskalets
From: Maxim Moskalets Loading and running the ELF image is the responsibility of the library and should not be associated with the command line interface. It is also required to run ELF images from FIT with the bootm command so as not to depend on the command line interface. Signed-off-by

[PATCH] dm: use newly added linux/compat alloc functions

2024-05-15 Thread Maxim Moskalets
Signed-off-by: Maxim Moskalets --- include/dm/devres.h | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/include/dm/devres.h b/include/dm/devres.h index 697534aa5b..27761deb6d 100644 --- a/include/dm/devres.h +++ b/include/dm/devres.h @@ -266,17 +266,13 @@ static inline

[PATCH v2] cmd: move ELF load and boot to lib/elf.c

2024-05-13 Thread Maxim Moskalets
From: Maxim Moskalets Loading and running the ELF image is the responsibility of the library and should not be associated with the command line interface. It is also required to run ELF images from FIT with the bootm command so as not to depend on the command line interface. Signed-off-by

[PATCH] arch: fix arch-rockchip/clock.h dependency

2024-05-13 Thread Maxim Moskalets
This header uses u32 and should include header with this typedef. Signed-off-by: Maxim Moskalets --- arch/arm/include/asm/arch-rockchip/clock.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/arch-rockchip/clock.h b/arch/arm/include/asm/arch-rockchip/clock.h index

[PATCH] cmd: move ELF load and boot to lib/elf.c

2024-04-26 Thread Maxim Moskalets
Loading and running the ELF image is the responsibility of the library and should not be associated with the command line interface. It is also required to run ELF images from FIT with the bootm command so as not to depend on the command line interface. Signed-off-by: Maxim Moskalets --- cmd

[PATCH v4] cmd: bootm: add ELF file support

2024-04-11 Thread Maxim Moskalets
From: Maxim Moskalets Some operating systems (e.g. seL4) and embedded applications are ELF images. It is convenient to use FIT-images to implement trusted boot. Added "elf" image type for booting using bootm command. Signed-off-by: Maxim Moskalets --- boot/bootm_

[PATCH v3] cmd: bootm: add ELF file support

2024-04-11 Thread Maxim Moskalets
From: Maxim Moskalets Some operating systems (e.g. seL4) and embedded applications are ELF images. It is convenient to use FIT-images to implement trusted boot. Added "elf" image type for booting using bootm command. Signed-off-by: Maxim Moskalets --- boot/bootm_

[PATCH v2] cmd: bootm: add ELF file support

2024-04-11 Thread Maxim Moskalets
From: Maxim Moskalets Some operating systems (e.g. seL4) and embedded applications are ELF images. It is convenient to use FIT-images to implement trusted boot. Added "elf" image type for booting using bootm command. Signed-off-by: Maxim Moskalets --- boot/bootm_

[PATCH] cmd: bootm: add ELF file support

2024-04-10 Thread Maxim Moskalets
From: Maxim Moskalets Some operating systems (e.g. seL4) and embedded applications are ELF images. It is convenient to use FIT-images to implement trusted boot. Added "elf" image type for booting using bootm command. Signed-off-by: Maxim Moskalets --- boot/bootm_

[PATCH] lib: add missing line breaks in debug messages

2024-03-30 Thread Maxim Moskalets
Add missing line breaks to improve debug log readability. Signed-off-by: Maxim Moskalets --- lib/rsa/rsa-verify.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/rsa/rsa-verify.c b/lib/rsa/rsa-verify.c index 1007b6979a..d3b4f71d6b 100644 --- a/lib/rsa/rsa

[PATCH] lib: fix newline in debug message

2024-03-29 Thread Maxim Moskalets
Signed-off-by: Maxim Moskalets --- lib/rsa/rsa-verify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rsa/rsa-verify.c b/lib/rsa/rsa-verify.c index 1007b6979a..e1093ce1a4 100644 --- a/lib/rsa/rsa-verify.c +++ b/lib/rsa/rsa-verify.c @@ -342,7 +342,7 @@ static int

[PATCH] cmd: bootm: add ELF file support

2024-03-19 Thread Maxim Moskalets
Some operating systems (e.g. seL4) and embedded applications are ELF images. It is convenient to use FIT-images to implement trusted boot. Added "elf" image type for booting using bootm command. Signed-off-by: Maxim Moskalets --- boot/bootm_os.c | 21 + boot/i

[PATCH v5] cmd: add FDT setup for bootelf by flag

2024-03-07 Thread Maxim Moskalets
From: Maxim Moskalets Added the ability to use FDT for ELF applications, required to run some OS. To make FDT setup, you need to set the -d fdt_addr_r cmd option for bootelf command. Enable by selecting CMD_ELF_FDT_SETUP. Signed-off-by: Maxim Moskalets --- cmd/Kconfig | 11 +++ cmd

[PATCH] cmd: add FDT setup for bootelf by flag

2024-03-07 Thread Maxim Moskalets
From: Maxim Moskalets Added the ability to use FDT for ELF applications, required to run some OS. To make FDT setup, you need to set the -d fdt_addr_r cmd option for bootelf command. Enable by selecting CMD_ELF_FDT_SETUP. Signed-off-by: Maxim Moskalets --- cmd/Kconfig | 11 +++ cmd

[PATCH v4 RESEND] cmd: add FDT setup for bootelf by flag

2024-03-06 Thread Maxim Moskalets
From: Maxim Moskalets Added the ability to use FDT for ELF applications, required to run some OS. To make FDT setup, you need to set the -d fdt_addr_r cmd option for bootelf command. Signed-off-by: Maxim Moskalets Cc: Tom Rini --- cmd/elf.c | 27 --- 1 file changed

[PATCH v4 RESEND] cmd: add FDT setup for bootelf by flag

2024-03-03 Thread Maxim Moskalets
From: Maxim Moskalets Added the ability to use FDT for ELF applications, required to run some OS. To make FDT setup, you need to set the -d fdt_addr_r cmd option for bootelf command. Signed-off-by: Maxim Moskalets Cc: Tom Rini --- cmd/elf.c | 27 --- 1 file changed

[PATCH v4] cmd: add FDT setup for bootelf by flag

2024-02-26 Thread Maxim Moskalets
From: Maxim Moskalets Added the ability to use FDT for ELF applications, required to run some OS. To make FDT setup, you need to set the -d fdt_addr_r cmd option for bootelf command. Signed-off-by: Maxim Moskalets Cc: Tom Rini --- cmd/elf.c | 27 --- 1 file changed

[PATCH v3] cmd: add FDT setup for bootelf by flag

2024-02-13 Thread Maxim Moskalets
Added the ability to use FDT for ELF applications, required to run some OS. To make FDT setup, you need to set the -d fdt_addr_r cmd option for bootelf command Signed-off-by: Maxim Moskalets Cc: Tom Rini --- cmd/elf.c | 24 ++-- 1 file changed, 22 insertions(+), 2

[PATCH v2] cmd: add FDT setup for bootelf by flag

2024-02-12 Thread Maxim Moskalets
Added the ability to use FDT for ELF applications, required to run some OS. To make FDT setup, you need to set the -d fdt_addr_r cmd option for bootelf command Signed-off-by: Maxim Moskalets Cc: Tom Rini --- cmd/elf.c | 24 ++-- 1 file changed, 22 insertions(+), 2

[PATCH] cmd: add FDT setup for bootelf by flag

2024-02-12 Thread Maxim Moskalets
Added the ability to use FDT for ELF applications, required to run some OS. To make FDT setup, you need to set the elf_needed_fdt environment variable to a value like y or yes. Signed-off-by: Maxim Moskalets Cc: Tom Rini --- cmd/elf.c | 14 ++ env/common.c | 5

[PATCH] command: add FDT setup for bootelf by flag

2024-02-12 Thread Maxim Moskalets
Added the ability to use FDT for ELF applications, required to run some OS. To make FDT setup, you need to set the elf_needed_fdt environment variable to a value like y or yes. Signed-off-by: Maxim Moskalets Cc: Tom Rini --- cmd/elf.c | 14 ++ env/common.c | 5