Forum Discussion
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- What is the name of the LCD peripheral? it needs to match what it's called in the driver. --- Quote End --- Copy the kernel header file lcd_16207.h to uClinux-dist/linux-2.6.x/source/drivers/char/ Goto: http://www.nioswiki.com/operatingsystems/uclinux/lcd_16207 for source file. I had to make the following modification to bypass the cache in the driver code in lcd_16207.h:
# define ADR_LCD_COMMAND na_lcd_16207_0 + 0x80000000# define ADR_LCD_READY (na_lcd_16207_0 + 0x80000000 + 4)# define ADR_LCD_DATA (na_lcd_16207_0 + 0x80000000 + 8)# define ADR_LCD_READ (na_lcd_16207_0 + 0x80000000 + 12)
In lcd_16207.c change# include "linux/lcd_16207.h" to# include "lcd_16207.h" The device name in de SOPC builder "lcd_16207_0"!! If the character driver for the display is loaded in your kernel, and you use the MSH shell which allows redirection from the echo command, you should be able to do something as simple as: switch to the MSH shell: /> msh # echo "Hello World!" > /dev/lcd16207 You will need to have the MSH shell enabled in the kernel and the 'echo' command from busybox.