FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
5921 Discussions

uboot on cyclone III(EP3C25) Nios development kit

Altera_Forum
Honored Contributor II
1,252 Views

Hi, 

I am having issues with downloading uboot on NIOS processor.I am following the steps mentioned in "http://nioswiki.com/DasUBoot". As the EP3C25 Nios 2 development kit is not supported, I had to modify the uboot board level source files. 

After I compile uboot and try downloading, nios2-download just exits without giving any errors. This is how the run looks like 

 

============================================= 

user:/tmp/nios2-linux/u-boot> nios2-download -g u-boot 

Using cable "USB-Blaster [USB 1-1.1]", device 1, instance 0x00 

Pausing target processor: OK 

Initializing CPU cache (if present) 

OK 

Downloaded 149KB in 1.3s (114.6KB/s) 

Verified OK 

Starting processor at address 0xE1FC0000 

user:/tmp/nios2-linux/u-boot> 

=========================== 

 

Could anyone help me out with this? 

Also if someone has created the following files for this board, could you please share it? 

a) "include/configs/EP3C25.h", 

b) "board/altera/ep3c25/config.mk",  

c) " flash.c"  

 

Thanks for all the help, 

regards, 

priya 

 

0 Kudos
6 Replies
Altera_Forum
Honored Contributor II
350 Views

uhm... I have problems understanding your situation... what happens next? No prompt on the console? 

I personally modified u-boot files to boot some custom boards, I made some mistakes the first times, maybe I can share my errors (and solutions) with you
0 Kudos
Altera_Forum
Honored Contributor II
350 Views

yes i don't get a prompt on the console. I also get no errors so not sure how to debug. 

 

I modified the board config files looking at the ptf file from altera tools. I guess I am making some mistake in modifying these files. Have you seen something similar?  

Is there a way I can get more verbose messages from uboot? 

Thanks for all the help, 

priya
0 Kudos
Altera_Forum
Honored Contributor II
350 Views

ok, I had the same problem on a custom board, I suggest these checks: 

1) uart speed (bitrate) compatible with uart in the design  

2) uart speed in design equals uart speed in the terminal (kermit? nios2-terminal?) 

3) TEXT_BASE in config.mk and the address at which the nios2-download starts processor 

4) ./include/configs/yourboard.h contains correct values for uart address (take care of cache bypass), reset vector, exception vector, sys clock frequency. Even in this file there should be some reference (mine has) to the address at which the image is downloaded (TEXT_BASE). 

 

These are the checks I made to make my u-boot write something on the serial.
0 Kudos
Altera_Forum
Honored Contributor II
350 Views

It seems like the clock is not given, or been reset. 

Are you using jtag-uart or uart? I think you can use one or the other. 

CONFIG_SYS_NIOS_CONSOLE is the place to set. 

Be aware, if you are using mmu, your address is either 0xE******* or 0xF******* 

 

 

BTW, Do you have your own project folder at 

"board/altera/ep3c25/your_folder/all_files" 

You might want to copy all from similar projects and change them. 

Your question b) seems like incorrect to me.
0 Kudos
Altera_Forum
Honored Contributor II
350 Views

Thanks for your suggestions and sorry for the late reply. I had to fix some issues with my sof file to get this to work. 

 

But now I am having an issue with the Triple speed Ethernet (tse_mac). It is not able to find the PHY. Has anyone seen this issue before? 

 

===================================================== 

U-Boot 2009.03-00006-g3387a3e-dirty (Feb 18 2010 - 14:58:49) 

 

CPU : Nios-II 

SYSID : 0x545b4163, Wed Jun 10 18:20:16 2009 

BOARD : Altera 3C25 

*** Warning - bad CRC, using default environment 

 

Net: board eth init 

Altera TSE init 

tse_mac: PHY id 883a883a is not supported! 

tse_mac: No PHY found 

tse_mac 

Hit any key to stop autoboot: 0 

==> dhcp 

In TSE Halt 

Timeout waiting for rx sgdma! 

Timeout waiting for tx sgdma! 

TSEMAC SW reset bit never cleared! 

 

===================================================== 

thanks, 

priya
0 Kudos
Altera_Forum
Honored Contributor II
350 Views

ok i realized that uboot does not support PHY DP83848, that's why the errors.

0 Kudos
Reply