The master cbfs record was located at the end of the flash and overwrote

anything that was there.  For ck804 or mcp55-based machines that was the
romstrap.

The fix is simple:
1. Put the master cbfs record above the bootblock instead of on it.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>


git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4209 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Myles Watson
2009-04-25 12:39:04 +00:00
parent fe62016512
commit 72631a01fa
3 changed files with 15 additions and 41 deletions

View File

@@ -59,11 +59,8 @@ int create_handler(struct rom *rom, int argc, char **argv)
return -1;
}
if (create_rom(rom, rom->name, size, bootblocksize, align))
if (create_rom(rom, rom->name, size, bootblock, bootblocksize, align))
return -1;
if (bootblock != NULL)
return add_bootblock(rom, bootblock);
return 0;
}