]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - patches/0096-ENGR00121779-Support-a-single-kernel-image-on-MX5x-p.patch
imported Ka-Ro specific additions to U-Boot 2009.08 for TX28
[karo-tx-uboot.git] / patches / 0096-ENGR00121779-Support-a-single-kernel-image-on-MX5x-p.patch
1 From e84eaf4df6db1f4038580ec88d3e4a49624363eb Mon Sep 17 00:00:00 2001
2 From: Dinh Nguyen <Dinh.Nguyen@freescale.com>
3 Date: Fri, 19 Mar 2010 13:15:13 -0500
4 Subject: [PATCH] ENGR00121779 Support a single kernel image on MX5x parts
5
6 This change is required by kernel change ENGR00121762
7 (enables a single kernel image on MX5x parts using run-time phys_offset).
8 Load address and Entry points are set for MX53 parts(0x7xxxxxxx).
9 So the bootloader must add the offset 0x20000000 for MX51 parts.
10
11 Signed-off-by: Lily Zhang <r58066@freescale.com>
12 ---
13  common/cmd_bootm.c |    7 +++++++
14  1 files changed, 7 insertions(+), 0 deletions(-)
15
16 diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
17 index 86c8122..f43b472 100644
18 --- a/common/cmd_bootm.c
19 +++ b/common/cmd_bootm.c
20 @@ -713,6 +713,13 @@ static image_header_t *image_get_kernel (ulong img_addr, int verify)
21                 return NULL;
22         }
23  
24 +#if defined(CONFIG_MX51_BBG) || defined(CONFIG_MX51_3DS)
25 +       if (image_get_load(hdr) < 0x90000000)
26 +               image_set_load(hdr, image_get_load(hdr)+0x20000000);
27 +       if (image_get_ep(hdr) < 0x90000000)
28 +               image_set_ep(hdr, image_get_ep(hdr)+0x20000000);
29 +#endif
30 +
31         show_boot_progress (3);
32         image_print_contents (hdr);
33  
34 -- 
35 1.5.4.4
36