- 15 5月, 2013 22 次提交
-
-
由 Simon Glass 提交于
This code is very large, and in SPL it isn't always useful to print out image information (in fact there might not even be a console active). So disable this feature unless this option is set. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
There are only two left. One is unnecessary and the other can be moved to the header file. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
The fit_handle_file() function is quite long - split out the part that loads and checks a FIT into its own function. We will use this function for storing public keys into a destination FDT file. The error handling is currently a bit repetitive - tidy it. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
Much of the image code uses addresses as ulongs and pointers interchangeably, casting between the two forms as needed. This doesn't work with sandbox, which has a U-Boot RAM buffer which is separate from the host machine's memory. Adjust the cost so that translating from a U-Boot address to a pointer uses map_sysmem(). This allows bootm to work correctly on sandbox. Note that there are no exhaustive tests for this code on sandbox, so it is possible that some dark corners remain. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de> (v1)
-
由 Simon Glass 提交于
This function will be used to print signatures as well as hashes, so rename it. Also make it static since it is not used outside this file. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NMarek Vasut <marex@denx.de>
-
由 Simon Glass 提交于
We intend to add signatures to FITs also, so rename this function so that it is not specific to hashing. Also rename fit_image_set_hashes() and make it static since it is not used outside this file. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NMarek Vasut <marex@denx.de>
-
由 Simon Glass 提交于
This function will be needed by signature checking code, so export it, and also add docs. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
The string " error\n" appears in each error string. Move it out to a common place. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NMarek Vasut <marex@denx.de>
-
由 Simon Glass 提交于
The existing function is long and most of the code is indented a long way. Before adding yet more code, split this out into its own function. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: Marek Vasut <marex@denx.de> (v1)
-
由 Simon Glass 提交于
This is the main entry point to the FIT image verification code. We will be using it to handle image verification with signatures, so rename the function. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NMarek Vasut <marex@denx.de>
-
由 Simon Glass 提交于
This function doesn't need to be exported, and with verification we want to use it for setting the 'value' property in any node, so rename it. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NMarek Vasut <marex@denx.de>
-
由 Simon Glass 提交于
This function has become quite long and much of the body is indented quite a bit. Move it into a separate function to make it easier to work with. Signed-off-by: NSimon Glass <sjg@chromium.org> Acked-by: NMarek Vasut <marex@denx.de>
-
由 Simon Glass 提交于
This code is never compiled into U-Boot, so move it into a separate file in tools/ to avoid the large #ifdef. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NMarek Vasut <marex@denx.de>
-
由 Simon Glass 提交于
The FIT code is about half the size of the >3000-line image.c. Split this code into its own file. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NMarek Vasut <marex@denx.de>
-
由 Simon Glass 提交于
One we split out the FIT code from image.c we will need this function. Export it in the header. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NMarek Vasut <marex@denx.de>
-
由 Simon Glass 提交于
Rather than repeat the line #if defined(CONFIG_TIMESTAMP) || defined(CONFIG_CMD_DATE) || \ defined(USE_HOSTCC) everywhere, put this in a header file and #define IMAGE_ENABLE_TIMESTAMP to either 1 or 0. Then we can use a plain if() in most code and avoid the #ifdefs. The compiler's dead code elimination ensures that the result is the same. Signed-off-by: NSimon Glass <sjg@chromium.org> Acked-by: NMarek Vasut <marex@denx.de>
-
由 Simon Glass 提交于
Iterating through subnodes with libfdt is a little painful to write as we need something like this: for (depth = 0, count = 0, offset = fdt_next_node(fdt, parent_offset, &depth); (offset >= 0) && (depth > 0); offset = fdt_next_node(fdt, offset, &depth)) { if (depth == 1) { /* code body */ } } Using fdt_next_subnode() we can instead write this, which is shorter and easier to get right: for (offset = fdt_first_subnode(fdt, parent_offset); offset >= 0; offset = fdt_next_subnode(fdt, offset)) { /* code body */ } Also, it doesn't require two levels of indentation for the loop body. Signed-off-by: NSimon Glass <sjg@chromium.org> (Cherry-picked from dtc commit 4e76ec79) Acked-by: NGerald Van Baren <vanbaren@cideas.com>
-
由 Simon Glass 提交于
Move this definition from aisimage.c to mkimage.h so that it is available more widely. Signed-off-by: NSimon Glass <sjg@chromium.org> Acked-by: NMarek Vasut <marex@denx.de>
-
由 Simon Glass 提交于
We don't measure boot timing on the host, or with SPL, so use both conditions in the bootstage header. This allows us to avoid using conditional compilation around bootstage_...() calls. (#ifdef) Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
Rather than needing to call one of many hashing algorithms in U-Boot, provide a function hash_block() which handles this, and can support all available hash algorithms. Once we have md5 supported within hashing, we can use this function in the FIT image code. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
A few things have changed since this doc was written, so update it to match the current state of things. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
This should say 'environmnent'. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
- 14 5月, 2013 18 次提交
-
-
-
-
由 Simon Glass 提交于
Add selected coreboot timestamps into bootstage to get a unified view of the boot timings. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
Coreboot provides a lot of useful timing information. Provide a facility to add this to bootstage on start-up. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
We don't use zlib and gzip but do use lzo, so enable this. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
This local variable is not used unless CONFIG_GZIP is defined. Fix it. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
Add a function which allows a (file, function, line number) to be marked in bootstage. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NChe-Liang Chiou <clchiou@chromium.org>
-
由 Simon Glass 提交于
This is a convenient way of finding out where boottime is going. Enable it for coreboot. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Doug Anderson 提交于
In a previous CL we added the bootstage_relocate(), which should be called after malloc is initted. Now we call it on generic board. Signed-off-by: NDoug Anderson <dianders@chromium.org> Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Doug Anderson 提交于
Any pointers to name strings that were passed to bootstage_mark_name() pre-relocation should be copied post-relocation so that they don't get trashed as the original location of U-Boot is re-used for other purposes. This change introduces a new API call that should be called from board_init_r() after malloc has been initted on any board that uses bootstage. Signed-off-by: NDoug Anderson <dianders@chromium.org> Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
Some functions don't have a stub for when CONFIG_BOOTSTAGE is not defined. Add one to avoid #ifdefs in the code when this is used in U-Boot. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NChe-Liang Chiou <clchiou@chromium.org> Reviewed-by: NTom Wai-Hong Tam <waihong@chromium.org>
-
由 Simon Glass 提交于
While we don't want PCAT timers for timing, we want timer 2 so that we can still make a beep. Re-purpose the PCAT driver for this, and enable it in coreboot. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
This is no longer used since we prefer the more accurate TSC timer, so remove the dead code. Signed-off-by: NSimon Glass <sjg@chromium.org> Acked-by: NGraeme Russ <graeme.russ@gmail.com>
-
由 Simon Glass 提交于
Tidy up some old broken and unneeded implementations. These are not used by coreboot or anything else now. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NGabe Black <gabeblack@chromium.org> Reviewed-by: NMichael Spang <spang@chromium.org> Reviewed-by: NVadim Bendebury <vbendeb@chromium.org> Acked-by: NGraeme Russ <graeme.russ@gmail.com>
-
由 Simon Glass 提交于
This timer runs at a rate that can be calculated, well over 100MHz. It is ideal for accurate timing and does not need interrupt servicing. Tidy up some old broken and unneeded implementations at the same time. To provide a consistent view of boot time, we use the same time base as coreboot. Use the base timestamp supplied by coreboot as U-Boot's base time. Signed-off-by: Simon Glass <sjg@chromium.org>base Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
The 'Starting linux' message appears twice in the code, but both call through the same place. Unify these and add calls to bootstage to mark the occasion. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NMichael Spang <spang@chromium.org> Acked-by: NGraeme Russ <graeme.russ@gmail.com>
-
由 Simon Glass 提交于
panic_puts() can be called in early boot to display a message. It might help with early debugging. Signed-off-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NTom Wai-Hong Tam <waihong@chromium.org>
-
由 Simon Glass 提交于
Several files use the global_data pointer without declaring it. This works because the declaration is currently a NOP. But still it is better to fix this so that x86 lines up with other archs. Signed-off-by: NSimon Glass <sjg@chromium.org>
-