Skip to content

Instantly share code, notes, and snippets.

View Icenowy's full-sized avatar
🐣
Chirpping

Icenowy Zheng Icenowy

🐣
Chirpping
View GitHub Profile
Name: elfix
Version: 0.9.2
Release: 1%{?dist}
Summary: Utilities for marking ELF files for PaX.
License: GPL-3.0
URL: https://dev.gentoo.org/~blueness/elfix/
Source0: %{name}-%{version}.tar.gz
BuildRequires: elfutils-devel
@Icenowy
Icenowy / fel_sid_read.sh
Created December 19, 2016 15:15
Read H3 SID by register access with sunxi-fel
#! /bin/bash
SID_PRCTL=0x01c14040
SID_PRKEY=0x01c14050
SID_RDKEY=0x01c14060
BIT() {
echo $(( 1 << $1 ))
}
@Icenowy
Icenowy / log3_改正initrc的系统分区.txt
Created December 26, 2016 17:06
Some boot message of Lichee Pi Zero (V3s)
HELLO! BOOT0 is starting!
get_ifm reg_val=7
setting pmu vol system core 1.1 v
===i2c gpio === 22777777
axp read fail, maybe no pmu
set pmu vol failed,maybe no pmu
DRAM DRIVE INFO: V0.7
DRAM Type = 2 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 360 MHz
#include <dlfcn.h>
#define NULL ((void *)0)
static void * libmali = NULL;
static void *(*maliEglGetProcAddress)(char *) = NULL;
void *eglGetProcAddress(char *name)
{
[85]HELLO! BOOT0 is starting!
[89]boot0 commit : 62ee2c78daf826c2a0bfd1f818e301853b94f5cd
[107]PMU: AXP806
[111]set pll start
[114]set pll end
[116]rtc[0] value = 0x00000000
[119]rtc[1] value = 0x00000000
[122]rtc[2] value = 0x00000000
[125]rtc[3] value = 0x0000b00f
=> md 07010000
07010000: 00000000 00000000 00000000 00000000 ................
07010010: 00000000 00000000 00000000 00000000 ................
07010020: 00000000 00000000 00000000 00000000 ................
07010030: 00000000 00000000 00000000 00000000 ................
07010040: 00000000 00000000 00000000 00000000 ................
07010050: 00000000 00000000 00000000 00000000 ................
07010060: 00000000 00000000 00000000 00000000 ................
07010070: 00000000 00000000 00000000 00000000 ................
07010080: 00000000 00000000 00000000 00000000 ................
=> md 0x04002000
04002000: 80431984 000009f4 0e400f00 0000018f ..C.......@.....
04002010: 00000010 00103040 00000000 00000000 ....@0..........
04002020: ffffffff 000007ff 0000ffff 00000000 ................
04002030: 00000000 00000000 00000000 00000000 ................
04002040: 00000000 00000000 00000000 00000000 ................
04002050: 00000000 00000000 00000000 00000000 ................
04002060: 00000000 00000000 00000000 00000000 ................
04002070: 00000000 00000000 00000000 00000000 ................
04002080: 00000000 00000000 00000000 00000000 ................
tinymembench v0.4.9 (simple benchmark for memory throughput and latency)
==========================================================================
== Memory bandwidth tests ==
== ==
== Note 1: 1MB = 1000000 bytes ==
== Note 2: Results for 'copy' tests show how many bytes can be ==
== copied per second (adding together read and writen ==
== bytes would have provided twice higher numbers) ==
== Note 3: 2-pass copy means that we are using a small temporary buffer ==
tinymembench v0.4.9 (simple benchmark for memory throughput and latency)
==========================================================================
== Memory bandwidth tests ==
== ==
== Note 1: 1MB = 1000000 bytes ==
== Note 2: Results for 'copy' tests show how many bytes can be ==
== copied per second (adding together read and writen ==
== bytes would have provided twice higher numbers) ==
== Note 3: 2-pass copy means that we are using a small temporary buffer ==
attribute vec3 aVertexPosition;
attribute vec3 aVertexNormal;
attribute vec3 aVertexColor;
attribute vec3 aTextureCoord;
uniform mat4 uWorld;
uniform mat4 uWorldViewProj;
uniform mat4 uWorldInvTranspose;
uniform vec3 uLightPos;
uniform float uLightRadius;