<div dir="ltr">I ran both the dhcpcd examples. The boot logs are below. I am seeing the same problem in these two examples too. Test program tries to get the network interfaces but it is not found since the USB initialization is still left. <div><br></div><div><br></div><div><div>*** LIBBSD DHCPCD 1 TEST ***</div><div><br></div><div>RTEMS Shell on /dev/console. Use 'help' to list commands.</div><div>[/] # nexus0: <RTEMS Nexus device></div><div>bcm283x_dwcotg0: <DWC OTG 2.0 integrated USB controller (bcm283x)> on nexus0</div><div>bcm283x_dwcotg0: failed to set power state, err=-2</div><div>usbus0 on bcm283x_dwcotg0</div><div>usbus0: 480Mbps High Speed USB v2.0</div><div>uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0</div><div>info: version 6.2.1 starting</div><div>err: no valid interfaces found</div><div>warning: no interfaces have a carrier</div><div>uhub0: 1 port with 1 removable, self powered</div><div>uhub1: <vendor 0x0424 product 0x9514, class 9/0, rev 2.00/2.00, addr 2> on usbus0</div><div>uhub1: MTT enabled</div><div>uhub1: 5 ports with 4 removable, self powered</div><div>smsc0: <vendor 0x0424 product 0xec00, rev 2.00/2.00, addr 3> on usbus0</div><div>smsc0: chip 0xec00, rev. 0002</div><div>miibus0: <MII bus> on smsc0</div><div>ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0</div><div>ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto</div><div>ue0: <USB Ethernet> on smsc0</div><div>ue0: Ethernet address: 5a:ee:60:74:67:92</div><div><br></div><div><br></div><div>*** LIBBSD DHCPCD 2 TEST ***</div><div><br></div><div>RTEMS Shell on /dev/console. Use 'help' to list commands.</div><div>[/] # nexus0: <RTEMS Nexus device></div><div>bcm283x_dwcotg0: <DWC OTG 2.0 integrated USB controller (bcm283x)> on nexus0</div><div>bcm283x_dwcotg0: failed to set power state, err=-2</div><div>usbus0 on bcm283x_dwcotg0</div><div>usbus0: 480Mbps High Speed USB v2.0</div><div>uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0</div><div>info: version 6.2.1 starting</div><div>err: no valid interfaces found</div><div>warning: no interfaces have a carrier</div><div>uhub0: 1 port with 1 removable, self powered</div><div>uhub1: <vendor 0x0424 product 0x9514, class 9/0, rev 2.00/2.00, addr 2> on usbus0</div><div>uhub1: MTT enabled</div><div>uhub1: 5 ports with 4 removable, self powered</div><div>smsc0: <vendor 0x0424 product 0xec00, rev 2.00/2.00, addr 3> on usbus0</div><div>smsc0: chip 0xec00, rev. 0002</div><div>miibus0: <MII bus> on smsc0</div><div>ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0</div><div>ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto</div><div>ue0: <USB Ethernet> on smsc0</div></div><div><br></div><div>Any other way to solve this problem ? Any example of mentioned routing socket ? </div><div><br></div></div><div hspace="streak-pt-mark" style="max-height:1px"><img style="width:0px;max-height:0px;overflow:hidden" src="https://mailfoogae.appspot.com/t?sender=aZGV2YWwubWFrZXJAZ21haWwuY29t&type=zerocontent&guid=3e0b2540-e491-49fa-b597-4e9224864d89"><font color="#ffffff" size="1">ᐧ</font></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 2, 2016 at 5:51 PM, Sebastian Huber <span dir="ltr"><<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<div><div class="h5"><br>
<br>
On 02/08/16 14:17, Deval Shah wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
Hello all,<br>
<br>
With the USB and Ethernet working, I started running other tests like ping01 on raspberry Pi.<br>
<br>
I am getting following error while running the PING test.<br>
<br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------<br>
*** LIBBSD PING 1 TEST ***<br>
nexus0: <RTEMS Nexus device><br>
bcm283x_dwcotg0: <DWC OTG 2.0 integrated USB controller (bcm283x)> on nexus0<br>
usbus0 on bcm283x_dwcotg0<br>
usbus0: 480Mbps High Speed USB v2.0<br>
uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0<br>
ifconfig: interface ue0 does not exist<br>
assertion "exit_code == EX_OK" failed: file "/home/gadgetman/development/r<wbr>tems/rtems-libbsd/testsuite/in<wbr>clude/rtems/bsd/test/default-<wbr>network-init.h", line 125, function: default_network_ifconfig_hwif0<br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------<br>
<br>
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.<br>
<br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------<br>
*** LIBBSD INIT 1 TEST ***<br>
nexus0: <RTEMS Nexus device><br>
bcm283x_dwcotg0: <DWC OTG 2.0 integrated USB controller (bcm283x)> on nexus0<br>
usbus0 on bcm283x_dwcotg0<br>
usbus0: 480Mbps High Speed USB v2.0<br>
uhub0: <DWCOTG OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0<br>
Sleeping to see what happens<br>
uhub0: 1 port with 1 removable, self powered<br>
uhub1: <vendor 0x0424 product 0x9514, class 9/0, rev 2.00/2.00, addr 2> on usbus0<br>
uhub1: MTT enabled<br>
uhub1: 5 ports with 4 removable, self powered<br>
smsc0: <vendor 0x0424 product 0xec00, rev 2.00/2.00, addr 3> on usbus0<br>
smsc0: chip 0xec00, rev. 0002<br>
miibus0: <MII bus> on smsc0<br>
ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0<br>
ukphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto<br>
ue0: <USB Ethernet> on smsc0<br>
ue0: Ethernet address: 5a:ee:60:74:67:92<br>
------------------------------<wbr>------------------------------<wbr>------------------------------<wbr>--------<br>
<br>
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<wbr>-init.h, but the problem remains the same. Any pointers ?<br>
<br>
<br>
Regards,<br>
Deval Shah<br>
<br></div></div>
ᐧ<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Sebastian Huber, embedded brains GmbH<br>
<br>
Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>
Phone : +49 89 189 47 41-16<br>
Fax : +49 89 189 47 41-09<br>
E-Mail : <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brain<wbr>s.de</a><br>
PGP : Public key available on request.<br>
<br>
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Deval Shah</div><div>Graduate Student,</div><div><div style="font-size:12.8px">B.E. (Hons.) Electrical and Electronics Engineering<br></div><div style="font-size:12.8px"><a href="http://www.bits-pilani.ac.in/hyderabad/" style="color:rgb(17,85,204);font-size:12.8px" target="_blank">BITS Pilani Hyderabad Campus</a></div></div><img src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcQrfqfQ2BeDwbmyqDm6xXZtDzweCXlsUaVTjJkCOsZ3eyztVIs8dg"><br></div><div><a href="https://github.com/deval-maker" target="_blank">Github Profile</a></div></div></div></div>
</div>