Skip to content

Instantly share code, notes, and snippets.

View TheGammaSqueeze's full-sized avatar

TheGammaSqueeze

View GitHub Profile
@TheGammaSqueeze
TheGammaSqueeze / uboot_log.txt
Created July 10, 2023 15:07
RG405M uboot log
sargo:/ # cat /dev/block/by-name/uboot_log
[00000766]
U-Boot 2015.07 (Mar 23 2023 - 22:34:55 +0800)SHARKL5PRO
[00000772] 1 GiB
[00000829] Error!ofnode_read_u32_default(): Node pmic@0 has bad/missing spi-tx-bus-width property
[00000836] Error!ofnode_read_u32_default(): Node pmic@0 has bad/missing spi-rx-bus-width property
[00000848] WARNING in /home/dell/code/RG405M/sprd_android_12/bsp/bootloader/u-boot15/drivers/misc/adi.c line 354
@TheGammaSqueeze
TheGammaSqueeze / powkiddy-x28.dts
Created July 12, 2023 22:29
Powkiddy X28 DTS - Taken from running system
/dts-v1/;
/ {
cpuinfo_hardware = "Unisoc T618";
serial-number = "c2ee6b71261e749d633c7c3a3be4276668877656f8389a5d65d9ece010fe469b";
#size-cells = <0x02>;
compatible = "sprd,ums512";
#address-cells = <0x02>;
interrupt-parent = <0x01>;
model = "Unisoc UMS512 SoC";
@TheGammaSqueeze
TheGammaSqueeze / mapping.c
Created July 25, 2023 22:23
Sample code to generate and read a CSV file for use in an integer mapping table
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#define MAX_TABLE_SIZE 100
// Define the struct to hold the table data
struct Transformation {
int originalValue;
@TheGammaSqueeze
TheGammaSqueeze / 405.dts
Created July 26, 2023 18:36
RG405M DTS of running system
/dts-v1/;
/ {
cpuinfo_hardware = "Unisoc T618";
serial-number = "16cd6c0db746433da8e7587b00236d43fc12c55abde10859326e900ae61f325c";
soc-manufacturer = "Spreadtrum";
#size-cells = <0x02>;
compatible = "sprd,ums512";
#address-cells = <0x02>;
interrupt-parent = <0x01>;
@TheGammaSqueeze
TheGammaSqueeze / ktr1.dts
Created August 17, 2023 15:59
KT-R1 DTS of running kernel
/dts-v1/;
/ {
model-part-name = "MT6789V/CD";
#size-cells = <0x02>;
compatible = "mediatek,MT6789";
model-external-name = "MT6789V/CD";
#address-cells = <0x02>;
interrupt-parent = <0x01>;
model = "MT6789V/CD";
@TheGammaSqueeze
TheGammaSqueeze / rg403h.dts
Last active January 28, 2024 22:39
RG403H / RG ARC DTS
/dts-v1/;
/ {
compatible = "rockchip,rk3566-rk817-tablet\0rockchip,rk3566";
interrupt-parent = <0x01>;
#address-cells = <0x02>;
#size-cells = <0x02>;
model = "Anbernic RG403H HDMI 1080P";
ddr3-params {
@TheGammaSqueeze
TheGammaSqueeze / rg403h-android-running.dts
Created November 17, 2023 15:45
RG403H / RG ARC DTS - Android Running Kernel
/dts-v1/;
/ {
serial-number = "efee3cb9df49e879";
#size-cells = <0x02>;
compatible = "rockchip,rk3566-rk817-tablet\0rockchip,rk3566";
#address-cells = <0x02>;
interrupt-parent = <0x01>;
model = "Anbernic RG403H";
@TheGammaSqueeze
TheGammaSqueeze / rg405h_android_kernel_configs.txt
Created November 17, 2023 15:49
rg405h_android_kernel_configs
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.19.232 Kernel Configuration
#
#
# Compiler: aarch64-linux-gnu-gcc (Linaro GCC 6.3-2017.05) 6.3.1 20170404
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=60301
@TheGammaSqueeze
TheGammaSqueeze / rg556.dts
Created February 20, 2024 13:09
RG556 DTS of running kernel (Android)
/dts-v1/;
/ {
cpuinfo_hardware = "Unisoc T820";
serial-number = "0091b0a70e118b14";
soc-manufacturer = "Spreadtrum";
#size-cells = <0x02>;
compatible = "sprd,ums9620";
#address-cells = <0x02>;
interrupt-parent = <0x01>;
@TheGammaSqueeze
TheGammaSqueeze / log.txt
Created February 22, 2024 19:32
Anbernic RG556 Failed android verified boot state
UUUUUUIS
URS
NPK
RBS
ddr init start!!!
ddr target freq:1866 MHz
ddr init pass!!!