Recovery: Add support in lk to read/write recovery messages.
Add support in bootloader to intract with recovery code.
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index f36eed8..19f3701 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -43,6 +43,7 @@
#include <dev/keys.h>
#include <dev/fbcon.h>
+#include "recovery.h"
#include "bootimg.h"
#include "fastboot.h"
@@ -79,7 +80,6 @@
void reboot_device(unsigned);
void target_battery_charging_enable(unsigned enable, unsigned disconnect);
-static int boot_into_recovery = 0;
static void ptentry_to_tag(unsigned **ptr, struct ptentry *ptn)
{
@@ -440,7 +440,7 @@
}else if(reboot_mode == FASTBOOT_MODE){
goto fastboot;
}
-
+ recovery_init();
boot_linux_from_flash();
dprintf(CRITICAL, "ERROR: Could not do normal boot. Reverting "
"to fastboot mode.\n");