Skip to contentSkip to conversation

Fix: AT91SAM9263 nor flash usage Fix: board doesn't boot from norflash Fix: environment can't write to flash (end address/start address not on sector boundary)

PATCH New Jens Scharsig (BuS Elektronik) 2 participants 4 messages Mar 19, 2012 – Jun 28, 2012 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix: AT91SAM9263 nor flash usage Fix: board doesn't boot from norflash Fix: environment can't write to flash (end address/start address not on sector boundary)

---
 include/configs/at91sam9263ek.h |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
include/configs/at91sam9263ek.h +6 -2
index 8399246..f02f245 100644
@@ -33,7 +33,11 @@
  */
 #include <asm/hardware.h>
 
+#ifndef CONFIG_SYS_USE_BOOT_NORFLASH
 #define CONFIG_SYS_TEXT_BASE		0x21F00000
+#else
+#define CONFIG_SYS_TEXT_BASE		0x0000000
+#endif
 
 /* ARM asynchronous clock */
 #define CONFIG_SYS_AT91_MAIN_CLOCK	16367660 /* 16.367 MHz crystal */
@@ -148,11 +152,11 @@
 #define CONFIG_SYS_MONITOR_BASE	CONFIG_SYS_FLASH_BASE
 #define CONFIG_SYS_MONITOR_LEN	(256 << 10)
 #define CONFIG_ENV_IS_IN_FLASH	1
-#define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + 0x007FE000)
+#define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + 0x007E0000)
 #define CONFIG_ENV_ADDR_REDUND	(CONFIG_ENV_ADDR - CONFIG_ENV_SIZE)
 
 /* Address and size of Primary Environment Sector */
-#define CONFIG_ENV_SIZE		0x2000
+#define CONFIG_ENV_SIZE		0x10000
 
 #define xstr(s)   str(s)
 #define str(s)	#s
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 Fix: AT91SAM9263 nor flash usage Fix: board doesn't boot from norflash Fix: environment can't write to flash (end address/start address not on sector boundary)

Sorry about malformed subject

regards

Jens

#2 lore raw

PATCH 1/1 Fix: AT91SAM9263 nor flash usage

In reply to Jens Scharsig (BuS Elektronik)

Fix: board doesn't boot from norflash
Fix: environment can't write to flash (end address/start address not on sector boundary)

---
 include/configs/at91sam9263ek.h |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
include/configs/at91sam9263ek.h +6 -2
index 8399246..f02f245 100644
@@ -33,7 +33,11 @@
  */
 #include <asm/hardware.h>
 
+#ifndef CONFIG_SYS_USE_BOOT_NORFLASH
 #define CONFIG_SYS_TEXT_BASE		0x21F00000
+#else
+#define CONFIG_SYS_TEXT_BASE		0x0000000
+#endif
 
 /* ARM asynchronous clock */
 #define CONFIG_SYS_AT91_MAIN_CLOCK	16367660 /* 16.367 MHz crystal */
@@ -148,11 +152,11 @@
 #define CONFIG_SYS_MONITOR_BASE	CONFIG_SYS_FLASH_BASE
 #define CONFIG_SYS_MONITOR_LEN	(256 << 10)
 #define CONFIG_ENV_IS_IN_FLASH	1
-#define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + 0x007FE000)
+#define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + 0x007E0000)
 #define CONFIG_ENV_ADDR_REDUND	(CONFIG_ENV_ADDR - CONFIG_ENV_SIZE)
 
 /* Address and size of Primary Environment Sector */
-#define CONFIG_ENV_SIZE		0x2000
+#define CONFIG_ENV_SIZE		0x10000
 
 #define xstr(s)   str(s)
 #define str(s)	#s
Signature · 1 line
1.7.3.4
#3 lore raw

PATCH 1/1 Fix: AT91SAM9263 nor flash usage Fix: board doesn't boot from norflash Fix: environment can't write to flash (end address/start address not on sector boundary)

In reply to Jens Scharsig (BuS Elektronik)

Dear Jens Scharsig,

Quoted 27 lines · Jens Scharsig (BuS Elektronik)
---
 include/configs/at91sam9263ek.h |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
include/configs/at91sam9263ek.h +4 -0
index 8399246..f02f245 100644
@@ -33,7 +33,11 @@
  */
 #include <asm/hardware.h>
 
+#ifndef CONFIG_SYS_USE_BOOT_NORFLASH
 #define CONFIG_SYS_TEXT_BASE		0x21F00000
+#else
+#define CONFIG_SYS_TEXT_BASE		0x0000000
+#endif
 
 /* ARM asynchronous clock */
 #define CONFIG_SYS_AT91_MAIN_CLOCK	16367660 /* 16.367 MHz crystal */
@@ -148,11 +152,11 @@
 #define CONFIG_SYS_MONITOR_BASE	CONFIG_SYS_FLASH_BASE
 #define CONFIG_SYS_MONITOR_LEN	(256 << 10)
 #define CONFIG_ENV_IS_IN_FLASH	1

include/configs/at91sam9263ek.h line 162

Quoted 10 lines
include/configs/at91sam9263ek.h +2 -2
-#define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + 0x007FE000)
+#define CONFIG_ENV_ADDR		(CONFIG_SYS_FLASH_BASE + 0x007E0000)
 #define CONFIG_ENV_ADDR_REDUND	(CONFIG_ENV_ADDR - CONFIG_ENV_SIZE)
 
 /* Address and size of Primary Environment Sector */
-#define CONFIG_ENV_SIZE		0x2000
+#define CONFIG_ENV_SIZE		0x10000
 
 #define xstr(s)   str(s)
 #define str(s)	#s

applied to u-boot-atmel/master, thanks!

Best regards

Andreas Bie?mann