qemu-system-ppc64 does not work on powerpc/qoriq_e6500_64

Richi Dubey richidubey at gmail.com
Sun May 9 15:07:51 UTC 2021


 ~/quick-start/rtems/6/bin/qemu-system-ppc64 -net none -nographic -M
ppce500 -m 1024M -kernel
~/quick-start/src/rtems/build/powerpc/qoriq_e6500_64/testsuites/smptests/smpschededf04.exe
-smp 4 -s -S

This is similar to the command I use to debug arm/realview_pbx_a9_qemu all
the time

On Sun, May 9, 2021 at 7:58 PM Joel Sherrill <joel at rtems.org> wrote:

>
>
> On Sat, May 8, 2021, 11:03 PM Richi Dubey <richidubey at gmail.com> wrote:
>
>> Hi,
>>
>> I tried with both smp and sp tests:
>>
>> -------------------------------------------------- ------------------------- -------------------------
>> rdubey at hpc1:~/quick-start$ ~/quick-start/rtems/6/bin/powerpc-rtems6-gdb
>> --command=~/quick-start/rtems/6/bin/ppc.gdb
>> ~/quick-start/src/rtems/build/powerpc/qoriq_e6500_64/testsuites/smptests/smpschededf04.exe
>> GNU gdb (GDB) 10.1.90.20210409-git
>> ...
>> Loading section .toc, size 0x60 lma 0x78bdc
>> Loading section .rtemsroset, size 0xa8 lma 0x78c3c
>> Loading section .data, size 0x800 lma 0x78ce4
>> Start address 0x0000000000004000, load size 480477
>> Transfer rate: 16757 KB/sec, 1945 bytes/write.
>>   Id   Target Id                    Frame
>> * 1    Thread 1.1 (CPU#0 [running]) bsp_section_start_begin () at
>> ../../../bsps/powerpc/qoriq/start/start.S:55
>>   2    Thread 1.2 (CPU#1 [halted ]) 0x00000000fffffffc in ?? ()
>>   3    Thread 1.3 (CPU#2 [halted ]) 0x00000000fffffffc in ?? ()
>>   4    Thread 1.4 (CPU#3 [halted ]) 0x00000000fffffffc in ?? ()
>> ...
>> Start address 0x0000000000004000, load size 480477
>> Transfer rate: 16179 KB/sec, 1945 bytes/write.
>> (gdb) c
>> Continuing.
>>
>>
>> ------------------------- ------------------------- ------------------------- -------------------------
>>
>> Both of them hang after I run 'c'. On stepping:
>>
>>
>> -------------------------  ------------------------- ------------------------- -------------------------
>> Loading section .rtemsroset, size 0xb0 lma 0x7681c
>> Loading section .data, size 0x860 lma 0x768cc
>> Start address 0x0000000000004000, load size 471337
>> Transfer rate: 15872 KB/sec, 1955 bytes/write.
>> (gdb) ni
>> 56 bl .Linitearly
>> (gdb)
>> bsp_section_start_begin () at
>> ../../../bsps/powerpc/qoriq/start/start.S:153
>> 153 mfspr r0, BOOKE_EPCR
>> (gdb)
>> 154 oris r0, r0, BOOKE_EPCR_ICM >> 16
>> (gdb)
>> 155 mtspr BOOKE_EPCR, r0
>> (gdb)
>> 158 mfmsr r0
>> (gdb)
>> 159 oris r0, r0, MSR_CM >> 16
>> (gdb)
>> 160 mtmsr r0
>> (gdb)
>> 161 isync
>> (gdb)
>> 165 mfspr r0, BOOKE_TCR
>> (gdb)
>> 166 LWI r4, BOOKE_TCR_DIE
>> (gdb)
>> 0x0000000000004288 166 LWI r4, BOOKE_TCR_DIE
>> (gdb)
>> 167 andc r0, r0, r4
>> (gdb)
>> 168 mtspr BOOKE_TCR, r0
>> (gdb)
>> 178 LWI r0, QORIQ_INITIAL_BUCSR
>> (gdb)
>> 0x0000000000004298 178 LWI r0, QORIQ_INITIAL_BUCSR
>> (gdb)
>> 179 mtspr FSL_EIS_BUCSR, r0
>> (gdb)
>> 180 isync
>> (gdb)
>> 185 LWI r0, QORIQ_INITIAL_HID0
>> (gdb)
>> 0x00000000000042a8 185 LWI r0, QORIQ_INITIAL_HID0
>> (gdb)
>> 186 mtspr HID0, r0
>> (gdb)
>> 190 LA32 r2, .TOC.
>> (gdb)
>> 0x00000000000042b4 190 LA32 r2, .TOC.
>> (gdb)
>> 199 SET_SELF_CPU_CONTROL CPU_SELF, r5
>> (gdb)
>> 0x00000000000042bc 199 SET_SELF_CPU_CONTROL CPU_SELF, r5
>> (gdb)
>> 0x00000000000042c0 199 SET_SELF_CPU_CONTROL CPU_SELF, r5
>> (gdb)
>> 0x00000000000042c4 199 SET_SELF_CPU_CONTROL CPU_SELF, r5
>> (gdb)
>> 0x00000000000042c8 199 SET_SELF_CPU_CONTROL CPU_SELF, r5
>> (gdb)
>> 0x0000000000000000 in ?? ()
>> (gdb)
>> 0x0000000000000000 in ?? ()
>> (gdb)
>> 0x0000000000000000 in ?? ()
>> (gdb)
>> 0x0000000000000000 in ?? ()
>> (gdb)
>> 0x0000000000000000 in ?? ()
>> (gdb)
>>
>>
>> ------------------------- ------------------------- -------------------------
>> Is there a way to solve this?
>>
>
> How did you start qemu? Google shows some other results for this that
> involve a series of arguments. But I have no idea if this works with our
> bsp.
>
> _______________________________________________
>> devel mailing list
>> devel at rtems.org
>> http://lists.rtems.org/mailman/listinfo/devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210509/bd642d71/attachment.html>


More information about the devel mailing list