Left for archival purposes.

User avatar
By alonewolfx2
#9172 i would like to test this code. but i am using eclipse dev kit on windows and i didnt compile your code. can you help me for compiling or can you add compiled lwip library?
kadamski wrote:I thought it's a good idea and tried to do that. LwIP has a support for this feature but enabling this is probably a little bit harder than we would like. I've implemented this on my own version of LwIP
(https://github.com/kadamski/esp-lwip). Currently, the DHCP client on device will sent hostname set to "esp8266-XXXXXX" (where XXXXXX are 3 least significant bytes of mac address) to the server. I'm also thinking about implementing some API to change it from inside of user application.

Unfortunately it's not easy to use - not only you have to compile my liblwip.a (which is not fully test) but you also have to switch eagle_lwip_if.o inside of libmain.a (part of SDK) to my own version. I can provide you with some instructions if someone is interested and would like to test this.
User avatar
By kadamski
#9174 I don't know how to use Windows so I can't help you with compiling. I can, however provide you with a rebuilt liblwip.a with hostname feature enabled and with bundled eagle_lwip_if.o. You have to do two things:
1. Strip your libmain.a from eagle_lwip_if.o. You can unpack your liblwip.a in current directory with "xtensa-lx106-elf-ar x libmain.a", remove the library and pack it again with: "xtensa-lx106-elf-ar rca libmain.a *". Can you do that on Windows or you want me to send you modified libmain.a too?
2. Use my liblwip.a instead of the one from SDK.

I didn't test my lwip with SDK 0.9.5 and there might be a problem with the changed os_printf function so you would have to use SDK 0.9.4. If it's a problem you have to wait until I have time to test 0.9.5 (probably today evening). If you're still interested contact me with your e-mail address (I don't know how to write private messages here but you're a moderator so I'm sure you can do that :)).
User avatar
By alonewolfx2
#9175 0.9.4 sdk not problem. that would be good if you can send both modified libmain and lwip
User avatar
By kadamski
#9183 I've uploaded libs for both version 0.9.4 (did some testing with this one) and 0.9.5 (totally untested). I hope this will work for you.
Attachments
(203.23 KiB) Downloaded 263 times