mtd: add support for rewriting the fis table layout on redboot based systems

SVN-Revision: 17659
This commit is contained in:
Felix Fietkau
2009-09-21 09:58:41 +00:00
parent 87a8e8ac10
commit 63c91af404
5 changed files with 451 additions and 56 deletions

14
package/mtd/src/fis.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef __FIS_H
#define __FIS_H
struct fis_part {
unsigned char name[16];
uint32_t offset;
uint32_t loadaddr;
uint32_t size;
};
int fis_validate(struct fis_part *old, int n_old, struct fis_part *new, int n_new);
int fis_remap(struct fis_part *old, int n_old, struct fis_part *new, int n_new);
#endif