When I compile the kernel I see something like this:
UIMAGE arch/nios2/boot/vmImage
Image Name: Linux-2.6.34-00692-g5bc7853-dirt
Created: Fri Mar 25 12:05:26 2011
Image Type: NIOS II Linux Kernel Image (gzip compressed)
Data Size: 1187727 Bytes = 1159.89 kB = 1.13 MB
Load Address: 0xC0800000
Entry Point: 0xC0800000
Kernel: arch/nios2/boot/vmImage is ready
Load address is 0xC0800000
But when try download image the load address is different :
ios2-download -g images/zImage
Using cable "USB-Blaster [USB 1-1.3.3]", device 1, instance 0x00
Pausing target processor: OK
Initializing CPU cache (if present)
OK
Downloaded 3529KB in 19.3s (182.8KB/s)
Verifying C1800000 ( 0%)
Verify failed between address 0xC1800000 and 0xC180FFFF
Leaving target processor paused
He's trying load to address C1800000. Why? :(
Addresses are:
# define RESET_ADDR 0xc0800000
# define FAST_TLB_MISS_EXCEPTION_ADDR 0xc1800000
Is my nios_sopc bad created?
arch/nios2/kernel/vmlinux.lds.S: . = DDR2_TOP_BASE | KERNEL_REGION_BASE;
@gabrigob: I have the same.
in nios.h I have:
# if defined(CONFIG_NIOS2_MMU)
# include <asm/default_mmu.h>
/* Added compability mode with macro names from "old" design...
* FIXME: we should really fix drivers instead. but this makes it
* easier to switch between old and new design...
*/
# define CONFIG_ALTERA_CYCLONE_II
# define DDR2_TOP_BASE DDR_SDRAM_BASE
# define DDR2_TOP_SPAN DDR_SDRAM_SPAN
# define EXT_FLASH_BASE FLASH_BASE
# define EXT_FLASH_SPAN FLASH_SPAN
# define TIMER_1MS_FREQ SYS_CLK_TIMER_FREQ
# define TIMER_1MS_BASE SYS_CLK_TIMER_BASE
# define TIMER_1MS_SPAN SYS_CLK_TIMER_SPAN
# define TIMER_1MS_IRQ SYS_CLK_TIMER_IRQ
# else
# error "No FPGA configuration selected"
# endif