Almost nothing changes here except moving braces to the same line as the
function declaration. Everything else is largely whitespace changes and
a few dangling files with tab indents.
See scripts/codestyle
Most of the warnings are new, such as needing to mark fallthroughs on
cases explicitly. A few are based on signed vs unsigned comparisons.
Disable one warning that was annoying about comparing null to arguments
marked nonnull.
Modify the existing ptable code to pay attention to bio device erase
geometry if present. Significant changes include...
+ Partitions must be allocated on both program and erase block
boundaries.
+ Partitions lengths must be multiples of both program and erase block
sizes.
+ Partitions may not span non-homogeneous regions of erase geometry.
+ ptable_allocate as been made private.
+ Users may no longer explicitly select a position for partitions to
be added, they may only ask for the partition to be allocated at the
begining or the end of the block device.
+ A bio subdevice will be registered for each active partition in the
system. Users are encouraged to add their partition using
ptable_add, and then open a handle to the subdevice using bio_open.
The bio subdevice will prevent accidental scribbling outside of the
partition lines, and also advertise the partition erase size.
Signed-off-by: John Grossman <johngro@google.com>
Change-Id: I09bf9038d210ff8be42d44166ab92c789872e036
-have the zynq nak autobooting if the BOOT_MODE pins were set to
JTAG mode.
-Clean up some of the timeout logic a bit.
Change-Id: I4ace6354de89f2e88aa270e5ebc1bf01ebe3b046
-Now lkboot will start a network server (if networking is enabled)
and wait for a predetermined amount of time (5 seconds currently).
If after that time no one has talked to it, it will try to boot
an image out of flash.
-If no networking, then directly boot an image out of flash immediately.
TODO: configure timeout, add 'autoboot' command to lkboot to let the host
short circuit the wait.