diff options
author | Tom Wai-Hong Tam <waihong@chromium.org> | 2011-06-22 10:18:16 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-29 10:39:38 -0700 |
commit | bc2bc8073f73aedf0ff3a750b1400a314859af9f (patch) | |
tree | aff32b07b4018609f35c5f9404841f7c5de40ff6 /common/Makefile | |
parent | 0aebc8a1b07658f00abcdbc6c1a2ee7e85090f7b (diff) |
CHROMIUM: Test of firmware_storage read/write APIs.
BUG=chromium-os:16542
TEST=build without error and run in seaboard:
Tegra2 (SeaBoard) # vbooot_test
vboot_test - Perform tests for basic vboot APIs
Usage:
vboot_test all - perform all tests
fwrw - test the firmware read/write functions
Tegra2 (SeaBoard) # vboot_test fwrw
SF: Detected W25Q16 with page size 256, total 2 MiB
firmware_storage: read
firmware_storage: write
firmware_storage_spi: before adjustment
firmware_storage_spi: offset: 0xd0000
firmware_storage_spi: length: 0x20000
firmware_storage_spi: after adjustment
firmware_storage_spi: offset: 0xd0000
firmware_storage_spi: length: 0x20000
firmware_storage_spi: cxt->offset: 0x000d0000
firmware_storage_spi: offset: 0x000d0000
firmware_storage: read
firmware_storage: write
firmware_storage_spi: before adjustment
firmware_storage_spi: offset: 0xd0000
firmware_storage_spi: length: 0x20000
firmware_storage_spi: after adjustment
firmware_storage_spi: offset: 0xd0000
firmware_storage_spi: length: 0x20000
firmware_storage_spi: cxt->offset: 0x000d0000
firmware_storage_spi: offset: 0x000d0000
Read and write firmware test SUCCESS.
Change-Id: Idd4ffe28c9c5f76634f25767631a8aa1b367eb20
Reviewed-on: http://gerrit.chromium.org/gerrit/3003
Reviewed-by: Tom Wai-Hong Tam <waihong@chromium.org>
Tested-by: Tom Wai-Hong Tam <waihong@chromium.org>
Diffstat (limited to 'common/Makefile')
-rw-r--r-- | common/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile index 7e3aa9e484..2455e4e2f5 100644 --- a/common/Makefile +++ b/common/Makefile @@ -82,6 +82,7 @@ COBJS-$(CONFIG_CMD_CROS_REC) += cmd_cros_rec.o COBJS-$(CONFIG_CMD_CROS_ONESTOP_FIRMWARE) += cmd_cros_onestop_firmware.o COBJS-$(CONFIG_CMD_CROS_TPM_TEST) += cmd_cros_tpm_test.o COBJS-$(CONFIG_CMD_VBEXPORT_TEST) += cmd_vbexport_test.o +COBJS-$(CONFIG_CMD_VBOOT_TEST) += cmd_vboot_test.o COBJS-$(CONFIG_DATAFLASH_MMC_SELECT) += cmd_dataflash_mmc_mux.o COBJS-$(CONFIG_CMD_DATE) += cmd_date.o ifdef CONFIG_4xx |