Treiber für LCD

Cyberscitymaste

Active Member
Oct 3, 2016
29
0
41
51
Hallo liebe Gemeinde ich versuche seit Tagen den plcm_drv ins proxmox einzubauen nun benötige ich eure Hilfe
mein Server hat ein 2 Zeilen LCD dort möchte ich CPU temperatur uns sonstige informationen ablesen können
doch der Kernal von Proxmox basiert auf Debian und der plcm_drv ist dort nicht eingepflegt
könnte mir einer dabei helfen diesen mit einzubauen.
 

Attachments

  • LCD.zip
    56 KB · Views: 5
Der Kernel basiert auf Ubuntu LTS und "mal einfach so einen Kerneltreiber umbauen" würde ich für ein System wie Proxmox eigentlich nie in Betracht ziehen. Zu gefährlich wenn da mal was kaputt geht.

Wie ist denn das LCD angeschlossen? Vielleicht kann man es "durchschleifen" und du kannst dir eine VM bauen mit deinem Lieblings-OS, dass den Treiber von Haus aus unterstützt.
 
das LCD wird via LPT angesteuert und es soll von Proxmox selber die ausgabe wie CPUlast temperatur HDD und soweiter ausgeben.
 
Also Parallelport und das sollte prima durchgeschleift werden können, wenn man das will. Interessant zu sehen, dass immer noch Parallelports im Einsatz sind :-D
 
ich würde mich dan echt freuen doch es geht nicht das display läst sich von einer VM garnicht mehr ansprechen den der parport0 ist da nicht mehr vorhanden
 
ich habe nun ein Komplett packet gefunden doch wer könnte den Treiber für die Aktuelle Proxmox version Kompelieren den irgend wie bin ich dazu zu blöd das Druch schleifen funktioniert auch nicht
 

Attachments

  • ServerU_plcm_Linux_v05.zip
    19.2 KB · Views: 6
Na gut ... dann baue ich das mal für dich:

Code:
root@proxmox:~# uname -a
Linux proxmox 4.4.62-1-pve #1 SMP PVE 4.4.62-88 (Thu, 18 May 2017 09:18:43 +0200) x86_64 GNU/Linux

root@proxmox:~# cd /tmp/

root@proxmox:/tmp# unzip ServerU_plcm_Linux_v05.zip
-bash: unzip: command not found

root@proxmox:/tmp# apt-get install unzip pve-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  zip
The following NEW packages will be installed:
  pve-headers-4.4.62-1-pve unzip
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 7,414 kB of archives.
After this operation, 395 kB of additional disk space will be used.
Get:1 http://download.proxmox.com/debian/ jessie/pve-no-subscription pve-headers-4.4.62-1-pve amd64 4.4.62-88 [7,253 kB]
Get:2 http://ftp.de.debian.org/debian/ jessie/main unzip amd64 6.0-16+deb8u3 [162 kB]
Fetched 7,414 kB in 0s (9,848 kB/s)
Selecting previously unselected package pve-headers-4.4.62-1-pve.
(Reading database ... 70271 files and directories currently installed.)
Preparing to unpack .../pve-headers-4.4.62-1-pve_4.4.62-88_amd64.deb ...
Unpacking pve-headers-4.4.62-1-pve (4.4.62-88) ...
Selecting previously unselected package unzip.
Preparing to unpack .../unzip_6.0-16+deb8u3_amd64.deb ...
Unpacking unzip (6.0-16+deb8u3) ...
Processing triggers for mime-support (3.58) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up pve-headers-4.4.62-1-pve (4.4.62-88) ...
Setting up unzip (6.0-16+deb8u3) ...

root@proxmox:/tmp# unzip ServerU_plcm_Linux_v05.zip
Archive:  ServerU_plcm_Linux_v05.zip
   creating: ServerU_plcm_Linux_v05/
   creating: ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/
  inflating: ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/Makefile
 extracting: ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/Module.symvers
  inflating: ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/modules.order
  inflating: ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/plcm_drv.c
  inflating: ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/plcm_drv.ko
  inflating: ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/plcm_drv.mod.c
  inflating: ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/plcm_drv.mod.o
  inflating: ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/plcm_drv.o
  inflating: ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/README
   creating: ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/sample_src/
  inflating: ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/sample_src/alerta.sh
  inflating: ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/sample_src/escreve_sample.c
  inflating: ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/serveru-plcm-util.c
  inflating: ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/serveru-plcm-util.h

root@proxmox:/tmp# cd ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05

root@proxmox:/tmp/ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05# sed -i -e 's/KVER3),3/KVER3),4/' Makefile

root@proxmox:/tmp/ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05# make clean default
rm -f serveru-plcm-util escreve_sample *.ko *.o
#gcc -O2 serveru-plcm-util.c -o serveru-plcm-util
make -C /lib/modules/4.4.62-1-pve/build M=/tmp/ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05 modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.62-1-pve'
  CC [M]  /tmp/ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/plcm_drv.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /tmp/ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/plcm_drv.mod.o
  LD [M]  /tmp/ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05/plcm_drv.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.4.62-1-pve'

root@proxmox:/tmp/ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05# insmod plcm_drv.ko
insmod: ERROR: could not insert module plcm_drv.ko: Input/output error

root@proxmox:/tmp/ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05# dmesg | grep plcm
[  268.498669] plcm_drv: Could not find LPT to use...
[  268.498669] plcm_drv: unable to access any LPT

Folge einfach der Anleitung und mache die Schritte die ich gemacht habe und du solltest ein Kernel-Modul (.ko) bekommen.

Nur noch als Erklärung:

Das Modul ist - wie es in den Quellen steht - nur für Kernel 2.x und 3.x getestet, PVE verwendet aber 4.4 und somit gab es im Makefile kein Target für die Version. Das 'sed' Kommando von oben ersetzt einfach die Prüfung auf Version 3 durch die für Version 4 und Baut das Paket dann.

Natürlich ist das von mir mangels Hardware nicht getestet und ich hab' keine Ahnung was das macht (habe nicht in den Quellcode geschaut). Du musst dann bei jedem Kernel-Update das Modul neu bauen und zum einfachen Laden solltest du es auch in deinen Modules-Ordner kopieren:

Code:
root@proxmox:/tmp/ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05# mkdir /lib/modules/$(uname -r)/misc

root@proxmox:/tmp/ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05# cp *.lo /lib/modules/$(uname -r)/misc

Wenn du das Modul auch automatisch laden willst musst du (nur einmal) das hier absetzen:

Code:
root@proxmox:/tmp/ServerU_plcm_Linux_v05/ServerU_plcm_Linux_v05# echo plcm_drv >> /etc/modules
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!