Error while adding usb ethernet driver
Deval Shah
deval.maker at gmail.com
Thu Jun 30 10:22:12 UTC 2016
On Tue, Jun 28, 2016 at 3:12 AM, Chris Johns <chrisj at rtems.org> wrote:
> On 27/06/2016 22:29, Deval Shah wrote:
>
>> Hello all,
>>
>> I am trying to add USB-Ethernet driver for Raspberry Pi. I added
>> required files to libbsd.py and tried to compile.
>>
>> I am getting the following error which is very strange because the
>> symbols in this error are already defined in net/if_var.h and the file
>> is included in usb_ethernet.c.
>>
>
> $ grep -r if_inc_counter freebsd/sys/net/if_var.h
> $
>
> ../../freebsd/sys/dev/usb/net/usb_ethernet.c: In function 'uether_rxmbuf':
>> ../../freebsd/sys/dev/usb/net/usb_ethernet.c:585:22: error:
>> 'IFCOUNTER_IPACKETS' undeclared (first use in this function)
>> if_inc_counter(ifp, IFCOUNTER_IPACKETS, 1);
>>
>
> This is something added to FreeBSD after our snapshot. The Cadence net
> driver for the Zynq has similar code which Sebastian has amended. Check in
> sys/dev/cadence/if_cgem.c.
>
> It might pay for us to add these to an RTEMS header to make porting
> simpler.
>
> Can't we update our sys/net/if.c and sys/net/if_var.h files accourding to
new FreeBSD ?
> Please make sure your libbsd is up to date. I added support for device
> sysctl's on the master branch yesterday so that code should work.
>
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20160630/27aecfb9/attachment-0002.html>
More information about the devel
mailing list