> Why do you want to use a FAT file system on a flash instead of JFFS2? > With the functions you have, you have all what you need to use JFFS2.
Because the file system should be compatible with RTEMS, VxWorks and in the best case PikeOS. I know that FAT is not the best choice for flash but I am afraid FAT is the only file system that is integrated in all three of them. We are also discussing a custom file system but that would involve a bigger amount of work. Features like wear-leveling are not very important because most of the time data will only be read and not written. -----Original Message----- From: Sebastian Huber [mailto:sebastian.hu...@embedded-brains.de] Sent: Wednesday, May 30, 2018 7:23 AM To: LINDOW, Phil; users@rtems.org Subject: Re: Format flash chip with FAT On 29/05/18 18:18, LINDOW, Phil wrote: > I want to format a flash chip (S29GL01GP) with a FAT filesystem. I've > tried the following approach: > 1. I've implemented IO functions for my chip > int flash_init(void* start_addr, flash_device_t* handle); > int flash_erase_block(flash_device_t* handle, void* blk_addr); > int flash_program(flash_device_t* handle, void* dst, void* > data, unsigned long size); > (These functions are tested and they work...) > I must use these functions since the CPU and the flash chip > are connected through an FPGA in order to expand the addressable memory. > We have only 8 address lines available. But to make a long > story short: I can’t use generic program and erase functions. Why do you want to use a FAT file system on a flash instead of JFFS2? With the functions you have, you have all what you need to use JFFS2. https://git.rtems.org/rtems/tree/cpukit/include/rtems/jffs2.h -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. This email (including any attachments) may contain confidential and/or privileged information or information otherwise protected from disclosure. If you are not the intended recipient, please notify the sender immediately, do not copy this message or any attachments and do not use it for any purpose or disclose its content to any person, but delete this message and any attachments from your system. Astrium and Airbus Group companies disclaim any and all liability if this email transmission was virus corrupted, altered or falsified. --------------------------------------------------------- Airbus Defence and Space GmbH Vorsitzender des Aufsichtsrates: Dr. Thomas Enders Geschäftsführer: Dirk Hoke (Chairman), Dr. Lars Immisch Sitz der Gesellschaft: Ottobrunn, Amtsgericht München HRB 107 648, USt.Id.Nr. DE167015661 _______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users