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++
12748 Discussions

NIOS2-DOWNLOAD (Verify Error) Help Please

Altera_Forum
Honored Contributor II
1,475 Views

Hello All, i am new to NIOS 2 and am in need of some help. 

 

I have worked myself up to building a custom NIOS 2 processor and have built a uClinux kernal for the NIOS 2 processor and have created the zImage File 

 

When downloading it to my DE2 board (Cyclone II FPGA) with the NIOS 2 Core already on it. It successfully programs the device and then has a verify Error. AS follows: 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

/cygdrive/c/fpga/uclinux 

[sopc builder]$ nios2-download -g -r zimage 

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

Resetting and pausing target processor: OK 

Initializing CPU cache (if present) 

OK 

Downloaded 1195KB in 14.4s (82.9KB/s) 

Verifying 00500000 ( 0%) 

Verify failed between address 0x500000 and 0x502A2D 

Leaving target processor paused 

/cygdrive/c/fpga/uclinux 

[SOPC Builder]$[/b] 

--- Quote End ---  

 

 

I don&#39;t know how to get arround this error at this stage and am finding it difficult to fix. 

 

can any one help 

I am using NIOS II SDK 6.1, and Quartus II 6.1 

I have read a similar topic click here (http://forum.niosforum.com/forum/index.php?showtopic=6552) which says there is a problem with the SOF version releases for the DE2 (Version 1.3-1.5) and i should use version 1.1 however i haev no idea what i am to do. Is there another way. 

 

Many Thanks
0 Kudos
9 Replies
Altera_Forum
Honored Contributor II
760 Views

Seems you will need to recompile your kernel, make difference HWSELECT according to suitable .ptf. 

Then see
0 Kudos
Altera_Forum
Honored Contributor II
760 Views

have you tried the TryOutuClinux tutorial on the wiki? if you got that to work then it seems as if you need to rerun "make vendor_hwselect SYSPTF=/your.path/system_0.ptf" before you make any customizations to your kernel.

0 Kudos
Altera_Forum
Honored Contributor II
760 Views

I upadted the wiki to use DE2 v1.5 as example, included the regenerated sof. 

I hope this can reduce the confusion.
0 Kudos
Altera_Forum
Honored Contributor II
760 Views

Hey Everyone 

I am rather new and am folloing a document made by another student made in a rush. i have already picked up and fixed a few things but have hit a wall and no one else cant help as they have not done it either. 

I don&#39;t know what updating the WIKI is or how to do it yet do you know of any good articals i can read?. 

 

I followed the document to the smallest point except with a fresh copy of NIOS 6.1 and Quartus 6.1 from the web. 

 

I rebuilt the KERNAL, and the NIOS II Process again but same prob 

 

I have noticed that in the system_0.ptf file that there is no refference to address 00500000 instead it is on 00800000 or 80000000 etc could this have anything to with the problem (i think because it is tying to write and verify from base 00500000). 

 

Would it help if i provided the System_0.ptf and the output of the builds? 

 

Ill work through the doco again and start from scratch. if i have the same prob ill check back and try the tutorials sugested. if it works ill let you know. 

 

If you would like i could also provide the project file for anyone that wants to check if it is ok. I would be most greatfull 

 

Thanks again.
0 Kudos
Altera_Forum
Honored Contributor II
760 Views

I updated the wiki to use DE2 support disc v1.5 (instead of v1.1) and QuartusII 7.0 as examples. 

Please check again the try-out, with new zImage and sof. 

http://nioswiki.jot.com/wikihome/operating...s/tryoutuclinux (http://nioswiki.jot.com/wikihome/operatingsystems/tryoutuclinux

Then try with the new ptf to build kernel image. 

http://nioswiki.jot.com/wikihome/operating...nux/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux/uclinuxdist

 

There is a "diff" function on the wiki, and you can find out what was changed.
0 Kudos
Altera_Forum
Honored Contributor II
760 Views

How do i update the WIKI is it in thoes documents you linked me to?

0 Kudos
Altera_Forum
Honored Contributor II
760 Views

 

--- Quote Start ---  

originally posted by rstep@Apr 4 2007, 01:00 PM 

how do i update the wiki is it in thoes documents you linked me to? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22780) 

--- quote end ---  

 

--- Quote End ---  

 

I means, I had updated the wiki doc. I use DE2 disc v1.5 for examples now. 

 

1. you should try out the new sof and zImage attached in the wiki. 

 

2. you should use the new ptf, and do vendor_hwselect again to build your own zImage.
0 Kudos
Altera_Forum
Honored Contributor II
760 Views

Ok Groovie ill try that, But befor then can you have a look at my schematic for the NIOS 2 Processor, After applying the DE2_Pins_Assignment file there are a few Output pins that dont get assigned pins. 

I have looked at the document and the file and see that there could eb a possible error but am unsure 

DRAM_BS i assume should be DRAM_BA and there are entries in the DE2_Pins_Assignment file as DRAM_BA_0 and DRAM_BA_0 

as for the DRAM_DQM there is no pins assigned to them but in the file there are the DRAM_UDQM and DRAM_LDQM 

should i change the Pins addigment to suit the ones in the file or shopuld i change the file so that the pins are assigned automatically to the manes i have on the schematic? 

http://img88.imageshack.us/img88/5370/niosiiscmsw1.th.jpg (http://img88.imageshack.us/my.php?image=niosiiscmsw1.jpg

 

Many Thanks
0 Kudos
Altera_Forum
Honored Contributor II
760 Views

Hey its all OK now i managed to get it to work. 

The prob was with the DE2_pin_assigment file. The names within for the pins wher not the same as in the document when the document said to use thoes names with the file. 

I looked at the names and edited the pin numbers according to the DE2 User manual and it works. 

 

YAY. thatks for your help ill still read the stuff you linked me to after i catch up on lost time. 

 

Thanks again and ill post on my progress getting this thing on the web and serving out pages 

 

Many Thanks
0 Kudos
Reply