boards: update README for virtio gpu driver

Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
This commit is contained in:
Peter Bee 2023-08-15 10:38:16 +08:00 committed by Xiang Xiao
parent 281ab83309
commit 58f9cf7c04
2 changed files with 45 additions and 3 deletions

View file

@ -71,6 +71,21 @@ Getting Started
-device virtio-blk-device,bus=virtio-mmio-bus.3,drive=hd \
-mon chardev=con,mode=readline -kernel ./nuttx
3.1.2 Single Core with virtio gpu driver (GICv3)
Configuring NuttX and compile:
$ ./tools/configure.sh qemu-armv8a:fb
$ make -j
Running with qemu
$ qemu-system-aarch64 -cpu cortex-a53 \
-machine virt,virtualization=on,gic-version=3 \
-chardev stdio,id=con,mux=on -serial chardev:con \
-global virtio-mmio.force-legacy=false \
-device virtio-gpu-device,xres=640,yres=480,bus=virtio-mmio-bus.0 \
-mon chardev=con,mode=readline -kernel ./nuttx
NuttShell (NSH) NuttX-10.4.0
nsh> fb
3.2 SMP (GICv3)
Configuring NuttX and compile:
$ ./tools/configure.sh -l qemu-armv8a:nsh_smp
@ -324,7 +339,7 @@ save/restore FPU context directly maybe become a solution. Linux kernel introduc
kernel_neon_begin/kernel_neon_end function for this case. Similar function will
be add to NuttX if this issue need to be handle.
3. More reading
3. More reading
for Linux kernel, please reference:
- https://www.kernel.org/doc/html/latest/arm/kernel_mode_neon.html

View file

@ -28,7 +28,7 @@
$ cd nuttx
$ make distclean
$ # For 64-bit build.
$ ./tools/configure.sh rv-virt:knsh64
$ ./tools/configure.sh rv-virt:knsh64
$ # For 32-bit build.
$ ./tools/configure.sh rv-virt:knsh32
$ make V=1 -j7
@ -87,7 +87,34 @@
-device virtio-blk-device,bus=virtio-mmio-bus.3,drive=hd \
-bios none -kernel ./nuttx/nuttx -nographic
5. TODO
5. Run the virtio gpu driver with qemu and test fb demo
$ # For 32-bit build.
$ ./tools/configure.sh rv-virt:fb
$ make -j
$ qemu-system-riscv32 -semihosting -M virt -cpu rv32 -smp 8 \
-chardev stdio,id=con,mux=on \
-serial chardev:con \
-device virtio-gpu-device,xres=640,yres=480,bus=virtio-mmio-bus.0 \
-mon chardev=con,mode=readline \
-bios none -kernel nuttx
NuttShell (NSH) NuttX-10.4.0
nsh> fb
$ # For 64-bit build.
$ ./tools/configure.sh rv-virt:fb64
$ make -j
$ qemu-system-riscv64 -semihosting -M virt -cpu rv64 -smp 8 \
-chardev stdio,id=con,mux=on \
-serial chardev:con \
-device virtio-gpu-device,xres=640,yres=480,bus=virtio-mmio-bus.0 \
-mon chardev=con,mode=readline \
-bios none -kernel nuttx
NuttShell (NSH) NuttX-10.4.0
nsh> fb
6. TODO
Support FPU
Support RISC-V User mode