Hi Scott,
<div class='quotetop'>QUOTE </div>
--- Quote Start ---
Could you explain your memory organization (what RAM/SDRAM you have and where it's located)[/b]
--- Quote End ---
*SRAM (2x512 KB): 0x0200_0000 --> 0x020F_FFFF
*SDRAM (16 MB): 0x0100_0000 --> 0x01FF_FFFF
I've programmed the 1s40 standard sof in user config zone of flash (0x0040_0000) so I don't have to use everytime the quartus programmer and u-boot in 0x0000_0000
<div class='quotetop'>QUOTE </div>
--- Quote Start ---
... and what is the exception address (I'm assuming it's 0180_0020 ... otherwise the kernel would go belly up on the first interrupt after nios2-download).[/b]
--- Quote End ---
Sorry, but I don't know how nor where to get that.
<div class='quotetop'>QUOTE </div>
--- Quote Start ---
Also, the kernel image you're using is compressed ... so please post the objdump
of the
uncompressed kernel image -- that's the one I need to see. When you use this
image you should use '-C none' with mkimage (since the kernel will decompress itself).[/b]
--- Quote End ---
After a strip:
$ nios2-elf-objdump -h vmlinux
vmlinux: file format elf32-littlenios2
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 0016f840 01000000 01000000 00000094 2**3
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .data 0000e7c0 0116f840 0116f840 0016f8d4 2**2
CONTENTS, ALLOC, LOAD, DATA
2 .init 0006bbb8 0117e000 0117e000 0017e094 2**2
CONTENTS, ALLOC, LOAD, CODE
3 .bss 00015318 011e9bc0 011e9bc0 001e9c4c 2**4
ALLOC
4 .sbss 00000032 011feed8 011feed8 001e9c4c 2**0
ALLOC, SMALL_DATA
5 .eram 00000000 02000000 02000000 001e9c4c 2**0
CONTENTS
6 .romfs.data 00000000 00200000 00200000 001e9c4c 2**0
CONTENTS
7 .comment 0000189c 00000000 00000000 001e9c4c 2**0
CONTENTS, READONLY
$ ./mkimage -d vmlinux.bin -A nios2 -O linux -T kernel -n "Welcome to uClinux with MFM" -a 01200000 -e 01200000 -C none vmlinux.img
Image Name: Welcome to uClinux with MFM
Created: Fri May 12 04:51:42 2006
Image Type: Nios-II Linux Kernel Image (uncompressed)
Data Size: 2005944 Bytes = 1958.93 kB = 1.91 MB
Load Address: 0x01200000
Entry Point: 0x01200000
/cygdrive/d/u-boot-src/u-boot/mkimage
$
<div class='quotetop'>QUOTE </div>
--- Quote Start ---
Could you also please post the header objdump of u-boot (you can strip it first -- nios2-elf-strip).[/b]
--- Quote End ---
$ nios2-elf-strip u-boot
/cygdrive/d/u-boot-src/u-boot
$ nios2-elf-objdump -h u-boot
u-boot: file format elf32-littlenios2
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 000169a1 01fc0000 01fc0000 00000094 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .u_boot_cmd 000003a8 01fd69a4 01fd69a4 00016a35 2**2
CONTENTS, ALLOC, LOAD, DATA
2 .data 00000a2c 01fd6d4c 01fd6d4c 00016ddd 2**2
CONTENTS, ALLOC, LOAD, DATA
3 .bss 00003eb4 01fd7780 01fd7780 00017809 2**2
ALLOC
4 .comment 000007ba 00000000 00000000 00017809 2**0
CONTENTS, READONLY
/cygdrive/d/u-boot-src/u-boot
$