How use Ethernet connectivity with rtems-libbsd

mfg mfg at ugr.es
Thu Aug 3 11:30:11 UTC 2017


Hello everyone!

I have a problem with compiling examples of rtems-libbsd. I just do not 
know how to do it. I have the example (Testsuite/ping01/test_main.c) . 
This is the report of terminal when I executed it:

## Transferring control to RTEMS (at address 00104040) ...
*** LIBBSD PING 1 TEST ***
nexus0: <RTEMS Nexus device>
cgem0: <Cadence CGEM Gigabit Ethernet Interface> on nexus0
miibus0: <MII bus> on cgem0
e1000phy0: <Marvell 88E1512 Gigabit PHY> PHY 0 on miibus0
e1000phy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 
1000baseT-FDX, 1000baseT-FDX-master, auto
cgem0: Ethernet address: 00:0a:35:00:01:22
zy7_slcr0: <Zynq-7000 slcr block> on nexus0
[zone: udpcb] kern.ipc.maxsockets limit reached
notice: cgem0: link state changed to DOWN
add host 192.168.100.11: gateway cgem0
add net default: gateway 192.168.100.11
PING 192.168.100.11 (192.168.100.11): 56 data bytes
ping: sendto: Host is unreachable
ping: sendto: Host is unreachable
ping: sendto: Host is unreachable
--- 192.168.100.11 ping statistics ---
3 paassertion "exit_code == EXIT_SUCCESS" failed: file 
"../../testsuite/ping01/test_main.c", line 57, function: test_ping


I want to change the IP for ping to my PC. It is in the file 
(sandbox/rtems-libbsd/build/arm-rtems4.12-xilinx_zynq_zedboard/testsuite/include/rtems/bsd/test/network-config.h). 
But I never used Waf before. ¿Where is the makefile for the suitables 
examples?

By the way, I'm working on a zedboard and I'm trying to make Ethernet 
connectivity work. (If someone has a little manual I would appreciate 
it)

Thank you in advance




And thanks Sebastian, you were right.

El 2017-07-26 09:58, Sebastian Huber escribió:
> On 26/07/17 09:47, mfg wrote:
>
>>
>> Whenever I build a project after to create a new BSP the next error 
>> appears:
>>
>> 
>> /home/marco/BSPs/ZedboardBACON/arm-rtems4.12/xilinx_zynq_zedboard/lib/include/sys/mbuf.h:193:15: 
>> error: 'MCLBYTES' undeclared here (not in a function)
>> Normally I declare the variable with a value 256, 512, 1024 or 2048 
>> and I can continue without errors. I would like to know if I am doing 
>> something silly or if that value should be fixed or it would have to 
>> be declared elsewhere.
>
> You probably use a wrong tool chain/RTEMS combination or files from a
> previous version. I would update to the latest RSB and RTEMS and
> remove the previous installation.

Marco Fuentes García



More information about the users mailing list