diff options
Diffstat (limited to 'meta-fsl-extras/recipes/u-boot/u-boot-boundary/0002-Add-recovery-support.patch')
-rw-r--r-- | meta-fsl-extras/recipes/u-boot/u-boot-boundary/0002-Add-recovery-support.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-fsl-extras/recipes/u-boot/u-boot-boundary/0002-Add-recovery-support.patch b/meta-fsl-extras/recipes/u-boot/u-boot-boundary/0002-Add-recovery-support.patch new file mode 100644 index 0000000..d1f5616 --- /dev/null +++ b/meta-fsl-extras/recipes/u-boot/u-boot-boundary/0002-Add-recovery-support.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 33a5a73cd846c0bbf6a507aa4e658c74815eb1d7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Rainer Keller <Rainer.Keller@qt.io> | ||
3 | Date: Wed, 4 May 2016 12:49:40 +0200 | ||
4 | Subject: [PATCH] Add recovery support | ||
5 | |||
6 | --- | ||
7 | include/configs/nitrogen6x.h | 7 +++++++ | ||
8 | 1 file changed, 7 insertions(+) | ||
9 | |||
10 | diff --git a/include/configs/nitrogen6x.h b/include/configs/nitrogen6x.h | ||
11 | index bbc613d..9c939e6 100644 | ||
12 | --- a/include/configs/nitrogen6x.h | ||
13 | +++ b/include/configs/nitrogen6x.h | ||
14 | @@ -232,6 +232,11 @@ | ||
15 | "clearenv=if sf probe || sf probe || sf probe 1 ; then " \ | ||
16 | "sf erase 0xc0000 0x2000 && " \ | ||
17 | "echo restored environment to factory default ; fi\0" \ | ||
18 | + "recovery_boot=setenv recovery true ; dtype=mmc ; setenv bootpart 3 ; " \ | ||
19 | + "for disk in 0 1 ; do " \ | ||
20 | + "${dtype} dev ${disk} ; " \ | ||
21 | + "load ${dtype} ${disk}:${bootpart} 10008000 /6x_bootscript && source 10008000 ; " \ | ||
22 | + "done\0" \ | ||
23 | "bootcmd=for dtype in ${bootdevs}" \ | ||
24 | "; do " \ | ||
25 | "if itest.s \"xusb\" == \"x${dtype}\" ; then " \ | ||
26 | @@ -245,6 +250,8 @@ | ||
27 | "&& source 10008000 ; " \ | ||
28 | "done ; " \ | ||
29 | "done; " \ | ||
30 | + "echo Startup failed, running recovery ; " \ | ||
31 | + "run recovery_boot ; " \ | ||
32 | "setenv stdout serial,vga ; " \ | ||
33 | "echo ; echo 6x_bootscript not found ; " \ | ||
34 | "echo ; echo serial console at 115200, 8N1 ; echo ; " \ | ||
35 | -- | ||
36 | 2.7.3 | ||
37 | |||