Skip to contentSkip to conversation

pci-e config register modification in grub

DISCUSSION Nando 2 participants 4 messages Sep 26, 2009 – Dec 22, 2009 1 message not in the archive

lore
Share & tools
lore

Nando

author
#0 lore raw

Hi everyone,

Wondering if grub2 can have an additional module added to do various pci-e Configuration Register fixups/modifications before launching into XP/Win7/Linux. Specifically I require:

1/ ability to modify PCI Bridge Configuration Registers for DIY ViDock project <http://forum.notebookreview.com/showthread.php?p=5324240> to allow the video card to work [ current workaround is boot DOS, use pcitool to do the mod, then use grub4dos to chainload the OS ]

2/ ability to restore a mini pci-e port's Extended PCI Configuration registers config to reverse HP bios whitelisting of wifi cards (See bottom of HP Mini pci-e wifi bios thread<http://www.wimsbios.com/phpBB2/topic9388-105.html>.
No current tool can do this that I've found, with the DOS pcitool extending only to the 00-FF pci-e configuration registers, not the extended registers.

I'm running Ubuntu 9.04 with grub as the bootloader. Can these features be added to grub via say the menu.lst file as well as some config file that can store the dump for (2) above??

Nando

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 9 lines · Vladimir 'phcoder' Serbinenko
Quoted 7 lines · Nando

Hi everyone,

Wondering if grub2 can have an additional module added to do various pci-e Configuration Register fixups/modifications before launching into XP/Win7/Linux. Specifically I require:

For Linux I would recommend to contact developpers of corresponding kernel subsystem - it will help them to improve driver. Further discussion is in relation to MS stuff.

Quoted 40 lines
Quoted 5 lines

1/ ability to modify PCI Bridge Configuration Registers for DIY ViDock project <http://forum.notebookreview.com/showthread.php?p=5324240> to allow the video card to work [ current workaround is boot DOS, use pcitool to do the mod, then use grub4dos to chainload the OS ]

Quoted 7 lines

2/ ability to restore a mini pci-e port's Extended PCI Configuration registers config to reverse HP bios whitelisting of wifi cards (See bottom of HP Mini pci-e wifi bios thread
<http://www.wimsbios.com/phpBB2/topic9388-105.html>. No current tool can do this that I've found, with the DOS pcitool extending only to the 00-FF pci-e configuration registers, not the extended registers.

I'm not familiar with pci-e and don't know how much additional code would be required considering already existing pci code. Considering windows share "chainloader" command with other OSes too one could add a command "winfix" which will autodetect and do all the fixes necessary for windows and then 30_os_prober.in can be modified to use this. This way user doesn't need manual configuration. If autodetecting is too cumbersome one could have separate commands in grub to do exactly the fix you need. Could you make the patch and send it here. If you need to import code from another project discuss it here first - not all code is suitable for grub

Quoted 13 lines

I'm running Ubuntu 9.04 with grub as the bootloader. Can these features be added to grub via say the menu.lst file as well as some config file that can store the dump for (2) above??

Nando
------------------------------------------------------------------------

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

#3 lore raw
In reply to Nando
Quoted 11 lines · Nando

Hi everyone,

Wondering if grub2 can have an additional module added to do various pci-e Configuration Register fixups/modifications before launching into XP/Win7/Linux. Specifically I require:

1/ ability to modify PCI Bridge Configuration Registers for DIY ViDock project <http://forum.notebookreview.com/showthread.php?p=5324240> to allow the video card to work [ current workaround is boot DOS, use pcitool to do the mod, then use grub4dos to chainload the OS ]

Quoted 6 lines

2/ ability to restore a mini pci-e port's Extended PCI Configuration registers config to reverse HP bios whitelisting of wifi cards (See bottom of HP Mini pci-e wifi bios thread
<http://www.wimsbios.com/phpBB2/topic9388-105.html>. No current tool can do this that I've found, with the DOS pcitool extending only to the 00-FF pci-e configuration registers, not the extended registers.

I'm not familiar with pci-e and don't know how much additional code would be required considering already existing pci code. Considering windows share "chainloader" command with other OSes too one could add a command "winfix" which will autodetect and do all the fixes necessary for windows and then 30_os_prober.in can be modified to use this. This way user doesn't need manual configuration. If autodetecting is too cumbersome one could have separate commands in grub to do exactly the fix you need. Could you make the patch and send it here. If you need to import code from another project discuss it here first - not all code is suitable for grub

Quoted 13 lines

I'm running Ubuntu 9.04 with grub as the bootloader. Can these features be added to grub via say the menu.lst file as well as some config file that can store the dump for (2) above??

Nando
------------------------------------------------------------------------

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

#4 lore raw
In reply to Nando
Quoted 5 lines · Nando

Hi everyone,

Wondering if grub2 can have an additional module added to do various pci-e Configuration Register fixups/modifications before launching into XP/Win7/Linux.

Are PCI configuration registers enough? If not can you research the specifications?

Quoted 26 lines

Specifically I require:

1/ ability to modify PCI Bridge Configuration Registers for DIY ViDock project <http://forum.notebookreview.com/showthread.php?p=5324240> to allow the video card to work [ current workaround is boot DOS, use pcitool to do the mod, then use grub4dos to chainload the OS ]

2/ ability to restore a mini pci-e port's Extended PCI Configuration registers config to reverse HP bios whitelisting of wifi cards (See bottom of HP Mini pci-e wifi bios thread
<http://www.wimsbios.com/phpBB2/topic9388-105.html>. No current tool can do this that I've found, with the DOS pcitool extending only to the 00-FF pci-e configuration registers, not the extended registers.

I'm running Ubuntu 9.04 with grub as the bootloader. Can these features be added to grub via say the menu.lst file as well as some config file that can store the dump for (2) above??

Nando
------------------------------------------------------------------------

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko