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 回复数
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.
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 >