PCI config space patcher
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.
Signature · 2 lines
Fruhwirth Clemens - http://clemens.endorphin.org for robots: [email protected]
Clemens Fruhwirth <[email protected]> writes:
Hi Clemens,
Quoted 5 lines
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.
This list is about GRUB 2, while what you did is for GRUB Legacy.
But I think you might be interested in GRUB 2 as well. It will get PCI support by default (Vincent is working on this, at the moment), so it might be easier to patch GRUB 2 when it is ready.
--
Marco
Quoted 14 lines · Marco Gerards
Clemens Fruhwirth <[email protected]> writes:
Hi Clemens,
Quoted 7 lines
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.
Quoted 11 lines
This list is about GRUB 2, while what you did is for GRUB Legacy.
But I think you might be interested in GRUB 2 as well. It will get PCI support by default (Vincent is working on this, at the moment), so it might be easier to patch GRUB 2 when it is ready.
--
Marco
indeed the PCI implementation for grub2 is on its way. As the rest of grub2, it will be object oriented and will allow for easily adding a new implementation. You should therefore find it easy to add your patch to this framework once it is done.
At least I hope so !
Signature · 3 lines
Vincent Guffens Intelligent Systems & Networks Group Research associate, Imperial College