[PATCH] meminfo: correct "free" memory region size

2025-07-27 Thread Shiji Yang
The size of free memory should be $lmb_base - $ram_base. Signed-off-by: Shiji Yang --- Before: => meminfo DRAM: 64 MiB Region Base Size End Gap code 83fa5fdf8 83fffdf8 malloc 83e9 110

[PATCH] mips: mtmips: add CPU reset support for MT7628

2025-07-26 Thread Shiji Yang
Allow the system to reset the CPU without calling the reset controller. This patch also removed the default SYSRESET controller for MT7628, as it is now optional. Signed-off-by: Shiji Yang --- arch/mips/mach-mtmips/Kconfig | 3 --- arch/mips/mach-mtmips/mt7628/init.c | 8

[PATCH] arm: dts: mediatek: remove useless SPI property must_tx

2025-07-26 Thread Shiji Yang
This property is not documented. And the "mediatek,ipm-spi" SPI driver doesn't check it. Signed-off-by: Shiji Yang --- arch/arm/dts/mt7981-rfb.dts | 2 -- arch/arm/dts/mt7986a-bpi-r3-sd.dts| 1 - arch/arm/dts/mt7986a-rfb.dts | 1 - arch/arm

[PATCH] mips: mtmips: do not select PINCONF Kconfig symbol for MT7620

2025-07-24 Thread Shiji Yang
Mediatek MT7620 u-boot does not have PINCONF implementation. Signed-off-by: Shiji Yang --- arch/mips/Kconfig | 1 - arch/mips/mach-mtmips/Kconfig | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index a0317011de7

[PATCH 2/2] env: mtd: initialize saved_buf pointer

2025-07-24 Thread Shiji Yang
When sect_size is greater than the CONFIG_ENV_SIZE, this wild pointer will cause CPU halt or system crash. Fixes: 03fb08d4aef8 ("env: Introduce support for MTD") Signed-off-by: Shiji Yang --- env/mtd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env/mtd.c b

[PATCH 1/2] env: mtd: add the missing put_mtd_device()

2025-07-24 Thread Shiji Yang
es: 03fb08d4aef8 ("env: Introduce support for MTD") Signed-off-by: Shiji Yang --- env/mtd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/env/mtd.c b/env/mtd.c index d7ec30e183a..ad263ed4b29 100644 --- a/env/mtd.c +++ b/env/mtd.c @@ -131,6 +131,8 @@ static int env_mtd_save(

[PATCH 2/2] tools/fit_check_sign: make the module dependent on CONFIG_FIT_SIGNATURE

2025-06-19 Thread Shiji Yang
startup+0x165): undefined reference to `fit_check_sign' collect2: error: ld returned 1 exit status Fixes: 9c79c8fe70da ("tools/fit_check_sign: make key optional") Signed-off-by: Shiji Yang --- tools/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 0/2] rsa and fit_check_sign build fix for v2025.07-rc

2025-06-19 Thread Shiji Yang
From: Shiji Yang This patchset fixes some compilation errors that I caught in version v2025.07-rc4 and branch next. If they are acceptable, please apply them to the master branch. If anyone has a better way to fix these issues, it's fine to ignore this patchset. CI test: https://github.

[PATCH 1/2] lib: rsa: fix compilation error without openssl

2025-06-19 Thread Shiji Yang
) Signed-off-by: Shiji Yang --- include/image.h | 2 +- lib/rsa/rsa-verify.c | 2 +- tools/image-host.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/image.h b/include/image.h index c1db8383459..5f4e23a0ae9 100644 --- a/include/image.h +++ b/include/ima

[PATCH 2/2] treewide: unify the linker symbol reference format

2023-08-02 Thread Shiji Yang
ences to the most commonly used format 'var'. Signed-off-by: Shiji Yang --- arch/arc/lib/relocate.c | 30 +-- arch/arm/cpu/arm926ejs/mxs/mxs.c | 2 +- arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 2 +- arch/arm/mach-stm32mp/bo

[PATCH 1/2] treewide: rework linker symbol declarations in sections header

2023-08-02 Thread Shiji Yang
ure on MIPS target. Error log: SPL: Image overlaps SPL Fixes: 1b8a1be1a1f1 ("spl: spl_legacy: Fix spl_end address") Signed-off-by: Shiji Yang --- arch/arc/include/asm/sections.h | 5 +-- arch/arc/lib/relocate.c | 7 +--- arch/arm/include/a

[PATCH 0/2] treewide: rework linker symbol declarations and references

2023-08-02 Thread Shiji Yang
1. Convert all linker symbol declarations to char[] type. 2. Unify the linker symbol reference format. CI check: https://github.com/u-boot/u-boot/pull/401 Shiji Yang (2): treewide: rework linker symbol declarations in sections header treewide: unify the linker symbol reference format arch

Re: [PATCH] spl: spl_legacy: Fix spl_end address for non ARM target

2023-07-31 Thread Shiji Yang
On Mon, 31 Jul 2023 15:12:27 -0400, Tom Rini wrote: > On Tue, Aug 01, 2023 at 12:10:52AM +0800, Shiji Yang wrote: > > On Mon, 31 Jul 2023 16:17:39 +0200, Marek Vasut wrote: > > >On 7/31/23 13:57, Shiji Yang wrote: > > >> Only ARM target defines _image_binary_

Re: [PATCH] spl: spl_legacy: Fix spl_end address for non ARM target

2023-07-31 Thread Shiji Yang
On Mon, 31 Jul 2023 16:17:39 +0200, Marek Vasut wrote: >On 7/31/23 13:57, Shiji Yang wrote: >> Only ARM target defines _image_binary_end symbol as char*, All other >> targets define it as an ulong type in include/asm-generic/sections.h. >> >> This patch fixes the

[PATCH] spl: spl_legacy: Fix spl_end address for non ARM target

2023-07-31 Thread Shiji Yang
Signed-off-by: Shiji Yang --- common/spl/spl_legacy.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_legacy.c b/common/spl/spl_legacy.c index 095443c63d..0fef890384 100644 --- a/common/spl/spl_legacy.c +++ b/common/spl/spl_legacy.c @@ -18,9 +18,13 @@ s

[PATCH] spl: spl_legacy: Fix spl_end address for non ARM target

2023-07-31 Thread Shiji Yang
Signed-off-by: Shiji Yang --- common/spl/spl_legacy.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_legacy.c b/common/spl/spl_legacy.c index 095443c63d..0fef890384 100644 --- a/common/spl/spl_legacy.c +++ b/common/spl/spl_legacy.c @@ -18,9 +18,13 @@ s