Re: SPI EEPROM, losetup, LittleFS

2023-12-16 Thread Tim Hardisty
I will look at lomtd, thanks. But if littlefs is not suitable (a quick look and it seemed it might be a reasonably choice for a 16KiB EEPROM?) is there an FS in NuttX that is suitable? "Out there" I find NASA's EEFS and one or two others I could try (and submit to NuttX; depending on licensing

Re: SPI EEPROM, losetup, LittleFS

2023-12-15 Thread Xiang Xiao
On Fri, Dec 15, 2023 at 5:17 PM Sebastien Lorquet wrote: > Hi, > > I dont think you can use losetup to create a mtd device. loop devices > are regular block devices. You can use lomtd to setup a mtd device loop: https://github.com/apache/nuttx-apps/blob/master/nshlib/nsh_fscmds.c#L1144-L1306

Re: SPI EEPROM, losetup, LittleFS

2023-12-15 Thread Alan C. Assis
Hi Tim, What is the P/N# of your SPI EEPROM? As Sébastien said the best option is adding support to your SPI EEPROM as MTD. I used char dev EEPROM in the past with a circular packet buffer. It was used to store tracking data before sending it to the cloud. It was faster than using MTD in the dev

Re: SPI EEPROM, losetup, LittleFS

2023-12-15 Thread Sebastien Lorquet
Hi, I dont think you can use losetup to create a mtd device. loop devices are regular block devices. This will only work if littlefs can mount a block device (no idea if thats possible) what you need is an adaptation layer that will implement a mtd device on an eeprom. You can duplicate a

SPI EEPROM, losetup, LittleFS

2023-12-14 Thread Tim Hardisty
Question first, then explanation. How do I use losetup (which is what I think I need) with a character memory device and mount an FS on it? SPI EEPROM and LittleFS specifically. Yes, it's a bad idea, probably, but I just want to have a play and lack of NuttX/POSIX/Linux knowledge has bitten m