Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1F6BW9-0007y0-4y for mharc-grub-devel@gnu.org; Mon, 06 Feb 2006 13:55:17 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F6BW6-0007vp-Jp for grub-devel@gnu.org; Mon, 06 Feb 2006 13:55:14 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F6BW4-0007vI-Qs for grub-devel@gnu.org; Mon, 06 Feb 2006 13:55:14 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F6BW4-0007vF-NG for grub-devel@gnu.org; Mon, 06 Feb 2006 13:55:12 -0500 Received: from [80.68.90.107] (helo=irulan.endorphin.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1F6BVf-0001fL-Lg for grub-devel@gnu.org; Mon, 06 Feb 2006 13:54:47 -0500 Received: from ghanima (chello080108077214.34.11.tuwien.teleweb.at [80.108.77.214]) by irulan.endorphin.org (Postfix) with ESMTP id 2A2483C9E0 for ; Mon, 6 Feb 2006 18:58:15 +0000 (GMT) From: Clemens Fruhwirth To: grub-devel@gnu.org X-Mailer: MH-E 7.84; nmh 1.1; XEmacs 21.5 (beta23) Date: Mon, 06 Feb 2006 19:51:37 +0100 Sender: clemens@ghanima.endorphin.org Message-Id: <20060206185815.2A2483C9E0@irulan.endorphin.org> Subject: PCI config space patcher X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2006 18:55:15 -0000 Hi folks, I have had a problem with VIA chipsets. I abused GRUB to solve it. The intermediate product is a PCI config space patcher in GRUB. Not that it's anything new, as GRUB already contains proper PCI in netboot. However, I added a command line interface so it's available at boot. If you are interested in the story: http://clemens.endorphin.org/weblog/archives/2006-02.shtml#e2006-02-06T13_08_37.txt If you are interested in the patch: http://clemens.endorphin.org/patches/grub-pci-config-space-patcher.diff I haven't spend much time beautifying this patch, simply because I want to get your oppinions first, so I won't waste my time. The patch also permanently enables NETBOOT_SUPPORT, because the PCI code is part of netboot. Also I kicked the optimization in cmdline.c to rely on lexical ordering of the command names. That's seems smart, but isn't. I spend almost 60 minutes figuring out why the command I added at the end of the builtin_table doesn't show up at boot. So, you see the optimization isn't worth the hassle. It's not like we have a million command names to search through. -- Fruhwirth Clemens - http://clemens.endorphin.org for robots: sp4mtrap@endorphin.org