xilinx_zynq_a9_qemu RTEMS6 no console input/output

Heinz Junkes junkes at fhi-berlin.mpg.de
Thu Feb 18 17:21:45 UTC 2021


Thanks, unfortunately I also have the same behavior with -serial null -serial on:stdio.
So I use it with RTEMS5 which worked so far.

I had found this in the mail list and tried it ;-)

Heinz

Qemu's machine definition uses the second UART in the memory map as the
primary UART. This follows from the hardware itself where the second
UART in the memory map is UART 0. This switches the tester to using the
correct UART.
---
tester/rtems/testing/bsps/xilinx_zynqmp_ilp32.ini | 2 +-
tester/rtems/testing/bsps/xilinx_zynqmp_lp64.ini  | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tester/rtems/testing/bsps/xilinx_zynqmp_ilp32.ini b/tester/rtems/testing/bsps/xilinx_zynqmp_ilp32.ini
index 5ff0e86..35869ed 100644
--- a/tester/rtems/testing/bsps/xilinx_zynqmp_ilp32.ini
+++ b/tester/rtems/testing/bsps/xilinx_zynqmp_ilp32.ini
@@ -35,4 +35,4 @@
bsp           = xilinx_zynqmp_ilp32
arch          = aarch64
tester        = %{_rtscripts}/qemu.cfg
-bsp_qemu_opts = %{qemu_opts_base} -serial null -serial mon:stdio -machine xlnx-zcu102 -m 4096
+bsp_qemu_opts = %{qemu_opts_base} -serial mon:stdio -machine xlnx-zcu102 -m 4096
diff --git a/tester/rtems/testing/bsps/xilinx_zynqmp_lp64.ini b/tester/rtems/testing/bsps/xilinx_zynqmp_lp64.ini
index 8db82b6..cd2d268 100644
--- a/tester/rtems/testing/bsps/xilinx_zynqmp_lp64.ini
+++ b/tester/rtems/testing/bsps/xilinx_zynqmp_lp64.ini
@@ -35,4 +35,4 @@
bsp           = xilinx_zynqmp_lp64
arch          = aarch64
tester        = %{_rtscripts}/qemu.cfg
-bsp_qemu_opts = %{qemu_opts_base} -serial null -serial mon:stdio -machine xlnx-zcu102 -m 4096
+bsp_qemu_opts = %{qemu_opts_base} -serial mon:stdio -machine xlnx-zcu102 -m 4096
-- 
2.20.1
------------------------------------------------------------------------------
Fritz-Haber-Institut    | Phone:         (+49 30) 8413-4270
Heinz Junkes             | Fax (G3+G4):   (+49 30) 8413-5900
Faradayweg 4-6        | VC: 102220181216 at bjn.vc
D - 14195 Berlin        | E-Mail:        junkes at fhi-berlin.mpg.de
------------------------------------------------------------------------------

> On 18. Feb 2021, at 17:47, Christian MAUDERER <christian.mauderer at embedded-brains.de> wrote:
> 
> Hello Heinz,
> 
> Am 18.02.21 um 15:32 schrieb junkes:
>> I just started testing RTEMS6 with xilinx_zynq_a9_qemu.
>> When I run the examples (in bsp or rtems-libbsd) there is no console in/out-put.
>>  qemu-system-arm -no-reboot -serial mon:stdio -net none -nographic -M xilinx-zynq-a9 -m 256M -kernel build/arm-rtems6-xilinx_zynq_a9_qemu-default/commands01.exe
>> qemu-system-arm: warning: nic cadence_gem.0 has no peer
>> qemu-system-arm: warning: nic cadence_gem.1 has no peer
>> ... nothing happens here
> 
> I'm not 100% sure but it's possible that the BSP wants to use a second serial port. My call for qemu for this BSP looks like that:
> 
> qemu-system-arm -no-reboot -net none -serial null -serial mon:stdio -M xilinx-zynq-a9 -m 256M -nographic -kernel media01.exe
> 
> Or if I want to attach a debugger:
> 
> qemu-system-arm -gdb tcp::1234 -S -net none -serial null -serial mon:stdio -M xilinx-zynq-a9 -m 256M -nographic -kernel media01.exe
> 
> Note the "-serial null" before the second "-serial mon:stdio".
> 
>> Have to kill -9 from other shell, no CTRL-C :
>> Killed
> 
> Qemu catches CTRL-C and forwards it to the application. You have to use screen-like combinations like CTRL-A followed by h to get help or CTRL-A followed by x to exit the emulator.
> 
> Best regards
> 
> Christian
> 
>> Heinz
>> _______________________________________________
>> users mailing list
>> users at rtems.org
>> http://lists.rtems.org/mailman/listinfo/users
> 
> -- 
> --------------------------------------------
> embedded brains GmbH
> Herr Christian MAUDERER
> Dornierstr. 4
> 82178 Puchheim
> Germany
> email: christian.mauderer at embedded-brains.de
> phone: +49-89-18 94 741 - 18
> fax:   +49-89-18 94 741 - 08
> 
> Registergericht: Amtsgericht München
> Registernummer: HRB 157899
> Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
> Unsere Datenschutzerklärung finden Sie hier:
> https://embedded-brains.de/datenschutzerklaerung/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2542 bytes
Desc: not available
URL: <http://lists.rtems.org/pipermail/users/attachments/20210218/11189b70/attachment.bin>


More information about the users mailing list