| eeaef5e4 | 10-Jun-2013 |
Steven Stallion <sstallion@gmail.com> |
cmd_bootm: Add command line arguments to Plan 9
This patch introduces support for command line arguments to Plan 9. Plan 9 generally dedicates a small region of kernel memory (known as CONFADDR) for
cmd_bootm: Add command line arguments to Plan 9
This patch introduces support for command line arguments to Plan 9. Plan 9 generally dedicates a small region of kernel memory (known as CONFADDR) for runtime configuration. A new environment variable named confaddr was introduced to indicate this location when copying arguments.
Signed-off-by: Steven Stallion <sstallion@gmail.com> [trini: Adapt for Simon's changes about correcting argc, no need to bump by 2 now] Signed-off-by: Tom Rini <trini@ti.com>
show more ...
|
| 4d098529 | 13-Jun-2013 |
Simon Glass <sjg@chromium.org> |
image: Add support for signing of FIT configurations
While signing images is useful, it does not provide complete protection against several types of attack. For example, it it possible to create a
image: Add support for signing of FIT configurations
While signing images is useful, it does not provide complete protection against several types of attack. For example, it it possible to create a FIT with the same signed images, but with the configuration changed such that a different one is selected (mix and match attack). It is also possible to substitute a signed image from an older FIT version into a newer FIT (roll-back attack).
Add support for signing of FIT configurations using the libfdt's region support.
Please see doc/uImage.FIT/signature.txt for more information.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 19c402af | 13-Jun-2013 |
Simon Glass <sjg@chromium.org> |
image: Add RSA support for image signing
RSA provides a public key encryption facility which is ideal for image signing and verification.
Images are signed using a private key by mkimage. Then at r
image: Add RSA support for image signing
RSA provides a public key encryption facility which is ideal for image signing and verification.
Images are signed using a private key by mkimage. Then at run-time, the images are verified using a private key.
This implementation uses openssl for the host part (mkimage). To avoid bringing large libraries into the U-Boot binary, the RSA public key is encoded using a simple numeric representation in the device tree.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 56518e71 | 13-Jun-2013 |
Simon Glass <sjg@chromium.org> |
image: Support signing of images
Add support for signing images using a new signature node. The process is handled by fdt_add_verification_data() which now takes parameters to provide the keys and r
image: Support signing of images
Add support for signing images using a new signature node. The process is handled by fdt_add_verification_data() which now takes parameters to provide the keys and related information.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 3e569a6b | 13-Jun-2013 |
Simon Glass <sjg@chromium.org> |
image: Add signing infrastructure
Add a structure to describe an algorithm which can sign and (later) verify images.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| d0ae31eb | 11-Jun-2013 |
Simon Glass <sjg@chromium.org> |
Add a 'fake' go command to the bootm command
For tracing it is useful to run as much of U-Boot as possible so as to get a complete picture. Quite a bit of work happens in bootm, and we don't want to
Add a 'fake' go command to the bootm command
For tracing it is useful to run as much of U-Boot as possible so as to get a complete picture. Quite a bit of work happens in bootm, and we don't want to have to stop tracing before bootm starts.
Add a way of doing a 'fake' boot of the OS - which does everything up to the point where U-Boot is about to jump to the OS image. This allows tracing to record right until the end.
This requires arch support to work.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 35fc84fa | 11-Jun-2013 |
Simon Glass <sjg@chromium.org> |
Refactor the bootm command to reduce code duplication
At present the bootm code is mostly duplicated for the plain 'bootm' command and its sub-command variant. This makes the code harder to maintain
Refactor the bootm command to reduce code duplication
At present the bootm code is mostly duplicated for the plain 'bootm' command and its sub-command variant. This makes the code harder to maintain and means that changes must be made to several places.
Introduce do_bootm_states() which performs selected portions of the bootm work, so that both plain 'bootm' and 'bootm <sub_command>' can use the same code.
Additional duplication exists in bootz, so tidy that up as well. This is not intended to change behaviour, apart from minor fixes where the previously-duplicated code missed some chunks of code.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 983c72f4 | 11-Jun-2013 |
Simon Glass <sjg@chromium.org> |
Clarify bootm OS arguments
At present the arguments to bootm are processed in a somewhat confusing way. Sub-functions must know how many arguments their calling functions have processed, and the OS
Clarify bootm OS arguments
At present the arguments to bootm are processed in a somewhat confusing way. Sub-functions must know how many arguments their calling functions have processed, and the OS boot function must also have this information. Also it isn't obvious that 'bootm' and 'bootm start' provide arguments in the same way.
Adjust the code so that arguments are removed from the list before calling a sub-function. This means that all functions can know that argv[0] is the first argument of which they need to take notice.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 71c52dba | 11-Jun-2013 |
Simon Glass <sjg@chromium.org> |
Add trace support to generic board
Add hooks for tracing to generic board, including:
- allow early tracing to start early as possible in U-Boot - reserve memory for trace buffer - copy early trace
Add trace support to generic board
Add hooks for tracing to generic board, including:
- allow early tracing to start early as possible in U-Boot - reserve memory for trace buffer - copy early trace buffer to main trace buffer after relocation - setup full tracing support after relocation
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| cabcbb56 | 11-Jun-2013 |
Simon Glass <sjg@chromium.org> |
Add a trace command
Add a trace command with sub-commands to start/stop tracing, print out statistics and dump trace information to memory for later upload to a host.
Signed-off-by: Simon Glass <sj
Add a trace command
Add a trace command with sub-commands to start/stop tracing, print out statistics and dump trace information to memory for later upload to a host.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| b8bcaa3a | 11-Jun-2013 |
Simon Glass <sjg@chromium.org> |
Add function to print a number with grouped digits
Move bootstage's numbering printing code into a generic place so that it can be used by tracing also.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 5d3bd345 | 11-Jun-2013 |
Simon Glass <sjg@chromium.org> |
bootstage: Correct printf types
The unstash code is a bit loose with its printf() types, which gives warnings on sandbox. Correct this.
Signed-off-by: Simon Glass <sjg@chromium.org> |
| 92765f42 | 11-Jun-2013 |
Simon Glass <sjg@chromium.org> |
Fix missing return in do_mem_loop()
For some reason this does not normally cause a compiler warning, but the code seems to be incorrect. Add the missing return.
Signed-off-by: Simon Glass <sjg@chro
Fix missing return in do_mem_loop()
For some reason this does not normally cause a compiler warning, but the code seems to be incorrect. Add the missing return.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| 98f64676 | 03-Dec-2012 |
Rob Herring <rob.herring@calxeda.com> |
pxe: add ipappend support
Add ipappend support to pass network device information to the kernel.
Signed-off-by: Rob Herring <rob.herring@calxeda.com> |
| 58d9ff93 | 24-Jun-2013 |
Joe Hershberger <joe.hershberger@ni.com> |
net: Fix build regression in cmd_pxe.c
Not all boards define an SOC. As a result, we can't depend on that.
This was introduced in 39f985536d3f0df5dba32c15b64ba2b5d32dd296
Signed-off-by: Joe Hersh
net: Fix build regression in cmd_pxe.c
Not all boards define an SOC. As a result, we can't depend on that.
This was introduced in 39f985536d3f0df5dba32c15b64ba2b5d32dd296
Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
show more ...
|
| 39f98553 | 03-Dec-2012 |
Rob Herring <rob.herring@calxeda.com> |
pxe: add support for per arch and SoC default paths
A pxelinux server setup for "default" menu is typically an x86 binary. This does not work well with a mixed architecture setup. Extend the default
pxe: add support for per arch and SoC default paths
A pxelinux server setup for "default" menu is typically an x86 binary. This does not work well with a mixed architecture setup. Extend the default search to look for default-<arch>-<soc> and then default-<arch> before falling back to just "default".
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
show more ...
|
| 8577fec9 | 03-Dec-2012 |
Rob Herring <rob.herring@calxeda.com> |
pxe: add support for ontimeout token
ontimeout is similar to default, but is the selection on menu timeout. This is how cobbler sets a default. The label default is supposed to be the default select
pxe: add support for ontimeout token
ontimeout is similar to default, but is the selection on menu timeout. This is how cobbler sets a default. The label default is supposed to be the default selection when <enter> is pressed. If both default and ontimeout are set, last one parsed wins.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
show more ...
|
| 32d2ffe7 | 03-Dec-2012 |
Rob Herring <rob.herring@calxeda.com> |
pxe: simplify menu display and selection
Menus with lots of entries and long append lines are hard to read. Just show a numbered list using the label or name and make the choice by entering the numb
pxe: simplify menu display and selection
Menus with lots of entries and long append lines are hard to read. Just show a numbered list using the label or name and make the choice by entering the number.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
show more ...
|
| e82eeb57 | 03-Dec-2012 |
Rob Herring <rob.herring@calxeda.com> |
pxe: always display a menu when present
The prompt flag is for displaying a "boot:" prompt in pxelinux. This doesn't make sense for u-boot as we don't support the pxelinux command interface. So we s
pxe: always display a menu when present
The prompt flag is for displaying a "boot:" prompt in pxelinux. This doesn't make sense for u-boot as we don't support the pxelinux command interface. So we should just ignore prompt statements and always show the menu if a menu is present.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
show more ...
|
| e6b6ccf2 | 03-Dec-2012 |
Rob Herring <rob.herring@calxeda.com> |
pxe: try bootz if bootm fails to find a valid image
Standard pxelinux servers will typically use a zImage rather than u-boot image format, so fallback to bootz if bootm fails.
Signed-off-by: Rob He
pxe: try bootz if bootm fails to find a valid image
Standard pxelinux servers will typically use a zImage rather than u-boot image format, so fallback to bootz if bootm fails.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
show more ...
|
| da620222 | 03-Dec-2012 |
Rob Herring <rob.herring@calxeda.com> |
bootz: un-staticize do_bootz
Make do_bootz available for other functions like do_bootm is.
Signed-off-by: Rob Herring <rob.herring@calxeda.com> |
| 500f304b | 03-Dec-2012 |
Rob Herring <rob.herring@calxeda.com> |
pxe: fix handling of different localboot values
Add support for value of -1 For localboot. A value of -1 means return to u-boot prompt.
The localboot value is often 0, so we need to distinguish the
pxe: fix handling of different localboot values
Add support for value of -1 For localboot. A value of -1 means return to u-boot prompt.
The localboot value is often 0, so we need to distinguish the value from localboot being selected. A value of greater than or equal to 0 means attempt local boot command.
If localboot is selected, we don't want to try other entries.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
show more ...
|
| 23b7194e | 03-Dec-2012 |
Rob Herring <rob.herring@calxeda.com> |
pxe: make string parameters const
Convert a bunch of string parameters to be const.
Signed-off-by: Rob Herring <rob.herring@calxeda.com> |
| ef034c9d | 03-Dec-2012 |
Rob Herring <rob.herring@calxeda.com> |
pxe: Use ethact setting for pxe
Get the MAC address using eth_getenv_enetaddr_by_index so that the MAC address of ethact is used. This enables using the a NIC other than the first one for PXE boot.
pxe: Use ethact setting for pxe
Get the MAC address using eth_getenv_enetaddr_by_index so that the MAC address of ethact is used. This enables using the a NIC other than the first one for PXE boot.
Signed-off-by: Rob Herring <rob.herring@calxeda.com>
show more ...
|
| 348e47f7 | 22-Jun-2013 |
Tom Rini <trini@ti.com> |
Merge branch 'master' of git://git.denx.de/u-boot-arm |