2008-05-21 15:19:45 "Function not implemented" error on socket() call
Patrick Roye (UNITED STATES)
Message: 56100
Hello,
I am having problems with using socket() calls in programs running on uClinux. I am using a BF537-stamp board. I have the 2008R1_RC8 toolchain installed. I've also compiled the 2008R1_RC8 uClinux kernel using the default configuration (which I have attached if anyone wants to double-check it).
I have a simple test program, main.c, that I have attached. I compile the test program with:
bfin-uclinux-gcc -c main.c
bfin-uclinux-gcc -o -elf2flt test main.o
When I run the program on the BF537-stamp, I get an error stating "Function not implemented" from the printf statement rather that "Success"
Would anyone be able to help me figure this out?
main.c
config
QuoteReplyEditDelete
2008-05-21 15:41:47 Re: "Function not implemented" error on socket() call
Mike Frysinger (UNITED STATES)
Message: 56101
make sure you actually booted the new kernel and you arent just running the old version in the flash
QuoteReplyEditDelete
2008-05-21 15:53:36 Re: "Function not implemented" error on socket() call
Patrick Roye (UNITED STATES)
Message: 56103
Thanks for the suggestion. I double checked, and the new kernel is definitely being run. I believe this message confirms it:
## Booting image at 01000000 ...
Image Name: Linux-2.6.22.18-ADI-2008R1-svn5
Created: 2008-05-21 19:45:16 UTC
QuoteReplyEditDelete
2008-05-21 16:02:44 Re: "Function not implemented" error on socket() call
Mike Frysinger (UNITED STATES)
Message: 56104
then make sure you are actually executing the 2008R1 toolchain and not an older one
QuoteReplyEditDelete
2008-05-21 16:21:07 Re: "Function not implemented" error on socket() call
Patrick Roye (UNITED STATES)
Message: 56105
Thanks, that's what it was. I feel rather silly actually. I had built the new u-boot and kernel and installed them from one machine. Now I'm developing my application on a different machine that I had not updated the toolchain on.
Thanks again.