Subject: Re: LCD driver?
To: None <port-cobalt@netbsd.org>
From: Dennis Chernoivanov <cdi@mawhrin.net>
List: port-cobalt
Date: 03/18/2003 21:30:40
Kernel sources are not included on the recovery CD, you have to download them
manually. Once you got the sources on your Cobalt box the kernel can be built
as usual (see e.g.
http://www.mclink.it/personal/MG2508/nbsdeng/chap-kernel.html). Also please
note that the LCD patch mentioned in the email cited below is only applicable
to 1.6 kernel. -current has LCD support by default.

Hope this helps,
--cdi

On Tue, Mar 18, 2003 at 01:04:20PM -0600, Bob Bostwick wrote:
> How do I compile it?  I have been trying for almost a month now, I didn't
> want to ask, but I can not figure it out.
> I know I have to re-build my kernel, but I really don't know how and all the
> documentation I have read points to files that do not exist once the machine
> has been built from the recovery CD.
> 
> Any pointers would be greatly appreciated.
> 
>  
> Regards,
>  
> Bob Bostwick
> Digitech Systems, Inc.
>  
> 
> 
> -----Original Message-----
> From: port-cobalt-owner@netbsd.org [mailto:port-cobalt-owner@netbsd.org] On
> Behalf Of Randy Carpenter
> Sent: Sunday, January 19, 2003 11:40 PM
> To: Dennis Chernoivanov
> Cc: port-cobalt@netbsd.org
> Subject: Re: LCD driver?
> 
> 
> 
> I got it to compile, and boot.  It gets rid of the annoying "Starting up"
> message, but doesn't seem to do anything else.
> 
> -Randy
> 
> --
> | Randy Carpenter             http://www.rune.net
> | The Rune Network                 Wapakoneta, OH
> -------------------------------------------------
> 
> On Mon, 20 Jan 2003, Dennis Chernoivanov wrote:
> 
> > Date: Mon, 20 Jan 2003 00:32:29 +0100
> > From: Dennis Chernoivanov <cdi@mawhrin.net>
> > To: port-cobalt@netbsd.org
> > Subject: Re: LCD driver?
> >
> >
> > JFYI -- recently I wrote a MI driver which supports both the LCD panel 
> > and buttons, it is currently being reviewed by the port maintainer. If 
> > anyone wants to give it a try please download the patch using the link 
> > below, apply it to the 1.6 kernel and then let me know if it works.
> >
> >  http://only.mawhrin.net/~cdi/netbsd/cobalt/hd44780.diff.gz
> >
> > The driver still needs some testing, indeed.
> >
> > SY,
> > --cdi
> >
> > On Sun, Jan 19, 2003 at 08:26:50AM -0500, Jake Baillie wrote:
> > > > Date: Sun, 19 Jan 2003 01:38:19 -0500 (EST)
> > > > From: Randy Carpenter <rcarpen@rune.net>
> > > > To: port-cobalt@netbsd.org
> > > > Subject: LCD driver?
> > > >
> > > >
> > > > Has any progress been made in getting the LCD panel to work, and 
> > > > maybe even the buttons?  I see some discussion in the list 
> > > > archives from about a
> > > > year ago, but nothing recent.
> > >
> > > I'm actually trying to get it to work now with the 1.6 kernel. I 
> > > patched the sources, but had to make a little modification to 
> > > /usr/src/ sys/arch/cobalt/cobalt/conf.c because it has changed since 
> > > the diff was released. Check out the diff and add things where they 
> > > logically make sense. I must have done this improperly, because 
> > > unfortunately, I still cannot compile:
> > >
> > > [root@enid:/usr/src/sys/arch/cobalt/compile/enidLCD] # make [...]
> > > cc  -EL -G 0 -mno-abicalls -mno-half-pic -ffreestanding  -O2 -Werror -
> > > Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-
> > > prototypes -Wstrict-prototypes -Wno-uninitialized  -Dcobalt -I.  -I../
> > > ./../../arch -I../../../.. -nostdinc -DMIPS3 -DMIPS3_5200 -
> > > D__NO_SOFT_SERIAL_INTERRUPT -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -
> > > D_KERNEL_OPT   -c /usr/src/sys/arch/cobalt/compile/enidLCD/../../../../
> > > arch/cobalt/cobalt/conf.c
> > > cc1: warnings being treated as errors
> > > /usr/src/sys/arch/cobalt/compile/enidLCD/../../../../arch/cobalt/cobalt
> > > /conf.c:158: warning: implicit declaration of function `cdev_lcd_init'
> > > /usr/src/sys/arch/cobalt/compile/enidLCD/../../../../arch/cobalt/cobalt
> > > /conf.c:158: `lcd' undeclared here (not in a function)
> > > /usr/src/sys/arch/cobalt/compile/enidLCD/../../../../arch/cobalt/cobalt
> > > /conf.c:158: warning: missing braces around initializer
> > > /usr/src/sys/arch/cobalt/compile/enidLCD/../../../../arch/cobalt/cobalt
> > > /conf.c:158: warning: (near initialization for `cdevsw[34]')
> > > /usr/src/sys/arch/cobalt/compile/enidLCD/../../../../arch/cobalt/cobalt
> > > /conf.c:158: initializer element is not constant
> > > /usr/src/sys/arch/cobalt/compile/enidLCD/../../../../arch/cobalt/cobalt
> > > /conf.c:158: (near initialization for `cdevsw[34].d_open')
> > > *** Error code 1
> > >
> > > Stop.
> > > make: stopped in /usr/src/sys/arch/cobalt/compile/enidLCD
> > >
> > > Maybe someone can help both you and I out. :)
> > >
> > > -- jb
> > >
> >
>