3 3
5kft

Orange Pi Zero Plus2 H5 hardware oddity in VDD_CPUX power circuit

Recommended Posts

3 hours ago, rusatch said:

Hi. The patch doesnt available. Is this correct?

 

Hi @rusatch - yes, however this is actually even easier to enable now; no patching and custom kernels should be needed ^_^  If you build Armbian from the latest top-of-tree for a sunxi device (starting with the 4.17.y kernel), two new DT overlays are provided that you can load via "/boot/armbianEnv.txt" that provide this regulator and will enable higher clock speeds to be used.  The original thread regarding this (with instructions) can be found here:  https://forum.armbian.com/topic/5051-nanopi-neo2-cpu-frequency-issue/?do=findComment&comment=58181.  I'll repeat these instructions here for others:

 

If you would like to try to run your board at 1.3GHz, and your board has a regulator on GPIO PL6 that supports 1.3v (e.g., Orange Pi Zero Plus2 H5 with Q5 MOSFET present, Orange Pi Zero Plus with Q5 MOSFET present, etc.), then all you would have to do is the following:

 

1.  Make sure that you know what you are doing (!).  If you enable the following on a board that does not properly have access to the CPU regulator - i.e., unmodified OrangePi board with missing Q5 MOSFET, or a board that does not have a compatible 1.1v/1.3v regulator controlled via GPIO PL6 - then your board will almost certainly crash on boot!

 

2.  Edit /boot/armbianEnv.txt, and add these lines:

overlay_prefix=sun50i-h5
overlays=gpio-regulator-1.3v cpu-clock-1.3GHz

If you have other overlays specified in your /boot/armbianEnv.txt, simply append these two new ones following them, for example:

overlay_prefix=sun50i-h5
overlays=spi-spidev usbhost2 usbhost3 gpio-regulator-1.3v cpu-clock-1.3GHz

 

3.  Edit /etc/default/cpufrequtils, and set the MAX_SPEED definition to 1300000:

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

 

4.  Reboot the board

 

That should be it!  Following reboot, you can verify proper operation at the higher CPU clock speeds using "cpufreq-info" (for example).

Share this post


Link to post
Share on other sites
18 minutes ago, 5kft said:

If you build Armbian from the latest top-of-tree for a sunxi device (starting with the 4.17.y kernel), two new DT overlays are provided that you can load via "/boot/armbianEnv.txt" that provide this regulator and will enable higher clock speeds to be used.

Ooh. With overlays its very usefull. Thank you very much. Its very cool! :)

Today i recieve mosfets from aliexpress, used link that was in this thread. Tomorrow i will include mosfet on board and try use overlays. :)

 

update: Found additional overlay named cpu-clock-1.4GHz. Is this experemental overlay?

Share this post


Link to post
Share on other sites
15 minutes ago, rusatch said:

update: Found additional overlay named cpu-clock-1.4GHz. Is this experemental overlay?

 

This overlay sets the CPU clock frequency curve to 1.392GHz maximum; however it will only function if the board CPU regulator can support 1.4v output maximum, for example the NanoPi NEO Core2, which provides an I2C-based voltage regulator.  If you try using it on a board that only supports 1.3v maximum, then your maximum CPU clock rate would actually be limited to 1.2GHz.  So it should really only be used on higher-voltage capable boards.

Share this post


Link to post
Share on other sites

@5kft, overlays works perfectly. One more time, thank you very mush! :)

05:28:52: 1296MHz  0.47  33%  10%  14%   0%   8%   0% 45.1°C  0/8
05:29:08: 1296MHz  0.43   5%   5%   0%   0%   0%   0% 43.3°C  0/8
05:29:13:  408MHz  0.39   0%   0%   0%   0%   0%   0% 39.4°C  0/8
05:29:18: 1296MHz  0.36   5%   5%   0%   0%   0%   0% 37.1°C  0/8
05:29:23:  408MHz  0.33   0%   0%   0%   0%   0%   0% 39.0°C  0/8
05:29:29:  408MHz  0.31   1%   1%   0%   0%   0%   0% 37.3°C  0/8
 

Share this post


Link to post
Share on other sites

whats the best price?
Got my first Zero Plus2 H5 (with 8GB eMMC) for GBP 13.99 + 11GBP Postage from Sweden - but via eBay at the 5th of June.

( Item No 112940564893 ).

On AliExpress its 23,90USD + Postage 

https://fr.aliexpress.com/item/Orange-Pi-Zero-Plus-2-H5-Quad-core-Bluetooth-mini-PC-Beyond-Raspberry-Pi-2-Wholesale/32801249806.html

 

I think about getting a second one from eBay (wouldnt use AliExpress from my CreditCard)

 

The Zero Plus2 H5 isnt running hot here as a headless-server - seems like a nice board.

 

Time        CPU    load %cpu %sys %usr %nice %io %irq   CPU  C.St.
19:06:48:  408MHz  0.03   0%   0%   0%   0%   0%   0% 29.3°C  0/2
19:06:54:  408MHz  0.03   0%   0%   0%   0%   0%   0% 30.1°C  0/2
19:06:59:  408MHz  0.03   0%   0%   0%   0%   0%   0% 27.2°C  0/2
19:07:04:  408MHz  0.02   1%   0%   0%   0%   0%   0% 29.5°C  0/2
19:07:09:  408MHz  0.02   0%   0%   0%   0%   0%   0% 29.8°C  0/2
19:07:14:  408MHz  0.02   0%   0%   0%   0%   0%   0% 29.5°C  0/2

 

Also WiFi is working without a problem

 

Share this post


Link to post
Share on other sites
On 6/6/2018 at 5:00 PM, 5kft said:

When the build pauses for the kernel patch, edit ".../build/cache/sources/linux-mainline/linux-4.14.y/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts", and simply add a block for the LEDs (I added mine following the existing "wifi-pwrseq" block).  E.g.,

Save, and continue the build.  Then simply install the generated packages in ".../build/output/debs".  (It should also be possible to generate an overlay for this, but I haven't bothered to do this.)

 

Today I would update the "Kernel",  but now we have to edit 

.../build/cache/sources/linux-mainline/linux-4.17.y/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts

 

[EDIT] I did unfreeze my kernel and it updated from 4.14 to 4.17

LEDs are working and also reboot seems to work without creating/compiling my "own" kernel :)

 

So I am now at

ARMBIAN 5.57.180810 nightly Debian GNU/Linux 9 (stretch) 4.17.14-sunxi64

Linux opi-zero-plus2-h5 4.17.14-sunxi64 #23 SMP Sat Aug 11 01:00:21 CEST 2018 aarch64 GNU/Linux

 

Share this post


Link to post
Share on other sites
1 hour ago, guidol said:

 

Today I would update the "Kernel",  but now we have to edit 

.../build/cache/sources/linux-mainline/linux-4.17.y/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts

 

[EDIT] I did unfreeze my kernel and it updated from 4.14 to 4.17

LEDs are working and also reboot seems to work without creating/compiling my "own" kernel :)

 

So I am now at

ARMBIAN 5.57.180810 nightly Debian GNU/Linux 9 (stretch) 4.17.14-sunxi64

Linux opi-zero-plus2-h5 4.17.14-sunxi64 #23 SMP Sat Aug 11 01:00:21 CEST 2018 aarch64 GNU/Linux

 

 

Hi @guidol, yes I found with 4.17 that the HDMI-related shutdown/restart issues no longer occur.  I.e., you should not have to patch out these entries in the DT - it works fine by default (which is nice!).

Share this post


Link to post
Share on other sites
2 hours ago, guidol said:

whats the best price?
Got my first Zero Plus2 H5 (with 8GB eMMC) for GBP 13.99 + 11GBP Postage from Sweden - but via eBay

( Item No 112940564893 ).

On AliExpress its 23,90USD + Postage 

https://fr.aliexpress.com/item/Orange-Pi-Zero-Plus-2-H5-Quad-core-Bluetooth-mini-PC-Beyond-Raspberry-Pi-2-Wholesale/32801249806.html

 

I think about getting a second one from eBay (wouldnt use AliExpress from my CreditCard)

 

The Zero Plus2 H5 isnt running hot here as a headless-server - seems like a nice board.

 

Time        CPU    load %cpu %sys %usr %nice %io %irq   CPU  C.St.
19:06:48:  408MHz  0.03   0%   0%   0%   0%   0%   0% 29.3°C  0/2
19:06:54:  408MHz  0.03   0%   0%   0%   0%   0%   0% 30.1°C  0/2
19:06:59:  408MHz  0.03   0%   0%   0%   0%   0%   0% 27.2°C  0/2
19:07:04:  408MHz  0.02   1%   0%   0%   0%   0%   0% 29.5°C  0/2
19:07:09:  408MHz  0.02   0%   0%   0%   0%   0%   0% 29.8°C  0/2
19:07:14:  408MHz  0.02   0%   0%   0%   0%   0%   0% 29.5°C  0/2

 

Also WiFi is working without a problem

 

 

Hi @guidol, very nice!  I am curious, if your board is new is it missing the Q5 MOSFET (next to the SD card slot on the bottom)?

Share this post


Link to post
Share on other sites
21 minutes ago, 5kft said:

So strange... oh well!  Thank you for checking!

Are there any new of these in the wild originally with Q5?

 

The seller from sweden does use a "standard" Picture which show the PCB with Q5 :(

Zeo_Plus2_with_Q5.jpg

 

PS: I have send a question to the seller if his newer boards include the Q5 voltage regulator....

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
3 3