summaryrefslogtreecommitdiff
path: root/recipes-bsp/u-boot
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2017-04-11 10:00:21 -0500
committerJohn Klug <john.klug@multitech.com>2017-04-24 11:43:23 -0500
commitf10f41b2b160d0c45580851202c5ac66932366e9 (patch)
tree4c31f853f3a9ede297342872f63d740124edc14f /recipes-bsp/u-boot
parent15d63924bce5d059519b1ef2a1da7f9d357bb32f (diff)
downloadmeta-multitech-f10f41b2b160d0c45580851202c5ac66932366e9.tar.gz
meta-multitech-f10f41b2b160d0c45580851202c5ac66932366e9.tar.bz2
meta-multitech-f10f41b2b160d0c45580851202c5ac66932366e9.zip
Print out CRC in correct order.
Diffstat (limited to 'recipes-bsp/u-boot')
-rw-r--r--recipes-bsp/u-boot/u-boot-2012.10/u-boot-env-crc-dbg.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/recipes-bsp/u-boot/u-boot-2012.10/u-boot-env-crc-dbg.patch b/recipes-bsp/u-boot/u-boot-2012.10/u-boot-env-crc-dbg.patch
index 3671645..418a734 100644
--- a/recipes-bsp/u-boot/u-boot-2012.10/u-boot-env-crc-dbg.patch
+++ b/recipes-bsp/u-boot/u-boot-2012.10/u-boot-env-crc-dbg.patch
@@ -2,7 +2,7 @@
Print out CRC values for environment
diff --git a/common/env_nand.c b/common/env_nand.c
-index 79e8033..9a9bac7 100644
+index 79e8033..5536a39 100644
--- a/common/env_nand.c
+++ b/common/env_nand.c
@@ -83,15 +83,22 @@ int env_init(void)
@@ -19,14 +19,14 @@ index 79e8033..9a9bac7 100644
+ calc_crc = crc32(0, tmp_env2->data, ENV_SIZE);
+ crc2_ok = calc_crc == tmp_env2->crc;
+ printf("env_relocate_spec: crc2_ok=%d saved crc=0x%x calculated crc=0x%x flags=%d\n",
-+ crc2_ok,calc_crc,tmp_env2->crc,tmp_env2->flags);
++ crc2_ok,tmp_env2->crc,calc_crc,tmp_env2->flags);
#endif
tmp_env1 = env_ptr;
- crc1_ok = crc32(0, tmp_env1->data, ENV_SIZE) == tmp_env1->crc;
+ calc_crc = crc32(0, tmp_env1->data, ENV_SIZE);
+ crc1_ok = saved_crc == tmp_env1->crc;
+ printf("env_relocate_spec: crc1_ok=%d saved crc=0x%x calculated crc=0x%x flags=%d\n",
-+ crc1_ok,calc_crc,tmp_env1->crc,tmp_env1->flags);
++ crc1_ok,tmp_env1->crc,calc_crc,tmp_env1->flags);
if (!crc1_ok && !crc2_ok) {
gd->env_addr = 0;
@@ -48,11 +48,11 @@ index 79e8033..9a9bac7 100644
+ calc_crc = crc32(0, tmp_env1->data, ENV_SIZE);
+ crc1_ok = calc_crc == tmp_env1->crc;
+ printf("env_relocate_spec: crc1_ok=%d saved crc=0x%x calculated crc=0x%x flags=%d\n",
-+ crc1_ok,calc_crc,tmp_env1->crc,tmp_env1->flags);
++ crc1_ok,tmp_env1->crc,calc_crc,tmp_env1->flags);
+ calc_crc = crc32(0, tmp_env2->data, ENV_SIZE);
+ crc2_ok = calc_crc == tmp_env2->crc;
+ printf("env_relocate_spec: crc2_ok=%d saved crc=0x%x calculated crc=0x%x flags=%d\n",
-+ crc2_ok,calc_crc,tmp_env2->crc,tmp_env2->flags);
++ crc2_ok,tmp_env2->crc,calc_crc,tmp_env2->flags);
if (!crc1_ok && !crc2_ok) {
set_default_env("!bad CRC");