Re: How can I add a function to the kernel initialization

2001-04-15 Thread James Simmons
Is this a HD44780 LCD? Geert wrote a console driver sometime ago for this. He had a driver for it. If he still doesn't I have a copy of the code. MS: (n) 1. A debilitating and surprisingly widespread affliction that renders the sufferer barely able to perform the simplest task. 2. A disease. Ja

Re: How can I add a function to the kernel initialization

2001-04-11 Thread Padraig Brady
These things usually sit off a serial port. I.E. /dev/lcd is a link to /dev/ttyS0 or whatever. Anyway the main point is you don't have access to libc. So how can you access the serial port from the booting kernel. Well to spit kernel messages out the serial port you pass the console=ttyS1,19200 or

Re: How can I add a function to the kernel initialization

2001-04-11 Thread Bart Trojanowski
First it does not work because you do not have access to libc in the kernel. Secondly your LCD driver is not available at the time of start_kernel so there is no one to listen to the /dev/lcd. The quickest hack would be to find your lcd driver and modify it to spit out the Loading Kernel, after

How can I add a function to the kernel initialization

2001-04-11 Thread antonpoon
I have written a driver for a character set LCD module using parallel port. I want to display a message when the kernel is initialized. I added the following to start_kernel() in init/main.c #include { int i; char line = "Loading Kernel"; FILE *ptr; ptr = fopen("/dev/lcd","w");