DIY ViDock PCI Bridge Automated Configuration Script ===================================================== 1/ Designed to allow connecting an external video card to a notebook. This will configure the hosting bridge using DOS utilities to enable an I/O and Memory window to accomodate the underlying graphics card. Without this you'll see "error 12: cannot allocate resources" errors in XP/Win7. This should ideally be sorted by your BIOS or Windows, though in at least the 2510P's and DV2000's case it isn't. grub4dos is then used to chainload your XP/Win7/Linux bootloader. 2/ Example x2-conf.bat can assist in identifying identifying if you may have a x2 capable system, as well as hardsetting x2 or x4 mode. Instructions ============ 1/ Create a bootable USB or floppy drive. Copy these files OR the write the DIYVDock-conf.img to your USB/floppy using winimage, rawrite of Linux' 'dd if=DIYVDock-conf.img of=/dev/xxx'. 2/ Use the two tested examples to create your own system specific batch file. * 2510P.BAT : HP 2510P+PM3N. Uses whitelst.bat to undo HP Whitelisting * DV2000.BAT: HP Pavilion DV2000+EC2C. 3/ Now can use your USB or floppy to allow desktop video graphics to work. 4/ OR, if you already have grub installed, create an image of your floppy with 'dd if=/dev/xxx of=/boot/VIDVDock-conf.img'. Add an entry in /boot/grub/menu.lst to boot off this floppy image. This boots a ramdisk and is recommended for it's faster bootup than using a USB stick. title DIY ViDock PCI Bridge Configuration root (hd0,0) kernel /boot/grub/memdisk initrd (hd0,0)/boot/DIYVDock-conf.img quiet Can edit the bootimage in Linux with: losetup /dev/loop0 /boot/DIYVDOCK-conf.img mount /dev/loop0 -o loop /media/floppy-image cd /media/floppy-image [ edit the files using vi ] You'll need to grab syslinux and copy memdisk to make this work. $ apt-get install syslinux $ cp /usr/lib/syslinux/memdisk /boot/grub/memdisk Tools used ========== - pt.exe as part of peridos (http://stashbox.org/657491/peridos.zip). Everything that Baredit can do in Windows, pt.exe can do in DOS, plus it can also write to I/O ports too. This is incredibly useful for our purposes. It can read/write/save/dump PCI Registers/IO and 32-bit memory space. Though for individual PCI Device Configuration space modification I used setpci instead, since it's also supplied with Linux. - grub4dos to allow chainloading from DOS to XP/Vista/Win7/Linux. - setpci/lspci, pcitool to query and modify PCI Configuration Registers. pcitool is a DOS component delivered with PCIScope, Professional PCI probing utilities. Useful to capture all the configuration space (pcitool /DB:all) then import it in PCIScope for Windows for analysis or comparison. - atiflash to scan the bus for an ATI video card. - Freedos provides a DOS environment. edit and choice from a DOS bootdisk. - arj/xmsdsk (ramdisk) for whitelist file management [if you need it]. The 1MB snapshot file used to overcome whitelisting compresses to 2k with arj and decompresses to a fast ramdisk. Copyright? =========== I hope there has not been any infringement of copyright using these tools. Pls PM nando4 on forums.notebookreview.com if that has inadvertently been the case. Source: "DIY ViDOCK - My experiences so far" notebookreview thread. http://forum.notebookreview.com/showthread.php?t=397296 nando4