WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: moxa card not communicate  (Read 24674 times)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: moxa card not communicate
« Reply #30 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
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: moxa card not communicate
« Reply #31 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

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: moxa card not communicate
« Reply #32 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

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: moxa card not communicate
« Reply #33 on: January 25, 2014, 01:24:13 PM »
I wouldn't know more than what I already posted in this thread.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: moxa card not communicate
« Reply #34 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

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: moxa card not communicate
« Reply #35 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?
t(w)o be(ers) or not t(w)o be(ers) that is the question

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14558
Re: moxa card not communicate
« Reply #36 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.

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: moxa card not communicate
« Reply #37 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14558
Re: moxa card not communicate
« Reply #38 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;

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14558
Re: moxa card not communicate
« Reply #39 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

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: moxa card not communicate
« Reply #40 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14558
Re: moxa card not communicate
« Reply #41 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.

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: moxa card not communicate
« Reply #42 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

Offline malikawan

  • Full Member
  • ***
  • Posts: 243
Re: moxa card not communicate
« Reply #43 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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14558
Re: moxa card not communicate
« Reply #44 on: January 27, 2014, 06:28:07 AM »
Since you will also need the moxa modules just use "make"