Help track down enable_rom issues in CBFS. If the magic
authorPatrick Georgi <patrick.georgi@coresystems.de>
Wed, 11 Nov 2009 19:31:53 +0000 (19:31 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Wed, 11 Nov 2009 19:31:53 +0000 (19:31 +0000)
looks like unmapped memory, point to the wiki page with
more information.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4933 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

src/lib/cbfs.c

index 5f24faf20f6bb2754b18659bb2a64a95a90a8340..f99f666d3c5fdbeebf946336f965560aade11ffb 100644 (file)
@@ -66,6 +66,10 @@ struct cbfs_header *cbfs_master_header(void)
        printk_spew("magic is %08x\n", ntohl(header->magic));
        if (ntohl(header->magic) != CBFS_HEADER_MAGIC) {
                printk_err("ERROR: No valid CBFS header found!\n");
+               if (header->magic == 0xffffffff) {
+                       printk_err("Maybe the ROM isn't entirely mapped yet?\n"
+                               "See (and report to) http://www.coreboot.org/Infrastructure_Projects#CBFS\n");
+               }
                return NULL;
        }