Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

problems with menuconfig

Altera_Forum
Honored Contributor II
931 Views

Hello everybody!! 

 

At the beginning I must admit that I am a beginner so please prepare for some dumb questions :) 

I followed all the wiki tutorials concerning uClinux on DE2 board with Nios 2, I've built toolchain, compiled default kernel, downloaded it on device and everything looked fine (I am using .sof and .ptf also from nioswiki). But the problem is when I want to do something more than just default kernel configuration e.g. when I try to add lcd 16207 driver from the menuconfig, I have errors while building lcd_16207.o : 

drivers/char/lcd_16207.c: In function `cleanup_module': drivers/char/lcd_16207.c:362: error: void value not ignored as it ought to be when I try to add drivers for pio buttons I also have crash: 

drivers/char/altera_pio_button.o /media/disk/nios2-linux/linux-2.6/drivers/char/altera_pio_button.c:20:35: linux/devfs_fs_kernel.h: No such file or directory /media/disk/nios2-linux/linux-2.6/drivers/char/altera_pio_button.c:87: warning: initialization from incompatible pointer type /media/disk/nios2-linux/linux-2.6/drivers/char/altera_pio_button.c: In function `button_start': /media/disk/nios2-linux/linux-2.6/drivers/char/altera_pio_button.c:113: error: `SA_INTERRUPT' undeclared (first use in this function) /media/disk/nios2-linux/linux-2.6/drivers/char/altera_pio_button.c:113: error: (Each undeclared identifier is reported only once /media/disk/nios2-linux/linux-2.6/drivers/char/altera_pio_button.c:113: error: for each function it appears in.) I don't know if these are errors in .c files or I am doing something wrong... I am afraid to crash somenthing by myself so I did not edit any of these files manually.  

Thx for any help!
0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
93 Views

hi,ronix5000: 

did you have resloved your problem?I have met it too,and don't know how to do it? 

Please tell me how if you have finish it?
Altera_Forum
Honored Contributor II
93 Views

Hello, same problem for me LCD_16207.h doesn't exist in linux2.6/driver/char 

dose somebody know where comes from the problem ?
Altera_Forum
Honored Contributor II
93 Views

i use file lcd_1607.c & lcd_16207.h downloaded from this link  

 

http://www.ccm.ece.vt.edu/twiki/bin/view/main/linuxonnios2installation 

 

make, download and boot succesful
Reply