Jump to content

h3consumption to be included into future Armbian releases


tkaiser

Recommended Posts

I added a script lurking around on my disk for some time to Armbian's repo to be hopefully included into future Armbian releases when testing looks good: https://github.com/igorpecovnik/lib/blob/master/scripts/h3consumption

 

Since it's just a script you can include it in your running Armbian installation simply by downloading it from Github -- try it this way please:

sudo -s
wget -q -O /usr/local/bin/h3consumption "https://raw.githubusercontent.com/igorpecovnik/lib/master/scripts/h3consumption"
chmod 755 /usr/local/bin/h3consumption
h3consumption -H
h3consumption -p

The last 2 calls will show the verbose help text along with current settings. This might then look like this:

 

 

 

root@orangepilite:~# h3consumption -H

Usage: h3consumption [-h/-H] [-p] [-g on|off] [-m max_cpufreq] [-c 1|2|3|4]

       [-d dram_freq] [-D dram_freq] [-u on|off] [-e on|off|fast] 

 

############################################################################

 

Detailed Description:

 

 h3consumption

 

 This tool patches fex/script.bin, adds commands to /etc/rc.local and

 adjusts /etc/defaults/(cpufrequtils to control board consumption. Works

 only with H3 devices running legacy kernel.

 

############################################################################

 

 Background information:

 

 By controlling a few settings energy consumption of H3 boards can be

 influenced:

 

 - disabling GPU/HDMI on headless devices: 210 mW less idle consumption

   (memory bandwidth also increases so performance will slightly improve)

 

 - negotiate only Fast Ethernet on GbE devices: 370 mW less idle consumption

 

 - limit max cpufreq: does not affect idle consumption but peak/full load

   (using 912 mhz on NanoPi M1/NEO or Orange Pi One/Lite will prevent VDD_CPU

   switching to the higher voltage and therfore greatly reduce consumption

   with only a slight decrease in maximum performance)

 

 - limit count of active cpu cores: low impact on idle consumption, high on

   peak/full load consumption

 

 - lower DRAM clockspeed to 408 MHz: 150 mW less idle consumption

 

 - disabling all USB ports (it's only 'all or nothing'): 125 mW less idle

 

 Please be aware that WiFi might add significantly to consumption. Since there

 are too many possible configurations (USB WiFi dongles also considered and

 possibilities to tweak power management settings with individual WiFi chips)

 h3consumption does not adjust WiFi settings -- only the -p switch lists

 configured WiFi devices.

 

 In case you don't need WiFi on the H3 boards with onboard WiFi adjust

 /etc/modules and comment the WiFi module out (8189es, 8189fs or bcmdhd).

 Please keep also in mind that you can control networking consumption also 

 on a 'on demand' basis. In case you use a H3 board as data logger and need

 WiFi only for a short time every 24 hours, disabling WiFi and only enabling

 it for data transfers will save you between 300 and 1000 mW with 8189FTV as 

 used on Orange Pi Lite, PC Plus or Plus 2E for example:

 

 ifconfig wlan0 down && rmmod -f 8189fs / modprobe 8189fs && sleep 0.5 && ifconfig wlan0 up

 

 Same with the Gigabit Ethernet equipped H3 boards: switching there to Fast

 Ethernet when no high speed transfers are needed saves a whopping 370 mW

 (and the same will happen on the switch's side if a more modern Gbit switch

 is in use):

 

 ethtool -s eth0 speed 100 duplex full / ethtool -s eth0 speed 1000 duplex full

 

 More information (and discussion in case questions arise!) in Armbian forum:

 http://forum.armbian.com/index.php/topic/1614-running-h3-boards-with-minimal-consumption/

 http://forum.armbian.com/index.php/topic/1748-sbc-consumptionperformance-comparisons/

 http://forum.armbian.com/index.php/topic/1823-opi-pc-wireless-not-powering-off/

 

############################################################################

 

 CHANGES:

 

 v0.1: Initial release

 

############################################################################

 

 TODO:

 

 - Write documentation as nicely as it's done for h3disp

 - Allow higher DRAM clock in fex file than set from /etc/rc.local

 - Add revert mode, relinking original fex/bin and restore all original

   settings

 

############################################################################

 

 This tool allows to adjust a few consumption relevant settings of your

 H3 device. Use the following switches

 

 -h|-H           displays help or verbose help text

 -p              print currently active settings

 -g on|off       disables GPU/HDMI for headless use

 -m max_cpufreq  adjusts maximum allowed cpu clockspeed (mhz)

 -c 1|2|3|4      activate only this count of CPU cores

 -d dram_freq    adjusts dram clockspeed (408 - 624 mhz)

 -D dram_freq    like -d but as low as 132 mhz possible (experimental!)

 -u on|off       enables/disabled all USB ports

 -e on|off|fast  enables/disables Ethernet, the fast switch

                 forces 100 mbits/sec negotiation on gigabit devices

 

############################################################################

 

root@orangepilite:~# h3consumption -p

Active settings:

 

cpu       1200 mhz allowed, 1200 mhz possible, 4 cores active

 

dram      624 mhz

 

hdmi/gpu  on

 

usb ports on

 

wlan0     unassociated  Nickname:"<WIFI@REALTEK>"

          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated   

          Sensitivity:0/0  

          Retry:off   RTS thr:off   Fragment thr:off

          Encryption key:off

          Power Management:off

          Link Quality:0  Signal level:0  Noise level:0

          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0

          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

 

 

 

Mode of operation/test:

  • Please read through the description (-H output) first and check also the referenced links
  • Use -p to get currently used settings
  • Use the other switches to modify settings
  • Do not use -p now but instead do a reboot first and then check again -p
  • You might also have a look at /etc/rc.local and /etc/defaults/cpufrequtils to get an idea where the script does things for a better understanding

Two examples (will go into details later in different thread😞

  • On an Orange Pi Plus 2E 'h3consumption -c 1 -m 1296 -d 408 -g off -e fast' reduces default idle consumption from 1650 mW by 780 mW to just 870 mW
  • On an Orange Pi Lite 'h3consumption -D 132 -c1 -g off -u off' reduces default idle consumption from 1060 mW by 660 mW to just 400 mW (same low consumption running identical settings possible with NanoPi M1, Orange Pi One/PC/PC Plus and maybe the larger boards too when GBit Ethernet PHY can be completely disabled)

Please note: the -D switch allows to use DRAM clockspeeds that are way below Allwinner's defaults and what's expected to work ok (since DDR3 shouldn't be clocked lower than 300 MHz and Allwinner used 408 MHz clockspeed as lower limit). While clockspeeds as low as 132 MHz seemed to work reliably in my tests and it should be ok to test these out when having in mind that this is an experimental feature you won't be able to go lower than 408 MHz anyway without a kernel patch (available in post #14 here) with all available official Armbian releases. So you've to either use the kernel .deb I provide in the other thread or wait for a new round of Armbian images (no idea how Igor's plans look like)

Link to comment
Share on other sites

What do you need me to test?

 

Well, on the NEO there's not much to test with h3consumption since settings are already chosen to lower consumption as much as possible and prevent overheating :)

 

I was looking for feedback from other H3 boards where significant consumption savings are possible :)

Link to comment
Share on other sites

On my oPi Plus 2E I get the following, and my PowerJive monitor shows 1.08Amps use.

 

root@orangepiplus2e:/etc/RFSniffer# h3consumption -p
Active settings:

cpu       1296 mhz allowed, 1296 mhz possible, 4 cores active

dram      624 mhz

hdmi/gpu  active

usb ports active

eth0      1000Mb/s/Full, Link: yes

wlan0mon  IEEE 802.11bgn  Mode:Monitor  Tx-Power=12 dBm
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off

wlan0     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Monitor  Frequency=2.412 GHz  Access Point: Not-Associated
          Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
 

Link to comment
Share on other sites

Hi,

 

I am running a self built image, it's basically the standard Armbian_5.17_Orangepilite_Ubuntu_xenial_3.4.112 with a few extra debs and some pre-configured conf files in /etc.

 

I must be missing something but I cant see how/where you get the power consumption from the output of h3consumption -p? 

 

So as I have a few boards up and running with this build, here goes, in all cases below I have ssh'd into the board, run sudo reboot, then after the reboot I have ssh'd back into the board and run sudo h3consumption -p. Also in all cases the boards have no heatsinks and are running inside the plastic cases supplied by xunlong.

 

Hope this helps,

 

Dave.

 

 

  ___                               ____  _   _     _ _       
 / _ \ _ __ __ _ _ __   __ _  ___  |  _ \(_) | |   (_) |_ ___ 
| | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | | |   | | __/ _ \
| |_| | | | (_| | | | | (_| |  __/ |  __/| | | |___| | ||  __/
 \___/|_|  \__,_|_| |_|\__, |\___| |_|   |_| |_____|_|\__\___|
                       |___/                                  

Welcome to ARMBIAN Ubuntu 16.04.1 LTS 3.4.112-sun8i 
System load:   0.21            	Up time:       3 min		
Memory usage:  10 % of 494Mb  	IP:            
CPU temp:      65°C           	
Usage of /:    9% of 15G    	


[ 5 updates to install: apt-get upgrade ]

Last login: Sun Aug 28 11:40:31 2016 from 2001:xxxx:219f:xxxx:a65e:60ff:xxxx:933b
dave@orangepilite-00005e:~$ sudo h3consumption -p
[sudo] password for dave: 
Active settings:

cpu       1200 mhz allowed, 1200 mhz possible, 4 cores active

dram      624 mhz

hdmi/gpu  active

usb ports active

bat0      no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:"batnet6"  Nickname:"<WIFI@REALTEK>"
          Mode:Ad-Hoc  Frequency:2.412 GHz  Cell: 02:13:13:13:13:13   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=67/100  Signal level=76/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
  ___                               ____  _   _     _ _       
 / _ \ _ __ __ _ _ __   __ _  ___  |  _ \(_) | |   (_) |_ ___ 
| | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | | |   | | __/ _ \
| |_| | | | (_| | | | | (_| |  __/ |  __/| | | |___| | ||  __/
 \___/|_|  \__,_|_| |_|\__, |\___| |_|   |_| |_____|_|\__\___|
                       |___/                                  

Welcome to ARMBIAN Ubuntu 16.04.1 LTS 3.4.112-sun8i 
System load:   0.06            	Up time:       9 min		
Memory usage:  8 % of 494Mb  	IP:            
CPU temp:      53°C           	
Usage of /:    8% of 15G    	

Last login: Tue Sep  6 06:28:05 2016 from 2001:xxxx:219f:xxxx:a65e:60ff:xxxx:933b
dave@orangepilite-0435503b0ace14000079:~$ sudo h3consumption -p
[sudo] password for dave: 

Please be patient, external requirements are to be installed.

Aborted
fex2bin/bin2fex not found and unable to install. Exiting
Active settings:

cpu       1200 mhz allowed,  mhz possible, 4 cores active

dram      624 mhz

hdmi/gpu  

usb ports 

bat0      no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:"batnet6"  Nickname:"<WIFI@REALTEK>"
          Mode:Ad-Hoc  Frequency:2.412 GHz  Cell: 02:13:13:13:13:13   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=94/100  Signal level=76/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

  ___                               ____  _   _     _ _       
 / _ \ _ __ __ _ _ __   __ _  ___  |  _ \(_) | |   (_) |_ ___ 
| | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | | |   | | __/ _ \
| |_| | | | (_| | | | | (_| |  __/ |  __/| | | |___| | ||  __/
 \___/|_|  \__,_|_| |_|\__, |\___| |_|   |_| |_____|_|\__\___|
                       |___/                                  

Welcome to ARMBIAN Ubuntu 16.04.1 LTS 3.4.112-sun8i 
System load:   0.13            	Up time:       3 min		
Memory usage:  8 % of 494Mb  	IP:            
CPU temp:      59°C           	
Usage of /:    8% of 15G    	

Last login: Tue Sep  6 05:19:39 2016 from 2001:xxxx:219f:xxxx:a65e:60ff:xxxx:933b
dave@orangepilite-04355045074e54000078:~$ sudo h3consumption -p
[sudo] password for dave: 

Please be patient, external requirements are to be installed.

Aborted
fex2bin/bin2fex not found and unable to install. Exiting
Active settings:

cpu       1200 mhz allowed,  mhz possible, 4 cores active

dram      624 mhz

hdmi/gpu  

usb ports 

bat0      no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:"batnet6"  Nickname:"<WIFI@REALTEK>"
          Mode:Ad-Hoc  Frequency:2.412 GHz  Cell: 02:13:13:13:13:13   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=97/100  Signal level=96/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

  ___                               ____  _   ____   ____         
 / _ \ _ __ __ _ _ __   __ _  ___  |  _ \(_) |  _ \ / ___|    _   
| | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | | |_) | |      _| |_ 
| |_| | | | (_| | | | | (_| |  __/ |  __/| | |  __/| |___  |_   _|
 \___/|_|  \__,_|_| |_|\__, |\___| |_|   |_| |_|    \____|   |_|  
                       |___/                                      

Welcome to ARMBIAN Ubuntu 16.04.1 LTS 3.4.112-sun8i 
System load:   0.09            	Up time:       6 min		
Memory usage:  4 % of 1000Mb 	IP:            192.168.13.127
CPU temp:      49°C           	
Usage of /:    8% of 15G    	

Last login: Tue Sep  6 11:52:38 2016 from 2001:xxxx:219f:xxxx:a65e:60ff:xxxx:933b
dave@orangepipcplus-000094:~$ sudo h3consumption -p
[sudo] password for dave: 

Please be patient, external requirements are to be installed.

Aborted
fex2bin/bin2fex not found and unable to install. Exiting
Active settings:

cpu       1296 mhz allowed,  mhz possible, 4 cores active

dram      624 mhz

hdmi/gpu  

usb ports 

bat0      no wireless extensions.

br0       no wireless extensions.

wlan0     IEEE 802.11bg  ESSID:"batnet6"  Nickname:"<WIFI@REALTEK>"
          Mode:Ad-Hoc  Frequency:2.412 GHz  Cell: 02:13:13:13:13:13   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=96/100  Signal level=100/100  Noise level=0/100
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


 

 

Link to comment
Share on other sites

I must be missing something but I cant see how/where you get the power consumption from the output of h3consumption -p?

 

That's not possible since there is 

  • no circuitry on any of the H3 boards to measure this stuff
  • different H3 devices behave different due to voltage regulators and other PCB components (the little NanoPi NEO for example has a higher ground consumption than larger Orange Pi One/Lite)
  • some operation modes influence consumption in a way that is not predictable (WiFi --> signal strength)

So the -p switch only lists consumption relevant settings but can't provide actual consumption numbers.

 

All the testing has been done using a 2nd device between PSU and H3 device so all that's available is a table of known differences (see post #25 here) that allows you estimate roughly what you can save by enabling/disabling/adjusting stuff. So while disabling display/GPU for example will allow a headless H3 device to consume 210mW less the effect might be negligible when you attached 2 USB disks to your board and use an insufficient PSU (but disabling display/GPU anyway is a no-brainer on any headless system since it also improves temperatures and memory bandwidth).

 

Another example: You have an OPi Plus 2E that serves as a NAS for your smart TV both connected to a Gigabit Ethernet switch. Compared to defaults you could now use h3consumption to lower your idle consumption by 730mW (disabling GPU/HDMI, switching to Fast Ethernet and lowering DRAM clockspeed to 408 MHz). And use then a cron job that checks every minute with ping whether your smart TV is on and then simply executes

ethtool -s eth0 speed 1000 duplex full
echo 624000 >/sys/devices/platform/sunxi-ddrfreq/devfreq/sunxi-ddrfreq/userspace/set_freq

to activate full performance instantly on demand and switching back to idle settings when the IP address of your smart TV disappears from the network. Now h3consumption can you neither tell how high total consumption is (disk bus-powered or using a 2nd external PSU?) nor how efficient your PSU(s) work. It can only give a hint how current settings look like and what might be important. 730mW less might also be just a joke when you use the wrong disk enclosure, a 3.5" disk rotating 24/7 inside and inefficient PSUs being in use. But in case you have a 2.5"disk connected and can use hdparm to control idle spin-down of the disk you get nice savings for free.

 

But on H3 devices there's no way to get actual consumption numbers and of course you've always take the PSU into account to get the 'big picture'. 

Link to comment
Share on other sites

Hi,

Good to see a tool, that does all the power/performance tuning stuff indeed.

 

Tried the tool, in 3.4.112-sun8i #14 SMP PREEMPT Wed Sep 14 20:29:31 CEST 2016 armv7l GNU/Linux      5.20  on Orange Pi One,

 

1st remark : script does not install the ethtool, Manually install also times out without any message, doing that manually with -y and -qq removed, it complains about  "WARNING: The following packages cannot be authenticated!   ethtool Install these packages without verification? "

So you may want to modify the script for that.

 

2nd remark : looks like the 132MHz does not always stick, I cant reproduce, was something like when I changed to 2 CPUs, and no USB, it went up to .624 ?

 

3rd remark I never had a vcore reading in armbianmonitor, now I do, so armbianmonitor needs something that is now installed with your script ?

 

HDMI off, DRAM 132 2 CPUs : power from 1.4 to 0.77 W with temp from 44 to 31'C

So I will let it run for a few days, see if stability is still good.

 

Thanks.

 

Update after a week : All is ok, no problems.

So would it make sense to add the governors settings ?

Link to comment
Share on other sites

OPi+ 2E :

 

Active settings:                                                             
                                                                             
cpu       1296 mhz allowed, 1296 mhz possible, 4 cores active                
                                                                             
dram      672 mhz                                                            
                                                                             
hdmi/gpu  active                                                             
                                                                             
usb ports active                                                             
                                                                             
eth0      10Mb/s/Half, Link: no                                              
                                                                             
wlan1     IEEE 802.11bgn  ESSID:"Navitas Corporate"                          
          Mode:Managed  Frequency:2.437 GHz  Access Point: 34:6F:90:9C:AE:93 
          Bit Rate=43.3 Mb/s   Tx-Power=20 dBm                               
          Retry  long limit:7   RTS thr:off   Fragment thr:off               
          Encryption key:off                                                 
          Power Management:on                                                
          Link Quality=65/70  Signal level=-45 dBm                           
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0           
          Tx excessive retries:15  Invalid misc:183   Missed beacon:0        
                                                                             
wlan0     unassociated  Nickname:"<WIFI@REALTEK>"                            
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated    
          Sensitivity:0/0                                                    
          Retry:off   RTS thr:off   Fragment thr:off                         
          Encryption key:off                                                 
          Power Management:off                                               
          Link Quality:0  Signal level:0  Noise level:0                      
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0           
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0           
Link to comment
Share on other sites


root@orangepione:~# systemctl --failed

UNIT LOAD ACTIVE SUB DESCRIPTION

â smartd.service loaded failed failed Self Monitoring and Reporting Technology (SMART) Daemon

â systemd-modules-load.service loaded failed failed Load Kernel Modules

 

LOAD = Reflects whether the unit definition was properly loaded.

ACTIVE = The high-level unit activation state, i.e. generalization of SUB.

SUB = The low-level unit activation state, values depend on unit type.

 

2 loaded units listed. Pass --all to see loaded but inactive units, too.

To show all installed unit files use 'systemctl list-unit-files'.

 


root@orangepione:~# systemctl status -l

â orangepione

State: degraded

Jobs: 0 queued

Failed: 2 units

Since: Thu 1970-01-01 01:00:03 CET; 46 years 10 months ago

CGroup: /

ââ1 /sbin/init sunxi_no_mali_mem_reserve

ââsystem.slice

â ââavahi-daemon.service

â â ââ2267 avahi-daemon: running [orangepione.local

â â ââ2268 avahi-daemon: chroot helpe

â ââlirc.service

â â ââ651 /usr/sbin/lircd --driver=default --device=/dev/lirc0

â ââcups.service

â â ââ540 /usr/sbin/cupsd -f

â âârsyslog.service

â â ââ536 /usr/sbin/rsyslogd -n

â ââdbus.service

â â ââ469 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation

â âântp.service

â â ââ506 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 105:110

â âârpimonitor-helper.service

â â ââ 463 /bin/bash /usr/local/sbin/rpimonitor-helper.sh /var/run/rpimonitor-helper.pid

â â ââ3509 sleep 7.5

â ââsystemd-logind.service

â â ââ429 /lib/systemd/systemd-logind

â ââcron.service

â â ââ426 /usr/sbin/cron -f

â ââssh.service

â â ââ425 /usr/sbin/sshd -D

â ââhaveged.service

â â ââ420 /usr/sbin/haveged --Foreground --verbose=1 --write=1024

â ââsystem-ifup.slice

â â ââifup@eth0.service

â â ââ666 dhclient -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dhclient.eth0.leases eth0

â ââsystemd-udevd.service

â â ââ175 /lib/systemd/systemd-udevd

â ââsystemd-journald.service

â â ââ174 /lib/systemd/systemd-journald

â ââsystem-serial\x2dgetty.slice

â â ââserial-getty@ttyS0.service

â â ââ628 /sbin/agetty -L 115200 ttyS0 screen.linux

â ââsystem-getty.slice

â ââgetty@tty1.service

â ââ621 /sbin/agetty --noclear tty1 linux

ââuser.slice

ââuser-0.slice

ââsession-1.scope

â ââ1006 sshd: root@pts/0

â ââ1107 -bash

â ââ3510 systemctl status -l

â ââ3511 pager

ââuser@0.service

ââ1013 /lib/systemd/systemd --user

ââ1014 (sd-pam)

 

Link to comment
Share on other sites

 

 

root@orangepione:~# dmesg
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.4.112-sun8i (root@xenial) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.1) ) #10 SMP PREEMPT Sun Oct 23 16:06:55 CEST 2016
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: sun8i
[    0.000000] cma: CMA: reserved 160 MiB at 56000000
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c0a22a00, node_mem_map c0b5c000
[    0.000000]   Normal zone: 1152 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 129920 pages, LIFO batch:31
[    0.000000] script_init enter!
[    0.000000] script_init exit!
[    0.000000] PERCPU: Embedded 8 pages/cpu @c0fee000 s11968 r8192 d12608 u32768
[    0.000000] pcpu-alloc: s11968 r8192 d12608 u32768 alloc=8*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 cgroup_enable=memory swapaccount=1 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 panic=10 consoleblank=0 enforcing=0 loglevel=1
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] allocated 1048576 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.000000] Memory: 512MB = 512MB total
[    0.000000] Memory: 338940k/338940k available, 185348k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc095ad38   (9548 kB)
[    0.000000]       .init : 0xc095b000 - 0xc09adec0   ( 332 kB)
[    0.000000]       .data : 0xc09ae000 - 0xc0a27850   ( 487 kB)
[    0.000000]        .bss : 0xc0a28004 - 0xc0b5b090   (1229 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000] NR_IRQS:544
[    0.000000] Architected local timer running at 24.00MHz.
[    0.000000] Switching to timer-based delay loop
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    0.000244] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000268] pid_max: default: 32768 minimum: 301
[    0.000607] Mount-cache hash table entries: 512
[    0.001574] Initializing cgroup subsys cpuacct
[    0.001590] Initializing cgroup subsys memory
[    0.001637] Initializing cgroup subsys devices
[    0.001649] Initializing cgroup subsys freezer
[    0.001660] Initializing cgroup subsys blkio
[    0.001683] Initializing cgroup subsys perf_event
[    0.001764] CPU: Testing write buffer coherency: ok
[    0.001815] ftrace: allocating 25741 entries in 76 pages
[    0.030292] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.030309] [sunxi_smp_prepare_cpus] enter
[    0.030346] Setting up static identity map for 0x40691778 - 0x406917d0
[    0.031303] CPU1: Booted secondary processor
[    0.031303] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.031436] CPU2: Booted secondary processor
[    0.031436] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.040484] CPU3: Booted secondary processor
[    0.040484] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.040604] Brought up 4 CPUs
[    0.040604] SMP: Total of 4 processors activated (19200.00 BogoMIPS).
[    0.040906] devtmpfs: initialized
[    0.050903] wakeup src cnt is : 2.
[    0.050916] [exstandby]leave extended_standby_enable_wakeup_src : event 0x800000
[    0.050926] [exstandby]leave extended_standby_enable_wakeup_src : wakeup_gpio_map 0x0
[    0.050937] [exstandby]leave extended_standby_enable_wakeup_src : wakeup_gpio_group 0x40
[    0.050948] [exstandby]leave extended_standby_enable_wakeup_src : event 0x800000
[    0.050959] [exstandby]leave extended_standby_enable_wakeup_src : wakeup_gpio_map 0x8
[    0.050969] [exstandby]leave extended_standby_enable_wakeup_src : wakeup_gpio_group 0x40
[    0.050981] sunxi pm init
[    0.051118] pinctrl core: initialized pinctrl subsystem
[    0.057509] NET: Registered protocol family 16
[    0.058467] DMA: preallocated 2048 KiB pool for atomic coherent allocations
[    0.058467] script_sysfs_init success
[    0.058467] sunxi_dump_init success
[    0.058467] gpiochip_add: registered GPIOs 0 to 383 on device: sunxi-pinctrl
[    0.058467] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.058467] plat: add bmp085 device
[    0.058467] plat: add pcf8591 device
[    0.058467] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.058467] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.058467] script config pll_video to 297 Mhz
[    0.058467] script config pll_de to 864 Mhz
[    0.058467] script config pll_ve to 402 Mhz
[    0.058467] sunxi_default_clk_init
[    0.058467] try to set pll6ahb1 to 200000000
[    0.058467] try to set ahb clk source to pll6ahb1
[    0.058467] set ahb clk source to pll6ahb1
[    0.058467] try to set ahb1 to 200000000
[    0.058467] try to set apb1 to 100000000
[    0.063136] bio: create slab <bio-0> at 0
[    0.063136] [ARISC] :sunxi-arisc driver v1.04
[    0.087216] [ARISC] :arisc version: [v0.1.58]
[    0.174404] [ARISC] :sunxi-arisc driver v1.04 startup succeeded
[    0.176004] SCSI subsystem initialized
[    0.176004] usbcore: registered new interface driver usbfs
[    0.176004] usbcore: registered new interface driver hub
[    0.176004] usbcore: registered new device driver usb
[    0.176004] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.176004] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.176004] twi_chan_cfg()340 - [twi2] has no twi_regulator.
[    0.176004] Linux video capture interface: v2.00
[    0.176004] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.176004] cfg80211: Calling CRDA to update world regulatory domain
[    0.176004] Switching to clocksource arch_sys_counter
[    0.193953] FS-Cache: Loaded
[    0.194245] CacheFiles: Loaded
[    0.205412] NET: Registered protocol family 2
[    0.216627] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.217184] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.217431] TCP bind hash table entries: 16384 (order: 5, 196608 bytes)
[    0.217706] TCP: Hash tables configured (established 16384 bind 16384)
[    0.217717] TCP: reno registered
[    0.217729] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.217755] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.218082] NET: Registered protocol family 1
[    0.218498] RPC: Registered named UNIX socket transport module.
[    0.218511] RPC: Registered udp transport module.
[    0.218520] RPC: Registered tcp transport module.
[    0.218528] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.218718] Trying to unpack rootfs image as initramfs...
[    0.404932] Freeing initrd memory: 3060K
[    0.405473] hw perfevents: enabled with ARMv7 Cortex_A7 PMU driver, 5 counters available
[    0.405598] sunxi_reg_init enter
[    0.406515] audit: initializing netlink socket (disabled)
[    0.406563] type=2000 audit(0.400:1): initialized
[    0.408394] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.408581] misc fatfs initialized
[    0.409298] NFS: Registering the id_resolver key type
[    0.409697] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.409713] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.410539] NTFS driver 2.1.30 [Flags: R/W].
[    0.410867] fuse init (API version 7.18)
[    0.411576] Btrfs loaded
[    0.411603] msgmni has been set to 987
[    0.413019] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.413037] io scheduler noop registered
[    0.413046] io scheduler deadline registered
[    0.413126] io scheduler cfq registered (default)
[    0.413540] [DISP]disp_module_init
[    0.413832] cmdline,init_disp=
[    0.413863] cmdline,disp=
[    0.414476] [DISP]disp_module_init finish
[    0.414698] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.414987] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.415001] sw_uart_pm()890 - uart0 clk is already enable
[    0.415019] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.415253] console [ttyS0] enabled
[    0.415807] sunxi_cmatest_init enter
[    0.415845] sunxi_cmatest_init success
[    0.419922] brd: module loaded
[    0.423895] loop: module loaded
[    0.424159] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.424173] sunxi_spi_chan_cfg()1376 - [spi-1] has no spi_regulator.
[    0.424742] spi spi0: master is unqueued, this is deprecated
[    0.425062] tun: Universal TUN/TAP device driver, 1.6
[    0.425073] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    0.425991] PPP generic driver version 2.4.2
[    0.426173] PPP BSD Compression module registered
[    0.426183] PPP Deflate Compression module registered
[    0.428768] PPP MPPE Compression module registered
[    0.428784] NET: Registered protocol family 24
[    0.428861] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.448964] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.448999] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.449989] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    0.470047] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    0.470710] hub 1-0:1.0: USB hub found
[    0.470734] hub 1-0:1.0: 1 port detected
[    0.491149] sunxi-ehci sunxi-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.491178] sunxi-ehci sunxi-ehci.2: new USB bus registered, assigned bus number 2
[    0.491582] sunxi-ehci sunxi-ehci.2: irq 106, io mem 0xf1c1b000
[    0.510031] sunxi-ehci sunxi-ehci.2: USB 0.0 started, EHCI 1.00
[    0.510636] hub 2-0:1.0: USB hub found
[    0.510664] hub 2-0:1.0: 1 port detected
[    0.531040] sunxi-ehci sunxi-ehci.3: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.531068] sunxi-ehci sunxi-ehci.3: new USB bus registered, assigned bus number 3
[    0.531479] sunxi-ehci sunxi-ehci.3: irq 108, io mem 0xf1c1c000
[    0.550031] sunxi-ehci sunxi-ehci.3: USB 0.0 started, EHCI 1.00
[    0.550522] hub 3-0:1.0: USB hub found
[    0.550546] hub 3-0:1.0: 1 port detected
[    0.570894] sunxi-ehci sunxi-ehci.4: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.570923] sunxi-ehci sunxi-ehci.4: new USB bus registered, assigned bus number 4
[    0.571294] sunxi-ehci sunxi-ehci.4: irq 110, io mem 0xf1c1d000
[    0.590042] sunxi-ehci sunxi-ehci.4: USB 0.0 started, EHCI 1.00
[    0.590568] hub 4-0:1.0: USB hub found
[    0.590586] hub 4-0:1.0: 1 port detected
[    0.590947] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.611061] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    0.611090] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 5
[    0.611122] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    0.674530] hub 5-0:1.0: USB hub found
[    0.674551] hub 5-0:1.0: 1 port detected
[    0.694928] sunxi-ohci sunxi-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    0.694957] sunxi-ohci sunxi-ohci.2: new USB bus registered, assigned bus number 6
[    0.694988] sunxi-ohci sunxi-ohci.2: irq 107, io mem 0xf1c1b400
[    0.754538] hub 6-0:1.0: USB hub found
[    0.754562] hub 6-0:1.0: 1 port detected
[    0.774925] sunxi-ohci sunxi-ohci.3: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    0.774953] sunxi-ohci sunxi-ohci.3: new USB bus registered, assigned bus number 7
[    0.774985] sunxi-ohci sunxi-ohci.3: irq 109, io mem 0xf1c1c400
[    0.834547] hub 7-0:1.0: USB hub found
[    0.834566] hub 7-0:1.0: 1 port detected
[    0.854938] sunxi-ohci sunxi-ohci.4: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    0.854966] sunxi-ohci sunxi-ohci.4: new USB bus registered, assigned bus number 8
[    0.854997] sunxi-ohci sunxi-ohci.4: irq 111, io mem 0xf1c1d400
[    0.914546] hub 8-0:1.0: USB hub found
[    0.914565] hub 8-0:1.0: 1 port detected
[    0.914939] Initializing USB Mass Storage driver...
[    0.915172] usbcore: registered new interface driver usb-storage
[    0.915184] USB Mass Storage support registered.
[    0.915244] usbcore: registered new interface driver ums-alauda
[    0.915307] usbcore: registered new interface driver ums-cypress
[    0.915370] usbcore: registered new interface driver ums-datafab
[    0.915418] usbcore: registered new interface driver ums_eneub6250
[    0.915468] usbcore: registered new interface driver ums-freecom
[    0.915521] usbcore: registered new interface driver ums-isd200
[    0.915570] usbcore: registered new interface driver ums-jumpshot
[    0.915618] usbcore: registered new interface driver ums-karma
[    0.915669] usbcore: registered new interface driver ums-onetouch
[    0.915734] usbcore: registered new interface driver ums-realtek
[    0.915789] usbcore: registered new interface driver ums-sddr09
[    0.915839] usbcore: registered new interface driver ums-sddr55
[    0.915891] usbcore: registered new interface driver ums-usbat
[    0.916137]  uinput result 0 , vmouse_init
[    0.916699] mousedev: PS/2 mouse device common for all mice
[    0.916918] sunxikbd_init failed.
[    0.917424] ls_fetch_sysconfig_para: type err  device_used = -1073060220.
[    0.917435] =========script_get_err============
[    0.917443] ltr_init: ls_fetch_sysconfig_para err.
[    0.917766] [RTC] WARNING: Rtc time will be wrong!!
[    0.917776] [RTC] WARNING: use *internal OSC* as clock source
[    0.918024] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    0.918078] i2c /dev entries driver
[    0.918477] IR RC5(x) protocol handler initialized
[    0.918608] sunxi cedar version 0.1
[    0.918649] [cedar]: install start!!!
[    0.918846] [cedar]: install end!!!
[    0.919092] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x18)
[    0.919266] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x19)
[    0.919437] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x1a)
[    0.919606] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x29)
[    0.919775] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x2a)
[    0.919945] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x2b)
[    0.920117] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4c)
[    0.920287] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4d)
[    0.920456] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x4e)
[    0.920657] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x18)
[    0.920852] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x19)
[    0.921047] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x1a)
[    0.921242] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x29)
[    0.921437] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x2a)
[    0.921632] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x2b)
[    0.921827] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x4c)
[    0.922022] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x4d)
[    0.922217] sunxi_i2c_do_xfer()985 - [i2c1] incomplete xfer (status: 0x20, dev addr: 0x4e)
[    0.922232] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    0.922395] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    0.922542] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    0.922555] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    0.922566] timeout_to_interv, line 167
[    0.922573] interv_to_timeout, line 189
[    0.922583] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    0.923013] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[    0.923224] calibrat: max_cpufreq 1200Mhz Type 0!
[    0.923237] [cpu_freq] ERR:get cpu extremity frequency from sysconfig failed, use max_freq
[    0.923527] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.111 2015-4-13 15:24) Compiled in Oct 23 2016 at 16:04:43
[    0.923561] [mmc]: get mmc0's sdc_power is null!
[    0.923588] [mmc]: get mmc1's sdc_power is null!
[    0.923598] [mmc]: get mmc1's 2xmode ok, val = 1
[    0.923607] [mmc]: get mmc1's ddrmode ok, val = 1
[    0.923623] [mmc]: MMC host used card: 0x3, boot card: 0x0, io_card 2
[    0.927188] [mmc]: sdc0 power_supply is null
[    0.929048] no blue_led, ignore it!
[    0.929268] Registered led device: red_led
[    0.929377] Registered led device: green_led
[    0.929393] no led_0, ignore it!
[    0.929401] no led_1, ignore it!
[    0.929408] no led_2, ignore it!
[    0.929415] no led_3, ignore it!
[    0.929422] no led_4, ignore it!
[    0.929429] no led_5, ignore it!
[    0.929436] no led_6, ignore it!
[    0.929443] no led_7, ignore it!
[    0.930289] usbcore: registered new interface driver usbhid
[    0.930300] usbhid: USB HID core driver
[    0.935066] asoc: sndcodec <-> sunxi-codec mapping ok
[    0.936036] [DAUDIO]sunxi-daudio cannot find any using configuration for controllers, return directly!
[    0.936238] [I2S]snddaudio cannot find any using configuration for controllers, return directly!
[    0.936252] [DAUDIO0] driver not init,just return.
[    0.939325] asoc: sndhdmi <-> sunxi-hdmiaudio.0 mapping ok
[    0.940355] oprofile: using arm/armv7-ca7
[    0.940547] u32 classifier
[    0.940557]     Performance counters on
[    0.940564]     input device check on
[    0.940572]     Actions configured
[    0.940756] IPv4 over IPv4 tunneling driver
[    0.941375] TCP: bic registered
[    0.941387] TCP: cubic registered
[    0.941395] TCP: westwood registered
[    0.941403] TCP: highspeed registered
[    0.941410] TCP: hybla registered
[    0.941418] TCP: htcp registered
[    0.941425] TCP: vegas registered
[    0.941432] TCP: veno registered
[    0.941440] TCP: scalable registered
[    0.941447] TCP: lp registered
[    0.941455] TCP: yeah registered
[    0.941462] TCP: illinois registered
[    0.941469] Initializing XFRM netlink socket
[    0.941700] NET: Registered protocol family 10
[    0.942869] NET: Registered protocol family 17
[    0.942899] NET: Registered protocol family 15
[    0.942944] Registering the dns_resolver key type
[    0.943413] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.943435] ThumbEE CPU extension supported.
[    0.943458] Registering SWP/SWPB emulation handler
[    0.944023] registered taskstats version 1
[    0.944668] ths_fetch_sysconfig_para: type err  device_used = 1.
[    0.945866] CPU Budget:corekeeper enabled
[    0.946089] CPU Budget:Register notifier
[    0.946100] CPU Budget:register Success
[    0.946113] sunxi-budget-cooling sunxi-budget-cooling: Cooling device registered: thermal-budget-0
[    0.949299] [rf_pm]: module power0 name vcc-wifi-33
[    0.949315] [rf_pm]: Did not config module_power1 in sys_config
[    0.949325] [rf_pm]: Did not config module_power2 in sys_config
[    0.949335] [rf_pm]: Did not config module_power3 in sys_config
[    0.949345] [rf_pm]: mod has no chip_en gpio
[    0.949353] [rf_pm]: failed to fetch lpo_use_apclk
[    0.949360] [rf_pm]: regulator on.
[    0.949371] [wifi_pm]: no wifi used in configuration
[    0.949380] [rfkill]: init no bt used in configuration
[    0.949388] ALSA device list:
[    0.949395]   #0: audiocodec
[    0.949402]   #1: sndhdmi
[    0.950245] Freeing init memory: 328K
[    0.990912] systemd-udevd[94]: starting version 215
[    0.993191] mmc0: new SDHC card at address 0001
[    0.993832] mmcblk0: mmc0:0001 00000 14.8 GiB
[    0.995440]  mmcblk0: p1
[    0.996113] mmcblk mmc0:0001: Card claimed for testing.
[    0.996131] mmc0:0001: 00000 14.8 GiB
[    2.527772] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null)
[    2.707829] ehci_irq: highspeed device connect
[    2.980087] usb 1-1: new high-speed USB device number 2 using sunxi-ehci
[    3.960263] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[    3.960539] systemd[1]: Detected architecture 'arm'.
[    3.992491] systemd[1]: Set hostname to <orangepione>.
[    4.672816] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[    4.675534] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    4.675891] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    4.675966] systemd[1]: Expecting device dev-ttyS0.device...
[    4.676416] systemd[1]: Starting Remote File Systems (Pre).
[    4.676673] systemd[1]: Reached target Remote File Systems (Pre).
[    4.676792] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[    4.676997] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    4.677117] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[    4.677810] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    4.677891] systemd[1]: Starting Encrypted Volumes.
[    4.678121] systemd[1]: Reached target Encrypted Volumes.
[    4.678191] systemd[1]: Starting Root Slice.
[    4.678497] systemd[1]: Created slice Root Slice.
[    4.678559] systemd[1]: Starting User and Session Slice.
[    4.678922] systemd[1]: Created slice User and Session Slice.
[    4.678983] systemd[1]: Starting Delayed Shutdown Socket.
[    4.679345] systemd[1]: Listening on Delayed Shutdown Socket.
[    4.679407] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[    4.679768] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    4.679832] systemd[1]: Starting Journal Socket (/dev/log).
[    4.680242] systemd[1]: Listening on Journal Socket (/dev/log).
[    4.680325] systemd[1]: Starting udev Control Socket.
[    4.680627] systemd[1]: Listening on udev Control Socket.
[    4.680698] systemd[1]: Starting udev Kernel Socket.
[    4.680971] systemd[1]: Listening on udev Kernel Socket.
[    4.681055] systemd[1]: Starting Journal Socket.
[    4.681378] systemd[1]: Listening on Journal Socket.
[    4.681495] systemd[1]: Starting System Slice.
[    4.681872] systemd[1]: Created slice System Slice.
[    4.681965] systemd[1]: Started File System Check on Root Device.
[    4.682017] systemd[1]: Starting system-getty.slice.
[    4.682462] systemd[1]: Created slice system-getty.slice.
[    4.682524] systemd[1]: Starting system-serial\x2dgetty.slice.
[    4.682935] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    4.683054] systemd[1]: Starting Increase datagram queue length...
[    4.750684] systemd[1]: Starting Restore / save the current clock...
[    4.890891] systemd[1]: Mounting Debug File System...
[    4.965640] systemd[1]: Started Set Up Additional Binary Formats.
[    4.966005] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[    5.010970] systemd[1]: Mounted Huge Pages File System.
[    5.011135] systemd[1]: Starting udev Coldplug all Devices...
[    5.074755] systemd[1]: Starting Load Kernel Modules...
[    5.220778] systemd[1]: Mounting POSIX Message Queue File System...
[    5.300441] systemd[1]: Starting LSB: Set keymap...
[    5.400523] systemd[1]: Starting Slices.
[    5.400913] systemd[1]: Reached target Slices.
[    5.403355] systemd[1]: Mounted POSIX Message Queue File System.
[    5.403850] systemd[1]: Mounted Debug File System.
[    5.490447] systemd[1]: Started Increase datagram queue length.
[    5.580411] systemd[1]: Started Restore / save the current clock.
[    5.630432] systemd[1]: Started Create list of required static device nodes for the current kernel.
[    5.691223] systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
[    5.800770] systemd[1]: Failed to start Load Kernel Modules.
[    5.800842] systemd[1]: Unit systemd-modules-load.service entered failed state.
[    5.930424] systemd[1]: Started LSB: Set keymap.
[    5.980471] systemd[1]: Started udev Coldplug all Devices.
[    5.982832] systemd[1]: Time has been changed
[    5.983157] systemd[1]: Starting Apply Kernel Variables...
[    6.061029] systemd[1]: Mounted Configuration File System.
[    6.061185] systemd[1]: Mounting FUSE Control File System...
[    6.110680] systemd[1]: Starting Create Static Device Nodes in /dev...
[    6.160710] systemd[1]: Starting Syslog Socket.
[    6.161280] systemd[1]: Listening on Syslog Socket.
[    6.161417] systemd[1]: Starting Journal Service...
[    6.211082] systemd[1]: Started Journal Service.
[    6.563005] systemd-udevd[175]: starting version 215
[    6.834722] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x77)
[    6.834755] bmp085: probe of 0-0077 failed with error -70
[    6.887067] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x48)
[    6.887257] sunxi_i2c_do_xfer()985 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x48)
[    6.969075] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04E8 pid 0x3434
[    6.969238] usbcore: registered new interface driver usblp
[    7.570652] EXT4-fs (mmcblk0p1): re-mounted. Opts: commit=600,errors=remount-ro
[    7.782112] Adding 131068k swap on /var/swap.  Priority:-1 extents:1 across:131068k SS
[    8.937963] systemd-journald[174]: Received request to flush runtime journal from PID 1
[    9.252790] gmac0: probed
[    9.253134] gmac0 gmac0: eth0: eth0: PHY ID 00441400 at 0 IRQ poll (gmac0-0:00)
[   10.130539] [ddrfreq] DDR: 624000KHz->408000KHz start
[   10.130555] [ddrfreq] current cpu is cpu2
[   10.134601] [ddrfreq] elapsed: 1050us
[   10.134621] [ddrfreq] DDR: 624000KHz->408000KHz ok!
[   10.566455] Registered IR keymap rc-empty
[   10.567622] rc0: sunxi-ir as /devices/virtual/rc/rc0
[   10.570458] rc rc0: lirc_dev: driver ir-lirc-codec (sunxi-ir) registered at minor = 0
[   13.250321] PHY: gmac0-0:00 - Link is Up - 100/Full
[  156.010879] usblp0: removed
[  167.953452] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04E8 pid 0x3434
[  167.954091] usblp0: removed
[  168.080092] usb 1-1: reset high-speed USB device number 2 using sunxi-ehci
[  168.232223] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04E8 pid 0x3434
[  206.889556] usblp0: removed
[  206.893797] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04E8 pid 0x3434
[  778.281960] usblp0: removed
[  809.509543] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04E8 pid 0x3434
[  809.510374] usblp0: removed
[  809.640157] usb 1-1: reset high-speed USB device number 2 using sunxi-ehci
[  809.792394] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04E8 pid 0x3434
[ 1344.177462] usblp0: removed
[ 1354.396245] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04E8 pid 0x3434
[ 1354.396981] usblp0: removed
[ 1354.520126] usb 1-1: reset high-speed USB device number 2 using sunxi-ehci
[ 1354.672350] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04E8 pid 0x3434
[ 1428.962913] usblp0: removed
[ 1439.972115] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04E8 pid 0x3434
[ 1439.972863] usblp0: removed
[ 1440.100152] usb 1-1: reset high-speed USB device number 2 using sunxi-ehci
[ 1440.252346] usblp0: USB Bidirectional printer dev 2 if 1 alt 0 proto 2 vid 0x04E8 pid 0x3434

 

Link to comment
Share on other sites

___ ____ _ ___

/ _ \ _ __ __ _ _ __ __ _ ___ | _ \(_) / _ \ _ __ ___

| | | | '__/ _` | '_ \ / _` |/ _ \ | |_) | | | | | | '_ \ / _ \

| |_| | | | (_| | | | | (_| | __/ | __/| | | |_| | | | | __/

\___/|_| \__,_|_| |_|\__, |\___| |_| |_| \___/|_| |_|\___|

|___/

 

Welcome to ARMBIAN Debian GNU/Linux 8 (jessie) 3.4.112-sun8i

System load: 0.27 Up time: 11 min

Memory usage: 10 % of 494Mb IP: 192.168.55.3

CPU temp: 37°C

Usage of /: 17% of 7.0G

 

Last login: Fri Nov 25 14:27:41 2016 from 192.168.155.90

root@orangepione:~# h3consumption -p

Active settings:

 

cpu 912 mhz allowed, 912 mhz possible, 4 cores active

 

dram 624 mhz

 

hdmi/gpu off

 

usb ports active

 

eth0 100Mb/s/Full, Link: yes

Link to comment
Share on other sites

Worked for me.

Orange Pi one

 

Thanks.

 

root@orangepione:~# h3consumption -p
Active settings:

cpu       1200 mhz allowed, 1200 mhz possible, 4 cores active

dram      624 mhz

hdmi/gpu  active

usb ports active

eth0      100Mb/s/Full, Link: yes
 

Link to comment
Share on other sites

Testing this on a oPi PC but it doesn't re-enable cores when going back to all 4

 

Going down to 1 core works, and back to 3, but I can't enable all 4. Corekeeper is enabled in the fex file but the script never reverts the changes to rc.local

### do NOT edit the following lines, always use h3consumption instead ###
echo 0 >/sys/devices/system/cpu/cpu3/online # h3consumption
Link to comment
Share on other sites

CPU temp: 37°C

 

I've never seen cpu temp below 48ºC when idle but my ambient room temp is never much below 25 (and thats with Aircon), I also don't use heatsinks.

 

Can I ask what you ambient room temp was (roughly) and if you used a heatsink.

 

Dave.

Link to comment
Share on other sites

I use Orange Pi lite

in order to reduce current consumption (I use Orange Pi Lite only as Internet radio ...

Basic programs / services : mpc mpd ....wifi !

I gave this entry: "h3consumption -c1 -g off"

I plugged the USB sound card

next reboot

Armbian system is launched ... but there was no access to him for wifi network !

mpd / mpc / lirc .....does not work  :unsure:

and it is known that the more the HDMI .......... which turned off :-)

no access to the shell !

I advised myself already but ...beware!  :P

 

ps. Resuscitation system ..... edition of the sd card and files:

rc.local

and replacement files : /boot/bin  .... bin.back   / script.bin ... script.bin.back

Link to comment
Share on other sites

Orange Pi PC:

 

Welcome to ARMBIAN 5.25 stable Ubuntu 16.04.1 LTS 3.4.113-sun8i
System load:   0.05             Up time:       1 hour
Memory usage:  4 % of 1000Mb    IP:            192.168.88.25
CPU temp:      26°C
Usage of /:    9% of 15G

Last login: Fri Feb  3 17:04:58 2017 from 192.168.88.234
root@orangepipc:~# h3consumption -p
Active settings:
cpu       816 mhz allowed, 1200 mhz possible, 1 cores active
dram      408 mhz
hdmi/gpu  off
usb ports off
eth0      100Mb/s/Full, Link: yes

 

With these settings i got idle temp to about 25C(21C ambient)
 

Link to comment
Share on other sites

Sorry to bug you guys, but I just wanted to let you guys know about something I found in testing. I only have an orange pi zero, so I can't attest for other models, which I know is H2+ not H3, but the script mostly works. I only say mostly, since the fex setting for dram works and the fex settings for corekeeper work. However, for some reason, the userspace change for dram doesn't work on the pi zero. It just throws an I/O error. Having said so, with the script both changing fex and putting the userspace echo for dram in the rc.local, it causes rc.local to fail before it hits the core deactivation. I would have never noticed if I wasn't testing both core deactivation and dram settings.

    Quick fix, to just comment out the dram setting in rc.local, but I figured I'd just mention it. If you guys want, you can throw that in an FAQ or have the script check to see if it's on a pi zero, and not perform the rc.local portion of dram settings update. On a happier topic, great work! I love you guy's dedication, and hard work on the OS. I really appreciate everything you guys do!

Link to comment
Share on other sites

Cheers I am just learning to work with OPi 2 plus which is a H3 with 2GB ram.  I have tested 4 different OPi builds all have overheating issues, except armbian which I am now using successfully.  My configuration is HDMI 1080p60, 1g eth0, tty1 115200, 40 pin header using gpio (WiringOpi-h3), i have install over size heatsink on both cpu and hot chip next to it in center of board, I was having problems at 68F with cpu three shutting down even with idle in 10 min using other OS images, since adding heatsinks, at center of heatsink they run 98F a decrease of 20F.  I have a 3.5" external hd with its own supply running on USB, a USB keyboard, mouse and a 3.3 amp 5.1vdc lab supply.  Since all the changes I have very stable operating at this point in time especially on latest armbain release 16.04.2.  Armbian supports gpio correctly, other did not.  

 

I downloaded and setup your h3consumption tool, here are the results.  room temp 71F, PS voltage 5.075vdc measured at power jack.

 

root@opi:~/armbian-test/test1# h3consumption -p
Active settings:

cpu       1296 mhz allowed, 1200 mhz possible, 4 cores active

dram      624 mhz

hdmi/gpu  active

usb ports active

eth0      1000Mb/s/Full, Link: yes

wlan0     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated   
          Sensitivity:0/0  
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

 

There is still a lot I would like to learn, if anyone has information on how to get spi and i2c working on armbian and OPi 2 plus, I could use some help.  Armbian solved a ton of problems, including ALSA and JACKD, but still not sure how to setup spi and i2c.

 

I do have Tektronix MSO2024B with 16 channel logic analyser, serial protocol analyzer and 4 200mhz analog channels, I would be happy to help test things if you can help me get started on spi and i2c.  I can send you jpgs of waveforms and decoded serial as well as bus io if that would help.

 

 

 

I will publish how to notes, once I get spi and i2c up and will setup test jig to measure current with 3008 once I get those up then we can actually have a display in real time that shows active voltage and current consumption with little side board connected to spi or i2c.  That will make this testing simpler and consistent.  

 

I did a lot of experimentation with speed settings up to 1534mhz, even with heatsinks all failed, symptions are you start losing active cpus, as the chip protection starts to sense overheating, and DRAM over 624mhz resulted in multiple failure modes and instable operation across all 5 images I have been working with.  Armbian however as built is very stable.  

 

I have also setup system to run 4k display in boot.conf, that works well.

 

OS wise on armbian still trying to figure out how to have multiple used login, it stuck with the initial user account and will not honor the configuration check box to ask for signin on boot.  Any help there would be great too.

 

Armbian was by far much easier to setup than other images.  Only thing to add is a utility like RPi raspconfig to setup all the drivers, memory, language etc for armbian OPi and other boards.  That would really help sooth the pain of setup. 

 

thanks in advance to all the masters who are helping get Armbian put together, its a very nice release compared to xilongs junk on their web site.  

 

jbird1 :)

Link to comment
Share on other sites

(even though it's off-topic here)

7 hours ago, jbird1 said:

if anyone has information on how to get spi and i2c working on armbian and OPi 2 plus, I could use some help.  Armbian solved a ton of problems, including ALSA and JACKD, but still not sure how to setup spi and i2c

Legacy 3.4.x based stable images - by editing script.fex/script.bin: https://docs.armbian.com/Hardware_Allwinner/#fex

Mainline 4.10.x based nightlies - https://docs.armbian.com/Hardware_Allwinner_overlays/

 

7 hours ago, jbird1 said:

Armbian was by far much easier to setup than other images.  Only thing to add is a utility like RPi raspconfig to setup all the drivers, memory, language etc for armbian OPi and other boards.  That would really help sooth the pain of setup. 

 

Supporting such a tool for all SoCs, kernel versions and releases will be a nightmare. We already have enough unsupported/obsolete scripts and tools.

Link to comment
Share on other sites

Hi all.

This is the result of my current settings on Orange Pi Plus 2:

root@orangepiplus:~# h3consumption -p
Active settings:

cpu       960 mhz allowed, 1200 mhz possible, 1 cores active

dram      408 mhz

hdmi/gpu  off

usb ports active

eth0      100Mb/s/Full, Link: yes

wlan0     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency=2.412 GHz  Access Point: Not-Associated
          Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@orangepiplus:~#

I would like to turn completely off the radio section. Is that possible? Ty

Link to comment
Share on other sites

I suppose this tool in only useful for legacy kernel (because of ease of fex manipulation). Do you plan to make such tool for mainline kernel? Is it possible at all to decompile/manipulate/recompile DT files?

Link to comment
Share on other sites

  • Igor unpinned this topic
11 minutes ago, WarHawk_AVG said:

Is GitHub down...can't pull the script

 

Different location now: https://github.com/armbian/build/blob/master/packages/bsp/h3consumption

 

On 5/7/2017 at 9:31 AM, rufik said:

Do you plan to make such tool for mainline kernel? Is it possible at all to decompile/manipulate/recompile DT files?

 

It's possible to decompile/manipulate/recompile DT files but at least I do not plan on porting the tool to mainline. With mainline you better go with DT overlays and the stuff many people are interested in (limit count of CPU cores and networking options) is done in /etc/rc.local anyway. And some stuff like changing DRAM clock speed simply doesn't work with mainline at all.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines