From owner-freebsd-hackers@FreeBSD.ORG Fri May 20 13:51:23 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 213D916A4CE for ; Fri, 20 May 2005 13:51:23 +0000 (GMT) Received: from gta.com (gta-edge-199-20.gta.com [199.120.225.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 8795F43DD2 for ; Fri, 20 May 2005 13:51:22 +0000 (GMT) (envelope-from lab@gta.com) Received: (qmail 75331 invoked by uid 1000); 20 May 2005 13:44:41 -0000 Date: 20 May 2005 13:44:41 -0000 Message-ID: <20050520134441.75330.qmail@gta.com> From: Larry Baird To: freebsd-hackers@freebsd.org In-Reply-To: <17037.14274.229768.369886@zaphod.home.loc> X-Newsgroups: freebsd.hackers User-Agent: tin/1.5.9-20010723 ("Chord of Souls") (UNIX) (FreeBSD/4.10-RELEASE (i386)) X-Mailman-Approved-At: Sat, 21 May 2005 12:07:51 +0000 cc: "\"Walter C. Pelissero\"" Subject: Re: WRAP.1E and geode.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2005 13:51:23 -0000 In article <17037.14274.229768.369886@zaphod.home.loc> you wrote: > Reading geode.c it appears (at least to me) that the led devices are > created for the WRAP.1C but not for the WRAP.1E. > > Reading the PC-Engines documentation it looks to me as WRAP.1C and > WRAP1.E were identical when it comes to the LEDs, thus it would be > nice to have the same entries in /dev. > > Anyone with a better understanding of this platform cares to comment > on this? The BIOS id string on the wrap board has changed. Following patch for geode.c should fix the problem. Larry --- geode.c.orig Fri May 20 09:41:06 2005 +++ geode.c Fri May 20 09:42:09 2005 @@ -145,7 +145,8 @@ led1b = 20; led1 = led_create(led_func, &led1b, "error"); } else if (NULL != - bios_string(0xf9000, 0xf9000, "PC Engines WRAP.1C ", 0)) { +#define WRAP_BIOS_SIGNATURE "PC Engines WRAP" + bios_string(0xf9000, 0xf9000, WRAP_BIOS_SIGNATURE, sizeof(WRAP_BIOS_SIGNATURE - 1))) { printf("PC Engines WRAP.1C platfrom\n"); led1b = -2; led2b = -3; -- ------------------------------------------------------------------------ Larry Baird | http://www.gta.com Global Technology Associates, Inc. | Orlando, FL Email: lab@gta.com | TEL 407-380-0220, FAX 407-380-6080