Author: loboris

Linux Distributions for Orange PI H3 boards

  [Copy link]

1

threads

3

posts

22

credits

Novice

Rank: 1

credits
22
Published in 2015-10-6 16:56:20 | Show all floors
Edited by Sk1ppeR at 2015-10-6 17:01

I've installed Debian Jessie on OrangePI PC and I've activated the gpio-sunxi kernel module but I get weird outputs and I have few questions.

Now ... 99.99% of GPIO tutorials on the internet access GPIO ports through sysfs at the following route: /sys/class/gpio/export
However, I don't have such sysfs export. Instead I have /sys/class/gpio_sw which is really weird driver.
Here's the output
  1. orangepi@OrangePI:/sys/class/gpio_sw$ ls
  2. normal_led  PA1   PA11  PA13  PA15  PA19  PA20  PA3  PA7  PA9  PC1  PC3  PC7   PG6  PG8  PL10
  3. PA0         PA10  PA12  PA14  PA18  PA2   PA21  PA6  PA8  PC0  PC2  PC4  PD14  PG7  PG9  standby_led
Copy code
All is good and well, I can echo 1/0 > at PIN/data file BUT how do I change GPIO direction with this driver? I need it for a project of mine. Do I have to recompile the kernel myself?

How do I get the driver that is described on this address: https://www.kernel.org/doc/Documentation/gpio/sysfs.txt

It is very confusing to me accessing GPIO ports this way when 99% of the GPIO articles on the internet work through /sys/class/gpio/.

Unloading the gpio-sunxi module removes GPIO access from sysfs. I'm thankful to any hint that could help my cause. Thank you in advance!
PS: I actually find no information on specifics of the gpio-sunxi sysfs export that I'm getting . Maybe if I could read some documentation on what every file stands for and parameters it accepts, i COULD work around it. But as it is I get no information whatsoever on the internet

PS: I'm using the script.bin.OPI-PC_1080p50 as a script.bin file with no modifications whatsoever.


10

threads

448

posts

5040

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5040
 Author| Published in 2015-10-6 18:21:45 | Show all floors
Sk1ppeR replied at 2015-10-6 09:56
I've installed Debian Jessie on OrangePI PC and I've activated the gpio-sunxi kernel module but I ge ...

You can find some information here.

3

threads

6

posts

197

credits

Registered member

Rank: 2

credits
197
Published in 2015-10-7 10:26:42 | Show all floors
Thank you loboris for the great work!

May I ask, if I want to output my screen via AV Cable, how could I do so?

0

threads

2

posts

16

credits

Novice

Rank: 1

credits
16
Published in 2015-10-7 13:04:50 | Show all floors
Edited by atta2k15 at 2015-10-7 13:07

Hi there.
I still have a problem with Orange PI Plus 2.
The only image that can be loaded is the lubuntu flavor.
http://www.orangepi.org/download ... 0a52606dfaba58.html

I tried ALL the images from orangepi.org, other simply dont boot up. (both leds keep on without blinking)
With the lubuntu version, the desktop is reachable through HDMI. (ssh is default turned off, great!)

But its an crappy image, SPI modules are missing and like to make usage from an LCD.

So I tried all the images mentioned on the MEGA account, but NONE (!) are working for me.
As you mentioned:
All images are ready to be installed on any Orange Pi H3 board, tested on Orange PI 2, Orange PI PLUS, Orange PI PLUS2, Orange PI PC.

So what am I missing here?
Hope you (or someone else) can help me out.
thx

13

threads

197

posts

791

credits

Senior member

Rank: 4

credits
791
Published in 2015-10-7 14:33:30 | Show all floors
meadrocks replied at 2015-10-6 05:25
I'm running lubuntu / LXDE img file on a OPi-PC board, installed the experimental kernel. Boots just ...

Sorry, which kernel do you mean? I would like to test it too. I need to setup my dvb-t usb tuner (based on ite9135 chip), I hope appropriate drivers will be present in newer kernel. How do you think?

1

threads

4

posts

28

credits

Novice

Rank: 1

credits
28
Published in 2015-10-7 19:34:27 from mobile | Show all floors
I tryed all 3 versions of your imgs and all three of them get to the login screen but after I login it goes to a black screen with text up top a green [OK] in it.

10

threads

448

posts

5040

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5040
 Author| Published in 2015-10-7 23:42:48 | Show all floors
UPDATED kernel sources package kernel_3.4.9.tar.xz

UPDATED test kernel (scriptbin_kernel_test.tar.gz)
  • 1-wire is now fully functional

To test 1-wire you have to load the following modules:
wire
w1-sunxi
w1-gpio
w1-therm
( if testing Dallas DS18B20 digital thermometer )

Defalut 1-wire port is PA20, you can change it by adding module param when loading w1-sunxi module:
  1. sudo modprobe w1-sunxi gpio=nn
Copy code
For nn values see OPI_GPIO.txt file.

18

threads

303

posts

9608

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9608
Published in 2015-10-8 01:26:00 from mobile | Show all floors
It will be more thrilled if you get the HW playback working. The windows and animations are laggy when resize or move around. I know it could be an impossible mission.

18

threads

303

posts

9608

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
9608
Published in 2015-10-8 01:26:16 from mobile | Show all floors
It will be more thrilled if you get the HW playback working. The windows and animations are laggy when resize or move around. I know it could be an impossible mission.

0

threads

2

posts

16

credits

Novice

Rank: 1

credits
16
Published in 2015-10-8 01:36:58 | Show all floors
Is it possible to use
http://odroid.com/dokuwiki/doku.php?id=en:c1_lcdshield



on orange pi plus 2?
If possible, what config for script.fex and other config is needed to make it working?
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list