• Content Count

  • Joined

  • Last visited

Reputation Activity

  1. Like
    houldsg reacted to Igor in Armbian for OrangePi PC2, AllWinner H5   
    It should be fixed now. Thanks for help.
  2. Like
    houldsg reacted to mikaey in Frequency throttling on OPi PC2?   
    Ok, I think I got it!  Had to learn a little bit about device trees in the process.  BUT...here's what I did (and BTW -- I did this all directly on the PC2):
    Step 1: Grab a copy of the Linux source:
    $ sudo apt install linux-source-4.19.20-next-sunxi64 This will dump the Linux source tarballs (and a config file) into /usr/src.
    Step 2: Unzip the tarball, and copy in the config file:
    $ cd /usr/src $ sudo mkdir linux $ sudo chown `whoami`:`whoami` linux $ cd linux $ tar xvf ../linux-source-4.19.20-sunxi64.tar.xz $ xzcat ../linux-sunxi64-next_4.19.20_5.75_config.xz >.config Step 3: Download the attached patch and apply it:
    $ patch -p1 <OrangePiPC2.patch Step 4: Build the new DTB:
    $ make dtbs You should find your new DTB under arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dtb.
    Step 5: Copy the new DTB into your DTBs folder:
    $ sudo cp arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-pc2.dtb /boot/dtb/allwinner Step 6: Reboot!
    $ sudo reboot The PC2 will now throttle automatically when temps start getting too high!
  3. Like
    houldsg reacted to bschwehn in Armbian for OrangePi PC2, AllWinner H5   
    FWIW, these messages seem to go away when building the dev branch without patch /patch/kernel/sunxi-dev/ths-29-sun4i-gpadc-iio-add-h5-thermal-zone.patch
    Not sure if this patch is compatible with the changes already done in the megous branch (like this patch)
    Still, throttling is done only down to 1104 MHz (not an issue for me personally, for me this throttle is enough for mine to not go above 81C @100% CPU usage for 10 minutes).
    Edit: Looks like I have it working now. I have basically added the patch ths-29-sun4i-gpadc-iio-add-h5-thermal-zone.patch directly to linux-mainline/orange-pi-5.0/arch/arm/boot/dts/sunxi-h3-h5.dtsi (instead of

    Not sure why that should make a difference, but throttling now seems to take the trips I have configured (though it seems to use a different cooling map:
    ramp up:
    after insulating the board to get the temperature up:
    removing insulation lets temp drop again, and freq rise:
  4. Like
    houldsg got a reaction from manuti in Armbian for OrangePi PC2, AllWinner H5   
    I'm having the same issue as well. I had to stick a small fan on the case for now.
    Under load, the frequency never drops below 1104MHz.
    I'm a bit of a noob but I've been trying to investigate (so let me know if I'm way off).
    houldsg@orangepipc2:~$ uname -a Linux orangepipc2 4.19.20-sunxi64 #5.75 SMP Fri Feb 8 10:29:25 CET 2019 aarch64 aarch64 aarch64 GNU/Linux houldsg@orangepipc2:~$ cat /sys/devices/virtual/thermal/thermal_zone0/ available_policies cdev0_weight k_d k_pu policy subsystem/ trip_point_0_hyst trip_point_1_hyst type cdev0/ emul_temp k_i mode power/ sustainable_power trip_point_0_temp trip_point_1_temp uevent cdev0_trip_point integral_cutoff k_po offset slope temp trip_point_0_type trip_point_1_type houldsg@orangepipc2:~$ cat /sys/devices/virtual/thermal/thermal_zone0/trip_point_0_temp 65000 houldsg@orangepipc2:~$ cat /sys/devices/virtual/thermal/thermal_zone0/trip_point_1_temp 90000 65 degrees is when the frequency drop to 1104. Does trip point 0 trigger a particular frequency (1104)? Should there be more trip points or is the throttling handled by another mechanism?