Показать полную графическую версию : kernel 2.6.x + pctel
Тут взял http://geocities.yahoo.com.br/ricardowongbr/pctel/
Никак не хочет ставится...
ruslandh
14-06-2004, 21:12
А что мешает ?
Закачаем... проверим... скоро сообщим о результатах...
НЕ РАБОТАЕТ!
Качал дрова pctel-0.9.7..... не устанавливаются, находятся ошибки при компиляции, причем ошибки в самих исходниках.
Скачал также slmodem 2.9.9 - все компилится, но modprobe не проходит, говорит, что не может загрузить модуль из-за неправильного формата ;(
ЗЫ
А тут вообще есть кто-нибудь, у кого pctel модем работает под линухой?
ruslandh
23-09-2004, 08:21
У меня работает на ядре 2.4.x, а на 2.6.x не пробовал - необходимости не было.
Так поделитесь опытом... Может линку дадите на Ваши дровишки...
Добавлено:
А, кстати, почему modprobe не идет? Компилил и под кернелом 2.4 и 2.6 - формат не нравится обоим.
ruslandh
24-09-2004, 08:05
HOWTO здесь :
http://narod.ruslandh.net/howto_ru/PCTel-ru/pctel.html
Так, как я этим занимался достаточно давно, то и версия у меня достаточно старая :
http://narod.ruslandh.net/Download/pctel-0.8.6c.tar.bz2
Ого! Да тут целая книга по настройке PCTel-модемов! :o
Ну-с... приступим...
Добавлено:
Новые дрова скачал...
[root@localhost src]# make
gcc -Wno-trigraphs -fno-common -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DVERSION=\"0.9.7-6\" -DGCC_VERSION=\"3.3.2\" -DMODULE -DMODVERSIONS -DEXPORT_SYMTAB -DBUILD_SYSTEM=\""`uname -s -m -r -p`\"" -D__KERNEL__ -I/usr/src/linux/include -DHAL_PCT789 -include /usr/src/linux/include/config/modversions.h -o ptmodule.o -c ptmodule.c
In file included from /usr/src/linux/include/asm/smp.h:18,
from /usr/src/linux/include/linux/smp.h:17,
from /usr/src/linux/include/linux/sched.h:23,
from /usr/src/linux/include/linux/module.h:10,
from ptmodule.c:10:
/usr/src/linux/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
In file included from /usr/src/linux/include/asm/smp.h:18,
from /usr/src/linux/include/linux/smp.h:17,
from /usr/src/linux/include/linux/sched.h:23,
from /usr/src/linux/include/linux/module.h:10,
from ptmodule.c:10:
/usr/src/linux/include/asm/mpspec.h:8: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:9: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:10: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:12: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:19: error: `MAX_APICS' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:20: error: conflicting types for `mp_bus_id_to_type'
/usr/src/linux/include/asm/mpspec.h:8: error: previous declaration of `mp_bus_id_to_type'
/usr/src/linux/include/asm/mpspec.h:22: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: `MAX_MP_BUSSES' undeclared here (not in a function)
/usr/src/linux/include/asm/mpspec.h:24: error: conflicting types for `mp_bus_id_to_pci_bus'
/usr/src/linux/include/asm/mpspec.h:12: error: previous declaration of `mp_bus_id_to_pci_bus'
/usr/src/linux/include/asm/mpspec.h:50: error: `MAX_APICS' undeclared here (not in a function)
In file included from /usr/src/linux/include/asm/smp.h:20,
from /usr/src/linux/include/linux/smp.h:17,
from /usr/src/linux/include/linux/sched.h:23,
from /usr/src/linux/include/linux/module.h:10,
from ptmodule.c:10:
/usr/src/linux/include/asm/io_apic.h:160: error: `MAX_IRQ_SOURCES' undeclared here (not in a function)
/usr/src/linux/include/asm/io_apic.h:160: error: conflicting types for `mp_irqs'
/usr/src/linux/include/asm/mpspec.h:22: error: previous declaration of `mp_irqs'
In file included from /usr/src/linux/include/linux/smp.h:17,
from /usr/src/linux/include/linux/sched.h:23,
from /usr/src/linux/include/linux/module.h:10,
from ptmodule.c:10:
/usr/src/linux/include/asm/smp.h:72:26: mach_apicdef.h: No such file or directory
In file included from /usr/src/linux/include/linux/smp.h:17,
from /usr/src/linux/include/linux/sched.h:23,
from /usr/src/linux/include/linux/module.h:10,
from ptmodule.c:10:
/usr/src/linux/include/asm/smp.h: In function `hard_smp_processor_id':
/usr/src/linux/include/asm/smp.h:76: warning: implicit declaration of function `GET_APIC_ID'
ptmodule.c: In function `Pctel_module_init':
ptmodule.c:21: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/linux/include/linux/module.h:502)
ptmodule.c: In function `Pctel_module_free':
ptmodule.c:26: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/linux/include/linux/module.h:514)
ptmodule.c: In function `Pctel_module_is_free':
ptmodule.c:31: error: `MOD_IN_USE' undeclared (first use in this function)
ptmodule.c:31: error: (Each undeclared identifier is reported only once
ptmodule.c:31: error: for each function it appears in.)
make: *** [ptmodule.o] Ошибка 1
[root@localhost src]# ХЭЛП МИ!!!
Добавлено:
А вот и ошибка на slmodem 2.9.10
[root@localhost root]# modprobe slamr
FATAL: Error inserting slamr (/lib/modules/2.6.3-7mdksmp/extra/slamr.ko): Invalid module format
ruslandh
27-09-2004, 09:16
1 Надо вначале разобраться почему не находится файл mach_mpspec.h
ln file included from /usr/src/linux/include/asm/smp.h:18,
from /usr/src/linux/include/linux/smp.h:17,
from /usr/src/linux/include/linux/sched.h:23,
from /usr/src/linux/include/linux/module.h:10,
from ptmodule.c:10:
/usr/src/linux/include/asm/mpspec.h:6:25: mach_mpspec.h: No such file or directory
2 Неправильный формат модуля - а вы его сами собирали ?
А почему там приставка mdksmp - у вас ядро с поддержкой многопроцессорности загружено ?
Модуль сам собирал. Кстати, на многих форумах задается этот вопрос... ответа на него пока дать не могут.
Ядро с поддержкой многопроцессорности (как я это выговорил ;)). У меня в Mandrake 10.1 оно по умолчанию устанавливалось.
ruslandh
28-09-2004, 08:46
А в момент сборки
1 какое ядро было загружено
2 какая версия gcc была активна (надо, чтобы все версии ядра были скомпилированы одной версией gcc)
3 на то-ли ядро (исходники ядра) ссылаются соответствующие ссылки в системе (/usr/src/linux, /lib/modules/2.6.x.../build и т.п.)
1. Было загружено ядро 2.6.3-7smp,
2. gcc тот же самый, которым я ядро компилил,
3. ссылки все правильные...
Вообще-то в какой-то PDFине было написано про проблемы с smp у PCTel, но я не вникал.
Проще дело с slmodem: компиляция проходит, даже модуль теперь грузиться начал, а вот на slmodemd --country=RUSSIA /dev/slamr0 отвечает, что не может открыть файл /dev/slamr0 и еще что-то...
Пробовал звать slmodemd /dev/ttyS2, ошибок не было ;)
В ответ получил, что создан модем /dev/ttyS2, а звать его через /dev/ttySL66.
А дальше ничего не вышло.
ЗЫ
....А если покупать внешний модем, то какой лучше? В смысле, чтоб под линухой шел
Ага! Вот и добрались до самого интересного: нашлись дрова под кернел 2.6.0.
Результат вот:
[root@localhost src]# ./configure -manual -exp
checking for running kernel version...** error
your kernel version is: 2.6.3
this package supports only 2.4.x kernels.
enable experimental 2.6 kernel support.
Please read the FAQ about kernel 2.6 experimental support
patching file ptserial-2.4.7.c
patching file Makefile.orig
patching file FAQ
2.6.3
checking for ptserial...ptserial-2.6.0.c
checking for gcc...3.3.2
searching for kernel includes...found at /usr/src/linux/include
checking for autoconf.h e irq_vectors.h .../usr/src/linux/include/linux/autoconf.h -I/usr/src/linux/include/asm/mach-default
checking for kernel_version...UTS_RELEASE is 2.6.3-7mdksmp
please enter your hal type
choose one of: pct789, cm8738, i8xx, sis, via686a
hal type: pct789
[root@localhost src]# make
gcc -Wp,-MD,./.ptmodule.o.d -fno-strength-reduce -DVERSION=\"0.9.7-6\" -DGCC_VERSION=\"3.3.2\" -DMODVERSIONS -DEXPORT_SYMTAB -DBUILD_SYSTEM=\""`uname -s -m -r -p`\"" -I/usr/src/linux/include -DHAL_PCT789 -include /usr/src/linux/include/linux/autoconf.h -I/usr/src/linux/include/asm/mach-default -Werror -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=k6 -fomit-frame-pointer -nostdinc -iwithprefix include -DMODULE -DKBUILD_BASENAME=ptserial -DKBUILD_MODNAME=pctel -c -o ptmodule.o ptmodule.c
as vuart.s -o vuart.o
gcc -Wp,-MD,./.ptserial.o.d -fno-strength-reduce -DVERSION=\"0.9.7-6\" -DGCC_VERSION=\"3.3.2\" -DMODVERSIONS -DEXPORT_SYMTAB -DBUILD_SYSTEM=\""`uname -s -m -r -p`\"" -I/usr/src/linux/include -DHAL_PCT789 -include /usr/src/linux/include/linux/autoconf.h -I/usr/src/linux/include/asm/mach-default -Werror -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=k6 -fomit-frame-pointer -nostdinc -iwithprefix include -DMODULE -DKBUILD_BASENAME=pctel -DKBUILD_MODNAME=pctel -c -o ptserial.o ptserial-2.6.0.c
ptserial-2.6.0.c: In function `rs_stop':
ptserial-2.6.0.c:698: warning: implicit declaration of function `save_flags'
ptserial-2.6.0.c:698: warning: implicit declaration of function `cli'
ptserial-2.6.0.c:707: warning: implicit declaration of function `restore_flags'
ptserial-2.6.0.c: In function `pctel_interrupt':
ptserial-2.6.0.c:1162: warning: implicit declaration of function `sti'
ptserial-2.6.0.c: In function `get_pci_irq':
ptserial-2.6.0.c:3893: error: structure has no member named `irq_resource'
make: *** [ptserial.o] Ошибка 1
[root@localhost src]#
-----------------
И когда же наконец появятся рабочие дрова под 2.6.3+ ?
Добавлено:
Ах, да, чуть не забыл: http://geocities.yahoo.com.br/ricardowongbr/pctel/pctel.tar.gz
...тут я и качал дрова.
http://geocities.yahoo.com.br/ricardowongbr/pctel/
...сам сайт ;)
ruslandh
04-10-2004, 09:44
uStick
Так ты ./configure делаешь не указав тип модема (pct789, cm8738, i8xx, sis, via686a) оно об этом прямо и говорит :
please enter your hal type
choose one of: pct789, cm8738, i8xx, sis, via686a
hal type: pct789
не может открыть файл /dev/slamr0 и еще что-то...
а что показывает ls -l /dev/slamr* ?
есть такое устройство и какие права на него установлены ?
Исправлено: ruslandh, 10:11 4-10-2004
Так ты ./configure делаешь не указав тип модема (pct789, cm8738, i8xx, sis, via686a)
Там все правильно: при запуске с параметром -auto скрипт сам определяет модем и запускает make. Я же запускаю с параметром -manual, поэтому у меня и спрашивают тип модема.
Сорри, это было моё сообщение
Добавлено:
[root@localhost root]# modprobe slamr
[root@localhost root]# ls -l /dev/slamr*
crw------- 1 root root 212, 0 Окт 5 2004 /dev/slamr0
crw------- 1 root root 212, 1 Окт 5 2004 /dev/slamr1
crw------- 1 root root 212, 2 Окт 5 2004 /dev/slamr2
crw------- 1 root root 212, 3 Окт 5 2004 /dev/slamr3
Добавлено:
[root@localhost root]# slmodemd --country=RUSSIA
error: mdm setup: cannot open dev `/dev/slamr0': No such device
error: cannot setup device `/dev/slamr0'
А дров рабочих так и нету...
Подправил дрова PCTEL, все ошибки убрал (сам!!!). Все откомпилилось, вот только получаю invalid module format :((((
Добавлено:
Oct 18 04:45:00 localhost kernel: pctel: no version magic, tainting kernel.
Oct 18 04:45:00 localhost kernel: pctel: module license 'GPL linked with proprietary libraries' taints kernel.
ruslandh
19-10-2004, 01:10
uStick
Это не ошибка, а поздравление :)
Просто вас предупреждают, что дрова имеют закрытую лицензию.
Хм. Только вот от invalid module format это не спасает ;(
Я тут линку нашел: http://www.cs.helsinki.fi/linux/linux-kernel/2003-04/0023.html здесь открытым текстом написано, как избавиться от "no version magic, tainting kernel", но у меня ессесно ничего не вышло.
И вообще, вот это:
#include <linux/vermagic.h>
#KERNEL_VERSIONMAGIC();
не компилится, пробовал другие способы, дошел даже до того, что модули начали грузиться, но в /var/log/messages появляются строчки о не найденных символах типа pctel_main и т.д.
А вот в драйвере slmodem другая проблема выявилась: тест модема проходит хорошо, а при дозвоне выдает NO_CARRIER.
И еще вопрос: какой все-таки модем купить, чтобы он под линухой пошел???
Исправлено: uStick, 2:24 19-10-2004
© OSzone.net 2001-2012
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.