Re: SPI flash support using flashdisk.c or spi-memdrv.c

2020-11-20 Thread Philip Molloy
spi-memdrv.c does not implement open() or close(), which means `null_handler_open()` is called, but `errno` is never set: ``` open.c: if ( iop != NULL ) { rv = do_open( iop, path, oflag, mode ); } else { errno = ENFILE; rv = -1; } va_end( ap ); return rv; ``` Is the expe

SPI flash support using flashdisk.c or spi-memdrv.c

2020-11-11 Thread Philip Molloy
Hello, I'd like to store a bootable image as well as persistent configuration data on a Cypress S25FS128S SPI flash. A similar question on this mailing list in 2010 prompted two people to suggest using flashdisk.c. However spi-memdrv.c appears to be more generic. I'd appreciate any recommendati