libbsd.txt "test runner" realview_pbx_a9_qemu

Gene Smith gds at chartertn.net
Wed Jun 10 03:39:00 UTC 2015


On 06/08/2015 10:57 PM, Chris Johns wrote:

>
> I am not sure. Running qemu with '-M realview-pbx-a9 -net model=help'
> does not show the SMCS LAN9118 device.
>
> I do not know what is happening here. There could be patches missing to
> enabled SMC support for the realview machine in qemu.
>
> I am playing with the Zynq at the moment. It at least runs but I am
> having issues getting my network to talk to it.
>

With realview_c.patch from Sebastian now applied [1] I am getting better 
results. The ping is attempted but it fails. (I also added "-net nic" to 
the qemu command line or else I get the similar result as w/o the patch.)

---------------
[gene at hplt ping01]$ sudo LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib 
/home/gene/rtems/install/4.11/qemu/bin/qemu-system-arm -M 
realview-pbx-a9 -m 256M -no-reboot -monitor none -serial stdio 
-nographic -net nic -net vde,sock=/tmp/myswitch -kernel ping01.exe
audio: Could not init `oss' audio driver
*** LIBBSD PING 1 TEST ***
nexus0: <RTEMS Nexus device>
smc0: <SMSC LAN91C110FD or LAN91C111FD> on nexus0  [2]
devctl: !system=IFNET subsystem=smc0 type=ATTACH
smc0: Ethernet address: 3537304
devctl: +smc0 at   on nexus0
devctl: +nexus0 at   on root0
devctl: !system=IFNET subsystem=lo0 type=ATTACH
add host 192.168.1.1: gateway smc0
add net default: gateway 192.168.1.1
PING 192.168.1.1 (192.168.1.1): 56 data bytes

--- 192.168.1.1 ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss
assertion "exit_code == EXIT_SUCCESS" failed: file 
"testsuite/ping01/test_main.c", line 57, function: test_ping
------------------

[1] Also applied the cadence_gem_c.patch but probably n/a for realview bsp.
[2] Waits after printing this line for 30-60 seconds before moving on.

-gene



More information about the users mailing list