On Sat, Jan 17, 2026 at 06:08:54PM +0100, Frank Wunderlich wrote:

> From: Frank Wunderlich <[email protected]>
> 
> Add a command for getting detected ram size with possibility to write
> to environment variable.
> 
> example usage:
> 
> BPI-R4> msize
> 4294967296
> BPI-R4> msize m
> 4096m
> BPI-R4> msize g
> 4g
> BPI-R4> msize g ramsize
> BPI-R4> printenv ramsize
> ramsize=4
> BPI-R4>
> 
> board with 8GB ram:
> 
> BPI-R4> msize
> 8589934592
> BPI-R4> msize m
> 8192m
> BPI-R4> msize g
> 8g
> BPI-R4> msize g ramsize
> BPI-R4> printenv ramsize
> ramsize=8
> BPI-R4>
> 
> Signed-off-by: Frank Wunderlich <[email protected]>
> ---
>  cmd/mem.c | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)

New commands should get a new Kconfig entry to enable them please,
thanks.

-- 
Tom

Attachment: signature.asc
Description: PGP signature

Reply via email to