pussuw commented on PR #7966:
URL: https://github.com/apache/nuttx/pull/7966#issuecomment-1363997568

   I think I made a mistake with qemu, It seems to partially work with these 
instructions:
   
   ```
       This is a configuration of testing the BUILD_KERNEL configuration.
   
       $ cd nuttx
       $ ./tools/configure.sh sabre-6quad: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 sabrelite -m 1024 -smp 4 -nographic 
-kernel ./nuttx
   ```
   ```
   ville@ville-ThinkPad-T14s-Gen-1:~/wpc_toolchain/workspace/nuttx-bare/nuttx$ 
qemu-system-arm -semihosting -M sabrelite -m 1024 -smp 4 -nographic -kernel 
./nuttx
   ABDGHIJKNOPQ
   
   NuttShell (NSH) NuttX-10.4.0
   nsh> ps
     PID GROUP PRI POLICY   TYPE    NPX STATE    EVENT     SIGMASK   STACK   
USED  FILLED COMMAND
       0     0   0 FIFO     Kthread N-- Ready              00000000 002024 
000816  40.3%  Idle Task
       1     1 224 RR       Kthread --- Waiting  Semaphore 00000000 001992 
000416  20.8%  hpwork 0x10815a34
       2     2 100 RR       Task    --- Running            00000000 003016 
001116  37.0%  /system/bin/init
   nsh> 
   
   ```
   But then 
   ```
   
   nsh> /system/bin/getprime
   Set thread priority to 10
   Set thread policy to SCHED_RR
   Start thread #0
   [   77.590000] arm_dataabort: Data abort. PC: 108012d2 DFAR: 00000098 DFSR: 
0000080d
   [   77.590000] _assert: Assertion failed at file: 
armv7-a/arm_dataabort.c:161 task: /system/bin/getprime 0x80000765
   [   77.590000] arm_registerdump: R0: 00000000 R1: 00000000 R2: 600000df  R3: 
00000001
   [   77.590000] arm_registerdump: R4: 108195f0 R5: 00000000 R6: 000000df  FP: 
108152dc
   [   77.590000] arm_registerdump: R8: 108153c8 SB: 80202798 SL: 8020279c R11: 
00000000
   [   77.590000] arm_registerdump: IP: 00000080 SP: 108150b0 LR: 1080136f  PC: 
108012d2
   [   77.590000] arm_registerdump: CPSR: 000000ff
   [   77.590000] dump_stack: IRQ Stack:
   [   77.590000] dump_stack: sp:     10814f30
   [   77.590000] dump_stack:   base: 108148d8
   [   77.590000] dump_stack:   size: 00002048
   [   77.590000] stackdump: 10814f20: 00000304 00000001 80000765 108053c9 
10814f68 00000000 000000df 108152dc
   [   77.590000] stackdump: 10814f40: 108153c8 80202798 8020279c 10804411 
108122cf 10800901 00000098 0000080d
   [   77.590000] stackdump: 10814f60: 0000080d 108001a4 00000000 00000000 
00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10814f80: 00000000 00000000 00000000 00000000 
00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10814fa0: 00000000 00000000 00000000 00000000 
00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10814fc0: 00000000 00000000 00000000 00000000 
00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10814fe0: 00000000 00000000 00000000 00000000 
00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10815000: 00000000 00000000 00000000 00000000 
00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10815020: 00000000 00000000 00000000 00000000 
00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10815040: 00000000 00000000 00000000 00000000 
00000000 00000000 00000000 00000000
   [   77.590000] stackdump: 10815060: 00000000 00000000 00000000 108150b0 
1080136f 00000000 00000000 600000df
   [   77.590000] stackdump: 10815080: 00000001 108195f0 00000000 000000df 
108152dc 108153c8 80202798 8020279c
   [   77.590000] stackdump: 108150a0: 00000000 00000080 108012d2 000000ff 
802046b8 1081b270 108152d8 00000002
   [   77.590000] dump_stack: User Stack:
   [   77.590000] dump_stack: sp:     108150b0
   [   77.590000] dump_stack:   base: 80202038
   [   77.590000] dump_stack:   size: 00001992
   [   77.590000] dump_stack: ERROR: User Stack pointer is not within the stack
   [   77.590000] dump_stack: Kernel Stack:
   [   77.590000] dump_stack: sp:     108150b0
   [   77.590000] dump_stack:   base: 1081a810
   [   77.590000] dump_stack:   size: 00003072
   [   77.590000] dump_stack: ERROR: Kernel Stack pointer is not within the 
stack
   [   77.590000] showtasks:    PID    PRI     STACK      USED   FILLED    
COMMAND
   [   77.590000] showtasks:   ----   ----      2048       796    38.8%    irq
   [   77.590000] dump_task:      0      0      2024       816    40.3%    Idle 
Task
   [   77.590000] dump_task:      1    224      1992       416    20.8%    
hpwork 0x10815a34
   [   77.590000] dump_task:      2    100      3016      1116    37.0%    
/system/bin/init
   [   77.590000] dump_task:      3    100      1992       780    39.1%    
/system/bin/getprime
   [   77.590000] dump_task:      4    100      2024       328    16.2%    
<pthread> 0x8000077d 0x80202798
   ```
   
   :(


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to