diff options
| author | Andrew Boie <andrew.p.boie@intel.com> | 2013-08-21 15:48:40 -0700 |
|---|---|---|
| committer | Andrew Boie <andrew.p.boie@intel.com> | 2013-09-09 13:13:33 -0700 |
| commit | d35ce3563b4d86702cec4c8f7031fb8a1c55cac2 (patch) | |
| tree | dcbbb0894f475de81940203e2e8a7f7a2587efc9 /trusty/coverage/coverage_test.cpp | |
| parent | 2e63e71f3116f0330b3bf61dde7deca235dd40ac (diff) | |
mkbootimg: support longer kernel command lines
We can't simply increase the value of BOOT_ARGS_SIZE since that
would break past binary compatibility; the offset of 'id' would
change. This can cause serious problems with incremental OTA updates.
Instead, define a supplemental field which stores command line
information beyond the first 512 bytes. A value of 1024 was chosen
to keep the total size of struct boot_img_hdr under the smallest
page size of 2048 bytes.
Even if the extra_cmdline field is used, the original cmdline
field is still always NULL-terminated to avoid issues with older
bootloaders that haven't been updated.
Change-Id: I887e6f1db351a5b71a61e3a03363cf8856123d74
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions
