Commit Graph

31 Commits

Author SHA1 Message Date
Koushik Dutta
cd9e3ce55b revert change from zinx 2010-05-25 13:14:50 -07:00
Koushik Dutta
2c3cc50356 add a utility erase_image. possible fix for d/s flashing bug from zinx 2010-05-21 10:11:05 -07:00
Koushik Dutta
bca9243339 add a static flash_image to the utilities 2010-05-06 11:50:32 -07:00
Steve Kondik
8fa54d19f1 Fix the module class fail. 2010-04-06 13:23:35 -04:00
Steve Kondik
59be31ed31 Fix the build. 2010-04-06 13:12:55 -04:00
Koushik K. Dutta
5552aa38f5 Create a static arm dump_image utility. 2010-04-05 22:25:16 -07:00
Koushik K. Dutta
16f0b49bea working erase_image and options in recovery now 2010-03-19 14:37:11 -07:00
Magnus Eriksson
75b930f396 added erase_flash, utility to erase mtd partition
primarily for platforms without engineering SPL or native fastboot support
2010-03-19 13:35:20 -07:00
Koushik K. Dutta
a85d7cc65a nandroid backup is now implemented in C 2010-03-12 17:00:58 -08:00
Koushik K. Dutta
4a8e7d2a09 tabs vs spaces. 2010-03-12 14:30:56 -08:00
Koushik K. Dutta
3836f72fbf delete script before running it, otherwise you have potential recovery loops 2010-03-11 22:17:43 -08:00
Koushik K. Dutta
f68aaaf20c run amend scripts from the command line 2010-03-07 13:39:21 -08:00
Koushik K. Dutta
99fb6fef11 merge busybox and other tools into recovery. 2010-03-03 00:42:58 -08:00
Koushik K. Dutta
36d02893cd fix build 2010-02-24 22:46:28 -08:00
Koushik K. Dutta
ff32e8c7e5 clean up 2010-02-24 13:16:43 -08:00
Koushik K. Dutta
a37e9b1f19 Patch from Magnus to fix issues with bad blocks and dumping a boot image. Need to clean up the patch a bit. Also reverted mtdutils.s to korg/eclair-release 2010-02-24 13:13:34 -08:00
Koushik K. Dutta
7400dc2700 missing file 2010-02-22 08:53:47 -08:00
Koushik K. Dutta
981b0cd1e1 roll recovery tools into a single binary. fix up nandroid to work without deviceid requirement 2010-02-22 08:53:34 -08:00
Koushik K. Dutta
1a7ee5384d add mkfstab.sh script to create an fstab on any device. clean up dump_image to use libmtdutils 2010-02-21 17:52:30 -08:00
Koushik K. Dutta
f9476fbfe8 fix build break 2010-02-21 01:02:30 -08:00
Koushik K. Dutta
c788c26397 more fixes 2010-02-20 17:25:03 -08:00
Koushik K. Dutta
8ce0be4956 nearly working nandroid, built against libc 2010-02-20 15:59:06 -08:00
Koushik K. Dutta
841b2bf352 Add static flash_image for recovery 2010-02-15 01:45:38 -08:00
Doug Zongker
22d79a5c5e make offsets in firmware update header not point to bad blocks
(This is being cherry-picked from master.)

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.

http://b/2358012 - passion: failure to flash hboot (bad blocks?)
2010-01-13 10:07:28 -08:00
Doug Zongker
17a47098d2 use MEMGETBADBLOCK to look for bad blocks when reading MTD partitions 2009-12-14 18:27:03 -08:00
Doug Zongker
20697b965c only build flash_image for eng
With the recovery image being installed by applypatch, the flash_image
tool isn't needed any more.  Continue to build it for eng just in case
it's handy for debugging.
2009-07-23 15:17:00 -07:00
Doug Zongker
bec02d57fb skip over all-zero blocks when reading MTD partition
We fail to detect certain bad blocks (marked in the factory as bad, I
think?) when reading mtd partitions.  These come back as a block of
all zeros.  Since it's fairly unlikely a legitimate boot or recovery
block will contain 128k of zeros, change mtdutils to skip over such
blocks.

Arve says https://review.source.android.com/10535 may be a long-term
fix for this, but he isn't yet sure.
2009-07-01 12:09:29 -07:00
The Android Open Source Project
c24a8e688a auto import from //depot/cupcake/@135843 2009-03-03 19:28:42 -08:00
The Android Open Source Project
ffb48f64fe auto import from //depot/cupcake/@135843 2009-03-03 18:28:14 -08:00
The Android Open Source Project
ff3d93821e Code drop from //branches/cupcake/...@124589 2008-12-17 18:03:49 -08:00
The Android Open Source Project
23580ca27a Initial Contribution 2008-10-21 07:00:00 -07:00