Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Console on framebuffer (NEEK)

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.

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.