Forum Discussion

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

philip lutz DE2 uclinux nios2 project , lcd16207 display

Hi,

Somebody has run the philip lutz project ?

When the Makefile build de2_lcd16207 and button object modules there is some errors ( doc adjunt) ,

i need some configuration before compile these modules?

Thanks

4 Replies

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

    Hi candido,

    In de2_lcd_16207.c, u have to change the function cleanup_module() to

    
    void cleanup_moduel()
    {
                      unregister_chrdev(MAJOR_NUMBER, DEVICE_NAME);
    }
    

    And ignore the other components in that function.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks

    i have download lcd16702.c and lcd16702.h from nios2wiki and both installed in /linux2.6/drivers/char

    i have edit lcd16702.c -> cleanup function

    i have edit romfs-list

    nod /dev/lcd16702 666 0 0 c 250 0

    nod /dev/switches ......... and others philip lutz pio drivers

    make menuconfig -> customize kernel ->platform -> DE2 altera

    ->drivers->char->lcd16702

    ->drivers-misc->philip-> leds ,switches, seg7

    ->customize application-> hush shell and busybox

    make : no errors

    make linux image : no errors

    i have then download the image to nios2 soft

    open nios2-terminal

    > hush

    # echo 255 > /dev/leds_red -> no problem -> 8 leds on

    # echo 255 > /dev/leds_green -> no problem

    # cat /dev/switches -> no problem

    # echo AAAA > dev/seg7 -> no problem

    # echo "hello" > /dev/lcd16207 ->FAILED: NOTHING OCURR-> lcd with default message: Wellcome to Altera Board

    ¿ Some trick? I have begin studyin linux drivers oreilly book.

    I have tried too with default lcd16702 uclinux-dist drivers but there is no lcd16207.h headers file in /linux/

    Thanks

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

    Thanks!

    getting instrucction from nioswiki and that post about cache skip i have get run the lcd driver!

    Cándido