summaryrefslogtreecommitdiffstats
path: root/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-vf/0001-Update-only-u-boot.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-vf/0001-Update-only-u-boot.patch')
-rw-r--r--meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-vf/0001-Update-only-u-boot.patch62
1 files changed, 62 insertions, 0 deletions
diff --git a/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-vf/0001-Update-only-u-boot.patch b/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-vf/0001-Update-only-u-boot.patch
new file mode 100644
index 0000000..f096c2e
--- /dev/null
+++ b/meta-fsl-extras/recipes/u-boot/u-boot-script-toradex/colibri-vf/0001-Update-only-u-boot.patch
@@ -0,0 +1,62 @@
1From 2b11117dcc616843a6dce1a5e97fcecefa7e3f4b Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@qt.io>
3Date: Wed, 14 Sep 2016 10:22:27 +0300
4Subject: [PATCH] Update only u-boot
5
6---
7 flash_blk.scr | 6 +++---
8 flash_eth.scr | 6 +++---
9 2 files changed, 6 insertions(+), 6 deletions(-)
10
11diff --git a/flash_blk.scr b/flash_blk.scr
12index 401c47a..8fa5af9 100644
13--- a/flash_blk.scr
14+++ b/flash_blk.scr
15@@ -11,7 +11,7 @@ setenv update_kernel 'fatload ${interface} 0:1 ${loadaddr} ${board_name}/zImage
16 setenv update_fdt 'fatload ${interface} 0:1 ${loadaddr} ${board_name}/${soc}-colibri-${fdt_board}.dtb && ubi write ${loadaddr} dtb ${filesize}'
17 setenv update_rootfs 'fatload ${interface} 0:1 ${loadaddr} ${board_name}/ubifs.img && ubi write ${loadaddr} rootfs ${filesize}'
18
19-setenv update_new 'run update_uboot; run prepare_ubi && run update_kernel && run update_fdt && run update_rootfs; reset'
20+setenv update_new 'run update_uboot; reset'
21
22 # Upgrade part 1, write new U-Boot, but with old ECC format still...
23 # Store config block temporarly in memory at kernel_addr_r.
24@@ -19,10 +19,10 @@ setenv upgrade_part1 'run update_uboot && nand read ${kernel_addr_r} 0x800 0x20
25 setenv upgrade_part1_msg 'Successfully updated U-Boot, NAND upgrade required. Enter "reset", interrupt boot process and enter "run setupdate; run upgrade_part2" to complete upgrade.'
26
27 # Upgrade part 2, use new ECC format for the whole device...
28-setenv upgrade_part2 'run create_bcb && nand write ${kernel_addr_r} 0x800 0x20 && run update_uboot && nand erase.part ubi && run update_rootfs && echo ${upgrade_part2_msg}'
29+setenv upgrade_part2 'run create_bcb && nand write ${kernel_addr_r} 0x800 0x20 && run update_uboot && echo ${upgrade_part2_msg}'
30 setenv upgrade_part2_msg 'Successfully upgraded module, enter "reset" to restart the module.'
31
32 # fsl_nfc indicates old NAND format (24-bit ECC), start migration process
33 setenv update 'mtdparts default && if test "${mtdids}" = "nand0=fsl_nfc"; then; run upgrade_part1; else run update_new; fi'
34
35-echo 'enter "run update" to update the entire module'
36+echo 'enter "run update" to update the uboot'
37diff --git a/flash_eth.scr b/flash_eth.scr
38index 15aab1c..aa98b3a 100644
39--- a/flash_eth.scr
40+++ b/flash_eth.scr
41@@ -11,7 +11,7 @@ setenv update_kernel 'tftpboot ${loadaddr} ${board_name}/zImage && ubi write ${l
42 setenv update_fdt 'tftpboot ${loadaddr} ${board_name}/${soc}-colibri-${fdt_board}.dtb && ubi write ${loadaddr} dtb ${filesize}'
43 setenv update_rootfs 'tftpboot ${loadaddr} ${board_name}/ubifs.img && ubi write ${loadaddr} rootfs ${filesize}'
44
45-setenv update_new 'run update_uboot; run prepare_ubi && run update_kernel && run update_fdt && run update_rootfs; reset'
46+setenv update_new 'run update_uboot; reset'
47
48 # Upgrade part 1, write new U-Boot, but with old ECC format still...
49 # Store config block temporarly in memory at kernel_addr_r.
50@@ -19,10 +19,10 @@ setenv upgrade_part1 'run update_uboot && nand read ${kernel_addr_r} 0x800 0x20
51 setenv upgrade_part1_msg 'Successfully updated U-Boot, NAND upgrade required. Enter "reset", interrupt boot process and enter "run setupdate; run upgrade_part2" to complete upgrade.'
52
53 # Upgrade part 2, use new ECC format for the whole device...
54-setenv upgrade_part2 'run create_bcb && nand write ${kernel_addr_r} 0x800 0x20 && run update_uboot && nand erase.part ubi && run update_rootfs && echo ${upgrade_part2_msg}'
55+setenv upgrade_part2 'run create_bcb && nand write ${kernel_addr_r} 0x800 0x20 && run update_uboot && echo ${upgrade_part2_msg}'
56 setenv upgrade_part2_msg 'Successfully upgraded module, enter "reset" to restart the module.'
57
58 # fsl_nfc indicates old NAND format (24-bit ECC), start migration process
59 setenv update 'mtdparts default && if test "${mtdids}" = "nand0=fsl_nfc"; then; run upgrade_part1; else run update_new; fi'
60
61-echo 'enter "run update" to update the entire module'
62+echo 'enter "run update" to update the uboot'