Problem configuring ethernet interface for NFS in rtems-libbsd

vivek kukreja vivekkukreja5 at gmail.com
Tue Feb 28 15:06:44 UTC 2017


Hello Sebastian,

I figured out my error. I was using a smaller stack size until last year so the nfs client hung up on initialising. I reset some config values and its working now. Thank you for your help.

Regards,
Vivek


> On 14-Feb-2017, at 19:18, vivek kukreja <vivekkukreja5 at gmail.com> wrote:
> 
> Hello Sebastian,
> 
> The output of the qemu command is as follows:
> 
> Warning: nic cadence_gem.1 has no peer
> nexus0: <RTEMS Nexus device>
> zy7_slcr0: <Zynq-7000 slcr block> on nexus0
> cgem0: <Cadence CGEM Gigabit Ethernet Interface> on nexus0
> miibus0: <MII bus> on cgem0
> e1000phy0: <Marvell 88E1111 Gigabit PHY> PHY 0 on miibus0
> e1000phy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
> 1000baseT-FDX, 1000baseT-FDX-master, auto
> e1000phy1: <Marvell 88E1111 Gigabit PHY> PHY 23 on miibus0
> e1000phy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
> 1000baseT-FDX, 1000baseT-FDX-master, auto
> cgem0: Ethernet address: 52:54:00:12:34:56
> [zone: socket] kern.ipc.maxsockets limit reached
> [zone: udp_inpcb] kern.ipc.maxsockets limit reached
> [zone: udpcb] kern.ipc.maxsockets limit reached
> cgem0: cgem_mediachange: could not set ref clk0 to 25000000
> 
> I tried attaching the debug log file (partial) generated by using the
> '-d exec' option but its too large (atleast 25 MB).
> 
> I debugged the code and found that control reaches till the
> 'rtems_bsd_program_call' function(under
> rtems-libbsd/rtemsbsd/rtems/rtems-program.c) and stops at the
> following step:
> 
> if (setjmp(prog_ctrl->return_context) == 0) {
>  exit_code = (*prog)(context);
> }
> 
> I think execution gets stuck at the assignment statement. I'm still
> working on this and thank you for helping.
> 
> Regards,
> Vivek
> 
> On Tue, Feb 14, 2017 at 3:51 PM, Sebastian Huber
> <sebastian.huber at embedded-brains.de> wrote:
>> 
>> 
>>> On 14/02/17 11:10, vivek kukreja wrote:
>>> 
>>> Hello developers,
>>> 
>>> I'm working on transporting application traces to host using the
>>> libbsd ethernet driver. I have compiled an app for
>>> arm/xilinx_zynq_a9_qemu and used the rtems bsd commands to setup NFS
>>> in the app.
>>> This example used to work until last year but the implementation of
>>> the function 'rtems_bsd_command_ifconfig' has been changed since. I'm
>>> getting the following error on qemu while trying to setup the ethernet
>>> interface:
>>> 
>>> [zone: socket] kern.ipc.maxsockets limit reached
>>> [zone: udp_inpcb] kern.ipc.maxsockets limit reached
>>> [zone: udpcb] kern.ipc.maxsockets limit reached
>> 
>> 
>> I am not sure if this is really an error. Could you please send the complete
>> log messages.
>> 
>> --
>> 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