Format flash chip with FAT
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed May 30 05:23:20 UTC 2018
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.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the users
mailing list