Error in initializing network parameters

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Aug 2 12:21:41 UTC 2016


The USB enumeration runs after the BSD initialization in its own 
threads. Thus, you have to wait a bit before you attempt to use this 
interface. You could use a routing socket to do this event triggered, 
see dhcpcd for an example.

On 02/08/16 14:17, Deval Shah wrote:
> Hello all,
>
> With the USB and Ethernet working, I started running other tests like 
> ping01 on raspberry Pi.
>
> I am getting following error while running the PING test.
>
> --------------------------------------------------------------------------------------------------
> *** LIBBSD PING 1 TEST ***
> nexus0: <RTEMS Nexus device>
> bcm283x_dwcotg0: <DWC OTG 2.0 integrated USB controller (bcm283x)> on 
> nexus0
> usbus0 on bcm283x_dwcotg0
> usbus0: 480Mbps High Speed USB v2.0
> uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
> ifconfig: interface ue0 does not exist
> assertion "exit_code == EX_OK" failed: file 
> "/home/gadgetman/development/rtems/rtems-libbsd/testsuite/include/rtems/bsd/test/default-network-init.h", 
> line 125, function: default_network_ifconfig_hwif0
> --------------------------------------------------------------------------------------------------
>
> In general boot-log, like in init test, after detecting the "uhub0" 
> device it detects "uhub1" device, which is the usb_ethernet 
> controller. And after that the Ethernet interface "ue0" exists.
>
> --------------------------------------------------------------------------------------------------
> *** LIBBSD INIT 1 TEST ***
> nexus0: <RTEMS Nexus device>
> bcm283x_dwcotg0: <DWC OTG 2.0 integrated USB controller (bcm283x)> on 
> nexus0
> usbus0 on bcm283x_dwcotg0
> usbus0: 480Mbps High Speed USB v2.0
> uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
> Sleeping to see what happens
> uhub0: 1 port with 1 removable, self powered
> uhub1: <vendor 0x0424 product 0x9514, class 9/0, rev 2.00/2.00, addr 
> 2> on usbus0
> uhub1: MTT enabled
> uhub1: 5 ports with 4 removable, self powered
> smsc0: <vendor 0x0424 product 0xec00, rev 2.00/2.00, addr 3> on usbus0
> smsc0: chip 0xec00, rev. 0002
> miibus0: <MII bus> on smsc0
> ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
> ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> ue0: <USB Ethernet> on smsc0
> ue0: Ethernet address: 5a:ee:60:74:67:92
> --------------------------------------------------------------------------------------------------
>
> I believe the default-network-init.h tries to access the ethernet 
> interface before it is created and the problem arises. I tried moving 
> bsp/nexus-devices.h before rtems/bsd/test/default-network-init.h, but 
> the problem remains the same. Any pointers ?
>
>
> Regards,
> Deval Shah
>
>
-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list