Skip to content

Commit

Permalink
Documentation: add x86_64 kernel build configs
Browse files Browse the repository at this point in the history
 Documentation: add x86_64 kernel build configs
  • Loading branch information
szafonimateusz-mi committed Nov 27, 2024
1 parent 54aa7e6 commit d20bf41
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,34 @@ Basic command to run the image without additional PCI devices attached::
qemu-system-x86_64 -m 2G -cpu host -smp 4 -enable-kvm \
-kernel nuttx -nographic -serial mon:stdio


knsh_romfs
----------

This is similar to the ``nsh`` configuration except that NuttX
is built as a kernel-mode, monolithic module, and the user applications
are built separately. It uses ROMFS to load the user-space applications.
This is intended to run on QEMU with COM serial port support.

Steps to build kernel image with user-space apps in ROMFS::
./tools/configure.sh qemu-intel64/knsh_romfs
make -j
make export -j
pushd ../apps
./tools/mkimport.sh -z -x ../nuttx/nuttx-export-*.tar.gz
make import -j
./tools/mkromfsimg.sh
mv boot_romfsimg.h ../nuttx/arch/x86_64/src/board/romfs_boot.c
popd
make -j

knsh_romfs_pci
--------------

This is similar to the ``knsh_romfs`` configuration except that it is intended
to run on a bare metal Intel hardware with PCI serial port support.

lvgl
----

Expand Down
9 changes: 9 additions & 0 deletions Documentation/platforms/x86_64/intel64/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ and use ``-cdrom boot.iso`` (multiboot2 framebuffer doesn't work with
Also, your GRUB configuration (``grub.cfg``) should insert the appropriate video
module, in many cases ``insmod all_video`` should be enough.

Kernel build
------------

Kernel build is supported.

.. warning::
IMPORTANT: the current implementation doesn't include any protection against
speculative execution vulnerabilities (Spectre, Meltdown and others) !

Creating a bootable disk
========================

Expand Down

0 comments on commit d20bf41

Please sign in to comment.