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

Kernel Compile Errors: Nios2 v1.1

Altera_Forum
Honored Contributor II
1,734 Views

Using Nios2 v1.1, Microtronix uClinux v.2.6. 

 

I receive these errors when compiling the kernel. they have something to do with timer0 in my system but I don't know what. 

 

Do I need to be aware of any naming conventions for the items in my system? (i.e. timer_0 vs timer0?) 

 

Is it possible for me to get any information about these errors in this forum? 

 

Kind Status Priority Description Resource In Folder Location 

Error error: invalid type argument of `->'[/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/arch/nios2nommu/kernel/time.c] sm3k_kernel line 71 

Error error: invalid type argument of `->'[/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/arch/nios2nommu/kernel/time.c] sm3k_kernel line 111 

Error error: invalid type argument of `->'[/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/arch/nios2nommu/kernel/time.c] sm3k_kernel line 112 

Error error: invalid type argument of `->'[/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/arch/nios2nommu/kernel/time.c] sm3k_kernel line 115
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
1,037 Views

Can you pass me your nios2_system.h file and the associated PTF file so I can take a look at it? I'll send you my e-mail through a PM file and post the results back here in this thread so that everyone can benefit.

0 Kudos
Altera_Forum
Honored Contributor II
1,037 Views

Ken: 

 

Thanks for helping out. Check your Email for the files you requested. 

 

Nick
0 Kudos
Altera_Forum
Honored Contributor II
1,037 Views

Just so everyone is in the know, there is code that re-maps various C symbols that represent hardware devices to the names expected by the kernel. 

 

There is a bug in release v1.3 that requires the first programmable timer in your system to not be called timer0

 

We are currently in dicussions at Microtronix about how to best release patches for the distribution to correct these issues for everyone. 

 

Please feel free to PM me for more information.
0 Kudos
Reply