Test if ARM / xilinx_zynq_a9_qemu built correctly?

Christian Mauderer christian.mauderer at embedded-brains.de
Thu Oct 20 05:07:43 UTC 2016


Am 19.10.2016 um 16:54 schrieb James Marshall:
> Good morning,
> 
> I'm trying to build the xilinx_zynq_a9_qemu bsp for 4.12. I can't seem
> to get ticker.exe to run, but I don't know if the problem is with the
> build process or my qemu install.
> 
> The 'make' command ran in about 4 minutes, and returned a lot of
> messages like "make[5]: Nothing to be done for `all'." This makes me
> suspect my configuration. Also, the *.exe files generated by 'make'
> where not copied over by 'make install' (but I don't know if they should
> have been). When I try to run ticker.exe with qemu I don't get any
> output and have to kill the qemu process. So maybe I need to run qemu
> with different arguments.
> 
> Any help would be much appreciated. Thanks in advance,
> James
> 
> To build I did the following:
> RSB:
>   $ cd $RTEMS_DIR
>   $ mkdir rsb; cd rsb
>   $ git clone git://git.rtems.org/rtems-source-builder.git
> <http://git.rtems.org/rtems-source-builder.git>
>   $ cd rtems-source-builder/rtems/
>   $ ../source-builder/sb-set-builder --prefix=${RTEMS_DIR}/4.12
> 4.12/rtems-arm
>   $ export PATH=${RTEMS_DIR}/4.12/bin:$PATH
>   $ which autoconf
> 
> RTEMS source:
>   $ cd $RTEMS_DIR
>   $ git clone git://git.rtems.org/rtems <http://git.rtems.org/rtems>
> rtems-src
>   $ cd rtems-src
>   $ ./bootstrap
>   $ cd ..; mkdir xilinx-zynq-qemu; mkdir install-xilinx-zynq; cd
> xilinx-zynq-qemu
>   $ ../rtems-src/configure --target=arm-rtems4.12
> --enable-rtemsbsp=xilinx_zynq_a9_qemu --enable-tests=samples
> --prefix=${RTEMS_DIR}/install-xilinx-zynq
>   $ make
>   $ make install
> 
> To install qemu (as
> per $RTEMS_DIR/rtems-src/c/src/lib/libbsp/arm/xilinx-zynq/README):
>   $ cd $RTEMS_DIR
>   $ mkdir install-qemu
>   $ git clone git://git.qemu.org/qemu.git <http://git.qemu.org/qemu.git>
> qemu
>   $ cd qemu
>   $ git checkout a1bff7
>   $ mkdir build; cd build
>   $ ../configure --prefix=${RTEMS_DIR}/install-qemu
> --interp-prefix=${RTEMS_DIR}/install-qemu --disable-werror
> (--disable-werror is needed to avoid failing on the use of a deprecated
> libusb function (see end of email))
>   $ make
>   $ make install
>   $ export PATH="$PATH:${RTEMS_DIR}/install-qemu/bin"
>   $ which qemu-system-arm
> 
> Test with ticker.exe:
>   $ cd
> $RTEMS_DIR/xilinx-zynq-qemu/arm-rtems4.12/c/xilinx_zynq_a9_qemu/testsuites/samples/ticker/
>   $ qemu-system-arm -S -s -no-reboot -serial mon:stdio -serial /dev/null
> -net none -nographic -M xilinx-zynq-a9 -m 256M -kernel ticker.exe
> 
> 
> The output from configure is available
> here: https://gist.github.com/jcmarsh/cd04fc93417c57d7bb1c6614601957d5
> Output from
> make: https://gist.github.com/jcmarsh/377487fd83afb1395b452ebda349ef7c
> Output from 'make
> install': https://gist.github.com/jcmarsh/3a05c4560292582bfb37d0e8f6e90d78
> Build directory
> tree: https://gist.github.com/jcmarsh/87a805fca85558b1bc78877fc938582c
> 
> qemu libusb warning: $RTEMS_DIR/rtems/qemu/hw/usb/host-libusb.c:243:5:
> warning: ‘libusb_get_port_path’ is deprecated (declared at
> /usr/include/libusb-1.0/libusb.h:1358): Use libusb_get_port_numbers
> instead [-Wdeprecated-declarations]
>      rc = libusb_get_port_path(ctx, dev, path, 7);
> 
> 
> 
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
> 

Hello James,

are you aware that the '-S' option on your qemu call freezes the CPU at
startup. This is useful if you want to connect a debugger (gdb) to the
qemu session.

You can try one of the following:
- connect a gdb to qemu and start the application through it
- start the cpu using 'c' on the monitor (see
https://en.wikibooks.org/wiki/QEMU/Monitor for more details)
- remove the '-S' option

Kind regards

Christian Mauderer

-- 
--------------------------------------------
embedded brains GmbH
Christian Mauderer
Dornierstr. 4
D-82178 Puchheim
Germany
email: christian.mauderer at embedded-brains.de
Phone: +49-89-18 94 741 - 18
Fax:   +49-89-18 94 741 - 08
PGP: Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list