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

Error: Compiling uClinux with Frame Buffer (altfb.c)

Altera_Forum
Honored Contributor II
1,490 Views

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.
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
705 Views

Please try this design and select "NEEK" platform in kernel config. 

 

http://www.nioswiki.com/@api/deki/files/115/=neek_ocm_spi.zip 

 

- Hippo
0 Kudos
Altera_Forum
Honored Contributor II
705 Views

Thank you Hippo. 

 

As for frame buffer, your design worked out. Unfortunatly I got an error refering to atkbd.c

 

altps2 : base 88001420 irq 9 

mice: PS/2 mouse device common for all mice 

ads7846 spi1.0: touchscreen, irq 4 

input: ADS784x Touchscreen as /class/input/input0 

TCP cubic registered 

NET: Registered protocol family 17 

RPC: Registered udp transport module. 

RPC: Registered tcp transport module. 

Freeing unused kernel memory: 1664k freed (0x20c000 - 0x3ab000) 

Shell invoked to run file: /etc/rc 

Command: hostname uClinux 

Command: mount -t proc proc /proc -o noexec,nosuid,nodev 

Command: mount -t sysfs sysfs /sys -o noexec,nosuid,nodev 

Command: mount -t devpts devpts /dev/pts -o noexec,nosuid 

Command: mount -t usbfs none /proc/bus/usb 

atkbd.c: keyboard reset failed on altps2.0 

 

mount: mounting none on /proc/bus/usb failed: No such file or directory 

Command: mkdir /var/tmp 

Command: mkdir /var/log 

Command: mkdir /var/run 

Command: mkdir /var/lock 

Command: mkdir /var/empty 

Command: ifconfig lo 127.0.0.1 

Command: route add -net 127.0.0.0 netmask 255.0.0.0 lo 

Command: cat /etc/motd 

Welcome to 

____ _ _ 

/ __| ||_|  

_ _| | | | _ ____ _ _ _ _  

| | | | | | || | _ \| | | |\ \/ / 

| |_| | |__| || | | | | |_| |/  

| ___\____|_||_|_| |_|\____|\_/\_/ 

| | 

|_| 

 

For further information check: 

http://www.uclinux.org/ 

 

Execution Finished, Exiting 

 

Sash command shell (version 1.1.1) 

/> atkbd.c: keyboard reset failed on altps2.0 

 

Due to using the keyboard won't work. 

 

Have you some advice on this one? 

 

Thanks. 

 

D.
0 Kudos
Altera_Forum
Honored Contributor II
705 Views

It doesn't matter. Or you can connect a ps2 keyboard. You can still run nano-X if you configure it to "no keyboard", make user/microwin_clean; make . 

 

- Hippo
0 Kudos
Altera_Forum
Honored Contributor II
705 Views

Hi Hippo, 

Same error occured when I was compiling Frame Buffer appliction for DE2-70 board. 

LD usr/built-in.o 

CC drivers/video/altfb.o 

/home/muhammet/Desktop/nios2-linux/linux-2.6/drivers/video/altfb.c: In function `altfb_mmap': 

/home/muhammet/Desktop/nios2-linux/linux-2.6/drivers/video/altfb.c:87: warning: assignment makes integer from pointer without a cast 

/home/muhammet/Desktop/nios2-linux/linux-2.6/drivers/video/altfb.c: In function `altfb_dma_start': 

/home/muhammet/Desktop/nios2-linux/linux-2.6/drivers/video/altfb.c:236: error: `na_vga_controller_0' undeclared (first use in this function) 

/home/muhammet/Desktop/nios2-linux/linux-2.6/drivers/video/altfb.c:236: error: (Each undeclared identifier is reported only once 

/home/muhammet/Desktop/nios2-linux/linux-2.6/drivers/video/altfb.c:236: error: for each function it appears in.) 

/home/muhammet/Desktop/nios2-linux/linux-2.6/drivers/video/altfb.c:236: warning: initialization makes integer from pointer without a cast 

/home/muhammet/Desktop/nios2-linux/linux-2.6/drivers/video/altfb.c: In function `altfb_probe': 

/home/muhammet/Desktop/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] Error 1 

make[3]: *** [drivers/video] Error 2 

make[2]: *** [drivers] Error 2 

make[1]: *** [sub-make] Error 2 

make[1]: Leaving directory `/home/muhammet/Desktop/nios2-linux/linux-2.6' 

make: *** [linux] Error 1 

----------------------------------------- 

I dont findd the solution on the internet. 

Could you help me to solve problem? 

 

Thank You
0 Kudos
Altera_Forum
Honored Contributor II
705 Views

Hi mmkaya 

 

I've just had exactly the same error while trying to make a uClinux image for DE2 board, but adding microwindows. 

I've followed the configs mentioned on 

nioswiki.com/OperatingSystems/UClinux/FrameBuffer 

Did you finally succeed to do so ? 

Hope you can help me 

Thank you 

 

Flo
0 Kudos
Altera_Forum
Honored Contributor II
705 Views

Hi Flo, 

 

Yes,I have succedeed to run compiling after changing something according to other entries on the internet.It was six months ago so I can not remember the solution of error exactly.But I can say you can find the solution from google as I have done. 

 

If you cannot find any solution, give a me a word. 

I can make a try to that issue. 

 

Best Regards
0 Kudos
Altera_Forum
Honored Contributor II
705 Views

Thank you mmkaya, 

 

Actually I didn't found any solution from google. 

I've succedded by changing the name of the VGA controller in the SOPC Builder in Quartus : VGA_0 --> vga_controller_0 

So the variable na_VGA_0 which was created becomes na_vga_controller_0 and then it works fine. 

 

Best regards
0 Kudos
Reply