mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-30 02:20:48 +00:00
This code is a port of the sample loader application included in the
FPGA update. Only the pieces relevant to straight verification and
boot were ported.
The loader generates a hash, inputs to which are the image body, state
of fuses and state of flash INFO region, and the output is the value,
which will unlock the region for execution, if it is correct.
Only one image load is attempted, the image is supposed to be located
in the flash at the offset of CONFIG_RW_MEM_OFF.
BRANCH=none
BUG=chrome-os-partner:43025
TEST=with the rest of the patches applied the RO image successfully
verifies and starts up the RW image.
Change-Id: I26e1fbdaeb8b23d519c1a328526a3422231bb322
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/311316
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
17 lines
426 B
C
17 lines
426 B
C
/* Copyright 2015 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
#ifndef __EC_CHIP_G_LOADER_DEBUG_PRINTF_H
|
|
#define __EC_CHIP_G_LOADER_DEBUG_PRINTF_H
|
|
|
|
void debug_printf(const char *format, ...);
|
|
|
|
#ifdef DEBUG
|
|
#define VERBOSE debug_printf
|
|
#else
|
|
#define VERBOSE(...)
|
|
#endif
|
|
|
|
#endif /* __EC_CHIP_G_LOADER_DEBUG_PRINTF_H */
|