Subject: Re: LDC Support in custom kernel
To: NetBSD/cobalt <port-cobalt@NetBSD.org>
From: Dennis Chernoivanov <cdi@mawhrin.net>
List: port-cobalt
Date: 01/08/2004 21:00:54
--CE+1k2dSO48ffgeK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Thu, Jan 08, 2004 at 10:42:54AM -0500, Christopher Schultz wrote:
> I've heard people talking about an 'LCD patch' as well. Is that 
> necessary to get the LCD running on the latest kernel sources? The LCD 
> works with the 1.6.1 stock kernel that was installed off Dennis's 
> all-in-one netboot recovery CD.

 -current has built-in LCD support, no patch is required. If you upgraded from
1.6.1 to -current, create /dev/panel node using 36 as major number and try
an attached file as /etc/paneld.conf.

HTH,
--cdi

--CE+1k2dSO48ffgeK
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="paneld-current.conf"

.start='s';
# .repeat=500000;
# .resist=500000;
# .keyrate=300000;
.banner="/etc/paneld/banner.sh";
.devname="hd44780";
.devnode="/dev/panel";

.xtbl = {
	.id="select";
	.next='s';
	.enter='e';
}

.xtbl = {
	.id="edit";
	.next='l';
	.prev='h';
	.inc='k';
	.dec='j';
	.enter='e';
}

.xtbl = {
	.id="choice";
	.next='l';
	.prev='h';
	.enter='e';
}

.menu = {
	.id="root";
	.type=select;
	.title="select:";
	.xlate="select";

	.menu = {
		.id="net";
		.title="setup network";
		.type=sequence;

		.menu = {
			.id="ipaddr";
			.xlate="edit";
			.title="primary ip addr";
			.read="/etc/paneld/ifread.sh tlp0 ipaddr";
			.type=inet;
		}
		.menu = {
			.id="ipmask";
			.xlate="edit";
			.title="primary netmask";
			.read="/etc/paneld/ifread.sh tlp0 ipmask";
			.type=inet;
		}
		.menu = {
			.id="ipgw";
			.xlate="edit";
			.title="enter gateway";
			.read="/etc/paneld/ifread.sh tlp0 gw";
			.type=inet;
		}
		.menu = {
			.id="save";
			.title="save?";
			.xlate="choice";
			.type=confirm;
			.write="/etc/paneld/ifwrite.sh tlp0 $ipaddr $ipmask $ipgw";

			.menu = {
				.id="true";
				.type=none;
			}
			.menu = {
				.id="false";
				.type=none;
			}
		}
	}
	.menu = {
		.title="reboot";
		.type=sequence;

		.menu = {
			.title="reboot?";
			.xlate="choice";
			.type=confirm;
			.write="/sbin/shutdown -r now";

			.menu = {
				.id="true";
				.type=quit;
			}
			.menu = {
				.id="false";
				.type=none;
			}
		}
	}
	.menu = {
		.title="power down";
		.type=sequence;

		.menu = {
			.title="quit?";
			.xlate="choice";
			.type=confirm;
			.write="/sbin/shutdown -h now";

			.menu = {
				.id="true";
				.type=quit;
			}
			.menu = {
				.id="false";
				.type=none;
			}
		}
	}
	.menu = {
		.title="exit";
		.type=sequence;

		.menu = {
			.title="exit?";
			.xlate="choice";
			.type=confirm;

			.menu = {
				.id="true";
				.type=exit;
			}
			.menu = {
				.id="false";
				.type=none;
			}
		}
	}
}

--CE+1k2dSO48ffgeK--