12-11-2009 09:50 PM
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 bewhen 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!
04-11-2012 08:51 AM