diff options
author | Amaury Pouly <amaury.pouly@gmail.com> | 2014-01-21 19:01:34 +0100 |
---|---|---|
committer | Amaury Pouly <amaury.pouly@gmail.com> | 2014-01-21 19:01:34 +0100 |
commit | 6022d3100a31266d48d89c4eaa562ed58a1f1909 (patch) | |
tree | ceb650f475fffd661ae8ccef62f905e967cee742 /rbutil/mkimxboot/main.c | |
parent | cddf388f766adce344b3a45c05c33121e9d68873 (diff) |
mkimxboot: tool can now recreate a stub to recover from very low battery
Several devices, including the Fuze+ have great trouble recovering from
very low battery states, even in the presence of USB power. This is partly
due to buggy Sigmatel boot stubs and Rockbox bootloader doing unsafe power
operations on boot (should be fixed soon). In such a state, it is impossible
to boot either the OF and Rockbox, so only the recovery mode is available.
With this commit, mkimxboot can now create a very small stub which only
does one thing but does it well: setup charging to recover from any situation.
It does not provide a fancy charging screen or whatever, screen will just
stay black and the device will slowly charge at ~100mA. When the battery is
back to a normal level, just unplug and boot normally.
Change-Id: Ib50880af85ed1f4f64a7eed0f2221e73c889c351
Diffstat (limited to 'rbutil/mkimxboot/main.c')
-rw-r--r-- | rbutil/mkimxboot/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rbutil/mkimxboot/main.c b/rbutil/mkimxboot/main.c index 79f23a6778..23a15cf4ea 100644 --- a/rbutil/mkimxboot/main.c +++ b/rbutil/mkimxboot/main.c @@ -131,6 +131,8 @@ int main(int argc, char *argv[]) type = IMX_SINGLEBOOT; else if(strcmp(optarg, "recovery") == 0) type = IMX_RECOVERY; + else if(strcmp(optarg, "charge") == 0) + type = IMX_CHARGE; else { printf("Invalid boot type '%s'\n", optarg); |