Altera_Forum
Honored Contributor
16 years agoError: Compiling uClinux with Frame Buffer (altfb.c)
Hi,
I have a Nios II Embedded Evaluation Kit and wanted to try uClinux with frame buffer on it. (Followed the instruction on http://www.nioswiki.com/operatingsystems/uclinux/framebuffer). The SOF and PTF files are for the Standard System (http://www.nioswiki.com/nios2embeddedevaluationkit) I got the following error message refering to altfb.c: /home/rask/nios2-linux/linux-2.6/drivers/video/console/fbcon.c: In function `fbcon_init': /home/rask/nios2-linux/linux-2.6/drivers/video/console/fbcon.c:1071: warning: statement with no effect /home/rask/nios2-linux/linux-2.6/drivers/video/console/fbcon.c:1073: warning: statement with no effect /home/rask/nios2-linux/linux-2.6/drivers/video/console/fbcon.c: In function `fbcon_set_disp': /home/rask/nios2-linux/linux-2.6/drivers/video/console/fbcon.c:1346: warning: statement with no effect /home/rask/nios2-linux/linux-2.6/drivers/video/console/fbcon.c:1348: warning: statement with no effect CC drivers/video/console/bitblit.o CC drivers/video/console/fonts.o CC drivers/video/console/font_8x16.o LD drivers/video/console/font.o CC drivers/video/console/softcursor.o LD drivers/video/console/built-in.o LD drivers/video/display/built-in.o CC drivers/video/altfb.o /home/rask/nios2-linux/linux-2.6/drivers/video/altfb.c: In function `altfb_mmap': /home/rask/nios2-linux/linux-2.6/drivers/video/altfb.c:87: warning: assignment makes integer from pointer without a cast /home/rask/nios2-linux/linux-2.6/drivers/video/altfb.c: In function `altfb_dma_start': /home/rask/nios2-linux/linux-2.6/drivers/video/altfb.c:191: error: `na_lcd_sgdma' undeclared (first use in this function) /home/rask/nios2-linux/linux-2.6/drivers/video/altfb.c:191: error: (Each undeclared identifier is reported only once /home/rask/nios2-linux/linux-2.6/drivers/video/altfb.c:191: error: for each function it appears in.) /home/rask/nios2-linux/linux-2.6/drivers/video/altfb.c: In function `altfb_probe': /home/rask/nios2-linux/linux-2.6/drivers/video/altfb.c:253: warning: passing arg 3 of `dma_alloc_coherent' from incompatible pointer type make[4]: *** [drivers/video/altfb.o] Fehler 1 make[3]: *** [drivers/video] Fehler 2 make[2]: *** [drivers] Fehler 2 make[1]: *** [sub-make] Fehler 2 make[1]: leaving directory '/home/rask/nios2-linux/linux-2.6' make: *** [linux] Fehler 1 Could anyone help me at this one? Thank you in advance. D.