Skip to content

Instantly share code, notes, and snippets.

View Icenowy's full-sized avatar
🐣
Chirpping

Icenowy Zheng Icenowy

🐣
Chirpping
View GitHub Profile
#include <dlfcn.h>
#define NULL ((void *)0)
static void * libmali = NULL;
static void *(*maliEglGetProcAddress)(char *) = NULL;
void *eglGetProcAddress(char *name)
{
@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
@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 ))
}
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