AnsweredAssumed Answered

Linux Kernel with ADF7242 Drivers for BF537 STAMP

Question asked by arn00 on Jun 11, 2014
Latest reply on Jun 11, 2014 by rbrennan

Hello,

 

I am trying to compile a Linux kernel with support for the ADF7242 for the BF537-STAMP. The drivers used and steps followed are from this article:

 

http://wiki.analog.com/resources/tools-software/linux-drivers/networking-mac802154/adf7242

 

ADI Buildroot and Toolchain 2013R1 were used for the Linux configuration setup. I configured the kernel and started compiling but it aborts with the following error messages:

 

CC      drivers/net/ieee802154/adf7242.o
In file included from /media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:20:
/media/rtz/adi-buildroot-code/linux/linux-kernel/include/net/mac802154.h:122: warning: ‘struct sk_buff’ declared inside parameter list
/media/rtz/adi-buildroot-code/linux/linux-kernel/include/net/mac802154.h:122: warning: its scope is only this definition or declaration, which is probably not what you want
/media/rtz/adi-buildroot-code/linux/linux-kernel/include/net/mac802154.h:142: warning: ‘struct sk_buff’ declared inside parameter list
.
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c: In function ‘adf7242_set_hw_addr_filt’:
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:576: error: ‘IEEE802515_IEEEADDR_CHANGED’ undeclared (first use in this function)
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:576: error: (Each undeclared identifier is reported only once
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:576: error: for each function it appears in.)
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:587: error: ‘IEEE802515_SADDR_CHANGED’ undeclared (first use in this function)
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:592: error: ‘IEEE802515_PANID_CHANGED’ undeclared (first use in this function)
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:597: error: ‘IEEE802515_PANC_CHANGED’ undeclared (first use in this function)
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c: In function ‘adf7242_rx’:
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:676: warning: passing argument 2 of ‘ieee802154_rx_irqsafe’ from incompatible pointer type
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c: At top level:
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:686: warning: initialization from incompatible pointer type
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:901: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘adf7242_probe’
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:995: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘adf7242_remove’
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:1014: error: ‘adf7242_probe’ undeclared here (not in a function)
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:1015: error: implicit declaration of function ‘__devexit_p’
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:1015: error: ‘adf7242_remove’ undeclared here (not in a function)
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:1015: error: initializer element is not constant
/media/rtz/adi-buildroot-code/linux/linux-kernel/drivers/net/ieee802154/adf7242.c:1015: error: (near initialization for ‘adf7242_driver.remove’)
make[5]: *** [drivers/net/ieee802154/adf7242.o] Error 1
make[4]: *** [drivers/net/ieee802154] Error 2
make[3]: *** [drivers/net] Error 2
make[2]: *** [drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
.
.
.
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/media/rtz/adi-buildroot-code/linux/linux-kernel'
make: *** [/media/rtz/adi-buildroot-code/output/build/linux-custom/.stamp_built] Error 2


What could be causing these issues and what can I do to resolve them? Any help is appreciated.


Many thanks

Outcomes