[uClinux-dev] uClinux and own LCD console driver

simo.sarkka at indagon.com simo.sarkka at indagon.com
Sat Jun 7 15:04:52 EDT 2003


Hi,

...and when I tried these:

   # echo 1 > /dev/tty13
   /dev/tty13: cannot create
   # echo 1 > /dev/tty14
   /dev/tty14: cannot create

the actual devices /dev/tty13 and /dev/tty14 _did_ exists
in the /dev/ directory. In fact, all /dev/tty's give
the same error message.

- Simo

On Fri, 6 Jun 2003 simo.sarkka at indagon.com wrote:

> I have implemented LCD driver as kernel module, which
> registers itself to the linux console driver (console.c)
> as virtual terminals 13-16. The problem is how to
> configure uClinux such that I could access it normally
> through /dev/tty's.
> 
> I have managed to get the driver working in Intel based
> PC with parallel port interface, such that I can run, for
> example, mingetty on that virtual terminal as on any other
> virtual terminals. It worked (in Redhat 8.0) simply by
> writing the kernel module, no additional configuration
> related to tty's was needed. I already have tested that
> the actual LCD I/O routines work in that uClinux platform,
> but the problem is now that console/tty configuration.
> 
> I tried the following in uClinux:
> 
> - I turned on the virtual terminal support in kernel menuconfig
> 
> - Added the following entries to Makefile:
> 
> 	tty13,c,4,13  tty14,c,4,14 tty15,c,4,15  tty16,c,4,16
> 
> - I compiled the driver into say mylcd.o and did in uClinux:
> 
>     insmod mylcd.o
> 
>   which says that module has successfully registered itself
>   into virtual terminals 13-16.
> 
> Still, for example, the following commands fail:
> 
>   # echo 1 > /dev/tty13
>   /dev/tty13: cannot create
>   # echo 1 > /dev/tty14
>   /dev/tty14: cannot create
> 
> Own program, which prints out the errno-string, too, says:
> 
>   # ./console_ex /dev/tty13
>   /dev/tty13: No such device
>   # ./console_ex /dev/tty14
>   /dev/tty14: No such device




More information about the uClinux-dev mailing list