diff options
author | Che-Liang Chiou <clchiou@chromium.org> | 2010-12-02 12:10:48 +0800 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-08-24 10:00:12 -0700 |
commit | 6feed8689b996e120c4f5db0ef26e8b1d9740937 (patch) | |
tree | 80578739fe519813767e91953e06fb8f320002b8 /include/biosincludes.h | |
parent | 8ae361cdec953378ba50e1c150af66f56b8a0fe1 (diff) |
Add a dummy LoadKernel driver
Load kernel with BOOT_FLAG_DEVELOPER and BOOT_FLAG_SKIP_ADDR_CHECK flags on.
This CL depends on a previous CL implementing __aeabi_uldivmod.
BUG=None
TEST=Run u-boot command below with expected output
Note: Although the kernel is loaded successfully, the LoadKernel() still fails
because TPM stub functions are not implemented yet.
CrOS> usb start
CrOS> cros bootdev set usb 0
CrOS> cros load_k 0x10000000 0x01000000
DEBUG: GptNextKernelEntry looking at new prio partition 1
DEBUG: GptNextKernelEntry s1 t15 p15
DEBUG: GptNextKernelEntry looking at new prio partition 3
DEBUG: GptNextKernelEntry s0 t15 p0
DEBUG: GptNextKernelEntry looking at new prio partition 5
DEBUG: GptNextKernelEntry s0 t15 p0
DEBUG: GptNextKernelEntry likes that one
DEBUG: Found kernel entry at % size %
DEBUG: Checking key block hash only...
DEBUG: Kernel preamble is good.
DEBUG: Partiton is good.
DEBUG: Boot_flags = !is_normal
DEBUG: Updating GPT header 2
DEBUG: Updating GPT entries 2
DEBUG: Good_partition >= 0
DEBUG: TPM: Lock physical presence
DEBUG: TPM: command 0x4000000a send/receive failed: 0x800
DEBUG: Error locking kernel versions.
Internal error; reboot to recovery mode
Note: tegra2_seaboard build's kernel partition was invalid. You will see "Only invalid kernels found on device" on outputs when you are trying to load a tegra2_seaboard image. Please test with x86-generic image just for now.
Review URL: http://codereview.chromium.org/5273008
Change-Id: Id129bb9423d8580e88fe75dd511dfdd61187f275
Diffstat (limited to 'include/biosincludes.h')
-rw-r--r-- | include/biosincludes.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/biosincludes.h b/include/biosincludes.h index eeb6872a122..a2c1fd79002 100644 --- a/include/biosincludes.h +++ b/include/biosincludes.h @@ -36,12 +36,6 @@ #ifndef BIOSINCLUDES_H #define BIOSINCLUDES_H -/* - * This file is a placeholder for the includes supplied by the BIOS - * compilation environment. This file is included if and only if - * CHROMEOS_ENVIRONMENT is not defined at compilation time. - * - * Currently nothing goes here. - */ +#define UINT64_C(v) ((uint64_t) v) #endif /* BIOSINCLUDES_H */ |