Skip to content

Instantly share code, notes, and snippets.

@amazingfate
amazingfate / H264.md
Last active January 18, 2024 07:53
RK3588 hantro g1 fluster test result
Test FFmpeg-H.264-V4L2-request GStreamer-H.264-V4L2SL-Gst1.0
TOTAL 127/135 129/135
TOTAL TIME 10.633s 13.614s
- - -
AUD_MW_E ✔️ ✔️
BA1_FT_C ✔️ ✔️
BA1_Sony_D ✔️ ✔️
BA2_Sony_F ✔️ ✔️
BA3_SVA_C ✔️ ✔️
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target-path = "/";
__overlay__ {
dp0_sound: dp0-sound {
compatible = "rockchip,hdmi";
rockchip,card-name= "rockchip-dp0";
rockchip,mclk-fs = <512>;
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&cluster1_opp_table>;
__overlay__ {
opp-408000000 {
opp-microvolt = <675000 675000 1050000>,
<675000 675000 1050000>;
};
172.66.47.69 cdn.haguro.top
#!/usr/bin/python3
from pathlib import Path
from threading import Timer
cpu_temp_file = "/sys/class/thermal/thermal_zone0/temp"
duty_cycle_file = "/sys/class/pwm/pwmchip0/pwm0/duty_cycle"
temp_wall = 65000
lowest_fan_speed = 3000
def read_cpu_temp():
[ 3.232643] typec_fusb302 4-0022: Looking up vbus-supply from device tree
[ 3.233490] typec_fusb302 4-0022: sw reset
[ 3.239292] typec_fusb302 4-0022: fusb302 device ID: 0x91
[ 3.241330] typec_fusb302 4-0022: Setting usb_comm capable false
[ 3.254603] typec_fusb302 4-0022: pd := off
[ 3.258591] typec_fusb302 4-0022: vbus is already Off
[ 3.267031] typec_fusb302 4-0022: charge is already Off
[ 3.267034] typec_fusb302 4-0022: vconn is already Off
[ 3.267037] typec_fusb302 4-0022: Setting voltage/current limit 5000 mV 3000 mA
[ 3.267043] typec_fusb302 4-0022: polarity 0
@amazingfate
amazingfate / tf-boot-loop
Created July 25, 2022 10:29
tf-boot-loop
[ 3.810266] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[ 3.810289] Linux version 5.10.66-rk35xx-g55f540ce97a3-dirty (root@f5001c1626de) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #trunk SMP Mon Jul 25 09:36:14 UTC 2022
[ 3.821015] Machine model: Radxa ROCK 5B
[ 3.821165] efi: UEFI not found.
[ 3.824791] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x0000000000000000, size 0 MiB
[ 3.824812] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-cubic-lut@00000000': base 0x0000000000000000, size 0 MiB
[ 3.824870] Reserved memory: created CMA memory pool at 0x0000000010000000, size 256 MiB
[ 3.824877] OF: reserved mem: initialized node cma, compatible id shared-dma-pool
[ 3.965628] Zone ranges:
[ 3.965639] DMA [mem 0x0000000000200000-0x00000000fffffff
@amazingfate
amazingfate / tf-reboot-no-power-down
Created July 25, 2022 10:27
tf-reboot-no-power-down
[ 3.813795] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[ 3.813818] Linux version 5.10.66-rk35xx-g55f540ce97a3-dirty (root@f5001c1626de) (aarch64-none-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #trunk SMP Mon Jul 25 09:36:14 UTC 2022
[ 3.824542] Machine model: Radxa ROCK 5B
[ 3.824693] efi: UEFI not found.
[ 3.828317] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x0000000000000000, size 0 MiB
[ 3.828339] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-cubic-lut@00000000': base 0x0000000000000000, size 0 MiB
[ 3.828396] Reserved memory: created CMA memory pool at 0x0000000010000000, size 256 MiB
[ 3.828403] OF: reserved mem: initialized node cma, compatible id shared-dma-pool
[ 3.969114] Zone ranges:
[ 3.969125] DMA [mem 0x0000000000200000-0x00000000fffffff
[ 2.213318] typec_fusb302 4-0022: Looking up vbus-supply from device tree
[ 2.214157] typec_fusb302 4-0022: sw reset
[ 2.217911] typec_fusb302 4-0022: fusb302 device ID: 0x91
[ 2.217923] typec_fusb302 4-0022: Setting usb_comm capable false
[ 2.222564] typec_fusb302 4-0022: pd := off
[ 2.222574] typec_fusb302 4-0022: vbus is already Off
[ 2.222581] typec_fusb302 4-0022: charge is already Off
[ 2.222589] typec_fusb302 4-0022: vconn is already Off
[ 2.222596] typec_fusb302 4-0022: Setting voltage/current limit 0 mV 0 mA
[ 2.222607] typec_fusb302 4-0022: polarity 0
@amazingfate
amazingfate / fusb302.log
Last active July 21, 2022 14:11
kernel log before pd power down
[ 5.638283] typec_fusb302 4-0022: sw reset
[ 5.642035] typec_fusb302 4-0022: fusb302 device ID: 0x91
[ 5.643766] rk-pcie fe150000.pc[ 5.646683] typec_fusb302 4-0022: pd := off
[ 5.646695] ts already Off
[ 5.646702] typec_fusb302 4-0022: charge is already Off
[ 5.646709] typec_fusb302 4-0022: vconn is already
[ 5.647547] typec_fusb302 4-0022: pd header := Sink, Device
[ 5.647591] typec_fusb302 4-[ 5.650163] rtc-hym8563 6-0051: rtc information is valid
[ 5.652240] typec_fusb302 4-0022: pd := off
[ 5.652252] typec_fusb302 4-0022: vbus is already Off