-->
Page 1 of 14

Replacing LWIP

PostPosted: Thu Mar 21, 2019 11:48 am
by eriksl
Hi there,

I have now almost finished replacing the espconn interface in my application by the native LWIP interface. That wasn't so bad after all.

Now my next step would be is to replace the pre-compiled lwip from Espressif with one I compiled myself. I am not too sure how to do that. The ESP8266_NONOS_SDK module has a subdirectory third_party/lwip. Is this the exact version that Espressif uses to compile liblwip.a and also the latest as included in the SDK libs? Has anyone tried this?

After that, I see some people using newer versions of LWIP, especially LWIP2. Is there a significant advantage of using newer versions over the stock version? How do you make sure the ESP8266 integration/patches are in place?

Has anyone been using IPv6 using LWIP?

Thanks,
Erik.

Re: Replacing LWIP

PostPosted: Thu Mar 21, 2019 11:50 am
by eriksl
d-a-v replied:

More informations about lwIP-v2 for nonos-sdk:

This commit is a step towards lwIP-v2 support for esp-open-sdk (also native nonos-sdk).
https://github.com/d-a-v/esp82xx-nonos- ... er/pull/29

IPv6 is working on Arduino with this repository.

Re: Replacing LWIP

PostPosted: Thu Mar 21, 2019 11:57 am
by eriksl
Can anyone tell me what's the current overall status? Does anyone have LWIP2 working or not?

Has anyone managed to use the LWIP source included in the SDK repo, compile it themselves and use it successfully? Even that would be a huge step ahead for me.

Re: Replacing LWIP

PostPosted: Thu Mar 21, 2019 12:15 pm
by d-a-v
> Can anyone tell me what's the current overall status?

lwip2 status is:
- it is working for over a year in arduino-esp8266, which is using nonos-sdk (v2)
- following the github link above will show you the lwip2 status about esp-open-sdk (and by extension nonos-sdk)

> Has anyone managed to use the LWIP source included in the SDK repo, compile it themselves and use it successfully?

Compiling lwip (v1.4-espressif-patched) can be done like this:
$ cd third_party/lwip
then
$ make
(or)
$ make COMPILE=gcc

output:
...
xtensa-lx106-elf-ar: creating .output/eagle/debug/lib/liblwip.a