beaglebone: Put some code in romstage.c so we can tell if it ran.

The placeholder code in beaglebone's romstage.c didn't do anything, it just
immediately tried to load the RAM stage and jump into it. That doesn't
currently work, and there's no indication whether you actually successfully
got into the ROM stage or not.

This change adds a few lines which initialize the console and say "Hi" so that
we can tell that the ROM stage is running.

Change-Id: I45a0908c3ac65b21e0e5020428696d2e54933d0e
Signed-off-by: Gabe Black <gabeblack@chromium.org>
Reviewed-on: http://review.coreboot.org/3581
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
This commit is contained in:
Gabe Black 2013-07-01 05:12:40 -07:00 committed by Ronald G. Minnich
parent 978c215127
commit 81cbadadc1
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@ void main(void)
{ {
void *entry; void *entry;
console_init();
printk(BIOS_INFO, "Hello from romstage.\n");
entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA, "fallback/coreboot_ram"); entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA, "fallback/coreboot_ram");
printk(BIOS_INFO, "entry is 0x%p, leaving romstage.\n", entry); printk(BIOS_INFO, "entry is 0x%p, leaving romstage.\n", entry);