Jump to content

Humusoft MF6xx: Difference between revisions

From HW wiki
Pisa (talk | contribs)
No edit summary
Pisa (talk | contribs)
MF624 UIO Support mainlined
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This page is mainly focussed on Linux [http://www.kernel.org/doc/htmldocs/uio-howto.html UIO]
This page is mainly focussed on Linux [http://www.kernel.org/doc/htmldocs/uio-howto.html UIO]
driver support for data acquisition cards produced by [http://www.humusoft.com/ Humusoft] company.
and [http://www.comedi.org/ Comedi] driver support for data acquisition cards produced by [http://www.humusoft.com/ Humusoft] company.


The two card odels are considered at the first phase
 
== MF6xx ==
 
The two card models are considered at the first phase


* MF624 - Data Acquisition Board - http://www.humusoft.cz/produkty/datacq/mf624/
* MF624 - Data Acquisition Board - http://www.humusoft.cz/produkty/datacq/mf624/
* MF614 - Data Acquisition Board - http://www.humusoft.cz/produkty/datacq/old/mf614/
* MF614 - Data Acquisition Board - http://www.humusoft.cz/produkty/datacq/old/mf614/
== Hudaqlib ==


Hudaqlib project developed by Jaroslav Fojtik provides Linux userspace
Hudaqlib project developed by Jaroslav Fojtik provides Linux userspace
access and I/O support furctions for above cards
access and I/O support functions for above cards
 
The project homepage is at http://www.penguin.cz/~fojtik/hudaqlib/hudaqlib.html
The project homepage is at http://www.penguin.cz/~fojtik/hudaqlib/hudaqlib.html
== UIO Support ==
Source code of the UIO and Comedi drivers are available in "[http://rtime.felk.cvut.cz/gitweb/mf6xx.git/tree/HEAD:/src/uio /src/uio]"
directory of [http://rtime.felk.cvut.cz/gitweb/mf6xx.git GIT repository].
Public read-only access to the repository:
  git clone git://rtime.felk.cvut.cz/mf6xx.git
For RW access:
  git clone git@rtime.felk.cvut.cz:mf6xx
The code can be browsed online in Rtime GIT mf6xx.git [http://rtime.felk.cvut.cz/gitweb/mf6xx.git/tree/HEAD:/src/uio repository]
The experimental UIO based Hudaqlib port for MF624 and MF614 is part of [http://rtime.felk.cvut.cz/gitweb/mf6xx.git/tree/HEAD:/src/hudaqlib repository] as well.
UIO MF624 direct access blocks for [http://lintarget.sourceforge.net/ ERT Linux target] are available from local MF624 Simulink support [https://rtime.felk.cvut.cz/gitweb/mf624-simulink.git repository]
MF624 UIO kernel driver has been merged to Linux mainline ([https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/uio/uio_mf624.c actual driver source]). Because MF624 memory mapped BAR ranges are shorter than page (4 kB) the kernel blocks remapping
to user-space to protect other possible resources located in the same physical page. But kernel parameter can be used to activate
PCI quirk which extends MF624 memory resources/BARS to reserve whole 4 kB range. The card PCI bus and slot has to be found by
lspci command and then kernel boot parameter has to be added (adjusted for actual board slot)
  pci=resource_alignment=02:02.0
== COMEDI Driver ==
The code can be browsed online in Rtime GIT mf6xx.git [http://rtime.felk.cvut.cz/gitweb/mf6xx.git/tree/HEAD:/src/comedi repository]
== QEMU Emulation of MF624 ==
The code can be browsed online in Rtime GIT mf6xx.git [http://rtime.felk.cvut.cz/gitweb/mf6xx.git/tree/HEAD:/src/qemu repository]
== MF6xx COMEDI, UIO and QEMU RTLWS13 Article ==
[http://lwn.net/images/conf/rtlws-2011/paper.14.html COMEDI and UIO drivers for PCI Multifunction Data Acquisition and Generic I/O Cards and Their QEMU Virtual Hardware Equivalents]
== Driver implementation / Implementace ovladae ==
[Czech language only]
Popis [[mf6xx_driver_implementation|implementace ovladae]]

Latest revision as of 22:19, 23 February 2014

This page is mainly focussed on Linux UIO and Comedi driver support for data acquisition cards produced by Humusoft company.


MF6xx

The two card models are considered at the first phase


Hudaqlib

Hudaqlib project developed by Jaroslav Fojtik provides Linux userspace access and I/O support functions for above cards

The project homepage is at http://www.penguin.cz/~fojtik/hudaqlib/hudaqlib.html

UIO Support

Source code of the UIO and Comedi drivers are available in "/src/uio" directory of GIT repository.

Public read-only access to the repository:

  git clone git://rtime.felk.cvut.cz/mf6xx.git

For RW access:

  git clone git@rtime.felk.cvut.cz:mf6xx

The code can be browsed online in Rtime GIT mf6xx.git repository

The experimental UIO based Hudaqlib port for MF624 and MF614 is part of repository as well.

UIO MF624 direct access blocks for ERT Linux target are available from local MF624 Simulink support repository

MF624 UIO kernel driver has been merged to Linux mainline (actual driver source). Because MF624 memory mapped BAR ranges are shorter than page (4 kB) the kernel blocks remapping to user-space to protect other possible resources located in the same physical page. But kernel parameter can be used to activate PCI quirk which extends MF624 memory resources/BARS to reserve whole 4 kB range. The card PCI bus and slot has to be found by lspci command and then kernel boot parameter has to be added (adjusted for actual board slot)

 pci=resource_alignment=02:02.0

COMEDI Driver

The code can be browsed online in Rtime GIT mf6xx.git repository

QEMU Emulation of MF624

The code can be browsed online in Rtime GIT mf6xx.git repository

MF6xx COMEDI, UIO and QEMU RTLWS13 Article

COMEDI and UIO drivers for PCI Multifunction Data Acquisition and Generic I/O Cards and Their QEMU Virtual Hardware Equivalents

Driver implementation / Implementace ovladae

[Czech language only]

Popis implementace ovladae