mx6: repair sl and slx load addresses
PATCH 1/1 mx6: repair sl and slx load addresses
Commit 8183058188cd ("imx6: centralise common boot options in mx6_common.h") changed the LOADADDR and SYS_TEXT_BASE for all mx6 boards, setting them to 0x12000000 and 0x17800000 respectively.
This does not work for i.MX6SL and i.MX6 SoloX based boards, which have their DDR starting at 0x80000000.
We allow to override LOADADDR from mx6_common.h and restore previous LOADADDR and SYS_TEXT_BASE for SL and SoloX based boards.
This repairs the boot for i.MX6 SoloX Sabre SD, and should also repair SL EVK and Warp board.
---
Hi,
This patch repairs for sure mx6sxsabresd with latest u-boot.
I am pretty sure that mx6slevk and warp are broken in current u-boot and are repaired by this patch, but I cannot test, only compile.
Also, I noticed that the following boards have different LOADADDR and/or SYS_TEST_BASE after the aforementioned commit:
- cm_fx6
- novena
- tbs2910
The current patch does not touch those and assumes they still work with latest u-boot. Maybe a test or two to confirm would not harm...
Testers welcome!
Best regards,
V.
include/configs/mx6_common.h | 2 ++ include/configs/mx6slevk.h | 3 +++ include/configs/mx6sxsabresd.h | 3 +++ include/configs/warp.h | 3 +++ 4 files changed, 11 insertions(+)
include/configs/mx6_common.h +2 -0
@@ -53,7 +53,9 @@#define CONFIG_REVISION_TAG /* Boot options */ +#ifndef CONFIG_LOADADDR #define CONFIG_LOADADDR 0x12000000 +#endif #define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR#ifndef CONFIG_SYS_TEXT_BASE #define CONFIG_SYS_TEXT_BASE 0x17800000
include/configs/mx6slevk.h +3 -0
@@ -9,6 +9,9 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_LOADADDR 0x82000000 +#define CONFIG_SYS_TEXT_BASE 0x87800000 +#include "mx6_common.h" #define MACH_TYPE_MX6SLEVK 4307
include/configs/mx6sxsabresd.h +3 -0
@@ -10,6 +10,9 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_LOADADDR 0x80800000 +#define CONFIG_SYS_TEXT_BASE 0x87800000 +#include "mx6_common.h" #ifdef CONFIG_SPL
include/configs/warp.h +3 -0
@@ -13,6 +13,9 @@#ifndef __CONFIG_H#define __CONFIG_H +#define CONFIG_LOADADDR 0x82000000 +#define CONFIG_SYS_TEXT_BASE 0x87800000 +#include "mx6_common.h" /* Size of malloc() pool */
Signature · 1 line
2.1.4
PATCH 1/1 mx6: repair sl and slx load addresses
Quoted 11 lines
Also, I noticed that the following boards have different LOADADDR and/or
SYS_TEST_BASEafter the aforementioned commit:-
cm_fx6
- novena
- tbs2910The current patch does not touch those and assumes they still work with latest u-boot. Maybe a test or two to confirm would not harm...
Testers welcome!
I tested on tbs2910, there is no problem with the consolidated LOADADDR and SYS_TEST_BASE on this board.
Regards,
Soeren