EmbDev.net

Forum: ARM programming with GCC/GNU tools Yagarto, FreeRTOS, uIP and socket.h


von Ian M. (ianmccarthy)


Rate this post
useful
not useful
First time ARM developer using:
Yagarto
FreeRTOS
uIP (TCP stack)
Destination: Olimex LPC-E2124 development board

I've installed Yagarto and the FreeRTOS example for LPC2106, I've
updated the header file for the LPC2124 processor and created a new
Yagarto project. All this compiles with a few warniings about type
casts.

I then added the uIP sources from the FreeRTOS example for the
LPC-E2124, now compilation fails in tapdev.c as it can't find:

sys/ioctl.h
sys/socket.h
sys/uio.h

True they don't exist in the Yagarto directory structure, so where can I
get them and is there a matching library I'm missing?

I searched the forum for an answer but didn't find one.

Any suggestions?

Thanks

Ian

von Jonathan D. (dumarjo)


Rate this post
useful
not useful
>
> I then added the uIP sources from the FreeRTOS example for the
> LPC-E2124, now compilation fails in tapdev.c as it can't find:
>
> sys/ioctl.h
> sys/socket.h
> sys/uio.h
>
> True they don't exist in the Yagarto directory structure, so where can I
> get them and is there a matching library I'm missing?
>

I'm not sure but thoses file arn't for linux build only ? from where you
get the uip ? what sample ?

regards

jonathan

von Ian M. (ianmccarthy)


Rate this post
useful
not useful
Jonathan Dumaresq wrote:
>>
>> I then added the uIP sources from the FreeRTOS example for the
>> LPC-E2124, now compilation fails in tapdev.c as it can't find:
>>
>> sys/ioctl.h
>> sys/socket.h
>> sys/uio.h
>>
>> True they don't exist in the Yagarto directory structure, so where can I
>> get them and is there a matching library I'm missing?
>>
>
> I'm not sure but thoses file arn't for linux build only ? from where you
> get the uip ? what sample ?
>
> regards
>
> jonathan

Direct download from Rowley Associates uip-e2124.zip, the reference is
in tapdev.c and is outside any linux only segment.

Ian

von Ian M. (ianmccarthy)


Rate this post
useful
not useful
Ian Mccarthy wrote:
> Jonathan Dumaresq wrote:
>>>
>>> I then added the uIP sources from the FreeRTOS example for the
>>> LPC-E2124, now compilation fails in tapdev.c as it can't find:
>>>
>>> sys/ioctl.h
>>> sys/socket.h
>>> sys/uio.h
>>>
>>> Snip...
>>>
> Direct download from Rowley Associates uip-e2124.zip, the reference is
> in tapdev.c and is outside any linux only segment.
>
> Ian

Just noticed tapdev.c and associated functions not referenced by uip
code in the example. Leave tapdev.c out of the build and project
compiles OK.

Oh we live and learn...

Thanks for the support.

Ian

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.