[Lcd-linux] Re-vitalizing lcd-linux for Raspberry Pi?
Brought to you by:
mjona
From: Sven G. <li...@fu...> - 2013-09-17 12:27:16
|
Hello, looking for a more generic Solution than this one: http://learn.adafruit.com/drive-a-16x2-lcd-directly-with-a-raspberry-pi (lots of userland GPIO fiddling) I found http://lcd-linux.sourceforge.net/ I would prefer using this because this would allow for running ncurses compatible applications on HD44780 compatible displays, right? Two Questions: * Is it possible to compile your code for recent Kernels? Raspberry Pi is currently at 3.6.x AFAIR For now I ended up with the following error: lcd-linux-0.13.9/ > make - KERNEL_SRC_DIR: /lib/modules/3.7.9-01010-gc1bd951/build - DESTDIR: /lib/modules/3.7.9-01010-gc1bd951/misc make TOPDIR=wd -f wd/Makefile -C lcd-linux lcd-linux.o make[1]: Entering directory /home/geg/download/lcd-linux-0.13.9/lcd-linux' touch /home/geg/download/lcd-linux-0.13.9/include/lcd-linux.ver gcc -D__KERNEL__ -DMODULE -I/lib/modules/3.7.9-01010-gc1bd951/build/include -I/home/geg/download/lcd-linux-0.13.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-common -fomit-frame-pointer -pipe -fno-strict-aliasing -include "/home/geg/download/lcd-linux-0.13.9/include/lcd-linux.ver" -include "/home/geg/download/lcd-linux-0.13.9/include/asename lcd-linux.o .o.ver" -DEXPORT_SYMTAB -c lcd-linux.c -o /home/geg/download/lcd-linux-0.13.9/modules/lcd-linux.o In file included from /lib/modules/3.7.9-01010-gc1bd951/build/include/linux/thread_info.h:11:0, from /lib/modules/3.7.9-01010-gc1bd951/build/include/linux/preempt.h:9, from /lib/modules/3.7.9-01010-gc1bd951/build/include/linux/spinlock.h:50, from /lib/modules/3.7.9-01010-gc1bd951/build/include/linux/semaphore.h:13, from lcd-linux.c:50: /lib/modules/3.7.9-01010-gc1bd951/build/include/linux/bug.h:4:21: fatal error: asm/bug.h: No such file or directory compilation terminated. make[1]: *** [lcd-linux.o] Error 1 make[1]: Leaving directory /home/geg/download/lcd-linux-0.13.9/lcd-linux' make: *** [default] Error 2 * Am I right in the assumption, that your code has been written for a HD44780 connected to a parallel port? If so, how much effort would it be to port your code to the generic Kernel GPIO or even I2C Interface? Regards Sven -- Das allgemeine Persönlichkeitsrecht (Art. 2 Abs.1 i.V.m. Art.1 Abs. 1GG) umfasst das Grundrecht auf Gewährleistung der Vertraulichkeit und Integrität informationstechnischer Systeme. (BVerfG, 1BvR 370/07) /me is giggls@ircnet, http://sven.gegg.us/ on the Web |