Fix the jffs2 images with rdc devices (thanks to Daniel Gimpelevich)
SVN-Revision: 8329
This commit is contained in:
parent
0250efa1ea
commit
6dcd8081a3
1 changed files with 1 additions and 0 deletions
|
@ -135,6 +135,7 @@ int generate_image(char *kname, char *fsname, char *fname, int EHDR)
|
|||
else
|
||||
write(ffd, header + 2, 0x20);
|
||||
write(ffd, bk, lenk);
|
||||
lenk += 0x20;
|
||||
if (!JFFS2) JFFS2 = 0x20;
|
||||
printf("Padding header+kernel - 0x%x + 0x%x = 0x%x\n",
|
||||
lenk, ((lenk - 1 + JFFS2) / JFFS2) * JFFS2 - lenk,
|
||||
|
|
Loading…
Reference in a new issue