Tiny Core Linux
Tiny Core Base => Micro Core => Topic started by: the_beast666 on March 07, 2016, 07:27:44 AM
-
Hi all
I'm trying to get TC to run on an old pc/104 SBC I have lying around. I intend to use it with ser2net so I can access a number of serial devices on my home automation system. The specs are a little on the low side (166MHz pentium-class CPU, 128MB RAM with 4MB reserved for graphics, 32MB IDE flash storage) but after a lot of trial and error and a lot of learning I have microcore running with a static IP address.
But I've hit a problem - the SBC has 4 serial ports on board, and I have an ISA expansion card with another 4 ports on it - and I need at least 6 ports for my current devices. The trouble is I can't get the add-in card to work. I think that this is down to TC only supporting 4 ports in the kernel (but I'm new to the whole linux thing, so I may be wide of the mark with that!).
Is there any simple way of adjusting the kernel parameters to allow my system to use 8 ports? I've tried adding:
CONFIG_SERIAL_8250_NR_UARTS=8
SERIAL_8250_RUNTIME_UARTS=8
to the extlinux.conf file, but they appear to be ignored (and I'm not even sure if they're relevant to be honest!). Do I need to recompile the kernel from scratch? I'm not sure either my brain nor my little CPU could cope with that...
-
Hi,
maybe this helps?
https://www.kernel.org/doc/Documentation/kernel-parameters.txt
nr_uarts= [SERIAL] maximum number of UARTs to be registered.
-
The kernel in 7.x x86 was compiled with
CONFIG_SERIAL_8250_NR_UARTS=32
CONFIG_SERIAL_8250_RUNTIME_UARTS=4
-
Try "8250.nr_uarts=8" in extlinux.conf.
-
thanks everyone - with the "8250.nr_uarts=8" added in I got the additional ports to show up. I then encountered an issue with setserial failing with an "invalid argument" error, but that's also sorted now (I needed to set the base baud rate before I could set the other port parameters in case anyone else has this problem).
Now I just need to try and get it to actually do something useful :)