JianyuWang0623 opened a new pull request, #3115: URL: https://github.com/apache/nuttx-apps/pull/3115
## Summary Sometimes users may want to calculate the MD5 of part of a file(e.g. check partition contents for debug after flashing, size of which may be greater than image). This can be done with the "dd" command and pipes, the "md5" command just needs to support reading from standard input. For example: `dd if=/dev/virtblk0 bs=512 count=1 | md5`. ## Impact - nshlib/md5 ## Testing 1. Selftest: PASS ```bash # Test1 nsh> md5 -f /etc/init.d/rcS 1f0f871eca6a67fc58f2f33f03ea917fnsh> nsh> nsh> dd if=/etc/init.d/rcS | md5 sh [10:100] 1f0f871eca6a67fc58f2f33f03ea917fnsh> nsh> # Test 2 nsh> cat /etc/init.d/rcS fastbootd & nsh> dd if=/etc/init.d/rcS bs=1 count=8 | md5 sh [12:100] d7c865c834612f458707597e3be8a0f0nsh> nsh> echo -n "fastboot" | md5 sh [14:100] d7c865c834612f458707597e3be8a0f0nsh> nsh> git@github:/workspace $ echo -n "fastboot" | md5sum d7c865c834612f458707597e3be8a0f0 - ``` 2. CI -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org