Test if ARM / xilinx_zynq_a9_qemu built correctly?
James Marshall
jcmarsh at gwmail.gwu.edu
Wed Oct 19 14:54:32 UTC 2016
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
$ 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 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 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);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20161019/dd1210d4/attachment.html>
More information about the users
mailing list