Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: malikawan on January 16, 2014, 03:17:11 AM

Title: moxa card not communicate
Post by: malikawan on January 16, 2014, 03:17:11 AM
i have installed moxa card but i don't know why its not working is there any driver or firmare tcz for moxa card plz any idea.


Malik Awan
Title: Re: moxa card not communicate
Post by: bmarkus on January 16, 2014, 04:02:44 AM
i have installed moxa card but i don't know why its not working is there any driver or firmare tcz for moxa card plz any idea.


Malik Awan

Which operating system are you talking about?
Title: Re: moxa card not communicate
Post by: malikawan on January 16, 2014, 04:05:13 AM
i m using the great tiny core 4.7.7
Title: Re: moxa card not communicate
Post by: curaga on January 16, 2014, 04:30:38 AM
What is a "moxa card"? Your post was missing rather important info.
Title: Re: moxa card not communicate
Post by: malikawan on January 16, 2014, 05:05:26 AM
What is a "moxa card"? Your post was missing rather important info.
curaga sorry its my mistake

Moxa PCI Serial Card 8-port RS-232 PCI boards (moxa card)

Malik Awan
Title: Re: moxa card not communicate
Post by: malikawan on January 16, 2014, 08:45:24 AM
Moxa PCI Serial Card 8-port RS-232 PCI boards
i have installed moxa card but i don't know why its not working is there any driver or firmare tcz for moxa card plz any idea.

Malik Awan
Title: Re: moxa card not communicate
Post by: bmarkus on January 16, 2014, 08:52:26 AM
'not working' is not very specific. Provide details please.
Title: Re: moxa card not communicate
Post by: Rich on January 16, 2014, 09:03:46 AM
Hi malikawan
The Moxa website lists a Linux driver here:
http://www.moxa.com/support/download.aspx?type=support&id=158
Title: Re: moxa card not communicate
Post by: malikawan on January 16, 2014, 09:18:57 AM
Thanx Rich now all is well
Title: Re: moxa card not communicate
Post by: tinypoodle on January 16, 2014, 09:21:06 AM
Please post output of
Code: [Select]
lspci -nnk
Title: Re: moxa card not communicate
Post by: malikawan on January 16, 2014, 10:21:49 AM
Please post output of
Code: [Select]
lspci -nnk
tinypoodle thanx for reply
sh: lspci: not found
Title: Re: moxa card not communicate
Post by: tinypoodle on January 16, 2014, 10:24:59 AM
lspci is in pci-utils extension.
Title: Re: moxa card not communicate
Post by: malikawan on January 16, 2014, 10:30:45 AM
tinypoodle is there any way to copy terminal (aterm) text like cntrl+c or any other because cntrl+c not work
Title: Re: moxa card not communicate
Post by: gerald_clark on January 16, 2014, 10:35:15 AM
cntrl+c is not text.
It is the default interrupt character.
See stty.
Title: Re: moxa card not communicate
Post by: tinypoodle on January 16, 2014, 10:41:10 AM
http://en.wikipedia.org/wiki/Control-C

http://tinycorelinux.net/faq.html#c_p
Title: Re: moxa card not communicate
Post by: Rich on January 16, 2014, 10:43:01 AM
Hi malikawan
Quote
... is there any way to copy terminal (aterm) text ...
While holding down the left mouse button, drag the mouse across the text you wish to copy .
Click the center mouse button to paste.
Title: Re: moxa card not communicate
Post by: malikawan on January 16, 2014, 10:49:28 AM
Hi malikawan
Quote
... is there any way to copy terminal (aterm) text ...
While holding down the left mouse button, drag the mouse across the text you wish to copy .
Click the center mouse button to paste.

Rich thanx for guiding sorry to say if i use laptop then what is the replacement of mouse centre button
Title: Re: moxa card not communicate
Post by: tinypoodle on January 16, 2014, 11:06:35 AM
Do you even read the content of links posted in reply to your questions??   ::)

Laptop or not laptop does not make any difference.

Instead post output of:
Code: [Select]
lspci -nnk|nc solusipse.net 9999
Title: Re: moxa card not communicate
Post by: malikawan on January 24, 2014, 12:45:09 AM
Do you even read the content of links posted in reply to your questions??   ::)

Laptop or not laptop does not make any difference.

Instead post output of:
Code: [Select]
lspci -nnk|nc solusipse.net 9999





00:00.0 Host bridge [0600]: Intel Corporation 2nd Generation Core Processor Family DRAM Controller [8086:0100] (rev 09)
   Subsystem: Intel Corporation Device [8086:201b]
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0102] (rev 09)
   Subsystem: Intel Corporation Device [8086:201b]
00:16.0 Communication controller [0780]: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 [8086:1c3a] (rev 04)
   Subsystem: Intel Corporation Device [8086:201b]
00:19.0 Ethernet controller [0200]: Intel Corporation 82579V Gigabit Network Connection [8086:1503] (rev 05)
   Subsystem: Intel Corporation Device [8086:201b]
   Kernel driver in use: e1000e
00:1a.0 USB Controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 [8086:1c2d] (rev 05)
   Subsystem: Intel Corporation Device [8086:201b]
   Kernel driver in use: ehci_hcd
00:1b.0 Audio device [0403]: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller [8086:1c20] (rev 05)
   Subsystem: Intel Corporation Device [8086:201b]
00:1c.0 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 [8086:1c10] (rev b5)
   Kernel driver in use: pcieport
00:1c.3 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 [8086:1c16] (rev b5)
   Kernel driver in use: pcieport
00:1c.4 PCI bridge [0604]: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 [8086:1c18] (rev b5)
   Kernel driver in use: pcieport
00:1d.0 USB Controller [0c03]: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 [8086:1c26] (rev 05)
   Subsystem: Intel Corporation Device [8086:201b]
   Kernel driver in use: ehci_hcd
00:1f.0 ISA bridge [0601]: Intel Corporation Z68 Express Chipset Family LPC Controller [8086:1c44] (rev 05)
   Subsystem: Intel Corporation Device [8086:201b]
00:1f.2 SATA controller [0106]: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller [8086:1c02] (rev 05)
   Subsystem: Intel Corporation Device [8086:201b]
   Kernel driver in use: ahci
00:1f.3 SMBus [0c05]: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller [8086:1c22] (rev 05)
   Subsystem: Intel Corporation Device [8086:201b]
01:00.0 PCI bridge [0604]: Integrated Technology Express, Inc. Device [1283:8892] (rev 30)
02:00.0 Serial controller [0700]: Moxa Technologies Co Ltd CP-114UL (4-port RS-232/422/485 Smart Universal PCI Serial Board) [1393:1143]
   Subsystem: Moxa Technologies Co Ltd CP-114UL (4-port RS-232/422/485 Smart Universal PCI Serial Board) [1393:1143]
03:00.0 USB Controller [0c03]: NEC Corporation uPD720200 USB 3.0 Host Controller [1033:0194] (rev 03)
   Subsystem: Intel Corporation Device [8086:201b]
   Kernel driver in use: xhci_hcd
04:00.0 FireWire (IEEE 1394) [0c00]: VIA Technologies, Inc. VT6315 Series Firewire Controller [1106:3403] (rev 01)
   Subsystem: Intel Corporation Device [8086:201b]
Title: Re: moxa card not communicate
Post by: malikawan on January 24, 2014, 12:48:42 AM
02:00.0 Serial controller [0700]: Moxa Technologies Co Ltd CP-114UL (4-port RS-232/422/485 Smart Universal PCI Serial Board) [1393:1143]
   Subsystem: Moxa Technologies Co Ltd CP-114UL (4-port RS-232/422/485 Smart Universal PCI Serial Board) [1393:1143]

how to install moxa pci serial card driver in tiny core
Title: Re: moxa card not communicate
Post by: Juanito on January 24, 2014, 01:59:19 AM
Did you try the Multiport Serial Boards Driver for Linux 2.4/2.6  (146.99 KB) on the moxa web site?
Title: Re: moxa card not communicate
Post by: tinypoodle on January 24, 2014, 02:11:38 AM
http://cateee.net/lkddb/web-lkddb/MOXA_SMARTIO.html

Quote
depends on: CONFIG_SERIAL_NONSTANDARD && ( CONFIG_PCI || CONFIG_EISA || CONFIG_ISA )

http://tinycorelinux.net/5.x/x86/release/src/kernel/config-3.8.13-tinycore

# CONFIG_EISA is not set
# CONFIG_SERIAL_NONSTANDARD is not set
Title: Re: moxa card not communicate
Post by: malikawan on January 24, 2014, 02:22:27 AM
Did you try the Multiport Serial Boards Driver for Linux 2.4/2.6  (146.99 KB) on the moxa web site?

i installed these but give error

i want to install on Tiny Core V 4.7.7
Title: Re: moxa card not communicate
Post by: malikawan on January 24, 2014, 02:25:21 AM
http://cateee.net/lkddb/web-lkddb/MOXA_SMARTIO.html

Quote
depends on: CONFIG_SERIAL_NONSTANDARD && ( CONFIG_PCI || CONFIG_EISA || CONFIG_ISA )

http://tinycorelinux.net/5.x/x86/release/src/kernel/config-3.8.13-tinycore

# CONFIG_EISA is not set
# CONFIG_SERIAL_NONSTANDARD is not set
[/quote


Sorry tinypoodle i donot understand what i do
Title: Re: moxa card not communicate
Post by: tinypoodle on January 24, 2014, 02:35:33 AM
You'd need to recompile the kernel with

CONFIG_SERIAL_NONSTANDARD=y
CONFIG_EISA=y

and

Quote
Say Y here if you have a Moxa SmartIO multiport serial card and/or want to help develop a new version of this driver.

This is upgraded (1.9.1) driver from original Moxa drivers with changes finally resulting in PCI probing.

This driver can also be built as a module. The module will be called mxser. If you want to do that, say M here.

for

CONFIG_MOXA_SMARTIO
Title: Re: moxa card not communicate
Post by: malikawan on January 24, 2014, 02:42:50 AM
You'd need to recompile the kernel with

CONFIG_SERIAL_NONSTANDARD=y
CONFIG_EISA=y

and

Quote
Say Y here if you have a Moxa SmartIO multiport serial card and/or want to help develop a new version of this driver.

This is upgraded (1.9.1) driver from original Moxa drivers with changes finally resulting in PCI probing.

This driver can also be built as a module. The module will be called mxser. If you want to do that, say M here.

for

CONFIG_MOXA_SMARTIO

thanx tinypoodle if u help me because i m not able to recompile kernel plz if u help me
Title: Re: moxa card not communicate
Post by: malikawan on January 24, 2014, 02:48:16 AM
plz tinypoodle if u create the driver to be built as a module for me i m very thankful to u
Title: Re: moxa card not communicate
Post by: malikawan on January 24, 2014, 03:09:22 AM
plz any one i need help
Title: Re: moxa card not communicate
Post by: tinypoodle on January 24, 2014, 03:27:22 AM
My impression is that you may probably need to recompile the kernel for EISA support, even if you prefer the kernel MOXA_SMARTIO driver as module.

No idea about out of tree driver from vendor, you would have to consult their documentation and or support.
Title: Re: moxa card not communicate
Post by: Juanito on January 24, 2014, 05:44:36 AM
plz any one i need help

If you look in the wiki and the recent thread "G84M grapics card driver kernel/Xorg" it explains how to recompile the kernel, did you try following these instructions?
Title: Re: moxa card not communicate
Post by: tinypoodle on January 24, 2014, 12:02:26 PM
There is rather detailed documentation here:
https://www.kernel.org/doc/Documentation/serial/moxa-smartio

Have in mind that is dated from 2008 - which is still by many years newer than the average I came across when searching on the subject...  :P
Title: Re: moxa card not communicate
Post by: malikawan on January 25, 2014, 11:53:41 AM
I am not able to compile driver for upci moxa 4 port serial card model cp114ul plz if some öne help regarding this
Thanks in advance
Title: Re: moxa card not communicate
Post by: malikawan on January 25, 2014, 12:11:57 PM
There is rather detailed documentation here:
https://www.kernel.org/doc/Documentation/serial/moxa-smartio

Have in mind that is dated from 2008 - which is still by many years newer than the average I came across when searching on the subject...  :P
Tinypoodle plz if u know about that
Title: Re: moxa card not communicate
Post by: tinypoodle on January 25, 2014, 01:24:13 PM
I wouldn't know more than what I already posted in this thread.
Title: Re: moxa card not communicate
Post by: malikawan on January 26, 2014, 06:03:38 AM
Hi to all. Today i am able to edit kernel but i donot know where i put moxa serial driver in the kernel. When i uncompres the kernel. driver folder present  but i donot know where i put moxa driver file in kernel driver files
Title: Re: moxa card not communicate
Post by: beerstein on January 26, 2014, 11:25:23 AM
I would be interested in an answer to your last question also.
How to include a module (kernel module) into the kernel to get a piece of hardware working with the system.
Would be the project "LFS - Linux From Scratch" of any help here?
Do I need to know how to recompile a kernel?
Title: Re: moxa card not communicate
Post by: Juanito on January 26, 2014, 07:23:25 PM
In this particular case, you'd first need to recompile the kernel with the settings mentioned earlier in the thread.

After that you usually follow the instructions provided with the out of tree driver package.
Title: Re: moxa card not communicate
Post by: malikawan on January 27, 2014, 03:37:33 AM
i attached two files. these two files are sufficient to make driver modules for moxa serial card for tiny core version 4.7.7 and kernel version 3.0.21
mxser.c
mxser.h

if yes plz tell me i m so confused.

Malik Awan
Title: Re: moxa card not communicate
Post by: Juanito on January 27, 2014, 03:50:50 AM
From readme.txt in the driver download for your hardware:
Quote
The Moxa Smartio/Industio driver is ready in the Linux kernel version 2.2.14 or above. But to use this built-in driver, you still need more utilities which downloaded from Moxa ftp or CD-ROM. We suggest you backup this built-in driver (/usr/src/linux/drivers/char/mxser.c) and use the driver downloaded from Moxa or CD-ROM.

..and:
Quote
# cd /
# mkdir moxa       
# cd /moxa
# cp /mnt/fd0/<driver directory>/driv_linux_smart_vx.x_build_yymmddhh.tgz
# tar -xzvf driv_linux_smart_vx.x_build_yymmddhh.tgz
...
 Find "Makefile" in /moxa/mxser, then run
# make;
Title: Re: moxa card not communicate
Post by: Juanito on January 27, 2014, 03:58:26 AM
How to include a module (kernel module) into the kernel to get a piece of hardware working with the system.
...
Do I need to know how to recompile a kernel?

For an example, see here:

http://repo.tinycorelinux.net/5.x/x86/tcz/src/wl/compile_wl_new
Title: Re: moxa card not communicate
Post by: malikawan on January 27, 2014, 03:59:01 AM
From readme.txt in the driver download for your hardware:
Quote
The Moxa Smartio/Industio driver is ready in the Linux kernel version 2.2.14 or above. But to use this built-in driver, you still need more utilities which downloaded from Moxa ftp or CD-ROM. We suggest you backup this built-in driver (/usr/src/linux/drivers/char/mxser.c) and use the driver downloaded from Moxa or CD-ROM.

..and:
Quote
# cd /
# mkdir moxa       
# cd /moxa
# cp /mnt/fd0/<driver directory>/driv_linux_smart_vx.x_build_yymmddhh.tgz
# tar -xzvf driv_linux_smart_vx.x_build_yymmddhh.tgz
...
 Find "Makefile" in /moxa/mxser, then run
# make;

Juanito thanx for reply but these driver support kernel 2.6 and now i need driver for kernel 3.0.21 plz if u do something regarding this
Title: Re: moxa card not communicate
Post by: Juanito on January 27, 2014, 04:21:25 AM
If you look at the 3.8.13 tinycore patched kernel source in linux-3.8.13-patched/drivers/tty, you can see various moxa files.

if you look at the kernel config using "make menuconfig" you can enable device drivers --> character devices --> non-standard serial port support as follows:
Code: [Select]
[*] Non-standard serial port support
...
< >   Cyclades async mux support (NEW)
<M>   Moxa Intellio support
<M>   Moxa SmartIO support v. 2.0
..and then recompile the kernel and see if things work.
Title: Re: moxa card not communicate
Post by: malikawan on January 27, 2014, 04:43:52 AM
If you look at the 3.8.13 tinycore patched kernel source in linux-3.8.13-patched/drivers/tty, you can see various moxa files.

if you look at the kernel config using "make menuconfig" you can enable device drivers --> character devices --> non-standard serial port support as follows:
Code: [Select]
[*] Non-standard serial port support
...
< >   Cyclades async mux support (NEW)
<M>   Moxa Intellio support
<M>   Moxa SmartIO support v. 2.0
..and then recompile the kernel and see if things work.

Thanx a lot Juanito that answer is full and final thanx thanx thanx a lotttttttttttttttttttttt

Malik Awan
Title: Re: moxa card not communicate
Post by: malikawan on January 27, 2014, 05:46:27 AM
In kernel 3.0.21 also moxa suport present
Sir öne last  questiön about this topic.
First i enable moxa from kernel config then i recompile kernel with command make time bzImage then copy bzImage file from arch /x86 /boot / then replace this image from old. Am i write if not plz mention step after enable moxa support.

Malik Awan
Title: Re: moxa card not communicate
Post by: Juanito on January 27, 2014, 06:28:07 AM
Since you will also need the moxa modules just use "make"
Title: Re: moxa card not communicate
Post by: malikawan on January 27, 2014, 07:26:56 AM
Since you will also need the moxa modules just use "make"
Thanx for reply
After command make time bzImage the i enter make command am i rite
Title: Re: moxa card not communicate
Post by: tinypoodle on January 27, 2014, 07:31:46 AM
http://wiki.tinycorelinux.net/wiki:custom_kernel
Title: Re: moxa card not communicate
Post by: coreplayer2 on January 27, 2014, 10:26:58 AM
Moxa support just emailed their latest code to support 3.8.x kernels so will compile and send to you to try
Title: moxa card not communicate
Post by: coreplayer2 on January 27, 2014, 04:35:44 PM
ok with a little fiddling i built the Moxa  driver for 3.8.13 and 3.0.21 kernels

Code: [Select]
tc@box:~/mxser$ make
**********************************************************************
  3.8.13-tinycore
 MOXA Smartio/Industio Family Multiport Board Device Driver ver 1.15.27
 Release Date: 2013/09/30
**********************************************************************
tc@box:~/mxser$

and loaded it
dmesg
Code: [Select]
[ 1126.497545] MOXA Smartio/Industio family driver version 1.15.27should be good to go

sent malikawan the driver to try
Title: Re: moxa card not communicate
Post by: malikawan on January 28, 2014, 12:15:35 AM
Thanx coreplayer2 i download driver which u send to me and its working 100% with tiny core 4.7.7 and kernel version 3.0.21.
thanx again.

Malik Awan
Title: Re: moxa card not communicate
Post by: malikawan on January 28, 2014, 12:27:05 AM
Summary :-
I copied the driver which coreplayer2 send to me.
i convert these file to .gz format and copy these files in /lib/modules/3.0.21-tinycore/kernel/drivers/misce and then open terminal
then open a terminal and enter:
  sudo depmod -a

then load the modules:
  sudo modprobe mxser.ko
  sudo modprobe mxupcie.ko

check dmesg for errors
check also lsmod to see if loaded
Title: Re: moxa card not communicate
Post by: malikawan on January 28, 2014, 05:04:24 AM
sir just tell me when i enable moxa support from kernel config after that which step use for building a new kernel and module because when i enable moxa support then save config file after this i give command make bzimage then i give command make then mxser.o and moxa.o files create in drivers/tty after this i m confusing how i create mxser.ko file plz tell me the step after make command.
Title: Re: moxa card not communicate
Post by: Juanito on January 28, 2014, 05:14:28 AM
As mentioned in the link a couple of posts back:
Code: [Select]
$ make bzImage
$ make modules
Title: Re: moxa card not communicate
Post by: malikawan on January 28, 2014, 05:20:48 AM
As mentioned in the link a couple of posts back:
Code: [Select]
$ make bzImage
$ make modules

but when i give command it will start to making all modules but i have enable only moxa support ?
Title: Re: moxa card not communicate
Post by: Juanito on January 28, 2014, 05:24:21 AM
no, in loading config-3.8.13-tinycore, you've enabled a whole bunch of modules.

Once things have finished you only need to save the moxa modules, the others are already available in the various tinycore module extensions.
Title: Re: moxa card not communicate
Post by: malikawan on January 28, 2014, 05:26:34 AM
"Once things have finished you only need to save the moxa modules,"
ok once finish then how i get only moxa module or its auto intall on my tiny core?
Title: Re: moxa card not communicate
Post by: Juanito on January 28, 2014, 05:32:46 AM
You first do some research on where to put the moxa modules (to check where debian puts them would be a good place to start) - it should be somewhere analogous to /usr/local/lib/modules/3.8.10-tinycore/kernel/drivers/tty or similar.

Then you use gzip and advcomp to compress the moxa modules, copy them to the filesystem and make an extension of them - most, if not all, of this is explained in the wiki and I posted a link to how it was done for the wl module extension a few posts back.
Title: Re: moxa card not communicate
Post by: malikawan on January 28, 2014, 05:37:10 AM
sir coreplayer2 have created driver for me and i have installed alredy but i just want to know when make modules finish how i create .ko

i want to create my self if next time i need i know how to install or configure it just tel me the step plzzzzzzzzzzzzzzzzzzz
Title: Re: moxa card not communicate
Post by: gerald_clark on January 28, 2014, 05:50:24 AM
You have been told, several times.
Title: Re: moxa card not communicate
Post by: tinypoodle on January 28, 2014, 05:59:18 AM
I suspect there might be some confusion between

1. The official in-tree (tristate) driver, which as far as I understand would require recompiling the kernel with different options (boolean dependencies)
2. An out-of-tree driver which coreplayer2 aquired from vendor
Title: Re: moxa card not communicate
Post by: malikawan on January 28, 2014, 06:46:24 AM
Thanx  for all of u . Specialy coreplayer2 for compiling driver for me.
Title: Re: moxa card not communicate
Post by: bmarkus on January 28, 2014, 06:50:46 AM
What I do not see do kernel provided drivers work or the vendor provided is a must have?
Title: Re: moxa card not communicate
Post by: coreplayer2 on January 28, 2014, 10:26:37 AM
According to the vendor, the in-tree version should work.  However in-tree modules lack the 4 card configuration executibles which are built with vendor supplied modules.  I would think that unless you already had the tools from an earlier install the in-tree modules would not be of much use on their own..?

I don't know how many folks would have this card?  However will make an extension with modules and tools for tc-5.x just in case
Title: [Solved] moxa card not communicate
Post by: malikawan on January 28, 2014, 11:41:31 AM
Thanks to all team of  "The Great Tiny Core Linux" . And also Speciall thanks to  coreplayer2.
Title: Re: moxa card not communicate
Post by: coreplayer2 on January 28, 2014, 12:22:15 PM
You're welcome
Title: Re: moxa card not communicate
Post by: tinypoodle on January 28, 2014, 05:19:11 PM
I don't know how many folks would have this card?
From whatever I found when researching on web, I got the impression that this driver has shown to have maintenance issues repeatedly since at least 10 years, and the multitude of references date from last century...