Forum Discussion

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

display an image on my NEEK LCD

Hi all,

I want to learn how to use my NEEK's LCD display from uclinux.

For that reason, I want to use the lcd application that comes with the uclinux-dist (under user).

In menu xconfig, I enabled the lcd example under Misc Applications.

I download the image, start uclinux, and type lcd, I get the following output :

opening lcddma...returned -1

lcd.c is trying to open /dev/lcddma. I checked uClinux-dist/linux-2.6.x/include/asm-nios2/nios2.h and I found lcd_sgdma

I changed lcd.c to look for lcd_sgdma but kept having the same error.

Any pointers ?

Thanks

2 Replies

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

    Hi, multilane!

    I have seen your posts, lcd_test are trying.

    But KernelPanic become to, LCD is not displayed at all...

    I'm using the next version.

    HW: cycloneIII_embedded_evaluation_kit_standard.sof in neek_ocm_spi_mmu.zip.

    SW: nios2-linux-20090929.tar with Stabele Linux Kernel & Drivers.

    Using your source version, HW Could you tell me some information?

    I appreciate if you help me.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Yasuhiro and multilane,

    I am exactly trying to do the same thing.

    I use the HW neek_web_server_mmu and the SW with MMU (so nios2-linux-20090929.tar)

    Then i do menuconfig

    kernel/library/defaults selection

    [*] Default all settings (lose changes)

    [*] Customize Kernel Settings

    NiosII Configuration --->

    NiosII FPGA configuration (MMU_DEFAULT) --->

    (X) CUSTOM_FPGA

    Devices Drivers --->

    Character devices --->

    [*] Virtual terminal

    Graphics support --->

    <*> Support for frame buffer devices --->

    <*> Altera framebuffer support

    Console display driver support --->

    [ ] VGA text console (NEW)

    < > Framebuffer Console support (NEW)

    The build is OK

    But after download on the neek it do not start :

    Here is the log

    Linux/Nios II-MMU

    init_bootmem_node(?,0x326, 0x0, 0x2000)

    free_bootmem(0x326000, 0x1cda000)

    reserve_bootmem(0x326000, 0x400)

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

    Kernel command line:

    NR_IRQS:32

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

    Console: colour dummy device 80x25

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

    And it seems not to continue to start.

    Nothing appears on the screen.