tao-at-pricer commented on issue #15880:
URL: https://github.com/apache/nuttx/issues/15880#issuecomment-2677171320

   > Ok, I did a little bit of compiling different versions of NuttX. CDC-ECM 
networking works for the SAMA5 on the`12.0.0.0` release. SAMA5 with just the 
basic nsh defconfig (no CDC-ECM) does not work on `12.1.0` releases and later. 
So it looks like `12.1.0` broke the SAMA5 boards.
   > 
   > I don't know about the STM32F4-Discovery... I can't spend any more time on 
this until maybe next weekend. But one thing you can try is check out the 
`12.0.0.` tag which I know works for the SAMA5. Then:
   > 
   > 1. Get NuttX to build and run using just the nsh defconfig. Report the 
results here. If this works,
   > 2. Use menuconfig to enable CDC-ECM ethernet and compile. Then report back.
   
   I switched both nuttx and apps to 12.0, and ran vanilla nsh config, it 
compiled without error. However, adding CDC-ECM and work queue/low priority got 
me this error:
   
   ```bash
   netlib_setifstatus.c: In function 'netlib_ifup':
   netlib_setifstatus.c:66:44: error: 'NET_SOCK_TYPE' undeclared (first use in 
this function)
      66 |       int sockfd = socket(NET_SOCK_FAMILY, NET_SOCK_TYPE, 
NET_SOCK_PROTOCOL);
         |                                            ^~~~~~~~~~~~~
   netlib_setifstatus.c:66:44: note: each undeclared identifier is reported 
only once for each function it appears in
   netlib_setifstatus.c: In function 'netlib_ifdown':
   netlib_setifstatus.c:109:44: error: 'NET_SOCK_TYPE' undeclared (first use in 
this function)
     109 |       int sockfd = socket(NET_SOCK_FAMILY, NET_SOCK_TYPE, 
NET_SOCK_PROTOCOL);
         |                                            ^~~~~~~~~~~~~
   make[3]: *** [nuttxspace/apps/Application.mk:147: 
netlib_setifstatus.c.home.tao.repos.nuttxspace.apps.netutils.netlib.o] Error 1
   make[3]: Leaving directory 'nuttxspace/apps/netutils/netlib'
   make[2]: *** [Makefile:52: nuttxspace/apps/netutils/netlib_all] Error 2
   
   In file included from arp/arp_input.c:54:
   arp/arp_input.c: In function 'arp_in':
   nuttxspace/nuttx/net/arp/arp.h:87:30: error: invalid use of undefined type 
'struct iob_s'
      87 |                   &dev->d_iob->io_data[CONFIG_NET_LL_GUARDSIZE])
         |                              ^~
   arp/arp_input.c:89:31: note: in expansion of macro 'ARPBUF'
      89 |   FAR struct arp_hdr_s *arp = ARPBUF;
         |                               ^~~~~~
   In file included from nuttxspace/nuttx/net/arp/arp.h:48:
   nuttxspace/nuttx/net/devif/devif.h:241:28: error: invalid use of undefined 
type 'struct iob_s'
     241 |                 &dev->d_iob->io_data[CONFIG_NET_LL_GUARDSIZE - \
         |                            ^~
   arp/arp_input.c:111:41: note: in expansion of macro 'ETHBUF'
     111 |             FAR struct eth_hdr_s *eth = ETHBUF;
         |                                         ^~~~~~
   arp/arp_input.c: In function 'arp_input':
   arp/arp_input.c:199:31: error: invalid use of undefined type 'struct iob_s'
     199 |       dev->d_buf = &dev->d_iob->io_data[CONFIG_NET_LL_GUARDSIZE -
         |                               ^~
   make[1]: *** [Makefile:77: arp_input.o] Error 1
   
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to