summaryrefslogtreecommitdiffstats
path: root/bootloader.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Check pointer for null before dereferencingAdam Bliss2011-07-141-0/+8
| | | | Change-Id: Ie7563bf8fb2d627454010de7388d0992e2accf91
* delay accessing misc partition until its device existsDoug Zongker2011-04-221-0/+21
| | | | | | | | | When the misc partition is on an emmc device, recovery can get started and try to access it before the kernel has actually created the device. Try statting the device before reading or writing it; delay up to 10 seconds waiting for the device to exist. Change-Id: Ib9bf6c35fa2c28fc43aa7550aaaffb76c9f6e120
* remove the notion of "root path"; support mixed flash typesDoug Zongker2010-09-211-83/+84
| | | | | | | | | | | | Remove the wacky notion of "roots" and "root paths" (those things that look like "FOO:some/path" instead of just "/foo/some/path"). Let each device specify its own table of available partitions and how to mount them (needed for devices that use both MTD/yaffs2 and EMMC/ext4 partitions). (Cherrypicked from gingerbread w/slight edits.) Change-Id: I2479ce76b13e73f1d12035c89386c3a82b3edf51
* support using an EMMC misc partition to store recovery argumentsDoug Zongker2010-08-131-2/+53
| | | | Change-Id: I9f912857cfc6afb8ba764f5541af7f01df029a77
* bump updater API version to 3; deprecate firmware update commandDoug Zongker2010-02-031-249/+0
| | | | | | | | | Remove support for the HTC-specific "firmware" update command and the corresponding edify function write_firmware_update(). This functionality is now done by an edify extension library that lives in vendor/htc. Change-Id: I80858951ff10ed8dfff98aefb796bef009e05efb
* save the recovery log from before HTC firmware updatesDoug Zongker2010-01-211-1/+100
| | | | | | | | | | | | | | When doing a firmware (radio or hboot) update on HTC devices, save the recovery log in block 1 of the cache partition, before the firmware image and the UI bitmaps. When we boot back into recovery after the firmware update to reformat the cache partition, copy that log out of cache before reformatting it and dump it into the current invocation's log. The practical upshot of all this is that we can see the log output from radio and hboot updates. Change-Id: Ie0e89566754c88f4bed6a90d8a0aa04047b01a27
* make offsets in firmware update header not point to bad blocksDoug Zongker2010-01-131-4/+8
| | | | | | | | | | | | | hboot will apparently fail to install if the first block of the image (the one pointed to by the offset in the block 0 header) is a bad block. (Hopefully it handles subsequent bad blocks.) This change makes the MTD write code keep track of the bad blocks it has skipped over, so that the offset in the header can be adjusted to be the address of the first successfully written block. Change-Id: I45d58e32a36d0c1dbc0a7f871bd5985b6c8ff524 http://b/2358012 - passion: failure to flash hboot (bad blocks?)
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-041-0/+267
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-041-267/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+267