rtems-libbsd tests

Sergio G.M. sgmonroy at gmail.com
Thu Mar 13 13:14:09 UTC 2014


I have successfully built RTEMS and run the samples on QEMU, and now I'm
trying to run rtems-libbsd tests on QEMU (as described in libbsd.txt).

My setup:
GCC-4.8.2, newlib-cvs, binutils-2.24, qemu-1.7.0.

I have also checkout rtems-testing to use the provided scripts to run the
tests on QEMU (needed by 'make run_tests' from rtems-libbsd).

So at his point I have an arm-rtems4.11- toolchain and RTEMS library with
realview_pbx_a9_qemu bsp.
I have also built rtems-libbsd and when running the tests (make run_tests),
all of them timeout.

I understand that rtems-libbsd is a work in progress, but I was wondering
what is the state of those tests?

I have tried to run a single test (init01) using the script with the
following result:

$ realview_pbx_a9_qemu -v -N -T tap0 testsuite/init01/init01.exe
Default program to run is
Using qemu-system-arm
qemu-system-arm is /usr/bin/qemu-system-arm
TESTS TO RUN: testsuite/init01/init01.exe
BACKGROUND runtest testsuite/init01/init01.exe single 180
qemu-system-arm -no-reboot -nographic -M realview-pbx-a9 -m 256M -net
nic,model=smc91c111,macaddr=0e:b0:ba:5e:ba:11 -net
tap,ifname=tap0,script=no,downscript=no -kernel testsuite/init01/init01.exe
running testsuite/init01/init01.exe for maximum 180 seconds... killed due
to over time... 180000 ms run time

$ cat log/init01
Warning: hub port hub0port0 has no peer
Warning: vlan 0 with no nics
Warning: netdev hub0port0 has no peer
Warning: requested NIC (anonymous, model smc91c111) was not created (not
supported by this machine?)
nexus0: <RTEMS Nexus device>
devctl: ? at   on nexus0
devctl: +nexus0 at   on root0
IPsec: Initialized Security Association Processing.
devctl: !system=IFNET subsystem=enc0 type=ATTACH
devctl: !system=IFNET subsystem=lo0 type=ATTACH
qemu: terminating on signal 2 from pid 10452

It is the same behavior for all libbsd tests. Have I something
misconfigured? Is this expected? Any tips/points?

The warning seems to be an unsupported NIC model for the board
realview-pbx-a9 that according to ARM's doc and QEMU code should be
'lan9118' instead of 'smc91c111'.
It can be fix by either specifying the correct model, or removing the model
option altogether allowing QEMU to enable the default NIC for the board.
All tests still timeout even with 'lan9118' as NIC model.

Kind regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20140313/f4c5f272/attachment.html>

More information about the users mailing list