Skip to content

Instantly share code, notes, and snippets.

AX45MP core in Renesas RZ/Five (R9A07G043)
mvendorid : 0x31e (Andes)
marchid : 0x8000000000008a45
mimpid : 0x500
SiFive U74 cores in JH7110
mvendorid : 0x489 (SiFive)
marchid : 0x8000000000000007
mimpid : 0x4210427
@ThomasKaiser
ThomasKaiser / rk3588-increase-opp-microvolt.dts
Created September 28, 2022 14:07
rk3588-increase-opp-microvolt.dts
/dts-v1/;
/plugin/;
/ {
fragment@0 {
target = <&cluster1_opp_table>;
__overlay__ {
opp-408000000 {
opp-microvolt = <675000 675000 1100000>,
<675000 675000 1100000>;
};
#!/bin/bash
InstallLocation=/usr/local/src
[ -x "${InstallLocation}"/mhz/mhz ] || (echo "You need to run sbc-bench at least once to meet prerequisits" ; exit 1)
TempFile="$(mktemp /tmp/${0##*/}.XXXXXX)"
ReportClockSpeedandTemperature() {
MeasuredSpeed=$(( $(taskset -c 1 "${InstallLocation}"/mhz/mhz 3 100000 | awk -F" cpu_MHz=" '{s+=$2} END {printf "%.0f", s}') / 3 ))
CPUTemp=$(awk '{printf ("%0.1f",$1/1000); }' </sys/devices/virtual/thermal/thermal_zone0/temp)
if [ -s "${TempFile}" ]; then
@ThomasKaiser
ThomasKaiser / gist:24a88bec8e6749bbc723cd6f6e78a3ab
Created October 31, 2021 22:27
'ioreg -l' output on MacBookPro18,1
This file has been truncated, but you can view the full file.
+-o Root <class IORegistryEntry, id 0x100000100, retain 34>
| {
| "IOKitBuildVersion" = "Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:01 PDT 2021; root:xnu-8019.41.5~1/RELEASE_ARM64_T6000"
| "OS Build Version" = "21A559"
| "OSKernelCPUSubtype" = 18446744072635809794
| "OSKernelCPUType" = 16777228
| "OSPrelinkKextCount" = 5
| "IORegistryPlanes" = {"IOPort"="IOPort","IOPower"="IOPower","IOService"="IOService","IOAccessory"="IOAccessory","IOUSB"="IOUSB","CoreCapture"="CoreCapture","IO80211Plane"="IO80211Plane","IODeviceTree"="IODeviceTree"}
| "IOConsoleLocked" = No
| "IOConsoleUsers" = ({"kCGSSessionOnConsoleKey"=Yes,"kCGSSessionLoginwindowSafeLogin"=No,"kSCSecuritySessionID"=100013,"kCGSessionLongUserNameKey"="Thomas Kaiser","kCGSSessionUserIDKey"=505,"kCGSSessionSystemSafeBoot"=No,"kCGSessionLoginDoneKey"=Yes,"kCGSSessionUserNameKey"="tk","kCGSSessionGroupIDKey"=20,"kCGSSessionIDKey"=257,"kCGSSessionAuditIDKey"=100013})