diff --git a/Makefile b/Makefile
index dec6355217247f1dacade5425dcf26fac284805a..c2e47d4034af7a1182659e879ae872cf7f22ebbf 100644
--- a/Makefile
+++ b/Makefile
@@ -2122,13 +2122,6 @@ pb1000_config		: 	unconfig
 	@echo "#define CONFIG_PB1000 1" >>$(obj)include/config.h
 	@$(MKCONFIG) -a pb1x00 mips mips pb1x00
 
-#========================================================================
-# AVR32
-#========================================================================
-#########################################################################
-## AT32AP7xxx
-#########################################################################
-
 #########################################################################
 ## MIPS64 5Kc
 #########################################################################
@@ -2248,6 +2241,16 @@ stamp_config	:	unconfig
 dspstamp_config	:	unconfig
 	@$(MKCONFIG) $(@:_config=) blackfin bf533 dsp_stamp
 
+#========================================================================
+# AVR32
+#========================================================================
+#########################################################################
+## AT32AP7xxx
+#########################################################################
+
+atstk1002_config	:	unconfig
+	@./mkconfig $(@:_config=) avr32 at32ap atstk1000 atmel at32ap7000
+
 #########################################################################
 #########################################################################
 #########################################################################
diff --git a/board/atmel/atstk1000/u-boot.lds.S b/board/atmel/atstk1000/u-boot.lds
similarity index 92%
rename from board/atmel/atstk1000/u-boot.lds.S
rename to board/atmel/atstk1000/u-boot.lds
index d46b82ceb2358998d6745ee071a8585d7852132f..ef89ea4dfa53d696cb47d5fb1ab6e06f76192632 100644
--- a/board/atmel/atstk1000/u-boot.lds.S
+++ b/board/atmel/atstk1000/u-boot.lds
@@ -20,27 +20,25 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  * MA 02111-1307 USA
  */
-#include <config.h>
-
 OUTPUT_FORMAT("elf32-avr32", "elf32-avr32", "elf32-avr32")
 OUTPUT_ARCH(avr32)
 ENTRY(_start)
 
 SECTIONS
 {
-	. = CFG_FLASH_BASE;
+	. = 0;
 	_text = .;
 	.text : {
 		*(.text)
 		*(.text.*)
 	}
 
-	. = ALIGN(CFG_ICACHE_LINESZ);
+	. = ALIGN(32);
 	__flashprog_start = .;
 	.flashprog : {
 		*(.flashprog)
 	}
-	. = ALIGN(CFG_ICACHE_LINESZ);
+	. = ALIGN(32);
 	__flashprog_end = .;
 
 	. = ALIGN(8);
@@ -51,7 +49,7 @@ SECTIONS
 	_etext = .;
 
 	__data_lma = ALIGN(8);
-	. = CFG_INTRAM_BASE;
+	. = 0x24000000;
 	_data = .;
 	.data : AT(__data_lma) {
 		*(.data)