Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Program UBoot

Altera_Forum
Honored Contributor II
2,885 Views

Hi all, 

A couple of questions that people might be able to help me out with. There seems to be a common issue with setting up the initial boot sequence for a NIOS boot loader and whilst there is a lot of information out there I seem to be going around in circles at the moment. Here is what I'm after. 

 

I have the following system: 

 

Flash, 0x00000000 to 0x007FFFFF (i.e. 8Mb worth) 

SDRAM, 0x01000000 to 0x01FFFFFF (i.e. 16Mb worth) 

EPCS mapped in as EPCS controller peripheral at location 0x00810800 

NIOS II f core with flash/tri-state bridge and EPCS controller 

 

Reset address is set to the EPCS controller base address 

Exception address is set to 0x0100020 (i.e. into SDRAM) 

 

Now I want to put the configuration data (.sof) into the EPCS with a UBoot on top of it so that 

at boot up U-Boot will fire up from the EPCS, it (U-Boot) will then load an elf executable 

from the flash into sdram and execute it at a later point.  

When I boot up my current system I have succeeded in getting U-boot to be placed in the 

FLASH but not into the EPCS, in this arrangement it comes up correctly and the EPCS boot 

loader correctly loads u-boot out of flash and executes it. 

 

The problem I am having is getting all the parameters correct for scripting all of this so that I 

can get U-boot to come out of the epcs, can anyone suggest the correct steps to take 

(in script) to make the build happen, obviously I want to automate the, but it is being 

troublesome getting the correct parameters, also the quartus_pgm utility doesn't like 

running from within cygwin so this means having to shell out to win32 cmd to  

execute that, again anyway way around this? 

 

Regards, 

DW
0 Kudos
21 Replies
Altera_Forum
Honored Contributor II
192 Views

Ahh thanks Scott, I&#39;d skipped the -O linux on my attempts so the inconsiderate little b***ard was ignoring me during bootup. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif  

 

 

Regards,
0 Kudos
Reply