summaryrefslogtreecommitdiffstats
path: root/convert/README.pcitable
blob: a4aa727c05460fcd461c688fc39342d716af2c75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
################################################################################
# How to merge the pcitable with various source:
#


# update pciutils
./merge2pcitable.pl pciids /usr/share/pci.ids pcitable > pcitable.new

#  A pciids with more accurate information are available from
rm -f vendors.txt ; wget http://www.yourvote.com/pci/vendors.txt
./merge2pcitable.pl pciids vendors.txt pcitable > pcitable.new

# http://www.begent.co.uk/pcids.htm


# with redhat's pcitable in /tmp/rh_pcitable (from kudzu or anaconda)
./merge2pcitable.pl pcitable /tmp/rh_pcitable pcitable > pcitable.new


# with a new kernel
(cd ~/tmp ; rm -rf lib ; rpm2cpio /RPMS/kernel-2.4.*.rpm |cpio -id './lib/modules/*/modules.*map')
cp -f ~/tmp/lib/modules/*/modules.{pci,usb}map .
rm -rf lib
./merge2pcitable.pl kernel_pcimap modules.pcimap pcitable > pcitable.new
./merge2pcitable.pl kernel_usbmap modules.usbmap usbtable > usbtable.new


# checking the pcitable
./merge2pcitable.pl pcitable pcitable pcitable > /dev/null

## do "ln -s ../lst/pcitable" first