[PATCH] cmd: xxd: move xxd into shell commands

2023-09-07 Thread Roger Knecht
Move xxd into shell command section. Signed-off-by: Roger Knecht --- cmd/Kconfig | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 43ca10f69c..51706e1d39 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -500,11 +500,6 @@ config CMD_XIMG

[PATCH v2] cmd: xxd: add new command

2022-09-03 Thread Roger Knecht
Add xxd command to print file content as hexdump to standard out Reviewed-by: Simon Glass Signed-off-by: Roger Knecht --- v2: - Fix pylint error "Undefined variable CalledProcessError" - Fix htmldoc error "cat.rst: document isn't included in any toctree" - Added reviewe

[PATCH v6] cmd: cat: add new command

2022-09-03 Thread Roger Knecht
Add cat command to print file content to standard out Reviewed-by: Simon Glass Signed-off-by: Roger Knecht --- v6: - Fix pylint error "Undefined variable CalledProcessError" - Fix htmldoc error "cat.rst: document isn't included in any toctree" v5: - Removed &quo

Re: [PATCH v5] cmd: cat: add new command

2022-09-03 Thread Roger Knecht
On Saturday, September 3rd, 2022 at 01:54, Tom Rini wrote: > On Sun, Aug 21, 2022 at 02:54:13PM +0000, Roger Knecht wrote: > > > Add cat command to print file content to standard out > > > > Reviewed-by: Simon Glass s...@chromium.org > > Signed-off-by: Roger Kn

Re: [PATCH v2] fs: fix comment typo

2022-08-28 Thread Roger Knecht
--- Original Message --- On Thursday, August 25th, 2022 at 15:01, Simon Glass wrote: > > > Hi Roger, > > On Thu, 25 Aug 2022 at 05:12, Roger Knecht rkne...@pm.me wrote: > > > Fix typo in include/fs.h > > > > Reviewed-by: Simon Glass s...@chromium

[PATCH v2] fs: fix comment typo

2022-08-25 Thread Roger Knecht
Fix typo in include/fs.h Reviewed-by: Simon Glass Signed-off-by: Roger Knecht --- v2: - Added Reviewed-by Simon include/fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fs.h b/include/fs.h index 2195dc172e..8370d88cb2 100644 --- a/include/fs.h +++ b/include

[PATCH] cmd: xxd: add new command

2022-08-24 Thread Roger Knecht
Add xxd command to print file content as hexdump to standard out Signed-off-by: Roger Knecht --- The 'xxd' code has a lot in common with my ealier patch for 'cat'. Example: ``` => xxd mmc 0:1 hello : 68 65 6c 6c 6f 20 77 6f 72 6c 64 0a 00 01 02 03 hello world. 0010: 04

[PATCH] fs: fix comment typo

2022-08-21 Thread Roger Knecht
Fix typo in include/fs.h Signed-off-by: Roger Knecht --- include/fs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fs.h b/include/fs.h index 2195dc172e..8370d88cb2 100644 --- a/include/fs.h +++ b/include/fs.h @@ -46,7 +46,7 @@ int do_fat_fsload(struct cmd_tbl

[PATCH v5] cmd: cat: add new command

2022-08-21 Thread Roger Knecht
Add cat command to print file content to standard out Reviewed-by: Simon Glass Signed-off-by: Roger Knecht --- v5: - Removed "default n" from Kconfig - Renamed 'buffer_sysmem_addr' in 'addr' - User yield instead of return in conftest.py - Catch 'CalledProcessError' in conftest.p

Re: [PATCH v3] cmd: cat: add new command

2022-08-21 Thread Roger Knecht
--- Original Message --- On Sunday, August 21st, 2022 at 14:18, Simon Glass wrote: > > > Hi Roger, > > On Sun, 21 Aug 2022 at 07:27, Roger Knecht rkne...@pm.me wrote: > > > --- Original Message --- > > On Friday, August 19th, 2022 at 16:08,

Re: [PATCH v4] cmd: cat: add new command

2022-08-21 Thread Roger Knecht
--- Original Message --- On Sunday, August 21st, 2022 at 07:35, Heinrich Schuchardt wrote: > > > On 8/19/22 10:35, Roger Knecht wrote: > > > Add cat command to print file content to standard out > > > > Signed-off-by: Roger Knecht rkne...@pm.me >

Re: [PATCH v3] cmd: cat: add new command

2022-08-21 Thread Roger Knecht
--- Original Message --- On Friday, August 19th, 2022 at 16:08, Simon Glass wrote: > > > Hi, Hi Simon, > > On Thu, 18 Aug 2022 at 11:08, Heinrich Schuchardt xypron.g...@gmx.de wrote: > > > On 8/18/22 18:54, Roger Knecht wrote: > > > > >

[PATCH v4] cmd: cat: add new command

2022-08-19 Thread Roger Knecht
Add cat command to print file content to standard out Signed-off-by: Roger Knecht --- v4: - Return only values from enum command_ret_t in do_cat() - Use calloc() instead of malloc() for zero initialized memory - Make use of CONFIG_SYS_LONGHELP - Improved error messages v3: - Disable 'cat

[PATCH v3] cmd: cat: add new command

2022-08-19 Thread Roger Knecht
Add cat command to print file content to standard out Signed-off-by: Roger Knecht --- v3: - Disable 'cat' by default (CONFIG_CMD_CAT=n) - Enable 'cat' in sandbox and sandbox64 defconfig - Use map_to_sysmem() to fix "phys_to_virt: Cannot map sandbox address" - Use puts() instead

Re: [PATCH v2] cmd: cat: add new command

2022-08-19 Thread Roger Knecht
--- Original Message --- On Sunday, June 19th, 2022 at 15:08, Heinrich Schuchardt wrote: > > > On 6/19/22 16:23, Roger Knecht wrote: > > > On Thursday, June 9th, 2022 at 22:27, Roger Knecht rkne...@pm.me wrote: > > > > > On Wednesday, Jun

Re: [PATCH v2] cmd: cat: add new command

2022-06-19 Thread Roger Knecht
On Thursday, June 9th, 2022 at 22:27, Roger Knecht wrote: > On Wednesday, June 8th, 2022 at 15:59, Tom Rini tr...@konsulko.com wrote: > > > On Sat, Jun 04, 2022 at 11:19:15AM +, Roger Knecht wrote: > > > > > Add cat command to print file content to standard

Re: [PATCH v2] cmd: cat: add new command

2022-06-09 Thread Roger Knecht
On Wednesday, June 8th, 2022 at 15:59, Tom Rini wrote: > On Sat, Jun 04, 2022 at 11:19:15AM +0000, Roger Knecht wrote: > > > Add cat command to print file content to standard out > > > > Signed-off-by: Roger Knecht rkne...@pm.me > > --- > > v2: > &g

[PATCH v2] cmd: cat: add new command

2022-06-04 Thread Roger Knecht
Add cat command to print file content to standard out Signed-off-by: Roger Knecht --- v2: - Moved cat from boot to shell commands - Added MAINTAINERS entry - Added comments - Improved variable naming MAINTAINERS | 5 + cmd/Kconfig | 6 ++ cmd/Makefile | 1 + cmd/cat.c| 58

[PATCH] cmd: cat: add new command

2022-05-23 Thread Roger Knecht
Add cat command to print file content to standard out Signed-off-by: Roger Knecht --- cmd/Kconfig | 6 ++ cmd/Makefile | 1 + cmd/cat.c| 54 3 files changed, 61 insertions(+) create mode 100644 cmd/cat.c diff --git a/cmd/Kconfig