[U-Boot-Users] MC5282Lite evaluation board - running from external flash

Hi,
I think there is an issue when trying to run U-Boot from flash on this board. So far I was only able to boot U-Boot when I load in to the cpu's internal flash (I need to change the TEXT_BASE value to match that of the internal flash base).
When I burn the U-Boot image to external flash and run it I can see that immediately after setting the chip selects in function cpu_init_f (in /cpu/mcf52x2/cpu_init.c under the #if defined(CONFIG_M5282) block), since the program counter still points to an address that is now suddenly in RAM (since we set the external flash base address to 0xffe00000) we cannot go on (there is no code there).
Did anyone else see this problem? Was it addressed?
Thanks & regards,
Erez

Erez,
There is a error if the TEXT_BASE set to 0xffe00000. Following is the fix for the problem.
#if defined(CONFIG_R5200) .long 0x400 #elif defined(CONFIG_M5282) && (TEXT_BASE == CFG_INT_FLASH_BASE) .long _start - TEXT_BASE #else .long _START #endif
/* if we come from a pre-loader we have no exception table and * therefore no VBR to set */ #if !defined(CONFIG_MONITOR_IS_IN_RAM) #if defined(CONFIG_M5282) && (TEXT_BASE == CFG_INT_FLASH_BASE) move.l #CFG_INT_FLASH_BASE, %d0 movec %d0, %VBR #else move.l #CFG_FLASH_BASE, %d0 movec %d0, %VBR #endif /* CONFIG_M5282 */ #endif
Regards, TsiChung
-----Original Message----- From: u-boot-users-bounces@lists.sourceforge.net [mailto:u-boot-users-bounces@lists.sourceforge.net] On Behalf Of Erez Koelewyn Sent: Tuesday, October 16, 2007 11:13 AM To: u-boot-users@lists.sourceforge.net Subject: [U-Boot-Users] MC5282Lite evaluation board - running from externalflash
Hi,
I think there is an issue when trying to run U-Boot from flash on this board. So far I was only able to boot U-Boot when I load in to the cpu's internal flash (I need to change the TEXT_BASE value to match that of the internal flash base).
When I burn the U-Boot image to external flash and run it I can see that immediately after setting the chip selects in function cpu_init_f (in /cpu/mcf52x2/cpu_init.c under the #if defined(CONFIG_M5282) block), since the program counter still points to an address that is now suddenly in RAM (since we set the external flash base address to 0xffe00000) we cannot go on (there is no code there).
Did anyone else see this problem? Was it addressed?
Thanks & regards,
Erez
------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

Thank you. With this change, it boots from external flash.
On 10/16/07, Liew Tsi Chung-r5aahp Tsi-chung.Liew@freescale.com wrote:
Erez,
There is a error if the TEXT_BASE set to 0xffe00000. Following
is the fix for the problem.
#if defined(CONFIG_R5200) .long 0x400 #elif defined(CONFIG_M5282) && (TEXT_BASE == CFG_INT_FLASH_BASE) .long _start - TEXT_BASE #else .long _START #endif
/* if we come from a pre-loader we have no exception table and * therefore no VBR to set */
#if !defined(CONFIG_MONITOR_IS_IN_RAM) #if defined(CONFIG_M5282) && (TEXT_BASE == CFG_INT_FLASH_BASE) move.l #CFG_INT_FLASH_BASE, %d0 movec %d0, %VBR #else move.l #CFG_FLASH_BASE, %d0 movec %d0, %VBR #endif /* CONFIG_M5282 */ #endif
Regards, TsiChung
-----Original Message----- From: u-boot-users-bounces@lists.sourceforge.net [mailto:u-boot-users-bounces@lists.sourceforge.net] On Behalf Of Erez Koelewyn Sent: Tuesday, October 16, 2007 11:13 AM To: u-boot-users@lists.sourceforge.net Subject: [U-Boot-Users] MC5282Lite evaluation board - running from externalflash
Hi,
I think there is an issue when trying to run U-Boot from flash on this board. So far I was only able to boot U-Boot when I load in to the cpu's internal flash (I need to change the TEXT_BASE value to match that of the internal flash base).
When I burn the U-Boot image to external flash and run it I can see that immediately after setting the chip selects in function cpu_init_f (in /cpu/mcf52x2/cpu_init.c under the #if defined(CONFIG_M5282) block), since the program counter still points to an address that is now suddenly in RAM (since we set the external flash base address to 0xffe00000) we cannot go on (there is no code there).
Did anyone else see this problem? Was it addressed?
Thanks & regards,
Erez
This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

In message 4791E710007FEB4BBF83775D787F462F04C0DE53@az33exm22.fsl.freescale.net you wrote:
Erez,
There is a error if the TEXT_BASE set to 0xffe00000. Following is the fix for the problem.
#if defined(CONFIG_R5200) .long 0x400 #elif defined(CONFIG_M5282) && (TEXT_BASE == CFG_INT_FLASH_BASE) .long _start - TEXT_BASE #else .long _START #endif
If you are sure there is an error, then please post a proper patch which can be applied. See http://www.denx.de/wiki/UBoot/Patches
Best regards,
Wolfgang Denk
participants (3)
-
Erez Koelewyn
-
Liew Tsi Chung-r5aahp
-
Wolfgang Denk