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

Kernel hangs [Resolved]

Altera_Forum
Honored Contributor II
1,058 Views

Hello, 

 

I've compiled the kernel with Nios II dev. kit 5.0 and Nios II Linux v1.4 for two different boards. One is a Stratix dev board professional and the other a custom board with Stratix EP1S25. The kernel hangs directly after starting. 

Linux version 2.6.11-uc0 (ullma2@ENTMPC26) (gcc version 3.4.1 (Altera Nios II 5. 0 b73))# 7 Wed Jul 6 14:12:34 WEDT 2005 uClinux/Nios II Altera Nios II support (C) 2004 Microtronix Datacom Ltd. Built 1 zonelists Kernel command line: PID hash table entries: 512 (order: 9, 8192 bytes) 

 

--edit-- 

the kernel doesn't hang, it restarts.
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
390 Views

Are you using a custom reference design or is are you using one of the ones that's provided by either Altera or us? 

 

I just tried building a kernel for the Stratix Pro using the Linux quartus project that we provide in the distribution and it compiled/started up alright...  

 

If you are using a provided reference design, how about you pm me a copy of your .config file and maybe I'll be able to see what's going on?
0 Kudos
Altera_Forum
Honored Contributor II
390 Views

Had the same with standard ep1c20 nios board compilation (o; 

 

Just make sure your reset vector and exception pointer are in the right place (o; 

 

For example on the 1c20 NIOS2 kit it expect the reset vector to be in flash (of course ;o) 

since the kernel is started from there...but exception vector is located in sdram... 

 

rick
0 Kudos
Altera_Forum
Honored Contributor II
390 Views

The problem was the exception pointer. In the full featured reference design it pointed to a "tightly coupled ..." memory. After changing this to SDRAM linux started fiine. And in the design of my custom board was a similiar problem. Thank you for the help!!

0 Kudos
Reply