[INFO] lwIP version 2.0 Topic is solved

Use this forum for requesting small changes in ChibiOS. Large changes should be discussed in the development forum. This forum is NOT for support.
Post Reply
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

[INFO] lwIP version 2.0

Post by Giovanni »

Hi,

Finally lwIP is moving to next version: http://savannah.nongnu.org/projects/lwip/

Changes to be performed to the integration layer are to be assessed, anybody interested in doing an exploration?

Giovanni
awygle
Posts: 32
Joined: Sun Apr 03, 2016 8:39 pm
Has thanked: 6 times
Been thanked: 4 times

Re: [INFO] lwIP version 2.0

Post by awygle »

Since I plan to do quite a bit of work with lwIP + ChibiOS in the future, I'll say that I'd be glad to help out in whatever way is useful, but qualify it by saying that I likely won't be able to get to it for a couple of months - there's some higher-priority things ahead of it in the queue.
bitto
Posts: 16
Joined: Thu Jan 30, 2014 9:45 am

Re: [INFO] lwIP version 2.0

Post by bitto »

I'll be more than glad to contribute.

Additionally, I have a suggestion to submit. In the lwip_bindings module I would change the

Code: Select all

void lwipInit(const lwipthread_opts_t *opts);

function to

Code: Select all

thread_t *lwipInit(const lwipthread_opts_t *opts);

having it return to the caller the return value of chThdCreateStatic.
This way the final user could check if lwip_thread was successfully created, if he/she cares about it.
What do you think?

Alberto
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [INFO] lwIP version 2.0

Post by Giovanni »

Why not.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [INFO] lwIP version 2.0

Post by Giovanni »

Bumped.
Marco
Posts: 128
Joined: Tue Apr 16, 2013 8:22 pm
Has thanked: 4 times
Been thanked: 11 times

Re: [INFO] lwIP version 2.0

Post by Marco »

Hi,

LwIP 2.0.0 is now officially released. Did anyone already try to adapt the lwip bindings for it? Otherwise i might give it a try.

Marco
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [INFO] lwIP version 2.0

Post by Giovanni »

Hi,

I have not tried yet, there are several bugs to fix and FatFS in the queue. If you want to give it a try please go ahead, post here in case of problems.

There is a bug open for lwIP, I don't know if it is applicable to 2.0 too, you should verify.

https://sourceforge.net/p/chibios/bugs/729/

Giovanni
Marco
Posts: 128
Joined: Tue Apr 16, 2013 8:22 pm
Has thanked: 4 times
Been thanked: 11 times

Re: [INFO] lwIP version 2.0

Post by Marco »

Hi,

I just wanted to inform you on my progress of updating LwIP. I replaced 1.4.1 by 2.0.0 and had to make some minor adjustments to lwip.mk, cc.h and lwipthread.c. Other than that, nothing special had to be done to update and it seems to work as expected.

The bug report also applies for 2.0.0 so i will try to fix it. I will report back with some patches soon.

Marco
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: [INFO] lwIP version 2.0

Post by Giovanni »

Great. could you also evaluate this one?

https://sourceforge.net/p/chibios/bugs/788/

It has just been posted, it also improves chprintf apparently.

Giovanni
Marco
Posts: 128
Joined: Tue Apr 16, 2013 8:22 pm
Has thanked: 4 times
Been thanked: 11 times

Re: [INFO] lwIP version 2.0

Post by Marco »

Yes, i noticed the debug macro was not implemented yet when modifying cc.h. I will add it.

IMO the chprintf improvements should be separated from the LwIP update. Do you think the printing of 16-bit types should be standard or optional with a compile flag?

Marco
Post Reply