login|Register
Forum > Debian
Post|
看9749|回8|Favorite
svensly 看全部
2018-8-14 16:47:51
Mach das, schreib mal, ob du es hinbekommen hast. ;)
apfel 看全部
2018-8-17 22:07:36
Edited by apfel at 2018-8-17 22:11

quote:

svensly replied at 2018-8-13 21:02
Hi,

try Armbian Linux. Best supported OS for Orange Pi:

Yes - this is really a great step to a working Debian Distribution.

It seems everything is working like a charm:
  • Info output at booting
  • Easy configuration and upgrade with armbian-config
  • Different screen resolutions including Full HD
  • I2C Hardware support
  • etc.

This should be the standard for the OrangePi downloads ...

apfel 看全部
2018-8-18 18:23:55
Edited by apfel at 2018-8-18 20:04

quote:

svensly replied at 2018-8-14 16:47
Mach das, schreib mal, ob du es hinbekommen hast. ;)

Nachdem man eine Reihe von Paketen wie X-Server, XFCE und nodm nachinstalliert hat, startet dann auch eine Oberfläche - wenn man eine haben möchte.

Was noch nicht läuft ist WiringPi.
https://forum.armbian.com/topic/ ... -cpu-orangepi-pc-2/

quote:

root@orangepipc2:~# gpio readall
piBoardRev: Unable to determine board revision from /proc/cpuinfo
-> No "Hardware" line
->  You may want to check:
->  http://www.orangepi.org/

svensly 看全部
2018-8-19 03:45:14

quote:

apfel replied at 2018-8-18 18:23
Nachdem man eine Reihe von Paketen wie X-Server, XFCE und nodm nachinstalliert hat, startet dann au ...

Hi,

das Problem ist bekannt.
Dafür ist eine kleine Modifikation nötig der WiringPi.c
Lad dir Wirinpi runter:

code:

  1. git clone https://github.com/tumugin/WiringOP.git -b h5

dann musst du in den Ordner "WiringPi", die Datei WiringPi.c editieren. (sudo nano /WiringOP/wiringPi/wiringPi.c)
Finde die Funktion int isH5(void);

code:

  1. int isH5(void)
  2. {
  3.   FILE *cpuFd ;
  4.   char line [120] ;
  5.   char *d;
  6.         if ((cpuFd = fopen ("/proc/cpuinfo", "r")) == NULL)
  7.                 piBoardRevOops ("Unable to open /proc/cpuinfo") ;
  8.           while (fgets (line, 120, cpuFd) != NULL)
  9.                 {
  10.                         if (strncmp (line, "Hardware", 8) == 0)
  11.                         break ;
  12.                 }
  13.                
  14.         fclose (cpuFd) ;
  15.         if (strncmp (line, "Hardware", 8) != 0)
  16.                 piBoardRevOops ("No "Hardware" line") ;
  17.        
  18.   for (d = &line [strlen (line) - 1] ; (*d == '\n') || (*d == '\r') ; --d)
  19.     *d = 0 ;
  20.   if (wiringPiDebug)
  21.     printf ("piboardRev: Hardware string: %s\n", line) ;
  22.        
  23.         if (strstr(line,"sun50i") != NULL)                        //guenter von sun7i auf sun8i
  24.         {
  25.                 if (wiringPiDebug)
  26.                 printf ("Hardware:%s\n",line) ;
  27.                 return 1 ;
  28.         }
  29.         else
  30.         {
  31.                 if (wiringPiDebug)
  32.                 printf ("Hardware:%s\n",line) ;
  33.                 return 0 ;
  34. }
Ersetzen durch:

code:

  1. int isH5(void)
  2. {
  3.      return 1;
  4. }


und dann compilieren und installieren:

code:

  1. cd WiringOP
  2. chmod +x ./build
  3. sudo ./build

Das Problem ist es wird keine Hardwarezeile ausgegeben. Deshalb funktioniert WiringPi so nicht. Da wir aber wissen, dass es ein H5 Prozessor ist, können wir die abfrage direkt als "wahr" deklarieren.
Hab es unterwegs gemacht. Hoffe es klappt auch. ;)

LG
12

OrangePi En

Powered by Discuz! X3.4

homepage|Simple edition|Touch edition|PC