summaryrefslogtreecommitdiff
path: root/board/nvidia/chromeos
diff options
context:
space:
mode:
authorChe-Liang Chiou <clchiou@chromium.org>2011-03-22 22:21:07 +0800
committerSimon Glass <sjg@chromium.org>2011-08-24 10:00:42 -0700
commitef8fc9874ae0732279c52be20a6bc7eefc24fee1 (patch)
tree2085235f7832122028a16aace91f9dd3d3529972 /board/nvidia/chromeos
parent1a0ae4f57b8a6fba6a45e53defe8963c1b5291ca (diff)
Refactor firmware and kernel loaders to improve code sharing
The bootstub should output like the following: ------------------------------------------------------------ U-Boot 2010.09-00059-ga8a8981 (Mar 16 2011 - 14:00:35) Board: Tegra2 chromeos/tegra2/seaboard/stub DRAM: 1 GiB Using default environment In: tegra-kbc Out: lcd Err: lcd Hit any key to stop autoboot: 0 DEBUG: LoadFirmware started... DEBUG: Checking key block signature... DEBUG: Firmware 0 is valid. DEBUG: Checking key block signature... DEBUG: Will boot firmware index 0 ------------------------------------------------------------ The cros load_fw command should output like the following: (assume you load firmware image at [0x01000000:0x011d0000] ------------------------------------------------------------ CrOS> cros load_fw 0 0x01000000 0x001d0000 0x10000000 DEBUG: LoadFirmware started... DEBUG: Checking key block signature... DEBUG: Firmware 0 is valid. DEBUG: Checking key block signature... DEBUG: Will boot firmware index 0 LoadFirmware returns: LOAD_FIRMWARE_SUCCESS: firmware_index: 0 ------------------------------------------------------------ Type following command in developer firmware: (Assume that you inserted a Chrome OS SD card image) ------------------------------------------------------------ CrOS> mmc init 1 EMMC 1 Probed Successfully mmc1 is available CrOS> cros bootdev set mmc 1 Set boot device to mmc 1 0 CrOS> cros load_k 4 0x10000000 boot_flags: 0x00000004 shared_data_blob: 0x10000000 success: good kernel found on device kernel_buffer: 0x0040c000 partition_number: 2 bootloader_address: 0x736000 bootloader_size: 0x1000 partition_guid: fa e2 d2 39 82 ab 4b ff 93 b7 25 5e 88 a4 18 54 bytes_per_lba: 512 ending_lba: 0x003ce022 ------------------------------------------------------------ R=waihong@chromium.org BUG=None TEST=MAKEALL successfully and run commands above Review URL: http://codereview.chromium.org/6688063 Change-Id: Ia4f44a9de1703c7cef0f6b52d8bc951ff1cb81ee
Diffstat (limited to 'board/nvidia/chromeos')
-rw-r--r--board/nvidia/chromeos/eeprom_driver.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/board/nvidia/chromeos/eeprom_driver.c b/board/nvidia/chromeos/eeprom_driver.c
index 239bd819b3b..ef3f6200325 100644
--- a/board/nvidia/chromeos/eeprom_driver.c
+++ b/board/nvidia/chromeos/eeprom_driver.c
@@ -38,11 +38,7 @@
#include <common.h>
#include <malloc.h>
-#include <chromeos/hardware_interface.h>
-
-/* TODO Replace dummy functions below with real implementation. */
-
-int lock_down_eeprom(void) { return 0; }
+#include <chromeos/firmware_storage.h>
/* TODO Replace mem_seek/read with spi_seek/read when moving firmware storage
* from NAND to SPI Flash */