Skip to content

Instantly share code, notes, and snippets.

View luftreich's full-sized avatar

luftreich

  • MXB.Ltd
  • Shenzhen.China
View GitHub Profile
@luftreich
luftreich / updater-script
Created July 21, 2014 03:10
META-INF/com/google/android/updater-script OTA recovery
assert(getprop("ro.product.device") == "g18ref_th10" ||
getprop("ro.build.product") == "g18ref_th10");
show_progress(0.500000, 0);
format("ext4", "EMMC", "/dev/block/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/system", "/system");
package_extract_dir("recovery", "/system");
package_extract_dir("system", "/system");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("busybox", "/system/xbin/[", "/system/xbin/[[",
#
# Automatically generated make config: don't edit
# Linux/arm 3.0.50 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_SCHED_CLOCK=y
# CONFIG_ARCH_USES_GETTIMEOFFSET is not set
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y
@luftreich
luftreich / FiFa_dn_list.txt
Last active August 29, 2015 14:04
FiFa_2014_Official_documents
http://resources.fifa.com/mm/document/tournament/competition/02/40/20/43/61_0708_bra-ger_ger_playerstatistics_neutral.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/20/15/61_0708_bra-ger_ger_teamstatistics.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/19/83/eng_61_0708_bra-ger_fulltime_neutral.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/20/29/61_0708_bra-ger_passingdistribution.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/20/01/61_0708_bra-ger_actualformation.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/20/22/61_0708_bra-ger_playersheatmap.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/17/53/eng_61_0708_bra-ger_tacticalstartlist.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/50/96/64_0713_ger-arg_ger_playerstatistics.pdf
http://resources.fifa.com/mm/document/tournament/competition/02/40/51/17/64_0713_ger-arg_passingdistribution.pdf
http
@luftreich
luftreich / debian-on-androidatrix-with-debootstrap
Created July 29, 2014 02:44
Debian on Android/Atrix with Debootstrap
http://fooprotected.wordpress.com/2012/04/02/debian-on-androidatrix-with-debootstrap/
Debian on Android/Atrix with Debootstrap
April 2, 2012deathjest3rLeave a commentGo to comments
The Story
I have bought a new Smartphone. No, not the new and shiny Samsung Galaxy Nexus. An already a little bit older model, but still one of the most powerful devices out there, and a lot cheaper then the Galaxy Nexus, the Motorola Atrix 4G. My Nokia N900 served me well for the past 1.5 years, but now it was time for me to jump on the train called Android. But with my new Smartphone I don’t wanted to lose the possibility to use all my favorite Unix tools (e.g. SSH, SCP, RSYNC, etc.). So I decided to search for a guide on how to install Debian on Android. I found a lot, but non of them directly addressed on how to install Debian on Android/Atrix. So I decided to write a short guide for all the Atrix owners out there.
Rooting the Atrix
Before you start with the guide on how to install Debian you have to root your phone, otherwis
@luftreich
luftreich / aml_recovery.log
Created August 6, 2014 06:32
amlogic recovery FAQ
卡升级
Frank Chen
爱上简洁风格模板引子
空片卡升级的过程
启动卡启动 uboot
读取卡上 recovery.img ,启动 recovery.img
recovery 读取参数文件
读取升级包,校验升级包,校验成功,按照升级包的升级脚本,进行
非空片升级的过程
按 power 键 + 特殊键
@luftreich
luftreich / py_int_hex.md
Created August 6, 2014 12:36
python各种类型转换-int,str,char,float,ord,hex,oct等

[python] view plaincopy

int(x [,base ]) 将x转换为一个整数

long(x [,base ]) 将x转换为一个长整数

float(x ) 将x转换到一个浮点数

complex(real [,imag ]) 创建一个复数

str(x ) 将对象 x 转换为字符串

repr(x ) 将对象 x 转换为表达式字符串

eval(str ) 用来计算在字符串中的有效Python表达式,并返回一个对象

tuple(s ) 将序列 s 转换为一个元组

list(s ) 将序列 s 转换为一个列表

@luftreich
luftreich / amlsd.h
Created August 8, 2014 13:01
drivers/amlogic/mmc/amlsd.h color printk
/*amlsd.h*/
#ifndef AMLSD_H
#define AMLSD_H
#define AML_MMC_MAJOR_VERSION 1
#define AML_MMC_MINOR_VERSION 05
#define AML_MMC_VERSION ((AML_MMC_MAJOR_VERSION << 8) | AML_MMC_MINOR_VERSION)
#define AML_MMC_VER_MESSAGE "2014-05-14: sdhc regular tuning support"
@luftreich
luftreich / aml_2014_08_11_20_24_36.patch
Created August 11, 2014 12:26
aml_2014_08_11_20_24_36.patch new diff
project bootable/recovery/
diff --git a/etc/recovery.data.sh b/etc/recovery.data.sh
index 3597fb7..9092ccf 100755
--- a/etc/recovery.data.sh
+++ b/etc/recovery.data.sh
@@ -1,8 +1,11 @@
#!/sbin/sh
+TEMPORARY_LOG_FILE="/tmp/recovery.log"
@luftreich
luftreich / AML8726-MX-MBOX.lst
Created August 15, 2014 10:04
AML8726-MX-MBOX-REPO-DOC
android_MX/aml_resource/doc/
├── develop_doc
│   ├── hardware
│   │   ├── AML8726-MX DDR3 Layout Guide V1.3.pdf
│   │   ├── AML8726-MX MBOX QPL (4.2.2) 20130605.pdf
│   │   ├── AML8726-MX MID Layout Checklist v1.4.xls
│   │   ├── AML8726-MX MID Layout Guide V1.0.pdf
│   │   ├── AML8726-MX MID QPL (4.1.1) 20130605.pdf
│   │   ├── AML8726-MX MID QPL (4.2.2) 20130605.pdf
│   │   └── AML8726-MXS MXL DDR3_Layout_Guide V0.3.pdf
@luftreich
luftreich / android4.0_pm_suspend.TXT
Last active August 29, 2015 14:05
android4.0 suspend/resume的流程
http://blog.csdn.net/suntao222/article/details/8162938
android4.0 suspend/resume的流程
跟休眠唤醒相关的文件:
[html] view plaincopy
linux_source/kernel/power/main.c
linux_source/kernel/power/earlysuspend.c
linux_source/kernel/power/wakelock.c