
  4.07c      
Linux   ISA, PCI  PCI-Express    
 2.2-6.x:
http://www.elcus.ru/files/mil-std/drv/upd1553lin407c.zip

     4.06  Linux  
  2.2-3.3:
http://www.elcus.ru/files/mil-std/drv/1553lin406.zip
http://www.elcus.ru/files/mil-std/drv/1553lin.zip

  tmk1553b_upd407c    
  4.07c    . 
  ,   
,   ,    include 
      
 ltmk.c  ltmk.h  ,   
       
 4.06.

        
   ,     
    ,    
.

    :
sudo apt install linux-headers-$(uname -r)

        
    ,   
 :
sudo apt install linux-headers*

     
:
sudo apt install gcc
sudo apt install make

       
.     
    tmk1553b.ko    
 .      
Linux       
 ,    
      
,       
 .       
     
 -    :

sudo apt install libelf-dev
sudo apt install pahole
sudo ln -s /sys/kernel/btf/vmlinux /usr/src/linux-headers-$(uname -r)/vmlinux

      c  c 2.6 
 6.x (    ,     
 )    make26umt  
make26um     .    2.6 
 4.x    make26uut  make26uu  
  (,     
 2.6)  make26umt  make26um. , 
    make26umt , 
  :
chmod +x make26umt
./make26umt

        
     tmk1553b.ko.

     
     
  TA1   PCI-Express  PCI (TA1-PE2 
 TA1-PCI4-02)   Linux (   
 /dev/tmk1553b    , 
   misc=1):

1)        
      0  1:
sudo insmod ./tmk1553b.ko d0=1 e0=1 t0="TAI" d1=1 e1=2 t1="TAI" misc=1 
2)       :
sudo chmod ugo+r /dev/tmk1553b 
3)      0  1 
  :
./simpltst 0
./simpltst 1

        
 TA1      PCI-Express  PCI.
       
    readme (DOS )   readme_e 
(. )     4.06,   
       
 ,     .

         
   4.06  :
http://www.elcus.ru/files/mil-std/drv/1553lin406.zip

  simpltst       , 
       :
Int: 0
We got interrupt!
Int: 1

   insmod (    
c  sudo) -   , 
  ,    .  
     , 
     .

,   'invalid module format'  
      , 
   ,   , 
    .

  'operation not permitted'    
      
 (,      
PCI   d     
  PCI   e,      
   lspci    dmesg),  
      BIOS  Secure Boot, 
         
,  .    
    ,   
    ,    
  Linux   :
https://wiki.debian.org/SecureBoot
      
Secure Boot   ,    
  ,  c   
mokutil:
sudo apt install mokutil
sudo mokutil --disable-validation
       Secure 
Boot      
   ,    
      ,  
     Secure Boot  
  ,   
.

  (   
misc=1)      
.       
  /dev/tmk1553b,    
   ,  :
sudo chmod ugo+r /dev/tmk1553b 

 ,      
    ,   
    /etc/udev/rules.d   
52-elcus.rules     :
KERNEL=="tmk1553b", MODE="0666"
      :
udevadm control --reload-rules
udevadm trigger

      
     (   
 root,  sudo):

-      
/lib/modules/`uname -r`/kernel
  
/lib/modules/`uname -r`/kernel/drivers
 ,       
,    .

-   /etc/modprobe.d   tmk1553b.conf 
:
options tmk1553b 
  -      
 insmod.  ,      
  TA1-PE2  TA1-PCI4-02  :
options tmk1553b d0=1 e0=1 t0="TAI" d1=1 e1=2 t1="TAI" misc=1

-   /etc/modules-load.d   tmk1553b.conf
 :
tmk1553b

-   depmod

-   /etc/udev/rules.d   52-elcus.rules
    :
KERNEL=="tmk1553b", MODE="0666"

-  


        
   readme (DOS )   readme_e (. 
)     4.06,    
       
,  .


    :
      2.6   
       misc 
      
/dev/tmk1553b,       
  misc=1 (   
     
).       
 /dev/tmk1553b (    readme 
   4.06)   2.6   
  . ,    
 2.6     readme   
 4.06     /dev/tmk1553b 
  mknod,      
 misc=1       
       ,  
      .
