Forum Discussion
Altera_Forum
Honored Contributor
11 years agoHi,
--- Quote Start --- There is a LCD driver( http://www.alterawiki.com/wiki/lcd_16207 ). Can I compile It for this linux without recompiling the kernel? --- Quote End --- It's possible to compile driver modules without recompiling the kernel each time, but you may once compile it and make the 'linux-2.6.x' folder. The attached file includes the sample code of LCD 16207. Please extract it and copy 'lcd_16207.ko' to your SD or somewhere. To load the module, type
insmod lcd_16207.ko
('modprobe' will not work). After the verbose messages, if you get
...
reltype 12 0x38 name:<device_release>
Applying relocate section 16 to 15
reltype 12 0xbc name:<init_module>
reltype 12 0x104 name:<cleanup_module>
Device /dev/lcd16207 registered
then make a 'device file' by typing
mknod /dev/lcd16207 c 250 0
and you can send your message to the LCD by
echo "Hello LCD!" > /dev/lcd16207
. If you want to recompile this module, please refer the header comments of the source file 'lcd_16207.c'. Kazu