From owner-freebsd-hackers@FreeBSD.ORG Sat May 21 11:46:22 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 744CE16A4CE for ; Sat, 21 May 2005 11:46:22 +0000 (GMT) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77BB443D98 for ; Sat, 21 May 2005 11:46:21 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1DZSQu-000Iph-35; Sat, 21 May 2005 14:46:20 +0300 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: walter@pelissero.de In-reply-to: Your message of Fri, 20 May 2005 03:05:06 +0200 . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 21 May 2005 14:46:19 +0300 From: Danny Braniss Message-ID: cc: hackers@freebsd.org 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: Sat, 21 May 2005 11:46:22 -0000 you'll have to fiddel with src/sys/i386/i386/geode.c look for bios_string(0xf9000, 0xf9000, "PC Engines WRAP.1C " and you will see why. this patch should work: --- 5.3/src/sys/i386/i386/geode.c Sun Nov 21 16:01:04 2004 +++ 5.4/src/sys/i386/i386/geode.c Wed Jun 16 12:47:07 2004 @@ -144,16 +144,9 @@ printf("Soekris Engineering NET4801 platform\n"); led1b = 20; led1 = led_create(led_func, &led1b, "error"); - } - else { - const u_char *p = bios_string(0xf9000, 0xf9010, "PC Engines", 0); - - if (NULL != p) { - int n = strlen(p); - - if(n > 2 && p[n-2] == '\r') - n -= 2; - printf("%.*s\n", n, p); + } else if (NULL != + bios_string(0xf9000, 0xf9000, "PC Engines WRAP.1C ", 0)) { + printf("PC Engines WRAP.1C platfrom\n"); led1b = -2; led2b = -3; led3b = -18; @@ -167,8 +160,6 @@ led_func(&led1b, 1); } } - } -