<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">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).</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">My setup:</div><div style="font-family:arial,sans-serif;font-size:13px">GCC-4.8.2, newlib-cvs, binutils-2.24, qemu-1.7.0.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">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).<br>
</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">So at his point I have an arm-rtems4.11- toolchain and RTEMS library with realview_pbx_a9_qemu bsp.</div>
<div style="font-family:arial,sans-serif;font-size:13px">I have also built rtems-libbsd and when running the tests (make run_tests), all of them timeout.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div>
<div style="font-family:arial,sans-serif;font-size:13px">I understand that rtems-libbsd is a work in progress, but I was wondering what is the state of those tests?</div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">I have tried to run a single test (init01) using the script with the following result:</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div>
<div style="font-family:arial,sans-serif;font-size:13px">$ realview_pbx_a9_qemu -v -N -T tap0 testsuite/init01/init01.exe<br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>Default program to run is</div>
<div>Using qemu-system-arm</div><div>qemu-system-arm is /usr/bin/qemu-system-arm</div><div>TESTS TO RUN: testsuite/init01/init01.exe</div><div>BACKGROUND runtest testsuite/init01/init01.exe single 180</div><div>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</div>
<div>running testsuite/init01/init01.exe for maximum 180 seconds... killed due to over time... 180000 ms run time</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">
$ cat log/init01 <br></div><div style="font-family:arial,sans-serif;font-size:13px"><div>Warning: hub port hub0port0 has no peer<br></div><div>Warning: vlan 0 with no nics</div><div>Warning: netdev hub0port0 has no peer</div>
<div>Warning: requested NIC (anonymous, model smc91c111) was not created (not supported by this machine?)</div><div>*** LIBBSD INIT 1 TEST ***</div><div>nexus0: <RTEMS Nexus device></div><div>devctl: ? at   on nexus0</div>
<div>devctl: +nexus0 at   on root0</div><div>IPsec: Initialized Security Association Processing.</div><div>devctl: !system=IFNET subsystem=enc0 type=ATTACH</div><div>devctl: !system=IFNET subsystem=lo0 type=ATTACH</div><div>
qemu: terminating on signal 2 from pid 10452</div></div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">It is the same behavior for all libbsd tests. Have I something misconfigured? Is this expected? Any tips/points?</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">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'.</div>
<div style="font-family:arial,sans-serif;font-size:13px">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.</div><div style="font-family:arial,sans-serif;font-size:13px">
All tests still timeout even with 'lan9118' as NIC model.</div><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">Kind regards,</div><div style="font-family:arial,sans-serif;font-size:13px">
Sergio</div></div>