OrangePi

title: Linux Distributions for Orange PI H3 boards [Print this page]

Author: loboris    time: 2015-6-17 03:16
title: Linux Distributions for Orange PI H3 boards
Edited by loboris at 2015-11-9 16:12

You are welcome to try
    Debian,  Ubuntu, Fedora 22, Kali Linux, Arch Linux, OpenSuse, Gentoo, and Slackware
images for OrangePI H3 boards,

You can also build your own image using build scripts (see bottom of the post).


Download from  Mega  or Google Drive
Last update: 11/09/2015 14:10 UTC
Last kernel update (scriptbin_kernel.tar.gz): 10/17/2015 13:30 UTC
Last install (desktop & emmc) scripts update (desktop_scripts.tar.gz): 09/02/2015 17:45 UTC

Review of the OPI boards with Debian Jessie XFCE image on CNXSoft (updated with video).
And more about OPI camera and GPIO.


Available images:



! user name
orangepi, password for user and root orangepi !


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.

In case of any problem, please first check if you have the latest kernel, desktop scripts, etc.

Installation on SD Card


You can find the more detailed instructions for begginers here (thanks @Thumos)


Installation on internal EMMC

Backup internal EMMC to SD Card



Booting from USB drive:


Using install_to_usb script:



If you are using an older image:




Features:

  1. sudo install_lxde_desktop [lubuntu]
  2. sudo install_mate_desktop
  3. sudo install_xfce_desktop
Copy code
  1. sudo install_x2goserver
Copy code

Notes

Building the system

You can try to build Debian/Ubuntu for OrangePI yourself.


GitHub

Kernel sources and Ubuntu/Debian building scripts are available on github.

OrangePi kernel sources
Ubuntu/Debian building scripts


If you find my work usefull, you can DONATE
Author: zhao_steven    time: 2015-6-17 06:41
@loboris  Thank you very much.
Author: derrickyee81    time: 2015-6-17 13:49
@lobois,

Thanks. Downloading now to try.

Cheers
Author: rupertgti    time: 2015-6-17 13:52
Thanks loboris!!
Author: fritz    time: 2015-6-17 15:05
Yeah!
That's how it should work.
Community makes the software, delivers patches, gives the support, makes drinks and offers free beer.
Xunlong and Allwinner makes the money.


This will maybe work if at least:
1. There would be complete and updated H3 documentation.
2. Updated SDK with all sources and patches available.
3. officialy released sources and patches GPL licensed so that we can use it.
4......
But that's only a dream this will never happen.


@loboris
Compliment, at least one that can publish a working debian image for opi2
Xunlong seems not able to do it.

Author: derrickyee81    time: 2015-6-17 18:15
@loboris,

Is AP supported in your img?

Cheers
Author: rupertgti    time: 2015-6-17 18:51
Work on pi plus?
Author: john0815    time: 2015-6-17 20:56
HI

I tried to boot with this image an orangepi plus.
It is starting an recognize the keyboard.

But : it do not recognize LAN connection.

is it possible to give me a solution?

Thanks
Author: loboris    time: 2015-6-18 00:36
Edited by loboris at 2015-6-18 00:45

Update:

Debian image will be updated soon.

You can download the script package to try to build your own installation from Mega (make_linux.tar.gz).
Extract to empty directory, edit params.sh and run create_image.
You must have  qemu-user-static package installed.


Author: loboris    time: 2015-6-18 00:54
@derrickyee81
iw list reports:
        Supported interface modes:
                 * IBSS
                 * managed
                 * AP
                 * monitor
                 * P2P-client
                 * P2P-GO

@rupertgti, @john0815
I don't have OrangePI PLUS to try...
Author: john0815    time: 2015-6-18 06:32
Can anyone try the ubuntu image on OrangepiPlus because of the problem with Ethernet?
Author: loboris    time: 2015-6-18 06:45
Debian jessie image updated.
Author: loboris    time: 2015-6-18 07:03
Edited by loboris at 2015-6-18 19:08

Ubuntu and Debian images run quite good, but there is something very strange about them.
Any program which have to access the network (Internet or LAN) must be run as root, to regular user access to network is denied.
If you install the desktop and want to run Firefox e.g. , you have to do it with gksudo firefox, or it won't be able to access the Internet.
I'm working with Linux for decades, and I never had such a problem. I've built similar images for many different arm boards, and all of them worked without problem.
Does anyone have an idea how to solve that problem?
Solved!, thanks jukkas
Author: loboris    time: 2015-6-18 07:37
@john0815
tomorow I'll upload Ubuntu image built with OrangePI-Plus fex.

Author: markwinger    time: 2015-6-18 07:43
I just downloaded your image and wrote it to an sd card.  It boots ok.  But for me, networking doesn't work at all.  (I have an orange pi plus.)

If I do sudu apt-get update I get:
unable to resolve ubuntuMate.
many errors follow.

It tried to get the wireless to work and that does not seem to work either.

Mark
Author: derrickyee81    time: 2015-6-18 08:08
@markwinger
Wait for loboris to build it with OIP plus fex... then the network will work...

@Loboris
I tested the 1st img and is good... will flash the latest img to test the AP mode later after work...

Author: markwinger    time: 2015-6-18 10:48
I also tried the debina image.  It boots up fine but no networking.  I'll try it when laboris has a plus version ready.

Mark.


Author: john0815    time: 2015-6-18 13:35
Is it possible to boot with orangepi plus from the EMMC Flash with the ubuntu image (instead of the android which is on EMMC)
Author: jukkas    time: 2015-6-18 15:13
loboris replied at 2015-6-18 07:03
Ubuntu and Debian images run quite good, but there is something very strange about them.
Any progr ...

Firstly, thank you loboris for the Debian image. It made the board actually usable.
About the non-user networking: Apparenly the OrangePi Linux kernel is an Android version, and Android seems to have some restrictions for non-root networking.
I got the normal user (e.g. orangepi) working by creating a group id 3003/aid_inet and adding user(s) to that group. E.g.

# groupadd -g 3003 aid_inet
# usermod -G aid_inet orangepi

Hope this works for you too.



Author: loboris    time: 2015-6-18 18:50
jukkas replied at 2015-6-18 15:13
Firstly, thank you loboris for the Debian image. It made the board actually usable.
About the non- ...

Thank you very much!
There was CONFIG_ANDROID_PARANOID_NETWORK=y set in Linux config. I've disabled it and recompiled the kernel and now everything is working as it should.
I don't know how I forgot it. And I've had similar problem with RK3188 kernel.


Author: loboris    time: 2015-6-18 18:50
jukkas replied at 2015-6-18 15:13
Firstly, thank you loboris for the Debian image. It made the board actually usable.
About the non- ...

Thank you very much!
There was CONFIG_ANDROID_PARANOID_NETWORK=y set in Linux config. I've disabled it and recompiled the kernel and now everything is working as it should.
I don't know how I forgot it. And I've had similar problem with RK3188 kernel.


Author: loboris    time: 2015-6-18 18:59
Update

Warning
Uploaded images have the wrong scripts for desktop instalation (install_lxde_desktop & install_mate_desktop).
Please download desktop-scripts.tar.gz from Mega, unpack and replace the scripts in /usr/local/bin
Check that they are executable.
Sorry fo that.

Author: derrickyee81    time: 2015-6-18 19:01
Any m8 managed to get AP working???
I tried install hostapd but having driver issues.

Must i compile the hostapd from RTL site?

Cheers
Author: fritz    time: 2015-6-18 19:08
@loboris for opi plus you need to patch the kernel and for u-boot make it with script.bin support it's simpler for end-user to change script.bin then to rebuild u-boot.
Author: loboris    time: 2015-6-18 19:17
fritz replied at 2015-6-18 19:08
@loboris for opi plus you need to patch the kernel and for u-boot make it with script.bin support it ...

Thank you, I'll try that later.
For now, I've uploaded the images for OrangePI-PLUS (with u-boot built with OPI-PLUS fex).


Author: fritz    time: 2015-6-18 19:25
Which config you use for kernel building?
personal or the one posted in this forum?
Author: loboris    time: 2015-6-18 19:41
Edited by loboris at 2015-6-18 19:49

Hint:
If you don't get lightdm login screen after installing the desktop, please do the following:
(You can do it immediately after running instal_lxde|mate_desktop, just in case)


Author: loboris    time: 2015-6-18 19:45
fritz replied at 2015-6-18 19:25
Which config you use for kernel building?
personal or the one posted in this forum?

I'm, using my own config. I've added some drivers (I need USB serial adapters support & btrfs support e.g.)
I also had to replace included rootfs.cpio.gz.


Author: markwinger    time: 2015-6-18 19:59
I just tried both ubuntu and debian images.  Harwire networking does not work on either (Have not tried wireless).

Ubuntu gives an error about eht0 hardware initialization error.

Mark.


Author: loboris    time: 2015-6-18 20:07
Edited by loboris at 2015-6-18 20:16
markwinger replied at 2015-6-18 19:59
I just tried both ubuntu and debian images.  Harwire networking does not work on either (Have not tr ...

Have you downloaded the right image for your board (there are separate images for OPI-2 and OPI-PLUS).
I only have OPI-2, I've not tested OPI-PLUS (but when I boot with PLUS image on OPI-2 I don't get ethernet).
Whe you run ifconfig, you must get something like this:

orangepi@OrangePI:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr ee:39:db:ae:4f:ff  
          inet addr:192.168.178.96  Bcast:192.168.178.255  Mask:255.255.255.0
          inet6 addr: fe80::ec39:dbff:feae:4fff/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:232 errors:0 dropped:0 overruns:0 frame:0
          TX packets:229 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:33478 (33.4 KB)  TX bytes:22088 (22.0 KB)
          Interrupt:114

lo        Link encapocal Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:350 errors:0 dropped:0 overruns:0 frame:0
          TX packets:350 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:35928 (35.9 KB)  TX bytes:35928 (35.9 KB)

wlan0     Link encap:Ethernet  HWaddr 00:e0:4c:f0:18:9e  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan1     Link encap:Ethernet  HWaddr 02:e0:4c:f0:18:9e  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)




Author: markwinger    time: 2015-6-18 20:27
I donwloaded:
OrangePI-PLUS_Ubuntu_Vivid_minimal.img
and
orangepi-plus-debian-server-card-v0.9.img

sudo ifconfig  (on debian image)
unable to resolve host orangepi
But the output shows no eth0, but does show lo, wlan0 and wlan1

Wireless is giving some errors I've never seen but seems to work.  
Author: loboris    time: 2015-6-18 20:37
Edited by loboris at 2015-6-18 21:16
markwinger replied at 2015-6-18 20:27
I donwloaded:
OrangePI-PLUS_Ubuntu_Vivid_minimal.img
and

There is no orangepi-plus-debian-server-card-v0.9.img on my Mega link ?!
Images were updated today (few hours ago), please try to download again if you have an older image.
You have OPI-PLUS, right? As I said I dont have OPI-PLUS, so I haven't tested it.

Author: markwinger    time: 2015-6-18 21:02
Sorry, copied the wrong file name to the email.  
OrangePI-PLUS_Ubuntu_Vivid_minimal.img
and
OrangePI-PLUS_Debian_Jessie_minimal.img
Author: zhao_steven    time: 2015-6-18 21:51
@loboris Please supply your full address. We can send  a free Orange Pi Plus  to you. Thank you very much.
Author: john0815    time: 2015-6-18 22:40

I get the error message: gmac0 gmac0:eth0: Initialize hardware error -
see atached file

is it possible that in the fex.bin file the lan device is not activated.
The LanLeds are not active.

I had between 2 different orangepi hardware versions such an problem with 2 USB conectors.



Author: loboris    time: 2015-6-18 23:22
john0815 replied at 2015-6-18 22:40
I get the error message: gmac0 gmac0:eth0: Initialize hardware error -
see atached file

For building the OPI-PLUS u-boot I've used the attached fex.
Maybe someone can check if it is the right one.


Author: loboris    time: 2015-6-18 23:31
Edited by loboris at 2015-6-19 02:17

Added:

For instruction how to change OPI-2 <-> OPI-PLUS see 1st post (still no comfirmation that OPI-PLUS ethernet works)

Author: markwinger    time: 2015-6-19 03:14
I just installed the new image (Mate Desktop).  Wired networking not working, wireless is.

I diffed the fex file you attached with the one at http://linux-sunxi.org/Xunlong_Orange_Pi_Plus and they match.

It seems odd the way this works.  While booting, the messages appear to indicate that network connections are up, but but the time the login comes up it is not working.  It appears it is setup ok, then it is initialized again but incorrectly this time.

Is there a way to capture the console oputput to a file?  

Mark.
Author: markwinger    time: 2015-6-19 03:28
Edited by markwinger at 2015-6-19 04:15

I see no configuration in the fex file related to the ethernet connection, only the wifi(maybe I just don't recognize it).  I'm fairly new at this so I am guessing, but could the problem be in the kernel config? Could you share the .config file used to build the kernel?  Maybe some additional eyes looking at it may help.

Mark
Author: loboris    time: 2015-6-19 04:34
Edited by loboris at 2015-6-19 04:39
markwinger replied at 2015-6-19 03:28
I see no configuration in the fex file related to the ethernet connection, only the wifi(maybe I ju ...

OPI-PLUS fex
  1. ;------------------------------------------------------------------------------;
  2. ; 10/100/100Mbps Ethernet MAC Controller Configure                             ;
  3. ;------------------------------------------------------------------------------;
  4. ;   Options:                                                                   ;
  5. ;   gmac_used  ---  0: not used, 1: external phy, 2: internal phy              ;
  6. ;   gmac_powerx --  A[:B] A: axp channel, B: voltage value                     ;
  7. ;       If set gamc_phy to use internal PHY, do not config port                ;
  8. ;------------------------------------------------------------------------------;
  9. ;         MII        RMII         MII        RMII         MII        RMII      ;
  10. ;   PD00  *                 PD06   *           *    PD12   *           *       ;
  11. ;   PD01  *                 PD07   *                PD13   *           *       ;
  12. ;   PD02  *            *    PD08   *                PD14   *                   ;
  13. ;   PD03  *            *    PD09   *           *    PD15   *                   ;
  14. ;   PD04  *                 PD10   *           *    PD16   *           *       ;
  15. ;   PD05  *                 PD11   *           *    PD17   *           *       ;
  16. ;------------------------------------------------------------------------------;
  17. [gmac0]
  18. <b>gmac_used          = 1</b>
  19. gmac_rxd3          = port:PD00<2><default><3><default>
  20. gmac_rxd2          = port:PD01<2><default><3><default>
  21. gmac_rxd1          = port:PD02<2><default><3><default>
  22. gmac_rxd0          = port:PD03<2><default><3><default>
  23. gmac_rxclk         = port:PD04<2><default><3><default>
  24. gmac_rxdv          = port:PD05<2><default><3><default>
  25. ;gmac_rxerr         = port:PD06<2><default><3><default>
  26. gmac_txd3          = port:PD07<2><default><3><default>
  27. gmac_txd2          = port:PD08<2><default><3><default>
  28. gmac_txd1          = port:PD09<2><default><3><default>
  29. gmac_txd0          = port:PD10<2><default><3><default>
  30. ;gmac_crs           = port:PD11<2><default><3><default>
  31. gmac_txclk         = port:PD12<2><default><3><default>
  32. gmac_txen          = port:PD13<2><default><3><default>
  33. ;gmac_txerr         = port:PD14<2><default><3><default>
  34. gmac_col           = port:PD15<2><default><3><default>
  35. gmac_mdc           = port:PD16<2><default><3><default>
  36. gmac_mdio          = port:PD17<2><default><3><default>
  37. gmac_power1        =

  38. [gmac_phy_power]
  39. gmac_phy_power_en   = port:PD06<1><default><default><0>
Copy code

OPI-2 fex
  1. ;------------------------------------------------------------------------------;
  2. ; 10/100/100Mbps Ethernet MAC Controller Configure                             ;
  3. ;------------------------------------------------------------------------------;
  4. ;   Options:                                                                   ;
  5. ;   gmac_used  ---  0: not used, 1: external phy, 2: internal phy              ;
  6. ;   gmac_powerx --  A[:B] A: axp channel, B: voltage value                     ;
  7. ;       If set gamc_phy to use internal PHY, do not config port                ;
  8. ;------------------------------------------------------------------------------;
  9. ;         MII        RMII         MII        RMII         MII        RMII      ;
  10. ;   PD00  *                 PD06   *           *    PD12   *           *       ;
  11. ;   PD01  *                 PD07   *                PD13   *           *       ;
  12. ;   PD02  *            *    PD08   *                PD14   *                   ;
  13. ;   PD03  *            *    PD09   *           *    PD15   *                   ;
  14. ;   PD04  *                 PD10   *           *    PD16   *           *       ;
  15. ;   PD05  *                 PD11   *           *    PD17   *           *       ;
  16. ;------------------------------------------------------------------------------;
  17. [gmac0]
  18. <b>gmac_used          = 2</b>
  19. ;gmac_rxd3          = port:PD00<2><default><3><default>
  20. ;gmac_rxd2          = port:PD01<2><default><3><default>
  21. ;gmac_rxd1          = port:PD02<2><default><3><default>
  22. ;gmac_rxd0          = port:PD03<2><default><3><default>
  23. ;gmac_rxclk         = port:PD04<2><default><3><default>
  24. ;gmac_rxdv          = port:PD05<2><default><3><default>
  25. ;gmac_rxerr         = port:PD06<2><default><3><default>
  26. ;gmac_txd3          = port:PD07<2><default><3><default>
  27. ;gmac_txd2          = port:PD08<2><default><3><default>
  28. ;gmac_txd1          = port:PD09<2><default><3><default>
  29. ;gmac_txd0          = port:PD10<2><default><3><default>
  30. ;gmac_crs           = port:PD11<2><default><3><default>
  31. ;gmac_txclk         = port:PD12<2><default><3><default>
  32. ;gmac_txen          = port:PD13<2><default><3><default>
  33. ;gmac_txerr         = port:PD14<2><default><3><default>
  34. ;gmac_col           = port:PD15<2><default><3><default>
  35. ;gmac_mdc           = port:PD16<2><default><3><default>
  36. ;gmac_mdio          = port:PD17<2><default><3><default>
  37. gmac_power1        =
Copy code






Author: derrickyee81    time: 2015-6-19 08:30
@loboris,

Possible to trouble you to build one with AP ready???
I tried but cant get it to work... If not some pointers will be great too...
I can slowly figure out...

Cheers
Author: loboris    time: 2015-6-19 15:42
@markwinger
"If set gamc_phy to use internal PHY, do not config port" OPI-PLUS has external PHY, OPI-2 internal (according to fex).
Probably the pins assignment in OPI-PLUS fex are wrong.

@derrickyee81
I'll try in a few days...
Author: derrickyee81    time: 2015-6-19 17:14
loboris replied at 2015-6-19 15:42
@markwinger
"If set gamc_phy to use internal PHY, do not config port" OPI-PLUS has external PHY, OPI ...

@loboris,

Thanks... meantime, i will try... should i successfully do it, will post it...

Cheers


Author: fritz    time: 2015-6-19 19:00
loboris replied at 2015-6-19 08:42
@markwinger
"If set gamc_phy to use internal PHY, do not config port" OPI-PLUS has external PHY, OPI ...

@loboris
[gmac_phy_power]
gmac_phy_power_en   = portD06<1><default><default><0>
You need to give power "manualy" with patching the kernel.
There is somewhere a patch in this forum ...crappy search function.
PD06 needs to set "high" for working ethernet on opi plus.
I repost patch, dont remember authors name sorry
[attach]102[/attach]



Author: loboris    time: 2015-6-19 22:25
Edited by loboris at 2015-6-19 22:27

I've pached the kernel to (hopefully) work with OPI-PLUS ethernet (thanks @fritz).

Download kernel_OPI-PLUS.tar.gz from Mega (see 1st post), unpack to some empty directory.
copy uImage to SDCard fat partition (where the old uImage is)
copy lib directory SDCard linux partition

If someone try this, please report back.

Author: john0815    time: 2015-6-19 23:26
Edited by john0815 at 2015-6-20 02:15

HI
I've copyied the uImage to the sd card
Copied the lib directory after booting

started once more
--> same as before -- no network

sorry - I hope I didn't something wrong


Author: loboris    time: 2015-6-20 00:46
Good news.
I've got hdmi sound working in my images. Thanks @hhc.  Some more tests and I'll upload.


Author: matteobp    time: 2015-6-20 06:11
I have a Orange Pi Plus board. I try to patch debian image with kernel_OPI-PLUS.tar.gz.
copy uImage to SDCard fat partition overwriting the existing file
copy lib directory to SDCard linux partition overwriting the existing files

It doesn't work


Author: loboris    time: 2015-6-20 07:14
matteobp replied at 2015-6-20 06:11
I have a Orange Pi Plus board. I try to patch debian image with kernel_OPI-PLUS.tar.gz.
copy uImage  ...

Does OrangePI-PLUS ethernet works with any of the availabe linux images? I could extract fex from it.


Author: john0815    time: 2015-6-20 13:01
Yes
with lubuntu, debian server and raspian available in download area network is ok
but the have no fullHD

Good luck
Author: fritz    time: 2015-6-20 14:41
confirm:
gmac0 gmac0: eth0: Initialize hardware error

@loboris can I have your kernel-config please for check?
are you sure you have patched it?
can you check:
[attach]103[/attach]
Author: matteobp    time: 2015-6-20 16:09
loboris replied at 2015-6-20 07:14
Does OrangePI-PLUS ethernet works with any of the availabe linux images? I could extract fex from  ...

I tried both your distribution for OrangePiPlus.
"OrangePI-PLUS_Debian_Jessie_minimal" starts without network support, while "OrangePI-PLUS_Ubuntu_Vivid_minimal" doesn't start, it block with an error message related to ethernet (I don't remember the exact message).
As already said by "john0815", lubuntu, debian server and raspian available in download area network is ok.
Thanks



Author: john0815    time: 2015-6-20 16:35
OrangePI-PLUS_Ubuntu_Vivid_minimal is starting too but without network and prompt

Put in root or orangepi and password orangepi without seeing a prompt
Author: loboris    time: 2015-6-21 00:29
Edited by loboris at 2015-6-21 00:34

UPDATE
for testing OPI-PLUS, please download OPI_boot_kernels.tar.gz from Mega.
unpack and read update_boot_kernel.txt about how to update.

@fritz , all relevant files are in OPI_boot_kernels.tar.gz(fex, kernel config, compiled files)

@john0815  it is "normal" (expected) that there is no cursor on console login screen. After login, cursor apears.

Author: zhao_steven    time: 2015-6-21 01:04
@lobotis I have tested your image file. Ubuntu Mate for OPI Plus don't work. Ubuntu LXDE for OPI Plus ethernet don't work. I have used my kernel  with your firmware. It can work well.  But sound has interval.
Author: john0815    time: 2015-6-21 01:09
Because of coursor

THE Error Text (3 lines) was over the coursor position
It looked so as the machine has stopped
Author: matteobp    time: 2015-6-21 05:43
loboris replied at 2015-6-21 00:29
UPDATE
for testing OPI-PLUS, please download OPI_boot_kernels.tar.gz from Mega.
unpack and read upda ...

Now the network is working!!! Great work.
I cannot test audio now. I'll let you know later.

Thanks



Author: loboris    time: 2015-6-21 05:48
zhao_steven replied at 2015-6-21 01:04
@lobotis I have tested your image file. Ubuntu Mate for OPI Plus don't work. Ubuntu LXDE for OPI Plu ...

The sound is not working good with pulse audio. I'm testing for solution.
In SMPlayer, if I set audio output to alsa (1.0 - sndhdmi) the sound is perfect.


Author: john0815    time: 2015-6-21 17:42
Edited by john0815 at 2015-6-21 17:45

Loboris -

Ethernet is running - perfect job
I get this message: nm-dispatcher: Dispatching action 'up' for eth0

Is this a serious message.

AND:

Please can you teach me for what is this:

===========================================================
To update boot0 & u-boot run:
-----------------------------------------------------------

sudo dd if=boot0_sdcard_OPI-2.fex of=/dev/mmcblk0 bs=1k seek=8
sudo dd if=u-boot_OPI-2.fex of=/dev/mmcblk0 bs=1k seek=16400

or

sudo dd if=boot0_sdcard_OPI-PLUS.fex of=/dev/mmcblk0 bs=1k seek=8
sudo dd if=u-boot_OPI-PLUS.fex of=/dev/mmcblk0 bs=1k seek=16400

===========================================================
Author: loboris    time: 2015-6-21 18:51
Edited by loboris at 2015-6-21 18:55
john0815 replied at 2015-6-21 17:42
Loboris -

Ethernet is running - perfect job

nm-dispatcher: Dispatching action 'up' for eth0  is "good message", it means that the ethernet is up...

dd commands copies  boot files (initial boot & u-boot) to thair fixed possitions on SD Card. To learn more go to this article.


Author: loboris    time: 2015-6-21 19:00
I've got hdmi sound and pulseaudio working perfectly.
Later today I'll upload new versions of images and instructions how to enable it on old images, if you don't want to redownload.


Author: john0815    time: 2015-6-21 21:31
Can you tell us  which with frequence the CPU's are working?
Are all 4 CPU enabled.

I use the board als Thin Client
I have an OrangpePI (A20 - 2 CPU) also
It seems to me that the orangepi Plus (H3 - 4 CPU) is not faster.

I am not a good technican in this. Belongs the Speed in the CPU's or with die Mali Graphic.

Thanks for Info.

Author: loboris    time: 2015-6-21 21:47
john0815 replied at 2015-6-21 21:31
Can you tell us  which with frequence the CPU's are working?
Are all 4 CPU enabled.

Kernel should rum on 1.54 GHz.
  For some reason the maximum CPU frequency switches to 1.2 GHz soon after boot.
It usualy heppens because of overheating, but on my OPI-2 it heppens even if I keep it very cool.
I have to investigate more to find the reason.
H3 should run (much) faster then the A20, CPU speed is not related to Mali.


Author: wolftronics    time: 2015-6-22 04:28
I'm doing a bash gui ...
  Linux and Android SDK download ....
ubuntu linux, debian opi2, opiplus will not complete ...
and androids uboot kernel config issue can ....

loboris I hope you do not mind ...

https://drive.google.com/file/d/ ... Tg/view?usp=sharing

Author: wolftronics    time: 2015-6-22 05:05
;) soory poor englinsh

https://drive.google.com/open?id ... TOHM&authuser=0
https://drive.google.com/file/d/ ... 1k/view?usp=sharing
https://drive.google.com/file/d/ ... Ws/view?usp=sharing
https://drive.google.com/file/d/ ... lk/view?usp=sharing


Author: roblad    time: 2015-6-22 05:29
Hi,

haw to use it, that install menu ?


Author: roblad    time: 2015-6-22 05:37
Hi,

Do you plan to add emmc driver for that kernel ?


Author: loboris    time: 2015-6-22 07:59
Edited by loboris at 2015-6-22 08:39

UPDATE:

All images are initialy prepared for OrangePI-2
You can easily prepare them for OrangePi-PLUS using included script update_boot.sh, just run:
  1. sudo update_boot.sh
Copy code
You can use the same script to update kernel and/or u-boot when upgrade is released.


Network-manager applet
initialy is not visible (it is known Mate bug, not related to OrangePI installation).
To enable it do the following:
Logout and login again and you'll have Network manage icon.

Don't forget to run fs_resize after first boot.


Author: john0815    time: 2015-6-22 13:16
Edited by john0815 at 2015-6-22 14:10

after choosing update_boot   downloading the file and updateting for OPI Plus  -> not ethernet working, WLAN is OK

connection with Putty is verry slow
sorry
Author: john0815    time: 2015-6-22 14:15
Edited by john0815 at 2015-6-23 02:02

[attach]105[/attach]

Can you put in a config like bananian-config to change eg. language, keyboard layout

Rename attached file from .pdf to .sh




Author: loboris    time: 2015-6-22 16:58
john0815 replied at 2015-6-22 13:16
after choosing update_boot   downloading the file and updateting for OPI Plus  -> not ethernet worki ...

The kernel and u-boot files used in the update proces are exactly the same as that for which you reported are working.
The files downloaded by script are placed in /boot directory, you can check.

About language config script, I realy don't think it is necessary.
If using Ubuntu desktop, there are language-selector-gnome app (installed).
If using your installation with console only (as server or similar), you should be able to change language manualy.
The basic rules are simple enough:
  1. sudo dpkg-reconfigure tzdata
  2. sudo dpkg-reconfigure keyboard-configuration
  3. sudo dpkg-reconfigure console-setup
  4.     change your system's locale entries by modifying
  5.     the file /etc/default/locale (e.g. en_US.UTF-8)
  6.     then run:
  7. sudo locale-gen <your_locale> (e.g en_US.UTF-8)
  8. sudo dpkg-reconfigure locales
Copy code




Author: matteobp    time: 2015-6-22 17:20
Edited by matteobp at 2015-6-22 18:37
loboris replied at 2015-6-22 16:58
The kernel and u-boot files used in the update proces are exactly the same as that for which you r ...

It seems that the "update_boot.sh" script doesn't update the lib folder (I think the ethernet module for OPI Plus is in that folder).
The same for the downloaded file "boot_kernel.tar.gz", it doesn't contain the lib folder. To have the network working, you have to manually copy the lib folder from the other patch file (it should be "OPI_boot_kernels.tar.gz").



Author: matteobp    time: 2015-6-22 17:45
loboris replied at 2015-6-22 04:48
I will soon upload new images and desktop installation scripts and you will be able to enable the  ...

"In Debian nano and some other commands works only if executed as sudo. I don't know the reason yet. In Ubuntu everything works as expected."

Are you sure? I'm using other debian based PC/VM (both Squeeze and Wheezy), and I can use nano without sudo with users different from root.


Author: john0815    time: 2015-6-22 17:54
loboris replied at 2015-6-22 16:58
The kernel and u-boot files used in the update proces are exactly the same as that for which you r ...

Thank you for your great manual to change the Language.
I searched many time for such an instruction and don't find a good one.
Author: wolftronics    time: 2015-6-22 18:28
Edited by wolftronics at 2015-6-22 22:10
roblad replied at 2015-6-22 05:29
Hi,

haw to use it, that install menu ?
1.ubuntu packages install automatic 12.04 or 14.04
2.Download linux or android sdk 1.0 "patch dir not yet next version"
Android
build_android "system.img good"
anything but I do ... config file worg...
Linux
Loboris script to do it, so that almost the original ....

sorry everyone build_menu.sh not upgraded ...
fixed

https://github.com/Wolftronics-SBC/WT-SBC-BSP
try it...

Author: loboris    time: 2015-6-22 18:38
Edited by loboris at 2015-6-22 18:40
matteobp replied at 2015-6-22 17:20
It seems that the "update_boot.sh" script doesn't update the lib folder (I think the ethernet modu ...

/lib/modules/3.4.39  contains the kernel modules, none of them is specific to OPI-2/OPI-PLUS, so there are no need to copy them.

About Debian nano, what I meant is that in this instalation it behaves in such a way.


Author: matteobp    time: 2015-6-22 19:00
Edited by matteobp at 2015-6-22 20:05
loboris replied at 2015-6-22 18:38
/lib/modules/3.4.39  contains the kernel modules, none of them is specific to OPI-2/OPI-PLUS, so th ...

I wrote that because I had the network working following these istructions (extracted from here http://www.orangepi.org/orangepi ... =2356&fromuid=16899):

UPDATE
for testing OPI-PLUS, please download OPI_boot_kernels.tar.gz from Mega.
unpack and read update_boot_kernel.txt about how to update.

@fritz , all relevant files are in OPI_boot_kernels.tar.gz(fex, kernel config, compiled files)

Later I can try to use new image applying only "update_boot.sh".



Author: matteobp    time: 2015-6-23 05:43
I tried both "OrangePI_Ubuntu_vivid_Mate" and "OrangePI_Debian_jessie_base". I run for both of them the "update_boot.sh" because I have an Orange PI Plus.

"OrangePI_Ubuntu_vivid_Mate" works, network and hdmi audio are ok. Only during boot it stops for more than 1 minute with this last message
init: plymouth-upstart-bridge main process (93) terminated with status 1
init: plymouth-upstart-bridge main process ended, respawning

then continue to boot until login screen.

"OrangePI_Debian_jessie_base" works, network is ok but no hdmi audio. I installed MATE using the existing script. The "Sound" application doesn't start.

But none of them it is usable to see video, because it is very slow and with a lot of lag. I think codec video is missing, so the decoding is done without hardware support.
Author: loboris    time: 2015-6-23 06:33
Edited by loboris at 2015-6-23 07:18
matteobp replied at 2015-6-23 05:43
I tried both "OrangePI_Ubuntu_vivid_Mate" and "OrangePI_Debian_jessie_base". I run for both of them  ...

I'm glad you've got network working.
You cannot expect to have audio in base image, there are nothing related to audio installed.
There are some problems with Debian jessie, that's why I've not uploaded Debian desktop image.
Some applications wont run without root privileges (they run only if started with sudo), nano, htop, pluma...
It is still complete mystery to me, it has probably something to do with policykit, but for now there is no solution.

Video does not work well, there are no hardware video acceleration for now. I can watch video up to 480p in SMPlayer without problem.
If you want to watch youtube videos in browser, it will never be possible on this board (on Linux).

Please use the Ubuntu images for now.

My Ubuntu Mate installation boots to login screen in less then 20 sec. Try to install plymouth-disabler package.

Good news, I've got OPI-2 running at full 1.54 GHz, with no core killed. I'm testing it for stability.


Author: zhao_steven    time: 2015-6-23 07:07
We are asking Allwinner help to release hardware video accrleration interface for linux. Please everyone wait for a while.
Author: john0815    time: 2015-6-23 12:36
"You cannot expect to have audio in base image, there are nothing related to audio installed."

Question:
I have installed Ubuntu base image and no sound via Hdmi.
I choosed this because I want xfce instead of mate.

Is it possible to add sound to the base image

or must I took mate, deinstall mate desktop and install xfce.

Thx
Author: roblad    time: 2015-6-23 13:24
Hi,


I do not have sound in hdmi I got "waiting for sound system to respond" on mate sesion. Is it possible to set sound on HDMI ? I tryied to use manual in some previous post, but it not work in jeesse matew sesion. I used OrangePI-PLUS_Debian_Jessie_minimal.img because on new one the eth0 is starting but without getting ip4. What drivers in cernel I need to start a sound . do I need to add something to ../modules from kernel tar.gz
Author: loboris    time: 2015-6-23 14:22
Edited by loboris at 2015-6-23 14:33
john0815 replied at 2015-6-23 12:36
"You cannot expect to have audio in base image, there are nothing related to audio installed."

Ques ...

I'll prepare install_xfce_desktop script later today.
You can modify install_mate_desktop script (remove mate related lines). It is in /usr/local/bin
Do not install full meta packages like xubuntu-desktop, installation will take hours to complete, and you'll get many packages you probably don't want.

Basic sound instalation is:
  1. sudo apt-get install pulseaudio pulseaudio-module-x11 pulseaudio-utils alsa-base alsa-oss alsa-utils alsa-tools libasound2-data pavucontrol --no-install-recommends
Copy code




Author: loboris    time: 2015-6-23 14:30
Edited by loboris at 2015-6-23 14:44
roblad replied at 2015-6-23 13:24
Hi,

I don't recommend using jessie for desktop installation for now, look at post #91
Please use newest image and update_boot.sh script. There is no reason why you shouldn't get ip4.
About minimal sound see previous post.

I've uploaded to Mega the boot_kernel_lib.tar.gz which contains all boot, u-boot, kernel and lib files from latest images.



Author: john0815    time: 2015-6-23 15:59
loboris replied at 2015-6-23 14:30
I don't recommend using jessie for desktop installation for now, look at post #91
Please use newest ...

I updateted the lib directory and the boot files.
Now when starting it hangs some time (~1 min) and after this he want to enter into xfce desktop and then there is a back screen.
I dont know, if this is only with my OPIPlus.

Another thing:
If I want do reboot the board via command or button on rfce it goes totaly down and do not start. This is a thing from the beginning with your system.


Author: roblad    time: 2015-6-23 18:58
Hi,

After upload according your manul boot_kernel_lib.tar.gz and update_boot.sh - my OPIPLUS dead, no eth0 etc. there is some error, only that image tahat was 3 days ago on mega and new uImage (after ubot script) works in eth0 but sound not working at all. Where could be a problem, what exactly I need to do sequently - debian image for OPIPLUS - to get eth0 fully working, get sound and mate desktop - could you put OrangePI_PLUS_Debian_jessie_base.img with all required settings, right now is some mash with that. OPIPLUS does not work properly with OrangePI_Debian_jessie_base.img and update boot_kernel_lib.tar.gz causes any problems.
Author: matteobp    time: 2015-6-23 19:37
Yesterday I was able to have my Orange PI Plus working using the new OrangePI_PLUS_Debian_jessie_base.img. I prepared the microSD on another PC with Ubuntu.
After writing the image onto SD, I copied the uImage_OPI-PLUS in the BOOT partition, that in my case was /media/BOOT, so the command was
cp uImage_OPI-PLUS /media/BOOT/uImage
After that I run these two commands
dd if=boot0_sdcard_OPI-PLUS.fex of=/dev/sdb bs=1k seek=8
dd if=u-boot_OPI-PLUS.fex of=/dev/sdb bs=1k seek=16400
where /dev/sdb is the SD card reader inserted in a USB port.
The files used to do this was extracted from "boot_kernel.tar.gz", but you can find the same files in "boot_kernel_lib.tar.gz".
But this is what the "update_boot.sh" script do.
The network was ok, and using putty I ran the script /usr/local/bin/install_mate_desktop
The installation was successfull, and now I'm able to connect in remote using x2go client.
There is no audio because it is not installed. See post #91 about this problem and other problem.
http://www.orangepi.org/orangepi ... 8&fromuid=16899
Later I will try to install audio as suggested in post #95
http://www.orangepi.org/orangepi ... 4&fromuid=16899

I tried also "OrangePI_Ubuntu_vivid_Mate.img". It is ok, with hdmi audio working, altough I prefer to use Debian version, if other problems will be solved.
Author: markwinger    time: 2015-6-23 19:48
I'm finally back from a trip and tried it.  Ethernet now works from me.  I ran the script om an the already installed full mate image.

I am hoping to us the pie for audio application so video performance is not a problem for me.  But the audio needs I have are are the use of audio out to drive headphones and to use usb audio devices.

aplay -a shows the headphone device is recognized but usb devices are not.  
On the bananapi usb audio did not work either but using igorspec's kernel building script I rebuilt the kernel enabling usb auido and it works well.

Are all the sub audio options enabled in this kernel?
Should I try to build my own custom image using the instructnons in the first post?

Mark
Author: hhc    time: 2015-6-23 22:56
john0815 replied at 2015-6-22 05:11
Has anyone an answer because CPU3 is shut down after 5 sec.

dmesg log:

I have encounter this before, everytime during bootup. Solved by adding a big heatsink to the H3 CPU. Perhaps you could try this.

Author: matteobp    time: 2015-6-23 23:21
Even tough I added a big heatsink that covers CPU H3 and RAM, I had the CPU3 killed during the install of LXDE. I decided to add a fan .

P.S. I added a heatsink also on gigabit ethernet chip.
Author: loboris    time: 2015-6-23 23:22
Edited by loboris at 2015-6-23 23:50

NEWS:

Added experimental kernel compiled with disabled SUNXI_BUDGET_COOLING, CPU3 is no longer killed, and all CPUs run at 1.54 GHz max
You can get it from make_linux.tar.gz ( uImage_OPI-[2|PLUS]_NO_BUDGET_COOLING )
I've been using it for more then 24h without problem (with small heatsink)
Try at your own risk.


Author: loboris    time: 2015-6-23 23:29
markwinger replied at 2015-6-23 19:48
I'm finally back from a trip and tried it.  Ethernet now works from me.  I ran the script om an the  ...

I haven't changed anything about USB audio. I'll check which drivers can be enabled and I'll recompile the kernel.
USB bluetooth is enabled in kernel, if it is of any use for you.


Author: roblad    time: 2015-6-24 00:34
Hi,

Did you see that, is it possible to do it for emmc burning  on your distribution ?
"Edited by zhao_steven at 2015-6-21 23:55


I have findished burning image to emmc flash.
You can use Lubuntu_1404_For_OrangePiplus_v0_9_0_.img for burning image to emmc flash.
First you have burned  Lubuntu_1404_For_OrangePiplus_v0_9_0_.img to microSD card.
After you boot Lubuntu system,you can execute command.
Important: after first boot run sudo fs_resize and reboot, to resize linux partition to fit sd card size
You can copy your burning firmware image into /home/orangepi/burn-image-to-emmc/
sudo dd bs=4M if=xxx.img of=/dev/mmcblk1
xxx.img is your burning firmware image,This need to wait 30 minutes.
sudo dd if=u-boot-sun8iw7p1.bin of=/dev/mmcblk1 bs=1024 seek=16400"

https://drive.google.com/file/d/0ByY8XEZNqRsTQ0FXVkxaNDA5c3M/view

Author: loboris    time: 2015-6-24 01:59
roblad replied at 2015-6-24 00:34
Hi,

Did you see that, is it possible to do it for emmc burning  on your distribution ?

Installing on emmc should not be difficult. Unfortunately, I cannot test it, I don't have OPI with emmc ...

Author: roblad    time: 2015-6-24 02:03
Edited by roblad at 2015-6-24 02:05

Hi,

But which  files dd as a u-boot do you have any idea haw to do it for yours img ?

I can test it, but for that toolchain I am noob, there is a time neede to recognise and to build myselves.

Author: roblad    time: 2015-6-24 03:09
Hi,

the xface ubunto does not work on opiplus hangs during boot
Author: john0815    time: 2015-6-24 04:18
HI!
Sorry for my report:

XFCE hangs a while - 1 min - and goes into xcfe login Menu .

Chromium do not start

It is not possible to change the language - not with the app and not with command version

this is what OPIPlus is writing

root@OrangePI:~# sudo dpkg-reconfigure locales
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = "de_DE.UTF-8",
        LANG = "de_DE.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
/bin/bash: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)
Generating locales...
  de_AT.UTF-8... /usr/sbin/locale-gen: line 177: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)
cannot open locale definition file `de_AT': No such file or directory
failed
  de_BE.UTF-8... /usr/sbin/locale-gen: line 177: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)
cannot open locale definition file `de_BE': No such file or directory
failed
  de_CH.UTF-8... /usr/sbin/locale-gen: line 177: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)
cannot open locale definition file `de_CH': No such file or directory
failed
  de_DE.ISO-8859-1... /usr/sbin/locale-gen: line 177: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)
cannot open locale definition file `de_DE': No such file or directory
failed
  de_DE.UTF-8... /usr/sbin/locale-gen: line 177: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)
cannot open locale definition file `de_DE': No such file or directory
failed
  de_LI.UTF-8... /usr/sbin/locale-gen: line 177: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)
cannot open locale definition file `de_LI': No such file or directory
failed
  de_LU.UTF-8... /usr/sbin/locale-gen: line 177: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)
cannot open locale definition file `de_LU': No such file or directory
failed
  en_US.UTF-8... /usr/sbin/locale-gen: line 177: warning: setlocale: LC_ALL: cannot change locale (de_DE.UTF-8)
done
Generation complete.



Author: matteobp    time: 2015-6-24 04:27
I tried Ubuntu with XFCE, it hangs for about 1 min, like Ubuntu with MATE, then it starts.
Chromium works with orangepi user, it doesn't start with root user, but it is seems to be normal.
Network and audio are ok. Video codec missing (no hardware support). I didn't try to change language.
Author: john0815    time: 2015-6-24 04:43
with "uImage_OPI-PLUS_NO_BUDGET_COOLING" after 1-2 min he is falling out of xfce desktop, i get a black screen but it seems if the board is working without video output - leds are blinking
Author: loboris    time: 2015-6-24 06:10
Edited by loboris at 2015-6-24 06:19

About locales
please try to run:
  1. sudo apt-get install --reinstall locales
Copy code
After that, run Language support from settings and select your locale, if already selected, deselect (uninstall), then select it again (instal). You can safely uninstal English locale.
Logout, then log in.
If you still don't have your locale, manualy edit /etc/default/locale (as root) and set all to your language, so that il looks like this (of course replace hr_HR with your locale)
  1. LANG="hr_HR.UTF-8"
  2. LANGUAGE="hr"
  3. LC_NUMERIC="hr_HR.UTF-8"
  4. LC_TIME="hr_HR.UTF-8"
  5. LC_MONETARY="hr_HR.UTF-8"
  6. LC_PAPER="hr_HR.UTF-8"
  7. LC_IDENTIFICATION="hr_HR.UTF-8"
  8. LC_NAME="hr_HR.UTF-8"
  9. LC_ADDRESS="hr_HR.UTF-8"
  10. LC_TELEPHONE="hr_HR.UTF-8"
  11. LC_MEASUREMENT="hr_HR.UTF-8"
Copy code
If you want your home directories in your language, remove user-dirs.dirs and user-dirs.locale from .config directory (/home/orangepi/.config), then logout -> login. Delete English named directories.
I've successfully installed the locales for Croatian language.

About 1 min start delay:
I've never had it on OPI-2.

About uImage_OPI-PLUS_NO_BUDGET_COOLING kernel
It has no termal management, so if the CPU overheats, it halts independently of the kernel. You have to have real good cooling.







Welcome to OrangePi (http://www.orangepi.org/orangepibbsen/) Powered by Discuz! X3.4