Re: W25Nx NAND flash support

2023-03-01 Thread Gregory Nutt
If the cost isn't affordable and the company doesn't want to public all source code, he can try this approach: 1. Enable userfs to move yaffs from kernel to userspace 2. Build yaffs as wasm module and run it in: https://github.com/apache/nuttx-apps/tree/master/interpreters/wamr Th

Re: W25Nx NAND flash support

2023-03-01 Thread Xiang Xiao
On Wed, Mar 1, 2023 at 10:44 PM Sebastien Lorquet wrote: > Also, sorry for the multiple messages, but why is that not new IOCTL > calls (used to "Support other, less frequently used commands") so the > structure is not modified ? > > Because the design mimic Linux mtd interface: https://github.co

Re: W25Nx NAND flash support

2023-03-01 Thread Alan C. Assis
Hi Sebastien, I think having YAFFS2 support on mainline will be very good. Companies are free to decide if they want to use GPL code or not. Many companies don't want to use it, but for some it is completely fine. Xiang, I'm looking forward to test it. Please just put it dependent of user enabl

Re: W25Nx NAND flash support

2023-03-01 Thread Alan C. Assis
On 3/1/23, Xiang Xiao wrote: > On Wed, Mar 1, 2023 at 10:45 PM Alan C. Assis wrote: > >> oh, I just found it: >> >> "The fee depends on the number of distinct Products in which Yaffs >> will be used, and there is a base price of GBP £10,000. If more than >> one Product is included in the same Li

Re: W25Nx NAND flash support

2023-03-01 Thread Xiang Xiao
I will just talk about some possible solutions for small companies. We already pay the license from Aleph One which is very very cheap from my point of view. On Wed, Mar 1, 2023 at 10:53 PM Sebastien Lorquet wrote: > Oh come on you are just trying to circumvent the GPL here > > Sebastien > > Le

Re: W25Nx NAND flash support

2023-03-01 Thread Sebastien Lorquet
Oh come on you are just trying to circumvent the GPL here Sebastien Le 01/03/2023 à 15:50, Xiang Xiao a écrit : On Wed, Mar 1, 2023 at 10:45 PM Alan C. Assis wrote: oh, I just found it: "The fee depends on the number of distinct Products in which Yaffs will be used, and there is a base pric

Re: W25Nx NAND flash support

2023-03-01 Thread Xiang Xiao
On Wed, Mar 1, 2023 at 10:45 PM Alan C. Assis wrote: > oh, I just found it: > > "The fee depends on the number of distinct Products in which Yaffs > will be used, and there is a base price of GBP £10,000. If more than > one Product is included in the same Licence there is usually a > reduction i

Re: W25Nx NAND flash support

2023-03-01 Thread Sebastien Lorquet
I am not confortable with NuttX having features that you have to pay for. In this case yaffs should be provided as an external patch, but should not be in mainline. At the very least such features should not be advertised on public websites. That is just my opinion but I find it good to bring

Re: W25Nx NAND flash support

2023-03-01 Thread Xiang Xiao
On Wed, Mar 1, 2023 at 10:43 PM Alan C. Assis wrote: > Hi Xiang, > > On 3/1/23, Xiang Xiao wrote: > > On Wed, Mar 1, 2023 at 8:43 PM Alan C. Assis wrote: > > > >> Hi Xiang Xiao, > >> > >> This is a great news, but I'm afraid yaffs is not a good option for > >> everybody because it uses GPL lice

Re: W25Nx NAND flash support

2023-03-01 Thread Alan C. Assis
oh, I just found it: "The fee depends on the number of distinct Products in which Yaffs will be used, and there is a base price of GBP £10,000. If more than one Product is included in the same Licence there is usually a reduction in the second fee." For a big company it is fine, but small compan

Re: W25Nx NAND flash support

2023-03-01 Thread Sebastien Lorquet
Also, sorry for the multiple messages, but why is that not new IOCTL calls (used to "Support other, less frequently used commands") so the structure is not modified ? That would be a much more compatible way of doing things. Devices that dont implement this would just automatically return -ENO

Re: W25Nx NAND flash support

2023-03-01 Thread Alan C. Assis
Hi Xiang, On 3/1/23, Xiang Xiao wrote: > On Wed, Mar 1, 2023 at 8:43 PM Alan C. Assis wrote: > >> Hi Xiang Xiao, >> >> This is a great news, but I'm afraid yaffs is not a good option for >> everybody because it uses GPL license. >> >> > Yes, but you can pay some money to switch to a more friendl

Re: W25Nx NAND flash support

2023-03-01 Thread Sebastien Lorquet
the callbacks are not activated by conditional compilation and are in the middle of struct mtd_dev_s , so how are these optional? Sebastien Le 01/03/2023 à 15:36, Xiang Xiao a écrit : On Wed, Mar 1, 2023 at 10:26 PM Sebastien Lorquet wrote: Hi, Please dont break the mtd interfac

Re: W25Nx NAND flash support

2023-03-01 Thread Sebastien Lorquet
Hi, Please dont break the mtd interface, make it compatible with the previous one. Sebastien Le 01/03/2023 à 14:53, Xiang Xiao a écrit : On Wed, Mar 1, 2023 at 8:43 PM Alan C. Assis wrote: Hi Xiang Xiao, This is a great news, but I'm afraid yaffs is not a good option for everybody becaus

Re: W25Nx NAND flash support

2023-03-01 Thread Xiang Xiao
On Wed, Mar 1, 2023 at 8:43 PM Alan C. Assis wrote: > Hi Xiang Xiao, > > This is a great news, but I'm afraid yaffs is not a good option for > everybody because it uses GPL license. > > Yes, but you can pay some money to switch to a more friendly license. > But yes, it could be an option for pe

Re: W25Nx NAND flash support

2023-03-01 Thread Alan C. Assis
Hi Xiang Xiao, This is a great news, but I'm afraid yaffs is not a good option for everybody because it uses GPL license. But yes, it could be an option for people and companies that can release all their software as open-source. PX4 project for example could use it. BR, Alan On 2/28/23, Xiang

Re: W25Nx NAND flash support

2023-02-28 Thread Xiang Xiao
We are working on yaffs porting, mtd_s need a little bit of extension to support NAND flash. Here is the patch: https://github.com/apache/nuttx/pull/8670 LittleFS needs some modification to get the benefit. On Sun, Feb 26, 2023 at 10:14 PM Nathan Hartman wrote: > On Sat, Feb 25, 2023 at 8:53 AM

Re: W25Nx NAND flash support

2023-02-26 Thread Nathan Hartman
On Sat, Feb 25, 2023 at 8:53 AM Gregory Nutt wrote: > > > Maybe LittleFS or SmartFS could be extended to handle NAND. > > I believe that LittleFS has been used with NAND with a NAND FLASH > translation layer. I am not sure of the state of that work, but I know > that people have tried it. Googl

Re: W25Nx NAND flash support

2023-02-25 Thread Michal Lenc
Hi, thank you all for your inputs and links. I will take a look into it. Best regards, Michal Lenc -- Původní e-mail -- Od: Simon Filgis Komu: dev@nuttx.apache.org Datum: 25. 2. 2023 14:43:33 Předmět: Re: W25Nx NAND flash support "Hi Michael, In addition, if you want to

Re: W25Nx NAND flash support

2023-02-25 Thread Gregory Nutt
Maybe LittleFS or SmartFS could be extended to handle NAND. I believe that LittleFS has been used with NAND with a NAND FLASH translation layer.  I am not sure of the state of that work, but I know that people have tried it.  Google "LittleFS on NAND flash" and see the hits. If a NAND fla

Re: W25Nx NAND flash support

2023-02-25 Thread Simon Filgis
Hi Michael, In addition, if you want to load your elf directly to the memory mapped flash storage, you need some flashloader for your debug tool. I can help with segger's flashloader if that is of interest. (dsk) https://www.segger.com/products/debug-probes/j-link/technology/j-link-dsk/ Simon --

Re: W25Nx NAND flash support

2023-02-25 Thread Alan C. Assis
Hi Michal, There is some discussion about it here: https://www.mail-archive.com/dev@nuttx.apache.org/msg04981.html and here: https://lists.apache.org/thread/kh5t6fn24q97d3qxzthksld4l3jtw27c In a nutshell: 1) If parallel NAND Flash is used your MCU will need first the NAND Flash controller drive