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++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Console on framebuffer (NEEK)

Altera_Forum
Honored Contributor II
1,485 Views

Hi Any! 

 

With version nios2-linux-20090929.tar with stable kernel, 

I would like to display console to LCD. 

Also would like to run the program with PS2 connection keyboard. 

 

I tried with refferring to the following URL, but it have stoped during bootup. 

 

nioswiki.com/OperatingSystems/UClinux/FrameBuffer 

alteraforum.com/forum/showthread.php?t=22497 

(please add part of URL) 

 

>Linux/Nios II-MMU 

>init_bootmem_node(?,0x516, 0x0, 0x2000) 

>free_bootmem(0x516000, 0x1aea000) 

>reserve_bootmem(0x516000, 0x400) 

>Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128 

>Kernel command line: 

>Experimental hierarchical RCU implementation. 

>Experimental hierarchical RCU init done. 

>NR_IRQS:32 

>PID hash table entries: 128 (order: 7, 512 bytes) 

>Console: colour dummy device 80x25 

>console handover: boot [early0] -> real [tty0] 

 

 

The following config options seem to happen. 

 

Device Drivers --> Character devices ---> 

[* ] Support for console on virtual terminal 

 

Someone please advice... 

Thank you.
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
767 Views

dmseg the "fb0: altfb frame buffer device" message has come out. 

fb0 seems to have been confirmed. 

 

After booting the kernel and run the application. 

/Dev/fb0 has open, mmap() call... 

Kernel Panic occurred here. 

 

>> /app/lcd_test# ./lcd_test 

>> The framebuffer device was opened successfully.BUG: failure at /usr/sira/nio 

>> s2-linux/linux-2.6/mm/mmap.c:2121/exit_mmap()! 

>> Kernel panic - not syncing: BUG! 

>> 

>> IMG_X_SIZE defined 20 

>> IMG_Y_SIZE defined 10 

>> xres is 21 

>> yres is 11 

>> bytes per pixel is 4 

>> screensize is 693 

>> finfo.smem_len is 1536000 

>> Error: failed to map framebuffer device to memory. 

 

Which version are you do you run Framebuffer? 

Please tell me the clue to this problem. 

 

I appreciate if you help me.
0 Kudos
Altera_Forum
Honored Contributor II
767 Views

Sorry, lacked information. 

Remove the option, first trying to determine just FrameBuffer are working. 

 

Device Drivers --> Character devices ---> 

[* ] Support for console on virtual terminal 

 

best regards.
0 Kudos
Reply