Yagarto, FreeRTOS, uIP and socket.h

OP #1172543
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
#1172544
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
OP #1172545
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
OP #1172546
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

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.