Commit Graph

23 Commits

Author SHA1 Message Date
codeworkx 9c4c8e2c66 bml_over_mtd: Take care of bad blocks on "boot" partition for Samsung Galaxy S Phones.
The Samsung Galaxy S bootloader apparently expects the kernel to be flashed to BML-managed flash - bad erase blocks will be mapped from a reservoir area.
CWM however just skips bad blocks, the usual procedure for mtd-accessed flash.
Consequently, the bootloader sees a corrupt zImage, and will usually crash when the kernel initializes.
This of course will only happen when the "boot" partition has bad blocks.

This patch was written by "eifert" and adds a tool called "bml_over_mtd" for flashing boot images which takes care of bad blocks and maps them to a reservoir area, like BML does.

Change-Id: If570717a19b879d47d70d937a0751cd85853eacd
2011-04-25 11:16:41 -07:00
Koushik Dutta 19447c0550 Refactor recovery's block device handling to work across variant hardware in a cleaner fashion.
Re add firmware update

Change-Id: I699ad22390ed14e597d17a7bcb32ad1b1af00b4b

support mmc misc

Change-Id: Iff02f8d03db6835f501d052140cebeefee521305

fix compile errors

Change-Id: I032edbd157a8a15f561bb83330c715ebaa008d18

fix compile errors

Change-Id: Idff3449be3376f22fceefc2c35637527f8df8f3f

Initial work to clean up the block devices.

Change-Id: I4be20ac124864a281be9cd116e211a2618404a27

all done

Change-Id: I0338f62f6a045556ebe90b0200685be113178319

fix up nandroid

Change-Id: I886f00271183e6d2921c080b0939341f2cf12a4d
2010-11-10 23:31:34 -08: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 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 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 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
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