Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

Program UBoot

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

21 Replies