create_driver_links problem?

wardenik
Beiträge: 65
Registriert: 27 Okt 2008, 12:22

create_driver_links problem?

Beitragvon wardenik » 23 Mär 2009, 11:54

Hi,

As I have upgraded OPSI in the same time as moving drivers, I am not really sure which thing caused this, but it was either me or update.
Anyway, my previously working machines that used to find the drivers after installation, now fail. And after quick investigation, I can see:

Code: Alles auswählen

opsi:/opt/pcbin/install/winxppro# ./show_drivers.py client2

[Intel Corporation, 82801 PCI Bridge]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162291/Vista
[Intel Corporation, 82Q35 Express Integrated Graphics Controller]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R166753/Graphics
[Intel Corporation, 82Q35 Express Integrated Graphics Controller]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R166753/Graphics
[Intel Corporation, 82Q35 Express MEI Controller]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162295/HECI
[Intel Corporation, 82Q35 Express PT IDER Controller]
   No driver - device directory '/opt/pcbin/install/winxppro/drivers/pciids/8086/29B6' not found
[Intel Corporation, 82Q35 Express Serial KT Controller]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162296/SOLinf
[Intel Corporation, 82566DM-2 Gigabit Network Connection]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162323
[Intel Corporation, 82801I (ICH9 Family) USB UHCI Controller #4]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162291/Vista
[Intel Corporation, 82801I (ICH9 Family) USB UHCI Controller #5]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162291/Vista
[Intel Corporation, 82801I (ICH9 Family) USB2 EHCI Controller #2]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162291/Vista
[Intel Corporation, 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA AHCI Controller]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162291/Vista
[Intel Corporation, 82801I (ICH9 Family) SMBus Controller]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162291/Vista
[Intel Corporation, 82801I (ICH9 Family) USB UHCI Controller #1]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162291/Vista
[Intel Corporation, 82801I (ICH9 Family) USB UHCI Controller #2]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162291/Vista
[Intel Corporation, 82801I (ICH9 Family) HD Audio Controller]
   No driver - device directory '/opt/pcbin/install/winxppro/drivers/pciids/8086/293E' not found
[Intel Corporation, 82801I (ICH9 Family) PCI Express Port 1]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162291/Vista
[Intel Corporation, 82801IO (ICH9DO) LPC Interface Controller]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162291/Vista
[Intel Corporation, 82801I (ICH9 Family) USB UHCI Controller #3]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162291/Vista
[Intel Corporation, 82801I (ICH9 Family) USB2 EHCI Controller #1]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162291/Vista
[Intel Corporation, 82Q35 Express DRAM Controller]
   /opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplex755/R162291/Vista


Just after create_driver_links.
So, two problems appear here:
1. [Intel Corporation, 82801I (ICH9 Family) HD Audio Controller]
No driver - device directory '/opt/pcbin/install/winxppro/drivers/pciids/8086/293E' not found
2. Why does it show Vista drivers if I am in winxp product? That can be the reason why they do not work. I will remove now all vista drivers and retest but maybe you have an idea.

wardenik
Beiträge: 65
Registriert: 27 Okt 2008, 12:22

Re: create_driver_links problem?

Beitragvon wardenik » 23 Mär 2009, 15:35

Confirmed weird behaviour of the scripts now.
It turns out that even order of the drivers is now important.
Behold:
opsi:/opt/pcbin/install/winxppro# ls -ald drivers/drivers/preferred/*
drwxrwx--- 16 opsiconfd pcpatch 4096 2009-02-18 18:28 drivers/drivers/preferred/latituded400
drwxrwx--- 13 opsiconfd pcpatch 4096 2009-01-13 16:52 drivers/drivers/preferred/optiplex745
drwxrwx--- 13 opsiconfd pcpatch 4096 2009-02-04 12:04 drivers/drivers/preferred/optiplexgx280
drwxrwx--- 14 opsiconfd pcpatch 4096 2009-01-13 17:58 drivers/drivers/preferred/optiplexgx620
drwxrwxr-x 46 opsiconfd pcpatch 4096 2008-11-28 15:45 drivers/drivers/preferred/precision370
drwxrwx--- 23 opsiconfd pcpatch 4096 2009-01-14 15:49 drivers/drivers/preferred/precision380
drwxrwx--- 18 opsiconfd pcpatch 4096 2009-01-14 17:37 drivers/drivers/preferred/precision390
drwxrws--- 23 opsiconfd pcpatch 4096 2009-03-11 12:33 drivers/drivers/preferred/precisiont3400
drwxrwxr-x 24 opsiconfd pcpatch 4096 2009-03-19 17:43 drivers/drivers/preferred/z_optiplex755

Can you see z_optiplex755 ? I have renamed it from optiplex755.
And now:
[Intel Corporation, 82801G (ICH7 Family) SMBus Controller]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/precision380/R114566/XP
[Intel Corporation, 82945G/GZ Integrated Graphics Controller]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplexgx280/R126541/Win2000
[Intel Corporation, 82945G/GZ Integrated Graphics Controller]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplexgx280/R126541/Win2000
[Intel Corporation, 82801G (ICH7 Family) PCI Express Port 1]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/precision380/R114566/XP
[Broadcom Corporation, NetXtreme BCM5751 Gigabit Ethernet PCI Express]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/precisiont3400/R161008/WinVista
[Intel Corporation, 82801G (ICH7 Family) PCI Express Port 2]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/precision380/R114566/XP
[Intel Corporation, 82801G (ICH7 Family) USB UHCI Controller #1]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/precision380/R114566/XP
[Intel Corporation, 82801G (ICH7 Family) USB UHCI Controller #2]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/precision380/R114566/XP
[Intel Corporation, 82801G (ICH7 Family) USB UHCI Controller #3]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/precision380/R114566/XP
[Intel Corporation, 82801G (ICH7 Family) USB UHCI Controller #4]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/precision380/R114566/XP
[Intel Corporation, 82801G (ICH7 Family) AC'97 Audio Controller]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/optiplexgx620/R97809/SMAXWDM/W2K_XP
[Intel Corporation, 82801GB/GR (ICH7 Family) LPC Interface Bridge]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/precision380/R114566/XP
[Intel Corporation, 82801G (ICH7 Family) USB2 EHCI Controller]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/precision380/R114566/XP
[Intel Corporation, 82801 PCI Bridge]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/precision380/R114566/XP
[Intel Corporation, 82801G (ICH7 Family) IDE Controller]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/precision380/R114566/XP/SP
[Intel Corporation, 82801GB/GR/GH (ICH7 Family) SATA IDE Controller]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/precision380/R114566/XP/SP
[Intel Corporation, 82945G/GZ/P/PL Memory Controller Hub]
/opt/pcbin/install/winxppro/drivers/drivers/preferred/precision380/R114566/XP

Benutzeravatar
j.schneider
Ex-uib-Team
Beiträge: 1414
Registriert: 29 Mai 2008, 15:14

Re: create_driver_links problem?

Beitragvon j.schneider » 23 Mär 2009, 18:31

Hi,

opsi can't tell the difference between a vista and a xp driver. Can you?
Sure, the order of the drivers makes a difference if you have different drivers for the same device in the preferred dir.

wardenik
Beiträge: 65
Registriert: 27 Okt 2008, 12:22

Re: create_driver_links problem?

Beitragvon wardenik » 24 Mär 2009, 12:18

well actually I can.
If i have a driver dir with *xp AND a *vista* directories inside, and each of them contains different *.inf files and drivers, then where is the problem?
and anyway, it was working before :-)

Benutzeravatar
j.schneider
Ex-uib-Team
Beiträge: 1414
Registriert: 29 Mai 2008, 15:14

Re: create_driver_links problem?

Beitragvon j.schneider » 24 Mär 2009, 13:27

wardenik hat geschrieben:well actually I can.
If i have a driver dir with *xp AND a *vista* directories inside, and each of them contains different *.inf files and drivers, then where is the problem?

The problem is, that there is no naming conevtion for the driver dirs.
Sometimes the xp driver folder is called xp, sometimes 2kxp or nt5 or xp32 or ....
Sometimes you can use the driver from xp directory for win2000, sometimes not...
Some drivers seem to work for vista and xp...
So, please give opsi some help and do some sorting of the drivers ;)

wardenik hat geschrieben:and anyway, it was working before :-)

Did it?

wardenik
Beiträge: 65
Registriert: 27 Okt 2008, 12:22

Re: create_driver_links problem?

Beitragvon wardenik » 25 Mär 2009, 13:00

j.schneider hat geschrieben:
wardenik hat geschrieben:well actually I can.
If i have a driver dir with *xp AND a *vista* directories inside, and each of them contains different *.inf files and drivers, then where is the problem?

The problem is, that there is no naming conevtion for the driver dirs.
Sometimes the xp driver folder is called xp, sometimes 2kxp or nt5 or xp32 or ....
Sometimes you can use the driver from xp directory for win2000, sometimes not...
Some drivers seem to work for vista and xp...
So, please give opsi some help and do some sorting of the drivers ;)

wardenik hat geschrieben:and anyway, it was working before :-)

Did it?


Well , yes, that's the weird thing. It was working before.. I didn't check if create_driver_links has changed with the last package, because as I said before I have moved the drivers directory at the same time i did the upgrade. So not working is caused by one of those two reasons.

I surely agree with you that there is no naming convention. I just wanted to say, that for instance, if we say that the 'preferred' dir structure should be:
preferred/<modelname>/<driverdir>
then, create_driver_links while scanning <driverdir> can check if inside it has dir called *winxp* or *xp* and then INF inside, because then it is obvious that this is the XP driver.
And if not just get the first dir that has the INF file.

(well, anyway, I just thought this is also quite easy to solve by just removing Vista dirs, because this is anyway winxp package :P )