Jump to content

Armbian for OrangePi PC2, AllWinner H5


Christos

Recommended Posts

HI

How does it change screen resolution from 1024x768 to 1920x1080 in orange pi H5 processor? ( XFCE )

I was trying this in armbianENV.txt

setenv load_addr "0x44000000"
setenv overlay_error "false"
# default values
# setenv rootdev "/dev/mmcblk0p1"
# setenv verbosity "1"
# setenv console "both"
setenv disp_mem_reserves "off"
# setenv disp_mode "1920x1080p60"
setenv rootfstype "ext4"
setenv docker_optimizations "on"
setenv video-mode sunxi:1920x1080,monitor=hdmi,hpd=0,edid=1
saveenv usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u

OR add to the boot.cmd

setenv video-mode sunxi:1920x1080-24@60,monitor=hdmi,hpd=0,edid=0

but it does not work.

I am not programmer, maybe i am doing something wrong or stupid.

Link to comment
Share on other sites

34 minutes ago, dolphs said:

Hi - I noticed for some boards kernel 4.14 is available to deploy ( eg Allwinner A10 ) already,

when can this be expected for Allwinner H5 boards ( eg nanopineo2 ) please?


When those 100+ patches are rebased on top of 4.14 from kernel.org ... few weeks/a month? Get our 4.13.y ... it has far more support (then upstream kernel) for the board you ask. In both cases, kernel remains flagged as testing while for A10 is stable for some time.

Link to comment
Share on other sites

looks like there was a game changer ... 4.14.1 released

Yet it seems also this board is supported by the kernel.

Kernel upgrade is scheduled for the stable images that got built with 4.13.x ?

IMHO 4.14 is the stable kernel now which has the " long term " status

Link to comment
Share on other sites

Guys. Does anyone has the similar problem with gcc? Seems to appear on attempt to compile just anything :)
Sorry for posting Prime in PC2 thread, according to tkaiser they are all the same :)
```
# make
[Compile] wiringPi.c
cc: internal compiler error: Illegal instruction (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
Makefile:131: recipe for target 'wiringPi.o' failed
make: *** [wiringPi.o] Error 4
```
This is Armbian_5.34.171121_Orangepiprime_Debian_stretch_next_4.13.14.7z
```

# cat /etc/armbian-release 
# PLEASE DO NOT EDIT THIS FILE
BOARD=orangepiprime
BOARD_NAME="Orange Pi Prime"
VERSION=5.34.171121
LINUXFAMILY=sunxi64
BRANCH=next
ARCH=arm64
IMAGE_TYPE=nightly
BOARD_TYPE=conf
INITRD_ARCH=arm64
KERNEL_IMAGE_TYPE=Image
# uname -a
Linux mxopipr01 4.13.14-sunxi64 #246 SMP Mon Nov 20 01:58:09 CET 2017 aarch64 GNU/Linux

# gcc -v
...

gcc version 6.3.0 20170516 (Debian 6.3.0-18) 
```
Update:
All seems OK with Xenial and old gcc - Armbian_5.34.171121_Orangepiprime_Ubuntu_xenial_next_4.13.14.7z
```
$ gcc -v
...
gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.5)
```
Anyway would like to understand what it the problem with stretch and gcc 6.3

Link to comment
Share on other sites

Hi Igor,

 

In reply to your comment below I like to find out the status today in kernel 4.14.3 , thus if the patches meanwhile are adapted to the new LTS ?

I am just wondering since the kernel page says 4.14.3 is supported? thanks

 

On 13/11/2017 at 4:21 PM, Igor said:


When those 100+ patches are rebased on top of 4.14 from kernel.org ... few weeks/a month? Get our 4.13.y ... it has far more support (then upstream kernel) for the board you ask. In both cases, kernel remains flagged as testing while for A10 is stable for some time.

 

Link to comment
Share on other sites

34 minutes ago, dolphs said:

thus if the patches meanwhile are adapted to the new LTS ?


Remember. This is open source project running by amateurs and not enterprise-grade service. :) Go to GitHub and monitor progress. 

 

We always write major changes to release documentation. 

 

38 minutes ago, dolphs said:

I am just wondering since the kernel page says 4.14.3 is supported? thanks


Didn't you notice this?

* packaged versions might be slightly older than in this table!

Link to comment
Share on other sites

I've seen a question about setting full 1.3 ghz instead of current 1.15 several messages ago.

Assuming I'm on this testing build, made apt-get update/upgrade... Is it possible to enable full 1.3Ghz and is there any step-by-step instructions for doing this ? (I understand, that it is not the safe step and board is "downclocked" for a reason).

Thanks in advance for answering.

Link to comment
Share on other sites

Hi to All and Merry Christmas.

This is for DYS and for developers.

Tested and approved. Sting solid no blinks and cold like cucumber!  Just need Mali 450 and bumped up to 1.6GHz  

 

DYS for Orange PI PC2 on "How to install Mate".

Spoiler

sudo apt-get update
sudo apt-get install synaptic menu deborphan apt-xapian-index tasksel software-properties-gtk
sudo apt-get upgrade
>go to Software & Updates < and unlock all repos.
sudo apt install rtmpdump  xserver-xorg-video-amdgpu  xserver-xorg-dev  va-driver-all  ubuntu-mate-lightdm-theme  mate-session-manager  libwacom-bin  libllvm3.8 libinput10 libimlib2  libxpm-dev  iproute  ffmpeg  engrampa-common  libcaja-extension1  gvfs-bin  caja-common  caja  libpoppler-glib8  libatrilview3  atril libsoup2.4 libgstreamer-plugins-base1.0 libgstreamer1.0-0  lshw  ntpdate  lightdm libxcursor-dev  libfontconfig1-dev  libxfont-dev  module-init-tools  libdrm-exynos1 libdrm-omap1 libssh2-1 gdebi  libsoup-gnome2.4-1  libnl-3-200  libndp0  libnl-genl-3-200
now remove xfce4-session
sudo apt-get remove xfce4-session
sudo apt-add-repository ppa:ubuntu-mate-dev/ppa
sudo apt-get update
sudo apt-get upgrade
This will install the base packages required for a minimal MATE desktop [basic may have window managment problems]
sudo apt-get install mate-desktop-environment-core 
This will install the complete MATE desktop [OK]
sudo apt-get install mate-desktop-environment
This will install the complete MATE desktop including a few extras (Most Users Will Want This)
sudo apt-get install mate-desktop-environment-extras
Alternatively you may choose to install Ubuntu MATE Remix.
Ubuntu MATE is a more comprehensive option that offers a slightly tweaked layout, configuration, and themes to integrate into Ubuntu in a more seamless fashion. This will install the complete MATE Desktop Environment as well as LightDM and numerous other applications to provide a full and well rounded desktop.
sudo apt-get install ubuntu-mate-core ubuntu-mate-desktop 
#How to Install MATE 1.18 [warning no mali GPU - no integration very havy on load]
#sudo add-apt-repository ppa:jonathonf/mate-1.18
#sudo apt full-upgrade
#sudo apt install --install-suggests mate-desktop

/etc/lightdm/lightdm.conf  > need to del-t lightdm.conf.d folder as su and edit file /lightdm-gtk-greeter.conf with # ALL FILE exsept [greeter]
sudo dpkg-reconfigure lightdm
 
sudo dpkg-reconfigure lightdm-gtk-greeter
 sync
sudo service lightdm restart
sudo apt install caja-gksu geany debfoster bleachbit
reboot 
 
 
sudo  debfoster   (pulseaudeo) Y to keep 
no need if config from armbian works {start from Control Center Armbian config}
#sudo apt install  libpulse0  libpulse-mainloop-glib0  pulseaudio  pulseaudio-module-x11 pulseaudio-utils  libpulsedsp
#wget -c http://ports.ubuntu.com/ubuntu-ports/pool/main/p/pulseaudio/libpulse0_8.0-0ubuntu3.4_armhf.deb
if broken APT:
sudo rm /var/lib/apt/lists/* -vf
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade

 


 

 

 

Edited by Tido
code box
Link to comment
Share on other sites

There is an awesome tool "h3consumption" for allwinner h3 boards. E.g. I disables unneeded USB interfaces and my diy cluster is consuming less :)

Is there anything similiar for H5 ? E.g. how I can disable USB and force Ethernet to 100mbit ?

 

Thanks in advance for your answer.

Link to comment
Share on other sites

On 9/29/2017 at 4:27 AM, Igor said:


Stretch is possible, but kernel for this board is not quite ready. We are working round the clock to finish this in planned due in 1-2 months.

 

Current status: 

HDMI DRM driver, CEC, HDMI audio, I2S (requires overlays)

Missing features: DVFS, THS U-boot is most likely broken

2 months passed, made any progress? since the prime & win versions are very similar and do have stretch.

 

Thanks for maintaining this.

Link to comment
Share on other sites

55 minutes ago, Igor said:


https://www.armbian.com/logbook/
Prime is in a better shape than Win.

Sure, but they do have stretch (even if buggy) and since my intended setup for this board is to host freedombone services (requires stretch) and run a Tor relay (complains now about outdated version because ubuntu lacks (security)updates I'm out of options.

 

Do you need me to run something to figure things out or anything else?

Link to comment
Share on other sites

10 hours ago, OrangePiPc2 said:

Suppose we won't see a stretch image available for this board until H5 is stable?


Check "more download options" ... I added Stretch nightly build but it's untested.

Link to comment
Share on other sites

1 hour ago, manuti said:

Armbian monitor isn't currently available on this board and with the new kernel. 

Thanks alot sir, I am not sure if I understand you correctly, but it seems that these guys can monitor the cpu temperature:

 

this on even can monitor it on a desktop environment

On 1/28/2017 at 2:30 PM, hojnikb said:

Btw, if anyone needs a taskbar cpu temp, genmon-plugin and a simple shell script does the trick.


#!/bin/bash
#Displays H5 CPU temparature in *C
cat /sys/class/thermal/thermal_zone0/temp|cut -c1-2

 

 

On 4/16/2017 at 9:35 AM, Harry_W said:

I just received my Opi PC2 and set it up with the latest nightly build (no desktop) 

... 

CPU load and temperatures are low during the transfer, so it's not a heat / throttling issue.

...

 

On 10/23/2017 at 4:43 PM, znoxx said:

Guys, thanks for update of image.

...

Throttle is working -  temp keeps about 66-68 degrees.

Output of armbianmonitor can be found here : http://znoxx.me/2017/10/20/na-frontie-orange-pi/
...

 

 

Link to comment
Share on other sites

Hi,

 

I have a problem with Ubuntu 16.04 for OrangePi PC2 and Domoticz

Phyton allways crash

 

Quote

[ 4219.835797] domoticz[6362]: unhandled level 2 translation fault (11) at 0x00000025, esr 0x92000006, in libpython3.5m.so.1.0[ffff8e8cc000+36d000]
[ 4219.835833] CPU: 2 PID: 6362 Comm: domoticz Not tainted 4.14.7-sunxi64 #38
[ 4219.835836] Hardware name: Xunlong Orange Pi Prime (DT)
[ 4219.835840] task: ffff8000353d0d80 task.stack: ffff000010b40000
[ 4219.835847] PC is at 0xffff8e9f72f0
[ 4219.835849] LR is at 0xffff8e98f1bc
[ 4219.835853] pc : [<0000ffff8e9f72f0>] lr : [<0000ffff8e98f1bc>] pstate: 40000000
[ 4219.835854] sp : 0000ffff8e07b6e0
[ 4219.835857] x29: 0000ffff8e07b6e0 x28: 0000ffff6000de90
[ 4219.835861] x27: 0000000000d851a0 x26: 0000000000d83fb0
[ 4219.835866] x25: 0000000000d8b1b8 x24: 0000000000d8b158
[ 4219.835871] x23: 000000005a3fca6f x22: 0000ffff8ecf9000
[ 4219.835875] x21: 0000ffff8ecfec20 x20: 0000ffff8e07b750
[ 4219.835880] x19: 0000ffff881f9b30 x18: 0000000000000014
[ 4219.835884] x17: 0000ffff8f683a80 x16: 0000ffff8ec4b0a0
[ 4219.835889] x15: 0000000000000020 x14: 656420746f6e2073
[ 4219.835893] x13: 6920277274746174 x12: 65672720656d616e
[ 4219.835898] x11: 0000000000000000 x10: 096b0000640002e4
[ 4219.835903] x9 : 0000ffff74007be0 x8 : 0101010101010101
[ 4219.835907] x7 : 7f7f7f7f7f7f7f7f x6 : 7fffffffffffffff
[ 4219.835912] x5 : 0000000000bf1c52 x4 : 0000000000bf1c52
[ 4219.835917] x3 : 0000ffff8ec6f1d0 x2 : 0000000010000000
[ 4219.835921] x1 : 00000000000000e4 x0 : 0000000000000000
 

 

can you tell where is problem in kernel or python?

 

Link to comment
Share on other sites

On 27/12/2017 at 4:26 PM, Jelev said:

Hi,

 

I have a problem with Ubuntu 16.04 for OrangePi PC2 and Domoticz

Phyton allways crash

 

 

can you tell where is problem in kernel or python?

 

Looks like stability issue. Start with PSU and microSD replacing.

Link to comment
Share on other sites

On 1/24/2018 at 7:17 AM, znoxx said:

Hi all

Is there any way to increase CPU speed ?

Currently armbianmonitor gives me 1152 mhz, but cpu itself can do more, I guess...

 

Yes, CPU could clock up to around 1.4Ghz, but there are currently only dvfs tables for up to 1.15Ghz. You'd have to wait for developers to add back higher frequencies or add them yourself.

Link to comment
Share on other sites

On 1/29/2018 at 10:05 PM, hojnikb said:

Yes, CPU could clock up to around 1.4Ghz, but there are currently only dvfs tables for up to 1.15Ghz. You'd have to wait for developers to add back higher frequencies or add them yourself.

Does this issue also affecting the idle clocks? Today I reinstalled my OrangePi PC2 with 5.40 Ubuntu Xenial Next desktop, and the cpu clocks rarely back to 408Mhz even cpu loads are low ( 0.05 at 1152Mhz )

Tried changing governor from ondemand to interactive, but it seems no effect

 

current

/etc/default/cpufrequtils:

# WARNING: this file will be replaced on board support package (linux-root-...) upgrade
ENABLE=true
MIN_SPEED=240000
MAX_SPEED=1296000
GOVERNOR=interactive

 

My previous OS is 5.27 Ubuntu Xenial, which works awesome for almost a year. Cpu clocks idle at 240Mhz (I lowered it myself from 408Mhz)

 

Link to comment
Share on other sites

55 minutes ago, lukasb said:

Today I reinstalled my OrangePi PC2 with 5.40 Ubuntu Xenial Next desktop, and the cpu clocks rarely back to 408Mhz even cpu loads are low


DVFS part will receive some changes (AFAIK refactoring) since it is not working as it should yet. Nevertheless, a kernel is good enough for testing, perhaps even for use. Remember, it is a first "stable to be" build ... (not so big) problems are expected.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines