forked from apache/nuttx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mps3-an547:let ap build with pic,and use bootloader boot it
Implement PIC loading in armv8-m qemu, for example: load address-independent AP ELF in the bootloader, and the text segment in AP ELF is XIP, no need to apply for memory and modify it. Two config: bootloader abbreviation bl: use romfs to load ap elf, use the boot command to parse and jump to ap application abbreviation ap: run os test We need to compile ap first, then compile bl. compile step: ./tools/configure.sh mps3-an547:ap make -j20 mkdir -p pic cp boot pic/. genromfs -a 128 -f ../romfs.img -d pic make distclean -j20 ./tools/configure.sh mps3-an547:bl make -j20 run qemu: qemu-system-arm -M mps3-an547 -m 2G -nographic -kernel nuttx.bin \ -gdb tcp::1127 -device loader,file=../romfs.img,addr=0x60000000 nsh> boot /etc/boot ap> ostest Signed-off-by: anjiahao <[email protected]>
- Loading branch information
Showing
7 changed files
with
263 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.