[U-Boot] standalone application export eth_receive: undefined index

Hi all
I have a little problem. I need to access the eth_receive function in my standalone application. The U-boot version is 1.3.3 (I know it is old but it is a requirement). Also I have seen that I need to enable #define CONFIG_API but building with this option fails. Current platfom is a AT91RM9200, 16MB sdram, 16MB flash. If I comment out the switches in the net/eth.c net/net.c and include/net.h. It could work. I exported also eth_send. This function doesn't give me any problems when compiling the application.
Is this a dummy problem? Or something else?
Thanks
Robin Theunis

Dear Robin Theunis,
In message CAMeaXtydvu2yd3Bxr7ny0v+uLMKp0Dzhapxzdt7t1FY7pkKB0g@mail.gmail.com you wrote:
I have a little problem. I need to access the eth_receive function in my standalone application. The U-boot version is 1.3.3 (I know it is old but it is a requirement).
eth_receive is (intentionally) not an exported interface for standalone applications.
Is this a dummy problem? Or something else?
It's policy. Keep in mind that standalone applications allow youto create proprietary code. We accept that this is sometimes needed or evenuseful, so we provide a mechanism for it, on the other hand we strongly discourage closed source software, so we intentionally provide not too much of the U-Boot features to such code.
If you write Free Software, then just link it with the U-Boot image (and distribut eit under GPL). If you write proprietary software, then please implement your own, proprietary network drivers and network stack as well.
Best regards,
Wolfgang Denk
participants (2)
-
Robin Theunis
-
Wolfgang Denk