Toshiba satellite 2450 + irda

Ethernet card, Wi-Fi, Bluetooth, IrDA, ADSL-модемы, модемы

Модератор: Модераторы разделов

Ответить
Alsnake
Сообщения: 16

Toshiba satellite 2450 + irda

Сообщение Alsnake »

Приветствую!
Помогите запустить IRDA порт на стареньком буке.
Задача заставить его работать в режиме ИК приемника. Дистр. Mint 9 но это не принципиально.
Гугль говорит, что народ это делал на таком-же железе http://www.thorstenhaas.de/toshiba2410/#IRDA,http://linuxfrance.chez-alice.fr/toshiba.html. Там народ использовал утилиту "tosh5100-smcinit" и делалось все на ядре 2.4.
Сейчас для активизации IRDA порта устанавливаю пакет irda-utils
Вот, что показывает dmesg после его установки:

Код: Выделить всё

...
[   16.227616] pnp 00:09: activated
[   16.341013] irda_init()
[   16.341040] NET: Registered protocol family 23
[   16.377112] Detected unconfigured Toshiba laptop with Intel 82801DB/DBL LPC bridge SMSC IrDA chip, pre-configuring device.
[   16.377119] Setting up Intel 82801 controller and SMSC device
[   16.377138] Detected Chip id: 0x5a, setting up registers...
[   16.377247] found SMC SuperIO Chip (devid=0x5a rev=00 base=0x002e): LPC47N227
[   16.377264] smsc_superio_flat(): fir: 0x130, sir: 0x3f8, dma: 01, irq: 7, mode: 0x0e
[   16.377280] SMsC IrDA Controller found
[   16.377281]  IrCC version 2.0, firport 0x130, sirport 0x3f8 dma=1, irq=7
[   16.377353] smsc_ircc_set_sir_speed(), Setting speed to: 9600
[   16.377365] No transceiver found. Defaulting to Fast pin select
[   16.382415] IrDA: Registered device irda0
[   17.877301] eth0: link down
[   17.880201] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   17.912078] b43 ssb0:0: firmware: requesting b43/ucode5.fw
...

а это показывает log messages:

Код: Выделить всё

...
Nov  5 15:21:57 ira-laptop kernel: [   16.227616] pnp 00:09: activated
Nov  5 15:21:57 ira-laptop kernel: [   16.341040] NET: Registered protocol family 23
Nov  5 15:21:57 ira-laptop kernel: [   16.377112] Detected unconfigured Toshiba laptop with Intel 82801DB/DBL LPC bridge SMSC IrDA chip, pre-configuring device.
Nov  5 15:21:57 ira-laptop kernel: [   16.377119] Setting up Intel 82801 controller and SMSC device
Nov  5 15:21:57 ira-laptop kernel: [   16.377247] found SMC SuperIO Chip (devid=0x5a rev=00 base=0x002e): LPC47N227
Nov  5 15:21:57 ira-laptop kernel: [   16.377264] smsc_superio_flat(): fir: 0x130, sir: 0x3f8, dma: 01, irq: 7, mode: 0x0e
Nov  5 15:21:57 ira-laptop kernel: [   16.377280] SMsC IrDA Controller found
Nov  5 15:21:57 ira-laptop kernel: [   16.377281]  IrCC version 2.0, firport 0x130, sirport 0x3f8 dma=1, irq=7
Nov  5 15:21:57 ira-laptop kernel: [   16.377365] No transceiver found. Defaulting to Fast pin select
Nov  5 15:21:57 ira-laptop kernel: [   16.382415] IrDA: Registered device irda0
Nov  5 15:21:59 ira-laptop kernel: [   17.877301] eth0: link down
Nov  5 15:21:59 ira-laptop kernel: [   17.880201] ADDRCONF(NETDEV_UP): eth0: link is not ready
Nov  5 15:21:59 ira-laptop kernel: [   17.912078] b43 ssb0:0: firmware: requesting b43/ucode5.fw
Nov  5 15:21:59 ira-laptop kernel: [   18.145998] b43 ssb0:0: firmware: requesting b43/pcm5.fw
Nov  5 15:21:59 ira-laptop kernel: [   18.421463] b43 ssb0:0: firmware: requesting b43/b0g0initvals5.fw
Nov  5 15:21:59 ira-laptop kernel: [   18.604656] b43 ssb0:0: firmware: requesting b43/b0g0bsinitvals5.fw
Nov  5 15:22:00 ira-laptop kernel: [   18.840087] b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
Nov  5 15:22:00 ira-laptop kernel: [   18.894384] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Nov  5 15:22:02 ira-laptop kernel: [   21.301644] [drm] nouveau 0000:01:00.0: Allocating FIFO number 1
Nov  5 15:22:02 ira-laptop kernel: [   21.302698] [drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 1
Nov  5 15:22:08 ira-laptop irattach: executing: '/sbin/modprobe irda0'
Nov  5 15:22:08 ira-laptop irattach: + WARNING: All config files need .conf: /etc/modprobe.d/ndiswrapper, it will be ignored in a future release.
Nov  5 15:22:08 ira-laptop irattach: + FATAL: Module irda0 not found.
Nov  5 15:22:08 ira-laptop irattach: Trying to load module irda0 exited with status 1
Nov  5 15:22:08 ira-laptop irattach: executing: 'echo ira-laptop > /proc/sys/net/irda/devname'
Nov  5 15:22:08 ira-laptop irattach: executing: 'echo 1 > /proc/sys/net/irda/discovery'
Nov  5 15:22:08 ira-laptop irattach: Starting device irda0
Nov  5 15:22:08 ira-laptop irattach: ioctl(SIOCSIFFLAGS): Resource temporarily unavailable
Nov  5 15:22:08 ira-laptop irattach: Stopping device irda0
Nov  5 15:22:08 ira-laptop irattach: exiting ...
Nov  5 15:22:58 ira-laptop kernel: [   77.361461] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Nov  5 15:22:58 ira-laptop kernel: [   77.361531] cfg80211: Calling CRDA for country: NA
...

попробовал:
modprobe irda0
FATAL: Module irda0 not found.
а в messages добавилась запись:

Код: Выделить всё

Nov  5 15:53:01 ira-laptop kernel: [ 1879.939633] process `python' is using deprecated sysctl (syscall) net.ipv6.neigh.irda0.retrans_time; Use net.ipv6.neigh.irda0.retrans_time_ms instead.

В общем как я понял устройство не может стартовать. Что нужно поковырять?
И еще народ прописывал:

Код: Выделить всё

pre-install lirc_sir /usr/local/sbin/tosh5100-smcinit
alias char-major-61 lirc_sir
options lirc_sir irq=3
alias irda0 smc-ircc
pre-install smc-ircc /usr/local/sbin/tosh5100-smcinit

в modules.conf а я такого файлика не нахожу, да и непонятно что прописывать вместо tosh5100-smcinit. Я его компилить пробовал (gcc ......) получил кучу ошибок и ссылок на отсутствующие скрипты которые явно давно не используются (pci.h ....).
Спасибо сказали:
Аватара пользователя
Rootlexx
Бывший модератор
Сообщения: 4455
Статус: GNU generation
ОС: Debian GNU/Linux

Re: Toshiba satellite 2450 + irda

Сообщение Rootlexx »

Попробуйте записать в /etc/modprobe.d/irda.conf:

Код: Выделить всё

alias irda0 smsc-ircc2
Спасибо сказали:
Alsnake
Сообщения: 16

Re: Toshiba satellite 2450 + irda

Сообщение Alsnake »

to Rootlexx
попробовал добавить и в /etc/modprobe.d/irda-utils.conf (там было) и создал /etc/modprobe.d/irda.conf с этой строчкой - результат:
в dmesg :

Код: Выделить всё

smsc_ircc_net_open(), unable to allocate irq=7

в messages все также:

Код: Выделить всё

Nov  6 18:52:22 ira-laptop irattach: executing: '/sbin/modprobe irda0'
Nov  6 18:52:22 ira-laptop irattach: executing: 'echo ira-laptop > /proc/sys/net/irda/devname'
Nov  6 18:52:22 ira-laptop irattach: executing: 'echo 1 > /proc/sys/net/irda/discovery'
Nov  6 18:52:22 ira-laptop irattach: Starting device irda0
Nov  6 18:52:22 ira-laptop irattach: ioctl(SIOCSIFFLAGS): Resource temporarily unavailable
Nov  6 18:52:22 ira-laptop irattach: Stopping device irda0
Nov  6 18:52:22 ira-laptop irattach: exiting ...

по IRQ у меня:

Код: Выделить всё

$ dmesg |grep -i irq
[    0.000000] nr_irqs_gsi: 16
[    0.000000] NR_IRQS:2304 nr_irqs:256
[    0.076903] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 *11)
[    0.077053] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 *11)
[    0.077199] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 *11)
[    0.077344] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 *11)
[    0.077488] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 *11)
[    0.077632] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 *11)
[    0.077775] ACPI: PCI Interrupt Link [LNKG] (IRQs *10)
[    0.077917] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 *11)
[    0.078771] PCI: Using ACPI for IRQ routing
[    0.119400] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
[    0.119404] PCI: setting IRQ 11 as level-triggered
[    0.119410] pci 0000:02:0b.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[    0.119641] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
[    0.119646] pci 0000:02:0b.1: PCI INT B -> Link[LNKD] -> GSI 11 (level, low) -> IRQ 11
[    0.167767] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.168596] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
[    0.168602] serial 0000:00:1f.6: PCI INT B -> Link[LNKB] -> GSI 11 (level, low) -> IRQ 11
[    0.171079] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
[    0.171084] ata_piix 0000:00:1f.1: PCI INT A -> Link[LNKC] -> GSI 11 (level, low) -> IRQ 11
[    0.221212] ata1: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xbfa0 irq 14
[    0.221216] ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xbfa8 irq 15
[    0.222458] ACPI: PCI Interrupt Link [LNKH] enabled at IRQ 11
[    0.222464] ehci_hcd 0000:00:1d.7: PCI INT D -> Link[LNKH] -> GSI 11 (level, low) -> IRQ 11
[    0.232254] ehci_hcd 0000:00:1d.7: irq 11, io mem 0xfcfffc00
[    0.252626] uhci_hcd 0000:00:1d.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[    0.252740] uhci_hcd 0000:00:1d.0: irq 11, io base 0x0000efe0
[    0.252966] uhci_hcd 0000:00:1d.1: PCI INT B -> Link[LNKD] -> GSI 11 (level, low) -> IRQ 11
[    0.253058] uhci_hcd 0000:00:1d.1: irq 11, io base 0x0000ef80
[    0.253274] uhci_hcd 0000:00:1d.2: PCI INT C -> Link[LNKC] -> GSI 11 (level, low) -> IRQ 11
[    0.253358] uhci_hcd 0000:00:1d.2: irq 11, io base 0x0000ef60
[    0.253664] PNP: PS/2 Controller [PNP0303:KBC,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
[    0.264907] serio: i8042 KBD port at 0x60,0x64 irq 1
[    0.264926] serio: i8042 AUX port at 0x60,0x64 irq 12
[    1.505155] ACPI: PCI Interrupt Link [LNKE] enabled at IRQ 11
[    1.505161] 8139too 0000:02:09.0: PCI INT A -> Link[LNKE] -> GSI 11 (level, low) -> IRQ 11
[    1.506772] eth0: RealTek RTL8139 at 0xce00, 00:08:0d:ad:ca:3a, IRQ 11
[    1.507088] ACPI: PCI Interrupt Link [LNKF] enabled at IRQ 11
[    1.507094] ohci1394 0000:02:07.0: PCI INT A -> Link[LNKF] -> GSI 11 (level, low) -> IRQ 11
[    1.560135] ohci1394: fw-host0: OHCI-1394 1.1 (PCI): IRQ=[11]  MMIO=[fceff800-fcefffff]  Max Packet=[2048]  IR/IT contexts=[4/8]
[    1.610210] ACPI: PCI Interrupt Link [LNKG] enabled at IRQ 10
[    1.610214] PCI: setting IRQ 10 as level-triggered
[    1.610220] nouveau 0000:01:00.0: PCI INT A -> Link[LNKG] -> GSI 10 (level, low) -> IRQ 10
[   20.574421] parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,ECP,DMA]
[   20.708615] yenta_cardbus 0000:02:0b.0: ISA IRQ mask 0x0038, PCI irq 11
[   20.844618] yenta_cardbus 0000:02:0b.1: ISA IRQ mask 0x0038, PCI irq 11
[   21.077356] Intel ICH 0000:00:1f.5: PCI INT B -> Link[LNKB] -> GSI 11 (level, low) -> IRQ 11
[   21.529682] b43-pci-bridge 0000:05:00.0: PCI INT A -> Link[LNKD] -> GSI 11 (level, low) -> IRQ 11
[   22.140553] smsc_superio_flat(): fir: 0x130, sir: 0x3f8, dma: 01, irq: 7, mode: 0x0e
[   22.140571]  IrCC version 2.0, firport 0x130, sirport 0x3f8 dma=1, irq=7
[   23.964360] lirc_sir: I/O port 0x03e8, IRQ 4.
[   24.545379] smsc_ircc_net_open(), unable to allocate irq=7

и вот:

Код: Выделить всё

$ cat /proc/interrupts
           CPU0
  0:      17327    XT-PIC-XT        timer
  1:         77    XT-PIC-XT        i8042
  2:          0    XT-PIC-XT        cascade
  3:          2    XT-PIC-XT
  4:          2    XT-PIC-XT        lirc_sir
  5:          2    XT-PIC-XT
  7:          1    XT-PIC-XT        parport0
  8:          0    XT-PIC-XT        rtc0
  9:         18    XT-PIC-XT        acpi
 10:          4    XT-PIC-XT        nouveau
 11:       2001    XT-PIC-XT        ehci_hcd:usb1, uhci_hcd:usb2, uhci_hcd:usb3, uhci_hcd:usb4, ohci1394, yenta, yenta
, Intel 82801DB-ICH4, eth0
 12:        122    XT-PIC-XT        i8042
 14:       4334    XT-PIC-XT        ata_piix
 15:        751    XT-PIC-XT        ata_piix
NMI:          0   Non-maskable interrupts
LOC:          0   Local timer interrupts
SPU:          0   Spurious interrupts
PMI:          0   Performance monitoring interrupts
PND:          0   Performance pending work
RES:          0   Rescheduling interrupts
CAL:          0   Function call interrupts
TLB:          0   TLB shootdowns
TRM:          0   Thermal event interrupts
THR:          0   Threshold APIC interrupts
MCE:          0   Machine check exceptions
MCP:          1   Machine check polls
ERR:          0
MIS:          0

Куда дальше ковырять?
Спасибо сказали:
Аватара пользователя
Rootlexx
Бывший модератор
Сообщения: 4455
Статус: GNU generation
ОС: Debian GNU/Linux

Re: Toshiba satellite 2450 + irda

Сообщение Rootlexx »

Добавьте строку в /etc/modprobe.d/irda.conf:

Код: Выделить всё

options smsc-ircc2 ircc_irq=5
Спасибо сказали:
Alsnake
Сообщения: 16

Re: Toshiba satellite 2450 + irda

Сообщение Alsnake »

Со строчкой "options smsc-ircc2 ircc_irq=5" irda0 стартанул.
dmesg:

Код: Выделить всё

...
[   18.658072] b43-phy0: Broadcom 4306 WLAN found (core revision 5)
[   18.730348] intel8x0_measure_ac97_clock: measured 65311 usecs (3145 samples)
[   18.730354] intel8x0: clocking to 48000
[   18.771761] irda_init()
[   18.771785] NET: Registered protocol family 23
[   18.821199] Detected unconfigured Toshiba laptop with Intel 82801DB/DBL LPC bridge SMSC IrDA chip, pre-configuring device.
[   18.821206] Setting up Intel 82801 controller and SMSC device
[   18.821225] Detected Chip id: 0x5a, setting up registers...
[   18.821333] found SMC SuperIO Chip (devid=0x5a rev=00 base=0x002e): LPC47N227
[   18.821350] smsc_superio_flat(): fir: 0x130, sir: 0x3f8, dma: 01, irq: 5, mode: 0x0e
[   18.821366] SMsC IrDA Controller found
[   18.821367]  IrCC version 2.0, firport 0x130, sirport 0x3f8 dma=1, irq=5
[   18.821440] smsc_ircc_set_sir_speed(), Setting speed to: 9600
[   18.821453] No transceiver found. Defaulting to Fast pin select
[   18.839095] IrDA: Registered device irda0
[   18.862461] phy0: Selected rate control algorithm 'minstrel'
[   18.863507] Registered led device: b43-phy0::tx
[   18.863535] Registered led device: b43-phy0::rx
[   18.863559] Registered led device: b43-phy0::radio
[   18.863697] Broadcom 43xx driver loaded [ Features: PL, Firmware-ID: FW13 ]
[   18.928092] b43 ssb0:0: firmware: requesting b43/ucode5.fw
[   19.008473] b43 ssb0:0: firmware: requesting b43/pcm5.fw
[   19.024150] b43 ssb0:0: firmware: requesting b43/b0g0initvals5.fw
[   19.170299] b43 ssb0:0: firmware: requesting b43/b0g0bsinitvals5.fw
[   19.322600] b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
[   19.346258] [drm] nouveau 0000:01:00.0: Allocating FIFO number 1
[   19.347339] [drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 1
[   19.394422] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   20.697615] lirc_dev: IR Remote Control driver registered, major 61
[   20.714128] lirc_dev: lirc_register_driver: sample_rate: 0
[   20.714871] lirc_sir: I/O port 0x03e8, IRQ 4.
[   20.714881] lirc_sir: Installed.
[   21.068689] smsc_ircc_change_speed() changing speed to: 9600
[   21.068711] smsc_ircc_set_sir_speed(), Setting speed to: 9600
[   21.068750] irlap_change_speed(), setting speed to 9600
[   77.352248] wlan0: deauthenticating from 00:01:23:45:67:89 by local choice (reason=3)
[   77.352491] wlan0: direct probe to AP 00:01:23:45:67:89 (try 1)
[   77.355678] wlan0: direct probe responded
[   77.355683] wlan0: authenticate with AP 00:01:23:45:67:89 (try 1)
[   77.357416] wlan0: authenticated
[   77.357443] wlan0: associate with AP 00:01:23:45:67:89 (try 1)
[   77.360452] wlan0: RX AssocResp from 00:01:23:45:67:89 (capab=0x431 status=0 aid=1)
[   77.360456] wlan0: associated
[   77.361328] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   77.361399] cfg80211: Calling CRDA for country: NA
[   77.367286] wlan0: deauthenticating from 00:01:23:45:67:89 by local choice (reason=3)
[   81.531648] eth0: link down
[   81.531735] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   81.672090] b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
[   81.753140] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   88.236228] wlan0: deauthenticating from 00:01:23:45:67:89 by local choice (reason=3)
[   88.420281] wlan0: direct probe to AP 00:01:23:45:67:89 (try 1)
[   88.422996] wlan0: direct probe responded
[   88.423004] wlan0: authenticate with AP 00:01:23:45:67:89 (try 1)
[   88.425066] wlan0: authenticated
[   88.425097] wlan0: associate with AP 00:01:23:45:67:89 (try 1)
[   88.428160] wlan0: RX AssocResp from 00:01:23:45:67:89 (capab=0x431 status=0 aid=1)
[   88.428165] wlan0: associated
[   88.429080] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   98.460060] wlan0: no IPv6 routers present

messages:

Код: Выделить всё

......
 14:16:21 ira-laptop kernel: [   18.587853] eth0: link down
Nov  7 14:16:21 ira-laptop kernel: [   18.587962] ADDRCONF(NETDEV_UP): eth0: link is not ready
Nov  7 14:16:21 ira-laptop kernel: [   18.636435] pnp 00:09: activated
Nov  7 14:16:21 ira-laptop kernel: [   18.658072] b43-phy0: Broadcom 4306 WLAN found (core revision 5)
Nov  7 14:16:21 ira-laptop kernel: [   18.730348] intel8x0_measure_ac97_clock: measured 65311 usecs (3145 samples)
Nov  7 14:16:21 ira-laptop kernel: [   18.730354] intel8x0: clocking to 48000
Nov  7 14:16:21 ira-laptop kernel: [   18.771785] NET: Registered protocol family 23
Nov  7 14:16:22 ira-laptop kernel: [   18.821199] Detected unconfigured Toshiba laptop with Intel 82801DB/DBL LPC bridge
SMSC IrDA chip, pre-configuring device.
Nov  7 14:16:22 ira-laptop kernel: [   18.821206] Setting up Intel 82801 controller and SMSC device
Nov  7 14:16:22 ira-laptop kernel: [   18.821333] found SMC SuperIO Chip (devid=0x5a rev=00 base=0x002e): LPC47N227
Nov  7 14:16:22 ira-laptop kernel: [   18.821350] smsc_superio_flat(): fir: 0x130, sir: 0x3f8, dma: 01, irq: 5, mode: 0x0e
Nov  7 14:16:22 ira-laptop kernel: [   18.821366] SMsC IrDA Controller found
Nov  7 14:16:22 ira-laptop kernel: [   18.821367]  IrCC version 2.0, firport 0x130, sirport 0x3f8 dma=1, irq=5
Nov  7 14:16:22 ira-laptop kernel: [   18.821453] No transceiver found. Defaulting to Fast pin select
Nov  7 14:16:22 ira-laptop kernel: [   18.839095] IrDA: Registered device irda0
Nov  7 14:16:22 ira-laptop kernel: [   18.863507] Registered led device: b43-phy0::tx
Nov  7 14:16:22 ira-laptop kernel: [   18.863535] Registered led device: b43-phy0::rx
Nov  7 14:16:22 ira-laptop kernel: [   18.863559] Registered led device: b43-phy0::radio
Nov  7 14:16:22 ira-laptop kernel: [   18.863697] Broadcom 43xx driver loaded [ Features: PL, Firmware-ID: FW13 ]
Nov  7 14:16:22 ira-laptop kernel: [   18.928092] b43 ssb0:0: firmware: requesting b43/ucode5.fw
Nov  7 14:16:22 ira-laptop kernel: [   19.008473] b43 ssb0:0: firmware: requesting b43/pcm5.fw
Nov  7 14:16:22 ira-laptop kernel: [   19.024150] b43 ssb0:0: firmware: requesting b43/b0g0initvals5.fw
Nov  7 14:16:22 ira-laptop kernel: [   19.170299] b43 ssb0:0: firmware: requesting b43/b0g0bsinitvals5.fw
Nov  7 14:16:22 ira-laptop kernel: [   19.322600] b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
Nov  7 14:16:22 ira-laptop kernel: [   19.346258] [drm] nouveau 0000:01:00.0: Allocating FIFO number 1
Nov  7 14:16:22 ira-laptop kernel: [   19.347339] [drm] nouveau 0000:01:00.0: nouveau_channel_alloc: initialised FIFO 1
Nov  7 14:16:22 ira-laptop kernel: [   19.394422] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Nov  7 14:16:23 ira-laptop kernel: [   20.697615] lirc_dev: IR Remote Control driver registered, major 61
Nov  7 14:16:23 ira-laptop kernel: [   20.714128] lirc_dev: lirc_register_driver: sample_rate: 0
Nov  7 14:16:23 ira-laptop kernel: [   20.714871] lirc_sir: I/O port 0x03e8, IRQ 4.
Nov  7 14:16:23 ira-laptop kernel: [   20.714881] lirc_sir: Installed.
Nov  7 14:16:24 ira-laptop irattach: executing: '/sbin/modprobe irda0'
Nov  7 14:16:24 ira-laptop irattach: executing: 'echo ira-laptop > /proc/sys/net/irda/devname'
Nov  7 14:16:24 ira-laptop irattach: executing: 'echo 1 > /proc/sys/net/irda/discovery'
Nov  7 14:16:24 ira-laptop irattach: Starting device irda0
Nov  7 14:17:20 ira-laptop kernel: [   77.361328] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Nov  7 14:17:20 ira-laptop kernel: [   77.361399] cfg80211: Calling CRDA for country: NA
Nov  7 14:17:24 ira-laptop kernel: [   81.531648] eth0: link down
Nov  7 14:17:24 ira-laptop kernel: [   81.531735] ADDRCONF(NETDEV_UP): eth0: link is not ready
Nov  7 14:17:24 ira-laptop kernel: [   81.672090] b43-phy0: Loading firmware version 410.2160 (2007-05-26 15:32:10)
Nov  7 14:17:24 ira-laptop kernel: [   81.753140] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Nov  7 14:17:31 ira-laptop kernel: [   88.429080] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

Нашел irda0 в /sys/devices/virtual/net
Теперь непойму как привязать это к LIRC.
В тех старых мануалах, что нашел (http://www.thorstenhaas.de/toshiba2410/#IRDA,http://linuxfrance.chez-alice.fr/toshiba.html) добавляют в modules.conf строчки:

Код: Выделить всё

pre-install lirc_sir /usr/local/sbin/tosh5100-smcinit
alias char-major-61 lirc_sir
options lirc_sir irq=3
alias irda0 smc-ircc
pre-install smc-ircc /usr/local/sbin/tosh5100-smcinit

Я пробовал их добавить в /etc/modules (с учетом изменившихся путей и имен) эфекта 0.
Если добавляю в /etc/modprobe.d/irda.conf:

Код: Выделить всё

pre-install lirc_sir /usr/sbin/smcinit
alias char-major-61 lirc_sir
options lirc_sir irq=5
alias irda0 smsc-ircc2
options smsc-ircc2 ircc_irq=5
pre-install smsc-ircc2 /usr/sbin/smcinit

Опять матерится на:

Код: Выделить всё

irattach: ioctl(SIOCSIFFLAGS): Resource temporarily unavailable
irattach: Stopping device irda0

и на

Код: Выделить всё

irattach: + WARNING: /etc/modprobe.d/irda.conf line 1: ignoring bad line starting with 'pre-install'
irattach: + WARNING: /etc/modprobe.d/irda.conf line 6: ignoring bad line starting with 'pre-install'

И еще смущает фраза:

Код: Выделить всё

"Please note: simultaneous use of IrDA and LIRC ist not possible. You have to remove all modules concerning
infrared before probing lirc_sir. Furthermore you have to initialize the SMSC chip like described above."

"Пожалуйста, обратите внимание: одновременное использование ИК-порта и LIRC IST не представляется
возможным. Вы должны удалить все модули, касающиеся инфракрасного до зондирования lirc_sir .
Кроме того, вы должны инициализировать чип SMSC, как описано выше. " (Google)

Может я вообще не с того конца подхожу?
Спасибо сказали:
Аватара пользователя
Rootlexx
Бывший модератор
Сообщения: 4455
Статус: GNU generation
ОС: Debian GNU/Linux

Re: Toshiba satellite 2450 + irda

Сообщение Rootlexx »

Alsnake писал(а):
07.11.2010 15:37
В тех старых мануалах, что нашел (http://www.thorstenhaas.de/toshiba2410/#IRDA,http://linuxfrance.chez-alice.fr/toshiba.html) добавляют в modules.conf строчки:

Код: Выделить всё

pre-install lirc_sir /usr/local/sbin/tosh5100-smcinit
alias char-major-61 lirc_sir
options lirc_sir irq=3
alias irda0 smc-ircc
pre-install smc-ircc /usr/local/sbin/tosh5100-smcinit

Я пробовал их добавить в /etc/modules (с учетом изменившихся путей и имен) эфекта 0.
Если добавляю в /etc/modprobe.d/irda.conf:

Код: Выделить всё

pre-install lirc_sir /usr/sbin/smcinit
alias char-major-61 lirc_sir
options lirc_sir irq=5
alias irda0 smsc-ircc2
options smsc-ircc2 ircc_irq=5
pre-install smsc-ircc2 /usr/sbin/smcinit

Опять матерится на:

Код: Выделить всё

irattach: ioctl(SIOCSIFFLAGS): Resource temporarily unavailable
irattach: Stopping device irda0

и на

Код: Выделить всё

irattach: + WARNING: /etc/modprobe.d/irda.conf line 1: ignoring bad line starting with 'pre-install'
irattach: + WARNING: /etc/modprobe.d/irda.conf line 6: ignoring bad line starting with 'pre-install'

Не нужно добавлять эти строки: запуск smcinit нужен для ядер версий менее 2.6.
Alsnake писал(а):
07.11.2010 15:37
И еще смущает фраза:

Код: Выделить всё

"Please note: simultaneous use of IrDA and LIRC ist not possible. You have to remove all modules concerning
infrared before probing lirc_sir. Furthermore you have to initialize the SMSC chip like described above."

"Пожалуйста, обратите внимание: одновременное использование ИК-порта и LIRC IST не представляется
возможным. Вы должны удалить все модули, касающиеся инфракрасного до зондирования lirc_sir .
Кроме того, вы должны инициализировать чип SMSC, как описано выше. " (Google)

Может я вообще не с того конца подхожу?

Похоже на то. Почитайте: http://www.thinkwiki.org/wiki/How_to_make_...A#LIRC_and_IrDA.
Спасибо сказали:
Alsnake
Сообщения: 16

Re: Toshiba satellite 2450 + irda

Сообщение Alsnake »

Что-то с ходу не получилось. А сейчас откопал пульт с приемником Twinhan usb-шный его попроще настроить. Хотя тоже не без проблем.
Спасибо сказали:
Ответить