From owner-freebsd-hackers@FreeBSD.ORG Fri May 20 14:46:14 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 CC51116A4CE for ; Fri, 20 May 2005 14:46:14 +0000 (GMT) Received: from smtp.iesy.net (mta002.iesy.net [81.210.131.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F37143D58 for ; Fri, 20 May 2005 14:46:13 +0000 (GMT) (envelope-from walter.pelissero@iesy.net) Received: from zaphod.home.loc (unknown [81.210.131.48]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.iesy.net (Postfix) with ESMTP id 5AABDB532; Fri, 20 May 2005 16:46:11 +0200 (CEST) Received: from zaphod.home.loc (localhost [127.0.0.1]) by zaphod.home.loc (8.13.3/8.13.3) with ESMTP id j4KEkARc036673; Fri, 20 May 2005 16:46:10 +0200 (CEST) (envelope-from wcp@zaphod.home.loc) Received: (from wcp@localhost) by zaphod.home.loc (8.13.3/8.13.1/Submit) id j4KEk9nG036670; Fri, 20 May 2005 16:46:09 +0200 (CEST) (envelope-from wcp) From: "Walter C. Pelissero" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17037.63537.511280.172143@zaphod.home.loc> Date: Fri, 20 May 2005 16:46:09 +0200 To: Larry Baird In-Reply-To: <20050520134441.75330.qmail@gta.com> References: <17037.14274.229768.369886@zaphod.home.loc> <20050520134441.75330.qmail@gta.com> X-Mailer: VM 7.19 under Emacs 22.0.50.1 X-Attribution: WP X-For-Spammers: blacklistme@pelissero.de X-MArch-Archive-Date: 2005-05-20 16:46:10 X-MArch-Archive-ID: 2300 X-MArch-Processing-Time: 0.24s X-Mailman-Approved-At: Sat, 21 May 2005 12:07:51 +0000 cc: freebsd-hackers@freebsd.org Subject: Re: WRAP.1E and geode.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: walter@pelissero.de 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 14:46:14 -0000 Larry Baird writes: > 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; Are you sure about that? Suspecting my original guessing was wrong, I took the time, while my message was put on hold by the moderator, to make some experiments. I changed the aforementioned string into: "PC Engines WRAP" and then "PC Engines" but no luck. So either the string changed address or it's something totally different from the original. -- walter pelissero http://www.pelissero.de