Skip to content

Instantly share code, notes, and snippets.

@macromorgan
macromorgan / bootlog
Created May 20, 2024 15:56
Anbernic RG35XXSP Data
[37]HELLO! BOOT0 is starting!
[40]BOOT0 commit : 749c1f9a-dirty
[43]set pll start
[45]periph0 has been enabled
[48]set pll end
[50][pmu]: bus read error
[53][pmu]: bus read error
[55]PMU: AXP2202
[63]vaild para:8 select dram para0
[67]board init ok
From 1340ad97d35cf4ea7b82be650530ac48bdd0ac1b Mon Sep 17 00:00:00 2001
From: Chris Morgan <macromorgan@hotmail.com>
Date: Fri, 10 May 2024 10:43:01 -0500
Subject: [PATCH 1/4] dt-bindings: pwm: Add binding for Allwinner
D1/T113-S3/R329/H616 PWM
Allwinner's D1, T113-S3, R329, and H616 SoCs have a new pwm
controller witch is different from the previous pwm-sun4i.
The D1 and T113 are identical in terms of peripherals,
@macromorgan
macromorgan / clk_summary
Created May 9, 2024 15:52
RG28XX Boot Information
clock enable_cnt prepare_cnt rate accuracy phase
----------------------------------------------------------------------------------------
pcf8563-clkout 0 0 32768 0 0
pll_periph0div25m 0 0 25000000 0 0
ephy_25m 0 0 25000000 0 0
hoscdiv32k 0 0 32768 0 0
hosc32k 0 0 32768 0 0
losc_out 0 0 32768 0 0
osc48m 0 0 48000000 0 0
osc48md4 0 0 12000000 0 0
@macromorgan
macromorgan / sun50i-h700-anbernic-rg28xx.dts
Created May 7, 2024 15:41
Dumps from Anbernic RG28XX
/dts-v1/;
/memreserve/ 0x0000000048000000 0x0000000001000000;
/ {
interrupt-parent = <0x01>;
#address-cells = <0x02>;
#size-cells = <0x02>;
model = "sun50iw9";
compatible = "allwinner,h616\0arm,sun50iw9p1";
@macromorgan
macromorgan / UART Dump
Last active April 7, 2024 21:52
Anbernic RG556
UUUUUUIS
URS
NPK
RBS
ddr init start!!!
ddr target freq:1866 MHz
ddr init pass!!!
@macromorgan
macromorgan / boot0
Last active April 1, 2024 20:26
RG35XXH+ Bootlog
@ 0: boot0: Allwinner boot0
size: 65536 bytes
eGON checksum matches: 0x311cf4a7
DRAM parameters: A64 H616
DRAM clock : 0x2a0 0x2a0 -
DRAM type : 0x8 0x8 -
ZQ value : 0x8080808 - -
ODT enabled : 0xe0e0e0e 0x7887bbbb -
DX ODT : - 0x8080808 -
DX DRI : - 0xe0e0e0e -
@macromorgan
macromorgan / BUILD.bazel
Created March 26, 2024 13:31
RGxx3 Android Kernel Attempt - Take 1
load("//build/bazel_common_rules/dist:dist.bzl", "copy_to_dist_dir")
load("//build/kernel/kleaf:kernel.bzl", "kernel_build", "kernel_images", "kernel_modules_install")
load("//common:modules.bzl", "get_gki_modules_list")
load("//build/kernel/kleaf:common_kernels.bzl", "define_common_kernels")
_RGXX3_MODULE_OUTS = [
"sound/soc/generic/snd-soc-simple-card-utils.ko",
"drivers/input/misc/pwm-vibra.ko",
"drivers/gpu/drm/panel/panel-newvision-nv3051d.ko",
"drivers/char/hw_random/optee-rng.ko",
@macromorgan
macromorgan / SUNXI_DRAM_COM_BASE
Created March 13, 2024 21:25
Sunxi H700 Mem Dumps Diff
--- SUNXI_DRAM_COM_BASE_BSP 2024-03-13 16:13:03.269292635 -0500
+++ SUNXI_DRAM_COM_BASE_MAIN 2024-03-13 16:19:14.279221980 -0500
@@ -53,10 +53,10 @@
047fa340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
047fa350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
047fa360: 0d 06 00 08 00 03 00 02 04 00 00 00 00 00 00 00
-047fa370: 09 00 00 01 80 00 64 00 04 00 00 00 00 00 00 00
+047fa370: 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00
047fa380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
047fa390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
@macromorgan
macromorgan / SUNXI_DRAM_COM_BASE
Created March 13, 2024 21:06
Memory Dumps from Attempted Mainline H700
047fa000: 00 00 00 80 f4 09 00 00 00 ff 40 0e 8f 01 00 00
047fa010: 10 00 00 00 40 30 10 00 00 00 00 00 00 00 00 00
047fa020: ff ff ff ff ff 07 00 00 ff ff 00 00 00 00 00 00
047fa030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
047fa040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
047fa050: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
047fa060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
047fa070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
047fa080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
047fa090: 00 00 00 00 00 00 00 00 00 00 00 00 02 00 ff ff
@macromorgan
macromorgan / SUNXI_DRAM_COM_BASE
Created March 13, 2024 19:57
Memory Dumps from Factory 35XXH (Allwinner H700)
047fa000: 00 00 00 80 f4 09 00 00 00 ff 40 0e 8f 01 00 00 ..........@.....
047fa010: 10 00 00 00 40 30 10 00 00 00 00 00 00 00 00 00 ....@0..........
047fa020: ff ff ff ff ff 07 00 00 ff ff 00 00 00 00 00 00 ................
047fa030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
047fa040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
047fa050: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
047fa060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
047fa070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
047fa080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
047fa090: 00 00 00 00 00 00 00 00 00 00 00 00 02 00 ff ff ................