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++
12748 讨论

philip lutz DE2 uclinux nios2 project , lcd16207 display

Altera_Forum
名誉分销商 II
1,575 次查看

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
0 项奖励
4 回复数
Altera_Forum
名誉分销商 II
838 次查看

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.
0 项奖励
Altera_Forum
名誉分销商 II
838 次查看

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 

>
0 项奖励
Altera_Forum
名誉分销商 II
838 次查看

hi Candido, 

plz follow this instruction: http://alterauserforums.org/forum/showthread.php?p=72262
0 项奖励
Altera_Forum
名誉分销商 II
838 次查看

Thanks! 

 

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

 

Cándido
0 项奖励
回复