incubator-nuttx/Documentation
anjiahao 15fa55f234 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 <anjiahao@xiaomi.com>
2024-10-16 18:40:06 +08:00
..
ReleaseNotes
_extensions
_static
_templates
applications docs: add gprof usage documentation 2024-10-10 18:46:51 +08:00
components nuttx/can.h: support timestamp for can frame 2024-10-16 17:04:31 +08:00
contributing Documentation: Clarifying the workflow of building the documentation 2024-09-30 08:34:34 +08:00
faq
guides Doc: Migrate Versioning and Task Names 2024-10-15 09:45:43 +08:00
implementation Documentation: Fix code block in implementation/simulation.rst 2024-09-30 08:33:39 +08:00
introduction Documentation: replace m2r2 with myst-parser 2024-08-30 01:14:36 +08:00
logos
platforms mps3-an547:let ap build with pic,and use bootloader boot it 2024-10-16 18:40:06 +08:00
quickstart gdb plugin: Encapsulate the gdb native command gcore as nxgcore 2024-09-20 22:07:29 +08:00
reference fs: support VFS-based named event group 2024-10-09 01:40:00 +08:00
.gitignore
Makefile
Pipfile Documentation: replace m2r2 with myst-parser 2024-08-30 01:14:36 +08:00
Pipfile.lock
conf.py Documentation: replace m2r2 with myst-parser 2024-08-30 01:14:36 +08:00
glossary.rst
index.rst
known-warnings.txt
legacy_README.md Documentation: replace m2r2 with myst-parser 2024-08-30 01:14:36 +08:00
make.bat
substitutions.rst