Skip to content

Instantly share code, notes, and snippets.

@ssvb
ssvb / gist:1652ad034c3247c84d6f
Created October 6, 2014 13:54
Primo81 meminfo
DRAM Clock: 720MHz
/*
* DRAM COM Registers
*/
SDR_COM_CR = 0x005339e4;
SDR_COM_000 = 0x005339e4;
SDR_COM_CCR = 0x00000015;
SDR_COM_004 = 0x00000015;
SDR_COM_008 = 0x00022040;
SDR_COM_MFACR = 0x00800302;
@ssvb
ssvb / gist:acae1dcb6156f4118733
Created September 23, 2014 20:35
dmesg from noname 10" tablet
<6>[ 0.000000] Booting Linux on physical CPU 0
<5>[ 0.000000] Linux version 3.4.0+ (mono@mono-linux.com) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70) ) #2 SMP PREEMPT Fri Apr 25 18:26:17 CST 2014
<4>[ 0.000000] Machine: gs702c
<4>[ 0.000000] xml_buf_start_phys:0x428d8c0, xml_buf_len:0x3f000
<4>[ 0.000000] bin_cfg_xml_buf_start_phys:0x428e760, bin_cfg_xml_buf_len:0x9000
<4>[ 0.000000] pinctrl_buf_start_phys:0x207c000, pinctrl_buf_len:0xad60
<4>[ 0.000000] tag: dvfslevel: 0x40710503
<4>[ 0.000000] tag: icversion: 0x43
<4>[ 0.000000] board_opt 0, flags 0x0
<4>[ 0.000000] tag: boot_dev 0
@ssvb
ssvb / gist:ca2bd3a38b1db4e96e7d
Created May 26, 2014 21:03
Cubietruck dqs_gating_delay
== Cubietruck & FAST_MBUS ==
before dqs gate training: rslr0=00000000, rdgr0=00000055
after dqs gate training: rslr0=00000249, rdgr0=000000AA
dqs_gating_delay=06060606
== Cubietruck without FAST_MBUS ==
before dqs gate training: rslr0=00000000, rdgr0=00000055
after dqs gate training: rslr0=00000249, rdgr0=000000AA
const char *vertex_shader_source =
"uniform mat4 modelviewprojectionMatrix;\n"
"\n"
"attribute vec4 in_position; \n"
"attribute vec2 in_coord; \n"
" \n"
"varying vec2 coord; \n"
" \n"
"void main() \n"
"{ \n"
@ssvb
ssvb / gist:9078129
Created February 18, 2014 19:28
memtester + glmark2-es2 test on cubietruck & linux-sunxi 3.479 kernel
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.4.79-sun7i-00002-g9fdabc4-dirty (ssvb@i7) (gcc version 4.7.3 (Gentoo 4.7.3-r1 p1.3, pie-0.5.5) ) #1 SMP PREEMPT Tue Feb 11 20:37:59 EET 2014
[ 0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: sun7i
[ 0.000000] Memory Reserved:
[ 0.000000] SYS : 0x43000000 - 0x4300ffff ( 64 kB)
[ 0.000000] G2D : 0x50000000 - 0x50ffffff ( 16 MB)
@ssvb
ssvb / framebuffer-sunxi-mali-vsync.diff
Created December 22, 2013 21:11
framebuffer-sunxi-mali-vsync.diff
diff --git a/drivers/video/sunxi/disp/dev_fb.c b/drivers/video/sunxi/disp/dev_fb.c
index a453b6f..b02e7dc 100644
--- a/drivers/video/sunxi/disp/dev_fb.c
+++ b/drivers/video/sunxi/disp/dev_fb.c
@@ -1071,7 +1071,7 @@ static int Fb_pan_display(struct fb_var_screeninfo *var, struct fb_info *info)
}
}
- // Fb_wait_for_vsync(info);
+ Fb_wait_for_vsync(info);
@ssvb
ssvb / sun7i-arm-perfcounters.patch
Created October 29, 2013 22:32
sun7i-arm-perfcounters.patch
diff --git a/arch/arm/plat-sunxi/devices.c b/arch/arm/plat-sunxi/devices.c
index fdddc56..f5ecff7 100644
--- a/arch/arm/plat-sunxi/devices.c
+++ b/arch/arm/plat-sunxi/devices.c
@@ -113,7 +113,35 @@ struct platform_device sw_pdev_nand =
.dev = {}
};
-#ifndef CONFIG_ARCH_SUN7I
+#ifdef CONFIG_ARCH_SUN7I
@ssvb
ssvb / xorg.conf
Last active September 6, 2020 20:18
Dual monitor support on Allwinner A10
# This is a minimal sample config file, which can be copied to
# /etc/X11/xorg.conf in order to make the Xorg server pick up
# and load xf86-video-fbturbo driver installed in the system.
#
# When troubleshooting, check /var/log/Xorg.0.log for the debugging
# output and error messages.
#
# Run "man fbturbo" to get additional information about the extra
# configuration options for tuning the driver.
@ssvb
ssvb / meminfo-open-source-uboot.txt
Created June 30, 2013 06:07
a10-meminfo for CubieBoard2 with normal open source u-boot ( https://github.com/hno/u-boot/tree/wip/a20 )
dram_clk = 480
dram_type = 3
dram_rank_num = 1
dram_chip_density = 4096
dram_io_width = 16
dram_bus_width = 32
dram_cas = 9
dram_zq = 0x7f
dram_odt_en = 0
dram_tpr0 = 0x42d899b7
@ssvb
ssvb / meminfo-nand.txt
Created June 30, 2013 06:04
a10-meminfo for CubieBoard2 firmware from nand
dram_clk = 480
dram_type = 3
dram_rank_num = 1
dram_chip_density = 4096
dram_io_width = 16
dram_bus_width = 32
dram_cas = 9
dram_zq = 0x7f
dram_odt_en = 0
dram_tpr0 = 0x42d899b7