Hi hippo,
Thanks for your valuable guidance.
I have some queries here.
I checked with nios2-linux-objdump -h u-boot.
Below is the dump.
1) The .text address being 0x018e0000, which is the address of the _start function in u-boot.
Question) So up on reset, nios processor should start executing code from this address(This is my understanding). How exactly nios ii knows that it has to jump to this address.
2. If not how to make nios ii to jump there. I do not have data sheet of nios ii. could you please give me the pointer from where I can download.
3. I have working experiance with u-boot for freescale processors MPC 8540.
In this case the reset vector being 0xfffffffc . This is the last location of flash and contains jump instrction to an address where u-boot starts its .text.
I bit confused in Nios about booting sequence. Could you please let me know.
Thanks
Vijay
[root@localhost u-boot-1.1.3]# nios2-linux-objdump -h u-boot
u-boot: file format elf32-littlenios2
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00016fe1 018e0000 018e0000 00000094 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .u_boot_cmd 000003c0 018f6fe4 018f6fe4 00017075 2**2
CONTENTS, ALLOC, LOAD, DATA
2 .data 000009e8 018f73a4 018f73a4 00017435 2**2
CONTENTS, ALLOC, LOAD, DATA
3 .sdata 0000008c 018f7d90 018f7d90 00017e1d 2**2
CONTENTS, ALLOC, LOAD, DATA, SMALL_DATA
4 .sbss 00000144 018f7e1c 018f7e1c 00017ea9 2**2
ALLOC, SMALL_DATA
5 .bss 00003d70 018f7f60 018f7f60 00017ea9 2**2
ALLOC
6 .stab 000009c0 00000000 00000000 00017eac 2**2
CONTENTS, READONLY, DEBUGGING
7 .stabstr 000000b9 00000000 00000000 0001886c 2**0
CONTENTS, READONLY, DEBUGGING
8 .comment 0000034e 00000000 00000000 00018925 2**0
CONTENTS, READONLY
9 .debug_aranges 000005c0 00000000 00000000 00018c73 2**0
CONTENTS, READONLY, DEBUGGING
10 .debug_pubnames 00001b49 00000000 00000000 00019233 2**0
CONTENTS, READONLY, DEBUGGING
11 .debug_info 000111f8 00000000 00000000 0001ad7c 2**0
CONTENTS, READONLY, DEBUGGING
12 .debug_abbrev 00004130 00000000 00000000 0002bf74 2**0
CONTENTS, READONLY, DEBUGGING
13 .debug_line 00014659 00000000 00000000 000300a4 2**0
CONTENTS, READONLY, DEBUGGING
14 .debug_frame 00002bf8 00000000 00000000 00044700 2**2
CONTENTS, READONLY, DEBUGGING
15 .debug_str 0000355b 00000000 00000000 000472f8 2**0
CONTENTS, READONLY, DEBUGGING
16 .debug_ranges 00000660 0000355b 0000355b 0004a853 2**0
CONTENTS, READONLY, DEBUGGING
[root@localhost u-boot-1.1.3]#
--- Quote Start ---
originally posted by hippo@Jul 11 2006, 08:48 PM
you can find address map from sopc builder of your project.
u-boot will be linked to somewhere near the end of sdram.
check with nios2-linux-uclibc-objdump -h u-boot, to see the vma.
first try to run u-boot from sdram, it is similar to tryout linux, but u-boot replace zimage.
http://nioswiki.jot.com/wikihome/operating...s/tryoutuclinux (http://nioswiki.jot.com/wikihome/operatingsystems/tryoutuclinux)
if it works, then you can program it to flash,
http://nioswiki.jot.com/wikihome/operating...flashprogrammer (http://nioswiki.jot.com/wikihome/operatingsystems/flashprogrammer)
it will insert an altera supplied cfi boot loader, which will copy u-boot image from flash to sdram, and jump start on sdram to run u-boot.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16803)
--- quote end ---
--- Quote End ---