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

de2 will not start after flashing

Altera_Forum
Honored Contributor II
921 Views

Hello everyone, 

i know its a common problem, but i cant get it to work. 

 

Altera DE2 with uClinux NOMMU again. Quartus Webedition for Linux. 

 

I want to permanently flash uClinux onto my board, everything works, but after a reset the board is dim and it will not start. 

 

Obviously it dont gets the reset to wake up. 

 

 

Here is what i did: 

I followed  

http://www.nioswiki.com/operatingsystems/uclinux/flashprogrammer 

I am using DE2_NET example v1.6 from the terasic homepage. 

 

nios2-configure-sof /home/user/nios2-linux/de2_net.sof 

cd uClinux-dist/images/ 

sof2flash --epcs --input=/home/user/nios2-linux/de2_net.sof --output=standard.flash 

nios2-flash-programmer --epcs --base=0x00680800 standard.flash 

elf2flash --base=0x00000000 --end=0x3fffff --reset=0x0 --input=zImage --output=ext_flash.flash --boot=/opt/altera9.1sp2/nios2eds/components/altera_nios2/boot_loader_cfi.srec 

nios2-flash-programmer --base=0x00000000 ext_flash.flash --go 

 

With the --go the board resets and everything works fine. 

But no luck after reset. 

 

After another 

nios2-configure-sof /home/user/nios2-linux/de2_net.sof 

The board boots up without a problem. But i have to do this manually. 

 

I had a look with sopc_builder. 

At "more cpu0 settings nios2" it says: 

Reset Adress cfi_flash_0 0x0 0x0 

Exception Adress sd_ram0 0x0 0x00800000 

 

In make vendor_hwselect i choose: 

--- Please select a device to execute kernel from: 

(1) sdram_0 

Class: altera_avalon_new_sdram_controller 

Size: 8388608 bytes 

 

 

Any ideas? I am stuck. 

 

Thanks and have a nice weekend.
0 Kudos
0 Replies
Reply