Драйвер для PCIe

PCLinuxOS

Модератор: Bizdelnick

mal
Сообщения: 2

Драйвер для PCIe

Сообщение mal »

вообщем, я не большой мастер Linux - учусь - нужна помощь в установке драйвера. Есть чип PCIe to UART - производитель дал типа драйвер - привожу текст полностью:

Description: PCI Express UART driver patch.

O.S.: Linux 2.6. This patch has been developed on the 2.6.17.7 Linux Kernel

To apply the patch:-

1. Copy the 'serial' folder (linux-2.6.xx.xx/drivers/serial) into your working directory.

2. Paste the patch file into the serial forlder.

3. Open a terminal and enter the serial folder.

4. To apply the patch, enter the following command:

patch -p0 < tornado_p1_uart_linux2.6

5. To build the patched file enter the following command:

make -C /usr/src/linux-2.6.xx.xx M=$PWD modules

6. To insert the newly built 8250_pci.ko module you will have to remove the original (unpatched) module from the system. To remove the module use the following command:

rmmod 8250_pci

6. Before inserting the new module it is useful to open a log file. When a new module is inserted, the log file will get updated. To view the log file use the command:

tail -f /var/log/messages

7. To insert the newly built module use the following command:

insmod 8250_pci.ko




с чего же начать? вот стоит у меня Mandriva 2008. Я так понял, что мне надо иметь исходнки ядра или как?
Спасибо сказали:
mal
Сообщения: 2

Re: Драйвер для PCIe

Сообщение mal »

Вот это да!!!! Хоть бы кто что-нибудь написал. Я что криво спросил или тут не у кого и спросить?
Спасибо сказали:
Аватара пользователя
SinClaus
Сообщения: 1952
Статус: Мучитель Мандривы
ОС: Arch,BSD

Re: Драйвер для PCIe

Сообщение SinClaus »

1. Тема названа неправильно - драйверов к шине в природе не существует.
2. В Мандриве вобще-то не принято пересобирать ядро. А вообще, для применения этого патча - да, нужны тексты ядра, причем именно того, которое установлено. И вполне вероятно, что при апдейте ядра из репозитария этот драйвер работать перестанет...
Спасибо сказали: