Re: NuttX on i486?

2023-12-28 Thread Gregory Nutt
There is a QEMU port to the i486 under boards/x86/qemu-i486 I am not sure of the state that was left in.  I don't think that has been touched for a while so I would also expect some bit rot. That port was tested  on a retro hardware board.  The person that developed that board reported that i

NuttX on i486?

2023-12-28 Thread Nathan Hartman
Has anyone tried to run NuttX on a physical x86 i486 machine? (I haven't tried yet. Asking first. :-) Cheers, Nathan

Re: LittleFS Implementation using MTD for NOR flash

2023-12-28 Thread Bernd Walter
On Thu, Dec 28, 2023 at 06:22:05PM +, Tim Hardisty wrote: > Code size? Hardly an argument when the basic read and write is the same code and the remaining could be under #ifdef. On the other hand there is a lot of bloated code if a board could be populated with two a more different chips. > >

Re: LittleFS Implementation using MTD for NOR flash

2023-12-28 Thread Tim Hardisty
Standard POSIX file opens etc. Look at the various offerings in nuttx-apps to get the idea. > On 28 Dec 2023, at 16:44, Janardhan Silwal > wrote: > > Hi, > > I tried using the template that you provied. > > I have gotten the mtd partition blocks mounted using littefs. And tried > creating

Re: LittleFS Implementation using MTD for NOR flash

2023-12-28 Thread Tim Hardisty
Code size? > On 28 Dec 2023, at 17:11, Bernd Walter wrote: > > On Thu, Dec 28, 2023 at 04:46:08PM +, Janardhan Silwal wrote: >> Oh!! >> So that is the one you used. >> I did see that on the menu config, but wasn't sure if it was the one. and I >> was halfway through completing the driver

Re: LittleFS Implementation using MTD for NOR flash

2023-12-28 Thread Bernd Walter
On Thu, Dec 28, 2023 at 04:46:08PM +, Janardhan Silwal wrote: > Oh!! > So that is the one you used. > I did see that on the menu config, but wasn't sure if it was the one. and I > was halfway through completing the driver when I noticed that option in menu > config anyway, so I went ahead and

Re: LittleFS Implementation using MTD for NOR flash

2023-12-28 Thread Janardhan Silwal
Oh!! So that is the one you used. I did see that on the menu config, but wasn't sure if it was the one. and I was halfway through completing the driver when I noticed that option in menu config anyway, so I went ahead and completed the driver. Anyway it is working, so no worries there. Thanks tho

Re: LittleFS Implementation using MTD for NOR flash

2023-12-28 Thread Janardhan Silwal
Hi, I tried using the template that you provied. I have gotten the mtd partition blocks mounted using littefs. And tried creating and writing a test message to the file via nsh shell. The file seems to have been created, and the test message does exist even after power cycling. So, now how do

Re: LittleFS Implementation using MTD for NOR flash

2023-12-28 Thread Tim Hardisty
FYI - if you type the / character in menuconfig it will allow you to search for things (e.g. /MT25 will show two entries relating to MT25 memory - the MTD settings and the actual flash ID of the device you're using (which will need to exist in the relevant driver code of course - so with your c

Re: LittleFS Implementation using MTD for NOR flash

2023-12-28 Thread Tim Hardisty
Device Drivers -> Memory Technology Device (MTD) Support -> SPI-based M25P/MT25Q On 28/12/2023 14:28, Janardhan Silwal wrote: which driver did you use? I didn't see MT25QL SPI flash in menu config so I went ahead and wrote one! Best regards, Janardhan From: Tim

Re: LittleFS Implementation using MTD for NOR flash

2023-12-28 Thread Janardhan Silwal
which driver did you use? I didn't see MT25QL SPI flash in menu config so I went ahead and wrote one! Best regards, Janardhan From: Tim Hardisty Sent: Thursday, December 28, 2023 19:15 To: dev@nuttx.apache.org Subject: Re: LittleFS Implementation using MTD for NO

Re: LittleFS Implementation using MTD for NOR flash

2023-12-28 Thread Tim Hardisty
I have only ever used NuttX "directly" with my apps running over it rather than any other middleware or anything, so I can't answer that. My board has been fitted with a MT25QL01GBBB8ESF, and has worked fine, so your flash is most likely supported already? On 28/12/2023 12:12, Janardhan Silwa

Re: LittleFS Implementation using MTD for NOR flash

2023-12-28 Thread Janardhan Silwal
Hi, I am using MT25QL, 1Gbit series flash memory. Thanks for the template. Would running in this format over the middleware running over nuttx also follow the same approach? Best Regards, Janardhan From: Tim Hardisty Sent: Thursday, December 28, 2023 17:31 To:

Re: LittleFS Implementation using MTD for NOR flash

2023-12-28 Thread Tim Hardisty
Hi, What flash are you using out of interest? But, the basic approach (in or called from your board bringup for example) is: spi_flash= sam_spibus_initialize(PORT); /* this call is arch dependent */ if(!spi_flash) { /* Do something */ } #ifdefined(CONFIG_MTD_M25P) mtd = m25p_initialize(spi_f

LittleFS Implementation using MTD for NOR flash

2023-12-28 Thread Janardhan Silwal
Hi community, I am trying to get littlefs running on a NOR flash memory using the MTD driver, on a STM32F4 chip. I had some bottlenecks in the implementation as I am an out-and-out novice when it comes to Nuttx. I have written a custom driver for the flash, which is working with MTD, as I cou