15fa55f234
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 <anjiahao@xiaomi.com> |
||
---|---|---|
.. | ||
a1x | ||
am335x | ||
at32 | ||
bcm2708 | ||
c5471 | ||
cxd56xx | ||
dm320 | ||
efm32 | ||
eoss3 | ||
fvp-v8r-aarch32 | ||
gd32f4 | ||
goldfish | ||
imx1 | ||
imx6 | ||
imxrt | ||
kinetis | ||
kl | ||
lc823450 | ||
lpc17xx | ||
lpc31xx | ||
lpc40xx | ||
lpc43xx | ||
lpc54xx | ||
lpc214x | ||
lpc2378 | ||
max326xx | ||
moxart | ||
mps | ||
mx8mp/boards/verdin-mx8mp | ||
nrf52 | ||
nrf53 | ||
nrf91 | ||
nuc1xx | ||
phy62xx | ||
qemu | ||
rp2040 | ||
s32k1xx | ||
s32k3xx | ||
sam34 | ||
sama5 | ||
samd2l2 | ||
samd5e5 | ||
samv7 | ||
stm32f0 | ||
stm32f1 | ||
stm32f2 | ||
stm32f3 | ||
stm32f4 | ||
stm32f7 | ||
stm32g0 | ||
stm32g4 | ||
stm32h7 | ||
stm32l0 | ||
stm32l1 | ||
stm32l4 | ||
stm32l5 | ||
stm32u5 | ||
stm32wb | ||
stm32wl5 | ||
str71x | ||
tiva | ||
tms570 | ||
xmc4 | ||
index.rst |