Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

boards/arm/qemu: enable kernel build for armv7a #12952

Merged
merged 2 commits into from
Oct 12, 2024

Conversation

fxysunshine
Copy link

@fxysunshine fxysunshine commented Aug 18, 2024

Summary

enable qemu-armv7a:knsh to test kernel mode.
See Documentation/platforms/arm/qemu/boards/qemu-armv7a/README.txt for details

Impact

little

Testing

ostest success build with BUILD_KERNEL


   $ ./tools/configure.sh qemu-armv7a:knsh
   $ make V=1 -j7
   $ make export V=1
   $ cd ../apps
   $ ./tools/mkimport.sh -z -x ../nuttx/nuttx-export-*.tar.gz
   $ make import V=1
   $ cd ../nuttx
   $ qemu-system-arm -semihosting -M virt -m 1024 -nographic -kernel ./nuttx

   NuttShell (NSH) NuttX-12.3.0-RC0
   nsh> ps
     PID GROUP PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK           STACK   USED  FILLED COMMAND
       0     0   0 FIFO     Kthread N-- Ready              0000000000000000 004088 000896  21.9%  Idle_Task
       1     1 100 RR       Kthread --- Waiting  Semaphore 0000000000000000 004040 000304   7.5%  lpwork 0x40119398 0x401193ac
       2     2 100 RR       Task    --- Running            0000000000000000 003032 001032  34.0%  /system/bin/init
   nsh> free
                      total       used       free    largest  nused  nfree
           Kmem:  133058556      16644  133041912  133041152     41      3
           Page:  134217728    1105920  133111808  133111808
   nsh> hello
   Hello, World!!
   nsh> ostest

@xiaoxiang781216
Copy link
Contributor

@fxysunshine please fix the compiler error.

@fxysunshine fxysunshine marked this pull request as draft October 10, 2024 10:20
@github-actions github-actions bot added Area: Documentation Improvements or additions to documentation Arch: arm Issues related to ARM (32-bit) architecture Board: arm Size: M The size of the change in this PR is medium labels Oct 11, 2024
yanghuatao and others added 2 commits October 11, 2024 22:48
See Documentation/platforms/arm/qemu/boards/qemu-armv7a/README.txt for details

Signed-off-by: fangxinyong <[email protected]>
@fxysunshine fxysunshine marked this pull request as ready for review October 11, 2024 23:29
@xiaoxiang781216 xiaoxiang781216 merged commit 55d7708 into apache:master Oct 12, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch: arm Issues related to ARM (32-bit) architecture Area: Documentation Improvements or additions to documentation Board: arm Size: M The size of the change in this PR is medium
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants