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

Problem with framebuffer from nioswiki

Altera_Forum
Honored Contributor II
971 Views

Hello, 

i try to build a custum linux kernel with framebuffer from nioswiki. I build a nios 2 system with sopc builder with nios2,jtag uart,timer,sdram and vga controller for the terasic de1 board. The vga controller works in nios2 ide with the sample c code from nioswiki. The default uclinux kernel works also with this system.  

When i try to enable the framebuffer in kernel config i get this error : 

 

drivers/built-in.o(.text+0xfa0): In function `fb_mmap': 

drivers/video/fbmem.c:1219: undefined reference to `io_remap_pfn_range' 

make[1]: *** [vmlinux] Fehler 1 

make: *** [linux] Fehler 1
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
266 Views

i solved the problem http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif  

i had to define io_remap_pfn_range in /include/asm-nios2nommu/pgtable.h 

 

#define io_remap_pfn_range    remap_pfn_range
0 Kudos
Altera_Forum
Honored Contributor II
266 Views

updated the patches for pgtable.h .

0 Kudos
Reply