Re: ESP32 SoftAP - Station bridging

2023-10-17 Thread Alan C. Assis
Hi Zhe Weng,

Welcome to NuttX mailing list!

What a great first message here! It worked perfectly:

In the ESP32:

nsh> ?
help usage:  help [-v] []

.   cd  execkillpwd true
[   cp  exitls  reboot  truncate
?   cmp false   mkdir   rm  uname
addroutedirname fdinfo  mkrdrmdir   umount
alias   dd  freemount   route   unset
unalias delroutehelpmv  set uptime
arp df  hexdump nslookupsleep   usleep
basenamedmesg   ifconfigpidof   source  xd
break   echoifdown  printf  test
cat env ifupps  time

Builtin Apps:
dhcpd  dhcpd_stop nshrenew  telnetd
dhcpd_startiptables   ping   sh wapi
nsh> ifconfig
wlan0   Link encap:Ethernet HWaddr bc:dd:c2:d4:a9:ec at RUNNING mtu 1504
inet addr:192.168.0.7 DRaddr:192.168.0.1 Mask:255.255.255.0

wlan1   Link encap:Ethernet HWaddr bc:dd:c2:d4:a9:ed at DOWN mtu 1504
inet addr:0.0.0.0 DRaddr:0.0.0.0 Mask:0.0.0.0

nsh> dhcpd_start wlan1
nsh> wapi psk wlan1 mypasswd 3
nsh> wapi essid wlan1 nuttxap 1
nsh> route
SEQ   TARGET  NETMASK ROUTER
   1. 0.0.0.0 0.0.0.0 10.0.0.1
nsh> delroute 0.0.0.0 0.0.0.0
nsh> addroute 0.0.0.0 0.0.0.0 192.168.0.1
nsh> route
SEQ   TARGET  NETMASK ROUTER
   1. 0.0.0.0 0.0.0.0 192.168.0.1
nsh> iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
nsh>

In the computer connected to ESP32 board with NuttX SoftAP:

$ ifconfig
lo: flags=73  mtu 65536
inet 127.0.0.1  netmask 255.0.0.0
inet6 ::1  prefixlen 128  scopeid 0x10
loop  txqueuelen 1000  (Local Loopback)
RX packets 5666  bytes 547514 (547.5 KB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 5666  bytes 547514 (547.5 KB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp0s20f3: flags=4163  mtu 1500
inet 10.0.0.4  netmask 255.255.255.0  broadcast 10.0.0.255
inet6 fe80::162b:ec2:fe98:87  prefixlen 64  scopeid 0x20
ether ec:63:d7:0b:ef:af  txqueuelen 1000  (Ethernet)
RX packets 127217  bytes 146539379 (146.5 MB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 37079  bytes 23604536 (23.6 MB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

alan@dev:~$ ping 10.0.0.1
PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=3.28 ms
64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=9.72 ms
64 bytes from 10.0.0.1: icmp_seq=3 ttl=64 time=2.63 ms
64 bytes from 10.0.0.1: icmp_seq=4 ttl=64 time=18.9 ms
64 bytes from 10.0.0.1: icmp_seq=5 ttl=64 time=4.82 ms
64 bytes from 10.0.0.1: icmp_seq=6 ttl=64 time=4.45 ms
64 bytes from 10.0.0.1: icmp_seq=7 ttl=64 time=3.57 ms
64 bytes from 10.0.0.1: icmp_seq=8 ttl=64 time=3.87 ms
64 bytes from 10.0.0.1: icmp_seq=9 ttl=64 time=2.20 ms
64 bytes from 10.0.0.1: icmp_seq=10 ttl=64 time=4.74 ms
64 bytes from 10.0.0.1: icmp_seq=11 ttl=64 time=8.60 ms
64 bytes from 10.0.0.1: icmp_seq=12 ttl=64 time=11.5 ms
^C
--- 10.0.0.1 ping statistics ---
12 packets transmitted, 12 received, 0% packet loss, time 11018ms
rtt min/avg/max/mdev = 2.201/6.527/18.917/4.688 ms

alan@dev:~$ ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=63 time=19.1 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=63 time=21.7 ms
64 bytes from 192.168.0.1: icmp_seq=3 ttl=63 time=94.5 ms
64 bytes from 192.168.0.1: icmp_seq=4 ttl=63 time=23.8 ms
^C
--- 192.168.0.1 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3005ms
rtt min/avg/max/mdev = 19.125/39.788/94.484/31.622 ms

alan@dev:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=111 time=63.0 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=111 time=51.4 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=111 time=55.0 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=111 time=64.3 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=111 time=52.8 ms
^C
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 51.428/57.314/64.327/5.322 ms

I will create a wifishare board config and a Documentation/ explaining
how to do it.

Thank you very much!

BR,

Alan

On 10/17/23, 翁喆  wrote:
> Hi Robert & Alan,
>
> Although I don't have an ESP32 board yet, you may need NAT applied on wlan0,
> I guess.
>
> Under Alan's configuration, there are two subnets: the 192.168.0.0/24 and
> 10.0.0.0/24. With only routing and ipforward, the ping from 10.0.0.x (take
> 10.0.0.2 as an example) normally can reach the router (192.168.0.1), but the
> router doesn't know where 10.0.0.2 is, and it may just

Re: ESP32 SoftAP - Station bridging

2023-10-17 Thread MIGUEL ALEXANDRE WISINTAINER
Nice progress

Enviado do meu iPhone

> Em 17 de out. de 2023, à(s) 10:39, Alan C. Assis  escreveu:
> 
> Hi Zhe Weng,
> 
> Welcome to NuttX mailing list!
> 
> What a great first message here! It worked perfectly:
> 
> In the ESP32:
> 
> nsh> ?
> help usage:  help [-v] []
> 
>.   cd  execkillpwd true
>[   cp  exitls  reboot  truncate
>?   cmp false   mkdir   rm  uname
>addroutedirname fdinfo  mkrdrmdir   umount
>alias   dd  freemount   route   unset
>unalias delroutehelpmv  set uptime
>arp df  hexdump nslookupsleep   usleep
>basenamedmesg   ifconfigpidof   source  xd
>break   echoifdown  printf  test
>cat env ifupps  time
> 
> Builtin Apps:
>dhcpd  dhcpd_stop nshrenew  telnetd
>dhcpd_startiptables   ping   sh wapi
> nsh> ifconfig
> wlan0   Link encap:Ethernet HWaddr bc:dd:c2:d4:a9:ec at RUNNING mtu 1504
>inet addr:192.168.0.7 DRaddr:192.168.0.1 Mask:255.255.255.0
> 
> wlan1   Link encap:Ethernet HWaddr bc:dd:c2:d4:a9:ed at DOWN mtu 1504
>inet addr:0.0.0.0 DRaddr:0.0.0.0 Mask:0.0.0.0
> 
> nsh> dhcpd_start wlan1
> nsh> wapi psk wlan1 mypasswd 3
> nsh> wapi essid wlan1 nuttxap 1
> nsh> route
> SEQ   TARGET  NETMASK ROUTER
>   1. 0.0.0.0 0.0.0.0 10.0.0.1
> nsh> delroute 0.0.0.0 0.0.0.0
> nsh> addroute 0.0.0.0 0.0.0.0 192.168.0.1
> nsh> route
> SEQ   TARGET  NETMASK ROUTER
>   1. 0.0.0.0 0.0.0.0 192.168.0.1
> nsh> iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
> nsh>
> 
> In the computer connected to ESP32 board with NuttX SoftAP:
> 
> $ ifconfig
> lo: flags=73  mtu 65536
>inet 127.0.0.1  netmask 255.0.0.0
>inet6 ::1  prefixlen 128  scopeid 0x10
>loop  txqueuelen 1000  (Local Loopback)
>RX packets 5666  bytes 547514 (547.5 KB)
>RX errors 0  dropped 0  overruns 0  frame 0
>TX packets 5666  bytes 547514 (547.5 KB)
>TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
> 
> wlp0s20f3: flags=4163  mtu 1500
>inet 10.0.0.4  netmask 255.255.255.0  broadcast 10.0.0.255
>inet6 fe80::162b:ec2:fe98:87  prefixlen 64  scopeid 0x20
>ether ec:63:d7:0b:ef:af  txqueuelen 1000  (Ethernet)
>RX packets 127217  bytes 146539379 (146.5 MB)
>RX errors 0  dropped 0  overruns 0  frame 0
>TX packets 37079  bytes 23604536 (23.6 MB)
>TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
> 
> alan@dev:~$ ping 10.0.0.1
> PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
> 64 bytes from 10.0.0.1: icmp_seq=1 ttl=64 time=3.28 ms
> 64 bytes from 10.0.0.1: icmp_seq=2 ttl=64 time=9.72 ms
> 64 bytes from 10.0.0.1: icmp_seq=3 ttl=64 time=2.63 ms
> 64 bytes from 10.0.0.1: icmp_seq=4 ttl=64 time=18.9 ms
> 64 bytes from 10.0.0.1: icmp_seq=5 ttl=64 time=4.82 ms
> 64 bytes from 10.0.0.1: icmp_seq=6 ttl=64 time=4.45 ms
> 64 bytes from 10.0.0.1: icmp_seq=7 ttl=64 time=3.57 ms
> 64 bytes from 10.0.0.1: icmp_seq=8 ttl=64 time=3.87 ms
> 64 bytes from 10.0.0.1: icmp_seq=9 ttl=64 time=2.20 ms
> 64 bytes from 10.0.0.1: icmp_seq=10 ttl=64 time=4.74 ms
> 64 bytes from 10.0.0.1: icmp_seq=11 ttl=64 time=8.60 ms
> 64 bytes from 10.0.0.1: icmp_seq=12 ttl=64 time=11.5 ms
> ^C
> --- 10.0.0.1 ping statistics ---
> 12 packets transmitted, 12 received, 0% packet loss, time 11018ms
> rtt min/avg/max/mdev = 2.201/6.527/18.917/4.688 ms
> 
> alan@dev:~$ ping 192.168.0.1
> PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
> 64 bytes from 192.168.0.1: icmp_seq=1 ttl=63 time=19.1 ms
> 64 bytes from 192.168.0.1: icmp_seq=2 ttl=63 time=21.7 ms
> 64 bytes from 192.168.0.1: icmp_seq=3 ttl=63 time=94.5 ms
> 64 bytes from 192.168.0.1: icmp_seq=4 ttl=63 time=23.8 ms
> ^C
> --- 192.168.0.1 ping statistics ---
> 4 packets transmitted, 4 received, 0% packet loss, time 3005ms
> rtt min/avg/max/mdev = 19.125/39.788/94.484/31.622 ms
> 
> alan@dev:~$ ping 8.8.8.8
> PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
> 64 bytes from 8.8.8.8: icmp_seq=1 ttl=111 time=63.0 ms
> 64 bytes from 8.8.8.8: icmp_seq=2 ttl=111 time=51.4 ms
> 64 bytes from 8.8.8.8: icmp_seq=3 ttl=111 time=55.0 ms
> 64 bytes from 8.8.8.8: icmp_seq=4 ttl=111 time=64.3 ms
> 64 bytes from 8.8.8.8: icmp_seq=5 ttl=111 time=52.8 ms
> ^C
> --- 8.8.8.8 ping statistics ---
> 5 packets transmitted, 5 received, 0% packet loss, time 4006ms
> rtt min/avg/max/mdev = 51.428/57.314/64.327/5.322 ms
> 
> I will create a wifishare board config and a Documentation/ explaining
> how to do it.
> 
> Thank you very much!
> 
> BR,
> 
> Alan
> 
>> On 10/17/23, 翁喆  wrote:
>> Hi Robert & Alan,
>> 
>> Although I don't have an ESP32 board yet, you may need NAT ap

Re: CTU CAN FD driver multi-licence for Nuttx

2023-10-17 Thread Christofer Dutz
Hi all,

Just came across this thread while reviewing your last board report. 
In the PLC4X project we have CAN drivers and we Support C in PLC4C.
However nobody has ported CAN driver to C yet (But thanks to our code 
generation it should be quite simple).

Perhaps switching to a fully Apache Licensed driver could help resolve this 
issue?

Chris


On 2023/09/13 10:10:01 Andrew Dennison wrote:
> On Wed, Sep 6, 2023, 9:07 PM Shane Curcuru  wrote:
> 
> > On 2023/08/09 00:20:42 Andrew Dennison wrote:
> > > Hi Nuttx Dev,
> > >
> > > We are negotiating with the authors of the linux device driver for the
> > CTU
> > > CAN FD IP core to it re-licenced from GPL to so the driver can then be
> > > ported to Nuttx.
> >
> > Just a reminder: Apache policy prohibits GPL code, or GPL-derived code,
> > from being included in any ASF project:
> >
> >https://apache.org/legal/resolved#category-x
> >
> > If there is *any* question about the license of incoming code, then you
> > should ask the Legal Affairs Committee for advice, after reviewing the
> > ASF policy on source headers:
> >
> >
> Hi Shane,
> 
> This is understood: as per teh original email we contacted all the
> copyright holders of the out-of-tree linux driver and they have all agreed
> to change the code to reference several licences:
> 
> On Tue, 8 Aug 2023 at 19:48, Pavel Pisa  wrote:
> 
> >
> > OK, consider driver code license and NuttX compatible.
> > We need to discuss what will be actual variant and file
> > headers text. I suggest
> >
> > // SPDX-License-Identifier: GPL-2.0+ OR BSD-2-Clause OR Apache-2.0
> 
> 
> This complies with my reading of a link provided by Brennan:
> 
> On Wed, 9 Aug 2023 at 10:43, Brennan Ashton 
> wrote:
> 
> ...
> 
> This is covered here
> > https://www.apache.org/legal/resolved.html#required-third-party-notices
> >
> 
>  Hopefully it is apparent that we are doing everything to ensure we can get
> this driver integrated into nuttx so others can benefit. We could just
> "scratch our own itch" and keep it external. That is less work, but we are
> actively contributing to Nuttx (eg riscv, kernel mode enhancements and
> litex platform support) as we see the value in doing this.
> 
> Kind Regards,
> 
> Andrew
> 
> -- 
> *MoTeC Pty Ltd*
> 
> 121 Merrindale Drive
> Croydon South 3136
> Victoria Australia
> *T: *61 3 9761 5050
> *W: *www.motec.com.au 
> 
> 
> -- 
>   
>  
>  
>  
> 
> 
> 
> -- 
>  
> 
> -- 
> 
> 
> Disclaimer Notice: This message, including any attachments, contains 
> confidential information intended for a specific individual and purpose and 
> is protected by law. If you are not the intended recipient you should 
> delete this message. Any disclosure, copying, or distribution of this 
> message or the taking of any action based on it is strictly prohibited.
> 


Re: CTU CAN FD driver multi-licence for Nuttx

2023-10-17 Thread Alan C. Assis
Hi Christofer,

On 10/17/23, Christofer Dutz  wrote:
> Hi all,
>
> Just came across this thread while reviewing your last board report.
> In the PLC4X project we have CAN drivers and we Support C in PLC4C.
> However nobody has ported CAN driver to C yet (But thanks to our code
> generation it should be quite simple).
>
> Perhaps switching to a fully Apache Licensed driver could help resolve this
> issue?
>

I think it is not possible because the driver also needs to support
Linux kernel.

To be honest I don't see a big issue of a driver as dual license, we
already have SocketCAN and other drivers as dual license (GPL and
Apache, BSD and Apache, etc). The original Author said the want is to
be released as dual license: A or license B.

The License war is terrible, I think there is not a single license
compatible with all, even CC0, BSD or public domain cannot be used as
freely was we think. Many countries law, companies, patents, etc,
involved.

BR,

Alan


Re: CTU CAN FD driver multi-licence for Nuttx

2023-10-17 Thread Tomek CEDRO
> To be honest I don't see a big issue of a driver as dual license, we
> already have SocketCAN and other drivers as dual license (GPL and
> Apache, BSD and Apache, etc). The original Author said the want is to
> be released as dual license: A or license B.

Isn't is more A AND B ?

A OR B == I want A but not B so I stick to A ? :-P

> The License war is terrible, I think there is not a single license
> compatible with all, even CC0, BSD or public domain cannot be used as
> freely was we think. Many countries law, companies, patents, etc,
> involved.

BSD and MIT seems most liberal. Apache also clarifies patent stuff.
GPL is viral and enforces GPL on all further works.

As above, if the case is "A AND B" then GPL taints everything to be GPL too..?

Quck search (query: gpl vs apache vs bsd license) resulting quote :

"
I will mainly talk about the practical consequences and not go into
the nitty gritty. By GPL compatible I mean that a GPL project can use
your code (NOT you can use GPL code).

The MIT and BSD 2 clause licenses have similar requirements: keep the
license file. The BSD 3 clause license adds a term to the BSD 2 that
prevents someone from claiming false endorsement. These three licenses
are compatible with GPLv2 and v3.

The Apache 2.0 license requires you to keep the license file, the
NOTICE file if there is one, and show notice for modified files. It
also addresses some patent-related issues, so companies use it a lot.
It is compatible with GPLv3 but not v2 (due to the patent clauses).

There is also an old BSD license that has an clause related to
advertising. Don't use it because it's not GPL compatible.

In practice, the ecosystem you are working with has a license that is
used most often to begin with, and I would stick to that. For example,
I would use MIT for Nodejs packages. If you are working on an
application, some would recommend using the Apache 2.0 license because
it covers patent issues.
"

And some references:

https://en.wikipedia.org/wiki/Apache_License

https://en.wikipedia.org/wiki/MIT_License

https://en.wikipedia.org/wiki/BSD_licenses

https://en.wikipedia.org/wiki/GNU_General_Public_License

:-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info


Re: CTU CAN FD driver multi-licence for Nuttx

2023-10-17 Thread Alan C. Assis
Hi Tomek,

On 10/17/23, Tomek CEDRO  wrote:
>> To be honest I don't see a big issue of a driver as dual license, we
>> already have SocketCAN and other drivers as dual license (GPL and
>> Apache, BSD and Apache, etc). The original Author said the want is to
>> be released as dual license: A or license B.
>
> Isn't is more A AND B ?
>
> A OR B == I want A but not B so I stick to A ? :-P
>

No, because technically you can enforce two at same time, in that case
GPL could prevail! :-)

>> The License war is terrible, I think there is not a single license
>> compatible with all, even CC0, BSD or public domain cannot be used as
>> freely was we think. Many countries law, companies, patents, etc,
>> involved.
>
> BSD and MIT seems most liberal. Apache also clarifies patent stuff.
> GPL is viral and enforces GPL on all further works.
>
> As above, if the case is "A AND B" then GPL taints everything to be GPL
> too..?
>

See, the Author defines it as dual license (so yes A "AND" B), but if
project X uses license A it will stick to license A instead of B. If
project Y uses license B it will stick with B instead of A.

So, more precisely it is A XOR B.

> Quck search (query: gpl vs apache vs bsd license) resulting quote :
>
> "
> I will mainly talk about the practical consequences and not go into
> the nitty gritty. By GPL compatible I mean that a GPL project can use
> your code (NOT you can use GPL code).
>
> The MIT and BSD 2 clause licenses have similar requirements: keep the
> license file. The BSD 3 clause license adds a term to the BSD 2 that
> prevents someone from claiming false endorsement. These three licenses
> are compatible with GPLv2 and v3.
>
> The Apache 2.0 license requires you to keep the license file, the
> NOTICE file if there is one, and show notice for modified files. It
> also addresses some patent-related issues, so companies use it a lot.
> It is compatible with GPLv3 but not v2 (due to the patent clauses).
>
> There is also an old BSD license that has an clause related to
> advertising. Don't use it because it's not GPL compatible.
>
> In practice, the ecosystem you are working with has a license that is
> used most often to begin with, and I would stick to that. For example,
> I would use MIT for Nodejs packages. If you are working on an
> application, some would recommend using the Apache 2.0 license because
> it covers patent issues.
> "
>
> And some references:
>
> https://en.wikipedia.org/wiki/Apache_License
>
> https://en.wikipedia.org/wiki/MIT_License
>
> https://en.wikipedia.org/wiki/BSD_licenses
>
> https://en.wikipedia.org/wiki/GNU_General_Public_License
>
> :-)
>

Yes, BTW the original author said the driver will be offered as dual
license (GPL "AND" / "OR" / "XOR" / "however"  Apache) so I think it
fear to use under Apache License

I don't know how we could fix this Catch 22, maybe the Author could
release two separated versions?

BR,

Alan


Re: CTU CAN FD driver multi-licence for Nuttx

2023-10-17 Thread Alan C. Assis
Oops, it was: you cannot enforce both at same time.

Actually I think I was wrong (not about enforcing), but the main issue
about Dual license is how the contributions will evolve.

I decided to ask about it to ChatGPT:

"
Question: if an open-source software X was released as dual license
GPL and Apache License, can we used it in our project NuttX that used
Apache License?

If an open-source software X is released under both the GPL (GNU
General Public License) and the Apache License, you generally have
some flexibility in how you can use it in your project NuttX, which is
licensed under the Apache License. However, there are important
considerations and potential complications to keep in mind:

Compatibility of Licenses:
The Apache License and the GPL are generally considered to be
compatible licenses. This means that you can include Apache-licensed
code in a GPL-licensed project and vice versa without violating the
terms of either license.

License Choice:
When incorporating dual-licensed code into your project, you
have a choice in which license to follow. If you choose the Apache
License, you can do so without any issues, as the Apache License is
permissive. However, if you choose the GPL, you must comply with the
terms of the GPL, which may include open-sourcing your entire project
under the GPL.

Potential GPL Implications:
Using the GPL-licensed version of software X may have
implications for the licensing of your entire project. The GPL is a
more restrictive license that requires you to release your entire
project under the GPL if you use GPL-licensed code. This could affect
how you distribute your project and any proprietary components within
it.

Be Careful with License Mixing:
It's important to carefully manage the licensing of each
component within your project. Ensure that you clearly identify and
understand the licensing terms of each component and only include code
in your project that is compatible with the licensing choices you want
to make.

Consult Legal Advice:
Dual licensing can be complex, and the specific terms of
software X may have variations or nuances that need legal
interpretation. It's advisable to consult with a legal expert who is
well-versed in open source licensing if you have any doubts or
concerns.

In summary, you can use the dual-licensed software X in your project
NuttX that is under the Apache License. However, you need to make a
conscious choice about which license to follow for the code from
software X, and be aware of the potential implications, especially if
you decide to use the GPL-licensed version, as it may affect the
licensing of your entire project. Consulting with a legal expert is a
wise step when dealing with complex licensing issues.
"

So, we are back to square one!

BR,

Alan

On 10/17/23, Alan C. Assis  wrote:
> Hi Tomek,
>
> On 10/17/23, Tomek CEDRO  wrote:
>>> To be honest I don't see a big issue of a driver as dual license, we
>>> already have SocketCAN and other drivers as dual license (GPL and
>>> Apache, BSD and Apache, etc). The original Author said the want is to
>>> be released as dual license: A or license B.
>>
>> Isn't is more A AND B ?
>>
>> A OR B == I want A but not B so I stick to A ? :-P
>>
>
> No, because technically you can enforce two at same time, in that case
> GPL could prevail! :-)
>
>>> The License war is terrible, I think there is not a single license
>>> compatible with all, even CC0, BSD or public domain cannot be used as
>>> freely was we think. Many countries law, companies, patents, etc,
>>> involved.
>>
>> BSD and MIT seems most liberal. Apache also clarifies patent stuff.
>> GPL is viral and enforces GPL on all further works.
>>
>> As above, if the case is "A AND B" then GPL taints everything to be GPL
>> too..?
>>
>
> See, the Author defines it as dual license (so yes A "AND" B), but if
> project X uses license A it will stick to license A instead of B. If
> project Y uses license B it will stick with B instead of A.
>
> So, more precisely it is A XOR B.
>
>> Quck search (query: gpl vs apache vs bsd license) resulting quote :
>>
>> "
>> I will mainly talk about the practical consequences and not go into
>> the nitty gritty. By GPL compatible I mean that a GPL project can use
>> your code (NOT you can use GPL code).
>>
>> The MIT and BSD 2 clause licenses have similar requirements: keep the
>> license file. The BSD 3 clause license adds a term to the BSD 2 that
>> prevents someone from claiming false endorsement. These three licenses
>> are compatible with GPLv2 and v3.
>>
>> The Apache 2.0 license requires you to keep the license file, the
>> NOTICE file if there is one, and show notice for modified files. It
>> also addresses some patent-related issues, so companies use it a lot.
>> It is compatible with GPLv3 but not v2 (due to the patent clauses).
>>
>> There is also an old BSD license that has an clause related to
>> advertising. Don't use it because it'

Re: CTU CAN FD driver multi-licence for Nuttx

2023-10-17 Thread Tomek CEDRO
I don't trust that ChatGPT stuff it is known to give false answers :-P :-P

Quote from https://en.wikipedia.org/wiki/Apache_License#Compatibility

"The Apache Software Foundation and the Free Software Foundation agree
that the Apache License 2.0 is a free software license, compatible
with the GNU General Public License (GPL) version 3, meaning that code
under GPLv3 and Apache License 2.0 can be combined, as long as the
resulting software is licensed under the GPLv3.

The Free Software Foundation considers all versions of the Apache
License to be incompatible with the previous GPL versions 1 and 2.
Furthermore, it considers Apache License versions before 2.0
incompatible with GPLv3. Because of version 2.0's patent license
requirements, the Free Software Foundation recommends it over other
non-copyleft licenses. If the Apache License with the LLVM exception
is used, then it is compatible with GPLv2."

This is the first time I can see a software released under dual
contradicting open source licenses. Usually it is commercial and GPL
for non-commercial (i.e. Qt). Interesting :-)

I hope it turns out that code can be used along Apache 2.0 license..
but running away from GPL is impossible.. its not quite freedom when
you have no choice.. but to avoid it :-)

-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info


Re: gcc-arm-none-eabi on M1 MacOs

2023-10-17 Thread Christian Catchpole
I raised a PR and it's been merged (but not published). I also gave the
option for aarch64 and tested by building a pinephone app. If there are any
concerns I can just raise another PR.

https://github.com/apache/nuttx/pull/10933

On Tue, 17 Oct 2023 at 09:17, Christian Catchpole 
wrote:

>
> Nice, I went the full Studio Ultra, mainly because Im doing a lot of stuff
> in Blender at the moment. Normally I wouldn't need a machine so powerful.
> And an M2 Air. I havn't installed NuttX on it yet, so I'll have a fresh
> machine to re-run the install on.
>
> I also noticed that the KConfig build required a *sudo* on *make install *to
> be able to write to */usr/local/bin/kconfig *- im not sure if there's an
> alternative
>
> CC
>
> On Tue, 17 Oct 2023 at 08:22, Tomek CEDRO  wrote:
>
>> Congratulations :-)
>>
>> I sit at MacStudio 2023 (macOS 14.0) machine right now (tiny but
>> powerful box with 12xM2Max ARM64 CPU + 32GB RAM) for some specific
>> tasks so I can beta test Your instructions :-)
>>
>> By default I use FreeBSD (BSD Unix family)... and macOS is also kind
>> of BSD (+MACH).. so here you have (Open-Source) Ports too with
>> MacPorts or Homebrew (brew command).. no need to use VM at all :-)
>>
>> --
>> CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
>>
>


Re: gcc-arm-none-eabi on M1 MacOs

2023-10-17 Thread Tomek CEDRO
On Tue, Oct 17, 2023 at 1:18 AM Christian Catchpole wrote:
> Nice, I went the full Studio Ultra, mainly because Im doing a lot of stuff
> in Blender at the moment.

I loved Blender until they removed BGE (Blender Game Engine) and
changed that program into kind of 3D Photoshop. But I still use it
sometimes.

Do you use Blender with external game engine like Godot or Armory?

With BGE it was possible to use Python exchanging data online with
real world hardware (or offline data acquired by hardware) in order to
control 3D environment. I did a simple flight simulator that way using
custom aerodynamics model. Do you know is again possible without BGE
nowadays?


> I also noticed that the KConfig build required a *sudo* on *make install *to
> be able to write to */usr/local/bin/kconfig *- im not sure if there's an
> alternative

I cannot see kconfig-frontends in the brew search. In a perfect world
we would want to have it ported. I did a port for FreeBSD but never
did a HomeBrew port. Have you ever tried that? Maybe we should ask on
their mailing lists?

Using ~/.local/ --install-prefix and then adding ~/.local/bin to the
PATH in ~/.profile seems more elegant solution than system wide
modification :-)


-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info


Re: gcc-arm-none-eabi on M1 MacOs

2023-10-17 Thread Christian Catchpole
Thanks I'll try *--install-prefix* when setting up my Air and probably
raise a PR for that.

I'll also look into better options for *kconfig-frontends*.

As for Blender, I had been using Autodesk for modeling / 3D printing and
then for some reason, I can't even recall, I downloaded Blender, and then I
started going down the rabbit hole of 3D rendering. I'm not into games, but
I am interested in short films and cinema,. Last week I picked up a Dell
Visor and was able to get a Raspberry Pi to generate the required 2880x1440
resolution and played with some stereo renders. Blender has some VR support
but only on Windows. Iv mainly learned Blender by adding my own robot
designs to the example scenes and experimenting with python scripting. If
the robot's never exist in reality, they can at least exist in my mind..

https://catchpole.net/img/catchpole-wall1200.jpg

CC

On Wed, 18 Oct 2023 at 08:05, Tomek CEDRO  wrote:

> On Tue, Oct 17, 2023 at 1:18 AM Christian Catchpole wrote:
> > Nice, I went the full Studio Ultra, mainly because Im doing a lot of
> stuff
> > in Blender at the moment.
>
> I loved Blender until they removed BGE (Blender Game Engine) and
> changed that program into kind of 3D Photoshop. But I still use it
> sometimes.
>
> Do you use Blender with external game engine like Godot or Armory?
>
> With BGE it was possible to use Python exchanging data online with
> real world hardware (or offline data acquired by hardware) in order to
> control 3D environment. I did a simple flight simulator that way using
> custom aerodynamics model. Do you know is again possible without BGE
> nowadays?
>
>
> > I also noticed that the KConfig build required a *sudo* on *make install
> *to
> > be able to write to */usr/local/bin/kconfig *- im not sure if there's an
> > alternative
>
> I cannot see kconfig-frontends in the brew search. In a perfect world
> we would want to have it ported. I did a port for FreeBSD but never
> did a HomeBrew port. Have you ever tried that? Maybe we should ask on
> their mailing lists?
>
> Using ~/.local/ --install-prefix and then adding ~/.local/bin to the
> PATH in ~/.profile seems more elegant solution than system wide
> modification :-)
>
>
> --
> CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
>


Re: gcc-arm-none-eabi on M1 MacOs

2023-10-17 Thread Petro Karashchenko
I think the latest code rely on kconfiglib, so theoretically things should
work without kconfig-frontends. But I haven't tested case when
kconfig-frontends is not installed (current I have installed both).

Best regards,
Petro

On Wed, Oct 18, 2023, 1:35 AM Christian Catchpole 
wrote:

> Thanks I'll try *--install-prefix* when setting up my Air and probably
> raise a PR for that.
>
> I'll also look into better options for *kconfig-frontends*.
>
> As for Blender, I had been using Autodesk for modeling / 3D printing and
> then for some reason, I can't even recall, I downloaded Blender, and then I
> started going down the rabbit hole of 3D rendering. I'm not into games, but
> I am interested in short films and cinema,. Last week I picked up a Dell
> Visor and was able to get a Raspberry Pi to generate the required 2880x1440
> resolution and played with some stereo renders. Blender has some VR support
> but only on Windows. Iv mainly learned Blender by adding my own robot
> designs to the example scenes and experimenting with python scripting. If
> the robot's never exist in reality, they can at least exist in my mind..
>
> https://catchpole.net/img/catchpole-wall1200.jpg
>
> CC
>
> On Wed, 18 Oct 2023 at 08:05, Tomek CEDRO  wrote:
>
> > On Tue, Oct 17, 2023 at 1:18 AM Christian Catchpole wrote:
> > > Nice, I went the full Studio Ultra, mainly because Im doing a lot of
> > stuff
> > > in Blender at the moment.
> >
> > I loved Blender until they removed BGE (Blender Game Engine) and
> > changed that program into kind of 3D Photoshop. But I still use it
> > sometimes.
> >
> > Do you use Blender with external game engine like Godot or Armory?
> >
> > With BGE it was possible to use Python exchanging data online with
> > real world hardware (or offline data acquired by hardware) in order to
> > control 3D environment. I did a simple flight simulator that way using
> > custom aerodynamics model. Do you know is again possible without BGE
> > nowadays?
> >
> >
> > > I also noticed that the KConfig build required a *sudo* on *make
> install
> > *to
> > > be able to write to */usr/local/bin/kconfig *- im not sure if there's
> an
> > > alternative
> >
> > I cannot see kconfig-frontends in the brew search. In a perfect world
> > we would want to have it ported. I did a port for FreeBSD but never
> > did a HomeBrew port. Have you ever tried that? Maybe we should ask on
> > their mailing lists?
> >
> > Using ~/.local/ --install-prefix and then adding ~/.local/bin to the
> > PATH in ~/.profile seems more elegant solution than system wide
> > modification :-)
> >
> >
> > --
> > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info
> >
>