SWUpdate: Mongoose Webserver Error

477 views
Skip to first unread message

Radiya Dhaval

unread,
Jan 29, 2018, 9:48:39 AM1/29/18
to swup...@googlegroups.com, Stefano Babic
Hi Stefano,

I have tried the swupdate utility with Intel Bay trail board with Yocto environment. For the Intel baytrail board, Linux kernel have only IPV4 support. So, when i try to start the Mongoose Webserver with "swupdate" daemon, It gives me below error as you can also see from the attached snapshot.

set_ports_option: cannot bind to 8080: Address family not supported by protocol 

So, please suggest how to start the Webserver without IPV6 support in linux kernel.

Thanks,
Dhaval Radiya
Webserver_Error.jpg

Stefano Babic

unread,
Jan 29, 2018, 9:54:21 AM1/29/18
to Radiya Dhaval, swup...@googlegroups.com, Stefano Babic
Hi Radiya,

On 29/01/2018 15:48, Radiya Dhaval wrote:
> Hi Stefano,
>
> I have tried the swupdate utility with Intel Bay trail board with Yocto
> environment. For the Intel baytrail board, Linux kernel have only IPV4
> support. So, when i try to start the Mongoose Webserver with "swupdate"
> daemon, It gives me below error as you can also see from the attached
> snapshot.
>
> *set_ports_option: cannot bind to 8080: Address family not supported by
> protocol* 
>
> So, please suggest how to start the Webserver without IPV6 support in
> linux kernel.

This is very straightforward. You can disable ipv6 ffrom the webserver.
Simply run make menuconfig, and go into Webserver Features --> Mongoose
feature. That's all.

Or you can simply disable CONFIG_MONGOOSEIPV6 from your defconfig in Yocto.

Best regards,
Stefano Babic

--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=====================================================================

Radiya Dhaval

unread,
Jan 29, 2018, 10:15:34 AM1/29/18
to Stefano Babic, swup...@googlegroups.com
Hi Stefano,

Thanks for the quick reply.

CONFIG_MONGOOSEIPV6 is already not set i.e disabled in swupdate "defconfig" file as you can see from the attached defconfig file. As I already done this approach on BeagleBone Black board and it is working as Expected on BBB, but for Bay trail board, the main difference is about IPV6 configuration is Linux kernel.

So, please suggest how to resolve this error while using only IPV4 configurations.

Thanks.
defconfig

Stefano Babic

unread,
Jan 29, 2018, 10:24:57 AM1/29/18
to Radiya Dhaval, Stefano Babic, swup...@googlegroups.com
On 29/01/2018 16:15, Radiya Dhaval wrote:
> Hi Stefano,
>
> Thanks for the quick reply.
>
> CONFIG_MONGOOSEIPV6 is already not set i.e disabled in swupdate
> "defconfig" file as you can see from the attached defconfig file. As I
> already done this approach on BeagleBone Black board and it is working
> as Expected on BBB, but for Bay trail board, the main difference is
> about IPV6 configuration is Linux kernel.

But are you sure that your defconfig is taken when Yocto builds ?

As far as I see in code, CONFIG_MONGOOSEIPV6 turns off USE_IPV6 - and
you can check this in Yocto's log if it is true.

But if this is true, the code mongoose/mongoose.c causing the error is
disabled at all:

#if defined(USE_IPV6)
setsockopt(so.sock, IPPROTO_IPV6, IPV6_V6ONLY, (void *) &off,
sizeof(off)) != 0 ||
#endif

It looks like that SWUpdate was built *with* IPV6 support and your build
is taking another defconfig.


>
> So, please suggest how to resolve this error while using only IPV4
> configurations.
>
> Thanks.
>

Best regards,
Stefano Babic
> sba...@denx.de <mailto:sba...@denx.de>
> =====================================================================
Reply all
Reply to author
Forward
0 new messages