summaryrefslogtreecommitdiffstats
path: root/meta-fsl-extras/recipes
diff options
context:
space:
mode:
authorRainer Keller <rainer.keller@digia.com>2014-09-05 15:13:47 +0200
committerRainer Keller <rainer.keller@theqtcompany.com>2014-11-04 09:54:05 +0200
commitf309d05bccefc29977d474df734fecbe311f8f7b (patch)
tree331826a59f9f810d91c85de160e118a2b9963bf0 /meta-fsl-extras/recipes
parent1279b50a2c67c388617407d704b1141fa659bca9 (diff)
downloadmeta-boot2qt-f309d05bccefc29977d474df734fecbe311f8f7b.tar.gz
Add b2qt-update-framework
Change-Id: Iaefed14f1d2bfecb436c2bfa68c94ffe74672128 Reviewed-by: Samuli Piippo <samuli.piippo@digia.com>
Diffstat (limited to 'meta-fsl-extras/recipes')
-rw-r--r--meta-fsl-extras/recipes/u-boot/u-boot-script-boundary/0002-nitrogen6x-update.patch29
1 files changed, 16 insertions, 13 deletions
diff --git a/meta-fsl-extras/recipes/u-boot/u-boot-script-boundary/0002-nitrogen6x-update.patch b/meta-fsl-extras/recipes/u-boot/u-boot-script-boundary/0002-nitrogen6x-update.patch
index 995e418..dd699d8 100644
--- a/meta-fsl-extras/recipes/u-boot/u-boot-script-boundary/0002-nitrogen6x-update.patch
+++ b/meta-fsl-extras/recipes/u-boot/u-boot-script-boundary/0002-nitrogen6x-update.patch
@@ -11,9 +11,16 @@ diff --git a/board/boundary/nitrogen6x/6x_bootscript-yocto.txt b/board/boundary/
11index 5bc6170..4116ed4 100644 11index 5bc6170..4116ed4 100644
12--- a/board/boundary/nitrogen6x/6x_bootscript-yocto.txt 12--- a/board/boundary/nitrogen6x/6x_bootscript-yocto.txt
13+++ b/board/boundary/nitrogen6x/6x_bootscript-yocto.txt 13+++ b/board/boundary/nitrogen6x/6x_bootscript-yocto.txt
14@@ -1,3 +1,64 @@ 14@@ -1,3 +1,67 @@
15+# Boot2Qt update part begin 15+# Boot2Qt update part begin
16+echo "Boot to Qt" 16+echo "Boot to Qt"
17+mw.b 0x13000000 0x76 1 # v
18+mw.b 0x13000001 0x75 1 # u
19+mw.b 0x13000002 0x74 1 # t
20+mw.b 0x13000003 0x69 1 # i
21+
22+fdtaddr=0x12000000
23+
17+if test "x$boot2qt_update_state" = "x" ; then 24+if test "x$boot2qt_update_state" = "x" ; then
18+ setenv boot2qt_update_state valid 25+ setenv boot2qt_update_state valid
19+ saveenv 26+ saveenv
@@ -21,10 +28,6 @@ index 5bc6170..4116ed4 100644
21+ 28+
22+# This is a workaround because environment partition is read-only. 29+# This is a workaround because environment partition is read-only.
23+if fatload mmc 1:1 0x12000000 update/state ; then 30+if fatload mmc 1:1 0x12000000 update/state ; then
24+ mw.b 0x13000000 0x76 1 # v
25+ mw.b 0x13000001 0x75 1 # u
26+ mw.b 0x13000002 0x74 1 # t
27+
28+ if cmp.b 0x12000000 0x13000000 1 ; then 31+ if cmp.b 0x12000000 0x13000000 1 ; then
29+ echo "State: Valid" 32+ echo "State: Valid"
30+ setenv boot2qt_fat_state valid 33+ setenv boot2qt_fat_state valid
@@ -49,21 +52,21 @@ index 5bc6170..4116ed4 100644
49+ 52+
50+ # Guess dtb name 53+ # Guess dtb name
51+ dtbname="imx6"; 54+ dtbname="imx6";
52+ if itest.s x6S != "x\$cpu" ; then 55+ if itest.s x6S != "x$cpu" ; then
53+ dtbname=\${dtbname}q-; 56+ dtbname=${dtbname}q-;
54+ else 57+ else
55+ dtbname=\${dtbname}s-; 58+ dtbname=${dtbname}s-;
56+ fi 59+ fi
57+ 60+
58+ if itest.s x == "x\$board" ; then 61+ if itest.s x == "x$board" ; then
59+ board=sabrelite 62+ board=sabrelite
60+ fi 63+ fi
61+ dtbname=\${dtbname}\${board}.dtb; 64+ dtbname=${dtbname}${board}.dtb;
62+ 65+
63+ fatload mmc 1:1 0x10800000 update/uImage 66+ fatload mmc 1:1 ${loadaddr} update/uImage
64+ fatload mmc 1:1 0x12000000 update/${dtbname} 67+ fatload mmc 1:1 ${fdtaddr} update/${dtbname}
65+ fatload mmc 1:1 0x13000000 update/uRamdisk 68+ fatload mmc 1:1 0x13000000 update/uRamdisk
66+ bootm 0x10800000 0x13000000 0x12000000 69+ bootm ${loadaddr} 0x13000000 ${fdtaddr}
67+fi 70+fi
68+ 71+
69+if test "x$boot2qt_fat_state" = "xtesting" || test "x$boot2qt_update_state" = "xtesting"; then 72+if test "x$boot2qt_fat_state" = "xtesting" || test "x$boot2qt_update_state" = "xtesting"; then