You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/02/10 14:34:41 UTC
[GitHub] [incubator-nuttx] hotislandn opened a new pull request #2836: arch:risc-v:bl602:add support for elf file apps.
hotislandn opened a new pull request #2836:
URL: https://github.com/apache/incubator-nuttx/pull/2836
Signed-off-by: hotislandn <ho...@hotmail.com>
## Summary
This patch add elf file apps support on bl602. It utils the elf examples under apps, which also pack the relocatable elf file to a romfs image file.
## Impact
bl602evb.
## Testing
This needs to flash one additional romfs image file: apps/examples/elf/tests/romfs.img to the internal flash of bl602 at addr 0x1C0000.
The board bringup process will mount it @ "/sbin", with the elf file apps. Then use the full path name to execute.
Test log:
nsh> ls /sbin
/sbin:
.
..
hello
task
struct
errno
pthread
signal
mutex
nsh> /sbin/hello
Getting ready to say "Hello, world"
Hello, world!
It has been said.
argc = 1
argv = 0x0x4201685c
argv[0] = (0x0x42016864) "/sbin/hello"
argv[1] = 0x0
Goodbye, world!
nsh> /sbin/pthread
PARENT: started
PARENT: calling pthread_start with arg=305419896
CHILD: started with arg=305419896
CHILD: returning -2023406815
PARENT child exitted with -2023406815
PARENT returning success
...
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] acassis commented on pull request #2836: arch:risc-v:bl602:add support for elf file apps.
Posted by GitBox <gi...@apache.org>.
acassis commented on pull request #2836:
URL: https://github.com/apache/incubator-nuttx/pull/2836#issuecomment-777406736
@btashton Did you have chance to look it? Could you merge it?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] btashton merged pull request #2836: arch:risc-v:bl602:add support for elf file apps.
Posted by GitBox <gi...@apache.org>.
btashton merged pull request #2836:
URL: https://github.com/apache/incubator-nuttx/pull/2836
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org