You are not logged in.
Pages: 1
Laptop PC Toshiba Satellite Pro 4600
Hi all, I would like to ask for help regarding the infrared installation.
I have already downloaded and installed the lirc and idra packages, but I don't know how to make the infrared work.
I need some help, maybe I did something wrong.
I can only give this information:
According to the Windows 2000 system the chip is in fact an SMC IrCC Fast Infrared Port on an Intel 82801 BAM LPC interface controller 244C. Said controller is on PCI bus 0, device 31, function 0. Windows also lists these resources for the IrDA chip:
I/O range 02F8-02FF
IRQ 10
I/O range 0130-0137
DMA 01
Offline
I found this link:
https://lirc.org/html/index.html
Does anyone know it? Do you know if it can be used on Slitaz too?
Offline
In recent months I have tried to make Linux work perfectly on my laptop. As much as this is a fabulous distribution for older PCs, Antix turned out to be better. I'm running Antix 23.2 exactly the latest version.
I attach some images. Browsing the internet, although slow, is possible completely.
[attachment=52955,3659] [attachment=52955,3660] [attachment=52955,3661]
Offline
I am perfectly aware that this is neither the right place nor the right forum, but I am trying in every way to solve this huge problem.
I think it is not possible to compile the module on my kernel 5.10.224-antix.1-486-smp (i686), in fact running the guide if I have correctly interpreted: https://groups.google.com/g/subsurface-divelog/c/sLQ4QKUK34Y
(First downloaded: https://archive.debian.org/debian/pool/main/i/irda-utils/ I must also download irda-utils_0.9.18-12_i386.deb and set aside)
Procedure of the guide:
1: git clone https://github.com/cschramm/irda.git
2: cd irda
3: autoconf
4: ./configure
5: sudo dkms add .
Here an error is generated:
Error! Arguments <module> and <module-version> are not specified. Usage: add <module>/<module-version> or add -m <module>/<module-version> or add -m <module> -v <module-version>)
the discrepancy is the version reported by the guide: 1.0 and the one I found: 20241102~7920262
sudo dkms add -m irda -v 20241102~7920262
But it shows the error: Error! Could not find module source directory. Directory: /usr/src/irda-20241102~7920262 does not exist.
Then I had to copy the required file to the folder where I am operating:
sudo cp /home/Andrea/irda/src/dkms.conf /usr/src/irda-20241102~7920262/
So at this point, I resumed the process of configuring and installing the DKMS modules
sudo dkms add -m irda -v 20241102~7920262
Then:
sudo dkms build -m irda -v 20241102~7920262
But the command generated:
$ sudo dkms build -m irda -v 20241102~7920262
Sign command: /lib/modules/5.10.224-antix.1-486-smp/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Building modules:
Cleaning build area....(bad exit status: 2)
make -j1 KERNELRELEASE=5.10.224-antix.1-486-smp...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.10.224-antix.1-486-smp (i686)
Consult /var/lib/dkms/irda/20241102~7920262/build/make.log for more information.
I went to see the file:
DKMS make.log for irda-20241102~7920262 for kernel 5.10.224-antix.1-486-smp (i686)
Mon Jan 27 2025, 16:40:32, CET
make: *** No target specified and no makefile found. Crashing.
And here I think this error is due to an incompatibility. I’m stuck.
Offline
Hi NarakuITA,
hmm if check https://github.com/cschramm/irda, said that master work with 6.6 kernel branch, could be explain issue you have because you use 5.10 ?
I notice that see 3 tags 4.15, 5.4 and 5.15 in case 5.10 seem not supported (maybe 5.4 work for 5.10)
Offline
I hadn't noticed I should use a minimum kernel version of 6.6 or an older lernel up to 4.15, if I understood correctly?
Maybe I need to find a suitable DKMS for my kernel, to try building the package again?
Checking the available kernels on antix I found the only one that is probably compatible:
$ apt-cache search linux-image | grep 686 | grep antix
linux-image-4.9. 0-326-antix.1-686-smp-pae
$ apt-cache search linux-headers | grep 686
linux-headers-4.9. 0-326-antix.1-686-smp-pae
There are the most recent kernels 6.x and later but they are in my opinion too heavy for my poor old machine.
Offline
Infact 6.x maybe too heavy for old machine.
In case, you can try 4.15 with 4.9 kernel, or 5.4 / 5.15 with your 5.10 kernel.
To help, can you please attach this file "/var/lib/dkms/irda/20241102~7920262/build/make.log" to understand exactly issue you have ?
Offline
Look at the log you asked for, I already posted it. It only reports this message and nothing else:
DKMS make.log for irda-20241102~7920262 for kernel 5.10.224-antix.1-486-smp (i686) Mon Jan 27 2025, 16:40:32, CET make: *** No target specified and no makefile found. Crashing.
Then I don't understand, isn't 4.5 the kernel? If I use 4.9 I can't use 4.15 at the same time
Offline
Hi NarakuITA,
Test i do for kernel 5.10 on SliTaz current64 :
- Extract linux-5.10.221 tarball
- Copy linux-slitaz.config64 as .config inside linux-5.10.221 folder
- Prepare module inside linux-5.10.221 folder [c]make modules_prepare[/c]
- Fetch kernel-5.4 branch of github irda
- Build module
For kernel-5.15, i have issue of incompatible pointer type
[...]
CC [M] /home/slitaz/src/irda-kernel-5.15/src/net/ircomm/ircomm_tty.o
/home/slitaz/src/irda-kernel-5.15/src/net/ircomm/ircomm_tty.c:101:21: error: initialization of 'int (*)(struct tty_struct *)' from incompatible pointer type 'unsigned int (*)(struct tty_struct *)' [-Werror=incompatible-pointer-types]
.write_room = ircomm_tty_write_room,
^~~~~~~~~~~~~~~~~~~~~
/home/slitaz/src/irda-kernel-5.15/src/net/ircomm/ircomm_tty.c:101:21: note: (near initialization for 'ops.write_room')
/home/slitaz/src/irda-kernel-5.15/src/net/ircomm/ircomm_tty.c:102:21: error: initialization of 'int (*)(struct tty_struct *)' from incompatible pointer type 'unsigned int (*)(struct tty_struct *)' [-Werror=incompatible-pointer-types]
.chars_in_buffer = ircomm_tty_chars_in_buffer,
^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/slitaz/src/irda-kernel-5.15/src/net/ircomm/ircomm_tty.c:102:21: note: (near initialization for 'ops.chars_in_buffer')
cc1: some warnings being treated as errors
make[3]: *** [scripts/Makefile.build:286: /home/slitaz/src/irda-kernel-5.15/src/net/ircomm/ircomm_tty.o] Error 1
make[2]: *** [scripts/Makefile.build:503: /home/slitaz/src/irda-kernel-5.15/src/net/ircomm] Error 2
root@slitaz-eeepc:/home/slitaz/src/irda-kernel-5.4/src# KBUILD_NOPEDANTIC=1 make
-C /home/slitaz/src/linux-5.10.221 M=[c]pwd[/c]
[...]
CC [M] /home/slitaz/src/irda-kernel-5.4/src/net/irda.mod.o
LD [M] /home/slitaz/src/irda-kernel-5.4/src/net/irda.ko
CC [M] /home/slitaz/src/irda-kernel-5.4/src/net/irlan/irlan.mod.o
LD [M] /home/slitaz/src/irda-kernel-5.4/src/net/irlan/irlan.ko
CC [M] /home/slitaz/src/irda-kernel-5.4/src/net/irnet/irnet.mod.o
LD [M] /home/slitaz/src/irda-kernel-5.4/src/net/irnet/irnet.ko
make: Leaving directory '/home/slitaz/src/linux-5.10.221'
root@slitaz-eeepc:/home/slitaz/src/irda-kernel-5.4/src# modinfo net/irda.ko
filename: /home/slitaz/src/irda-kernel-5.4/src/net/irda.ko
alias: net-pf-23
license: GPL
description: The Linux IrDA Protocol Stack
author: Dag Brattli <dagb@cs.uit.no> & Jean Tourrilhes <jt@hpl.hp.com>
depends:
name: irda
vermagic: 5.10.221-slitaz64 SMP mod_unload
Offline
Then I deleted the current IrDA directory:
rm -rf ~/irda
Cloned the repository with the correct branch (kernel-5.4):
git clone --branch kernel-5.4 https://github.com/cschramm/irda.git ~/irda
Verify that the correct branch was downloaded and Compiling the module:
cd ~/irda
git tag
git checkout kernel-5.4
make -C src
DKMS usage
autoconf -f && ./configure
sudo dkms add src
sudo dkms install "irda/$(git show --pretty=format:"%cd~%h" --date="format:%Y%m%d" | head -1)"
Searching for the infrared model, in this case, thanks to Windows 2000 I have SMC IrCC Fast Infrared Port on Intel controller 82801 BAM LPC.
According to the README the correct driver is smsc-ircc2 (at least I think I interpreted the information in the readme correctly).
sudo modprobe smsc-ircc2
Verifying that the module was loaded correctly and that the device was present:
lsmod | grep ircc
dmesg | grep -i irda
Since the modules were loaded correctly but the device was not visible, I ran:
sudo mknod /dev/irda0 c 237 0
This command manually creates the IrDA device if it does not exist. Then I checked if /dev/irda0 was created:
ls /dev/irda0
However, the device could not be used.
Then I tried to force the module to load with hardware parameters
with Windows 2000 parameters, this indicated these resources:
I/O range: 02F8-02FF
IRQ: 10
I/O range: 0130-0137
DMA: 01
sudo rmmod smsc_ircc2 irda
sudo modprobe smsc-ircc2 dongle_id=0x09 io=0x02F8 irq=10 dma=1
However this did not work and checking.
$ dmesg | tail -n 20
[ 1539.408315] [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:a0:95:7f:5e:f8:a0:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=52087 DF PROTO=2
[ 1573.370857] usb 1-1: USB disconnect, device number 4
[ 1664.403542] [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:a0:95:7f:5e:f8:a0:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=32 TOS=0x00 PREV=0x00 TTL=1 ID=33048 DF PROTO=2
[ 1789.397825] [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:a0:95:7f:5e:f8:a0:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=20918 DF PROTO=2
[ 1914.392615] [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:a0:95:7f:5e:f8:a0:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=25665 DF PROTO=2
[ 2039.387446] [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:a0:95:7f:5e:f8:a0:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=32900 DF PROTO=2
[ 2164.382137] [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:a0:95:7f:5e:f8:a0:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x00 TTL=1 ID=17199 DF PROTO=2
[ 2221.875374] NET: Unregistered protocol family 23
[ 2289.376895] [UFW BLOCK] IN=eth0 OUT= MAC=01:00:5e:00:00:01:a0:95:7f:5e:f8:a0:08:00 SRC=192.168.1.254 DST=224.0.0.1 LEN=32 TOS=0x00 PREV=0x00 TTL=1 ID=19662 DF PROTO=2
[ 2331.886144] NET: Registered protocol family 23
[ 2331.899299] smsc_ircc2: unknown parameter 'dongle_id' ignored
[ 2331.899314] smsc_ircc2: unknown parameter 'io' ignored
[ 2331.899320] smsc_ircc2: unknown parameter 'irq' ignored
[ 2331.899326] smsc_ircc2: unknown parameter 'dma' ignored
[ 2331.901156] found SMC SuperIO Chip (devid=0x5a rev=00 base=0x002e): LPC47N227
[ 2331.901184] smsc_superio_flat(): fir: 0x100, sir: 0x2f8, dma: 01, irq: 5, mode: 0x0e
[ 2331.901210] SMsC IrDA Controller found
IrCC version 2.0, firport 0x100, sirport 0x2f8 dma=1, irq=5
[ 2331.903000] No transceiver found. Defaulting to Fast pin select
[ 2331.906458] IrDA: Registered device irda0
The message: No transceiver found. Defaulting to Fast pin select means that the smsc_ircc2 module was loaded correctly, recognized the hardware and registered irda0, but did not detect a transceiver (the hardware component that allows infrared communication).
I wanted to check if the serial port was correct.
$ sudo dmesg | grep tty
[ 0.114823] printk: console [tty0] enabled
[ 5.073519] 00:06: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
The message I got from dmesg | grep tty indicates that the serial port ttyS0 was recognized correctly and is on I/O port 0x3f8 with IRQ4, which is the default serial port (COM1). This is consistent with the BIOS setup I saw earlier, where the serial port is configured to COM1.
The presence of ttyS0 confirms that the part of the operating system that handles serial communication (which is critical for IrDA) is up and running. However, the fact that I don't see irda0 in /dev implies that the infrared device was not created correctly, despite the smsc_ircc2 module being loaded.
I have no other options.
I tried to use Kernl 4.9.0 but it doesn't work. In fact the system doesn't even boot, remaining with a black screen. I assume it's the IrDA module that is not compatible.
In fact during the installation of the kernel it gave errors: https://codefile.io/f/Ifa4WrvDUc
In the README it says.
### Minimum Linux versions?
5.4. (See kernel-* tags for versions that support older versions of Linux (down to 4.15).)
This is strange because instead on the github.com page it is declared:
Minimum Linux versions?
6.6. (See kernel-* tags for versions that support older versions of Linux (down to 4.15).)
Offline
Having made some mistakes, I delete everything I have done previously to start over with the compilation.
Once everything is deleted, I also delete the current IrDA directory:
$ rm -rf ~/irda
Following a user on the Slitaz distribution he tried to compile IrDA on a system with kernel 5.10.221 (very close to my 5.10.224) and followed these steps:
Cloning the repository with the correct branch (kernel-5.4):
$ git clone --branch kernel-5.4 https://github.com/cschramm/irda.git ~/irda
Verifying the correct branch has been downloaded and Building the module:
$ cd ~/irda
$ git tag
$ git checkout kernel-5.4
Building the Module
$ make -C src
Using DKMS
$ autoconf -f && ./configure
$ sudo dkms add src
$ sudo dkms install "irda/$(git show --pretty=format:"%cd~%h" --date="format:%Y%m%d" | head -1)"
Finding the infrared model, in this case, thanks to Windows 2000 I have SMC IrCC Fast Infrared Port on Intel 82801 BAM LPC controller.
According to the README the correct driver is smsc-ircc2.
$ sudo modprobe smsc-ircc2
Verifying the module loaded correctly and the presence of the device:
$ lsmod | grep ircc
smsc_ircc2 20480 0
irda 139264 1 smsc_ircc
$ sudo dmesg | grep -i irda
[ 2823.024338] irda: loading out-of-tree module taints kernel.
[ 2823.049529] SMsC IrDA Controller found
[ 2823.051546] IrDA: Registered device irda0
Installing irda-utils_0.9.18-15_i386.deb
Checking irda0 interface if active:
$ ip link show irda0
3: irda0: <NOARP> mtu 2048 qdisc noop state DOWN mode DEFAULT group default qlen 8
link/irda 00:00:00:00 brd ff:ff:ff:ff
Since the interface is not active, I manually activate it:
$ sudo ip link set irda0 up
After activating it, I check and if I’m not mistaken it is active:
$ sudo ip link show irda0
3: irda0: <NOARP,UP,LOWER_UP> mtu 2048 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 8
link/irda d3:05:9b:80 brd ff:ff:ff:ff
IrDA traffic control:
$ sudo irdaping irda0
IrDA ping (0x00000000 on irda0): 32 bytes
Ctrl+C to stop the process and it appears as a message:
32 packets received by filter
Keep in mind that there is no device that is connected, so I do not understand where these received packets come from.
I tried to connect my Palm m100 to the infrared of the laptop, normally when it is set to “IR transmission to PC” it connects to the Laptop, and the message “Waiting for Sender” appears. It indicates that it is connected and waiting for instructions to receive or send data. This does not happen now.
To check if it is connected, in theory on Windows you don’t have to do anything, only if you actually want to transfer data, you will need HotSync and Palm Desktop or Outlook Software. But to check the connections these are not necessary, the connection is automatic, but only the connection between the two devices.
What is missing? Maybe I did something wrong?
Offline
So I solved it like this:
Check if setserial is installed:
$ apt-cache policy setserial
setserial:
Installato: 2.17-53+b1
Candidato: 2.17-53+b1
Tabella versione:
*** 2.17-53+b1 500
500 http://ftp.it.debian.org/debian bookworm/main i386 Packages
100 /var/lib/dpkg/status
Activate serial communication daemon (irattach):
sudo irattach irda0 -s
Device discovery:
$ cat /proc/net/irda/discovery
IrLMP: Discovery log:
nickname: Palm III, hint: 0x8220, saddr: 0xe8de1b8a, daddr: 0x38732053
Ping to the address of the Palm m100
$ sudo irdaping 0x38732053
IrDA ping (0x38732053 on irda0): 32 bytes
32 bytes from 0x38732053: irda_seq=0 time= 99.32 ms.
32 bytes from 0x38732053: irda_seq=1 time= 99.33 ms.
32 bytes from 0x38732053: irda_seq=3 time= 99.31 ms.
32 bytes from 0x38732053: irda_seq=4 time= 99.33 ms.
32 bytes from 0x38732053: irda_seq=6 time=101.14 ms.
32 bytes from 0x38732053: irda_seq=7 time=100.53 ms.
32 bytes from 0x38732053: irda_seq=8 time=100.66 ms.
32 bytes from 0x38732053: irda_seq=9 time=100.56 ms.
32 bytes from 0x38732053: irda_seq=10 time=100.58 ms.
32 bytes from 0x38732053: irda_seq=11 time=100.60 ms.
32 bytes from 0x38732053: irda_seq=12 time=100.60 ms.
32 bytes from 0x38732053: irda_seq=13 time=100.62 ms.
32 bytes from 0x38732053: irda_seq=14 time=100.53 ms.
32 bytes from 0x38732053: irda_seq=15 time=100.54 ms.
32 bytes from 0x38732053: irda_seq=16 time=100.58 ms.
^X32 bytes from 0x38732053: irda_seq=17 time=100.59 ms.
19 packets received by filter
Sysvinit based setup:
sudo nano /etc/rc.local
Commands to activate Irda at boot:
#!/bin/sh
/sbin/ip link set irda0 up
/usr/sbin/irattach irda0 -s
exit 0
Made executable:
sudo chmod +x /etc/rc.local
Added Kernel module at boot:
sudo nano /etc/modules
Add:
smsc_ircc2
Now infrared will be started automatically at boot.
Offline
Hi NarakuITA,
Nice to read this, when i do few search about irda, i remember found about irattach.
I see we don't have irda-utils, let's me check to add them.
Of course, i would understand if you stayed on Antix, but i will still add irda-utils in case other people want to use infrared on SliTaz.
On "current/current64", don't have linux-irda, need to add also.
Offline
Sure When I'll have finished configuring everything, I could try to go back to Slitaz. It is actually a lighter system. But currently Antix even if heavier, is behaving better.
Saying to also add Pale Moon 32 bit, I don't know if it's a change made by them, but there is a Pale Moon 32 bit no SS2 and it allows better navigation than the default browser of Slitaz.
By the way, do you know jpilot?
I've been trying for days to install jpilot which is the counterpart of Plam Desktop for windows. It is used to synchronize data with my Palm m100
But I can't install it.
Now in the Antix repository unfortunately there is no program, and this too must be compiled and installed manually:
git clone https://github.com/juddmon/jpilot.git
cd jpilot.
Installation dependencies:
sudo apt install build-essential libgtk2.0-dev libglib2.0-dev libgdk-pixbuf2.0-dev \
libpango1.0-dev libatk1.0-dev libxtst-dev libusb-dev libssl-dev autoconf \
automake libtool
Then also:
sudo apt install intltool
su -c "apt install libgcrypt20-dev"
sudo apt-get install libgtk-3-dev libcrypt-dev
I started the compilation process to install everything, but...
Process log ./autogen.sh
LOG: https://codeshare.io/8XBxLZ
The process I ran produced a number of warnings about the use of deprecated macros and other aspects of the configuration file, but it seemed to proceed fine until the configuration part.
So I continued with the command: ./configure
LOG: https://codeshare.io/k0XLxx
The error I'm seeing, "Could not find the pilot-link header files", means that the system cannot find the pilot-link header files, which are required for the configuration to complete correctly. pilot-link is a library used to interact with Palm OS devices, and it looks like the project you're trying to compile needs this library.
And only later did I notice that the same warning appears ./autogen.sh
So I tried to find pilot-link, which is also not available in Antix.
git clone https://github.com/jichu4n/pilot-link.git
cd pilot-link
Executed the following command with error:
$ ./autogen.sh
**Error**: You must have `libtool' installed to compile pilot-link.
Get ftp://ftp.gnu.org/pub/gnu/libtool/libtool-1.5.tar.gz
(or a newer version if it is available)
Very strange because libtool is installed and it is at the latest version.
I don’t know where to turn anymore.
Offline
So, I solved it this way: I searched for the archived i386 packages on the debian site: pilot-link_0.12.5-dfsg-2+b3_i386.deb and the required dependencies and jpilot_1.8.2-2_i386.deb, jpilot-plugins_1.8.2-2_i386.deb
The program starts.
Photo showing the program launch:
[attachment=53049,3673]
Pilot-link is installed correctly:
pilot-xfer --version
DEPRECATED: The application is calling print_splash()
.-------------------------------------------.
| (c) Copyright 1996-2006, pilot-link team |
| Join the pilot-link lists to help out. |
`------------------------------------------'
This is pilot-xfer, from pilot-link version 0.12.5
Build target..: i686-pc-linux-gnu
Build date....: Aug 9 2015 14:25:03
pilot-link 0.12.5 is covered under the GPL/LGPL
See the file COPYING under docs for more info.
Please use --help for more detailed options.
Although I have installed infrared, and you can see:
$ lsmod | grep irda
irda 139264 1 smsc_ircc2
$ sudo dmesg | grep tty
[sudo] password di Andrea:
[ 0.114854] printk: console [tty0] enabled
[ 5.075807] 00:06: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
I can't sync my PDA with jpilot. I don't know if I'm missing a step...
Offline
Pages: 1
[ Generated in 0.028 seconds, 7 queries executed - Memory usage: 1.6 MiB (Peak: 1.77 MiB) ]