Skip to content

Instantly share code, notes, and snippets.

@checko
checko / parse-ext-csd.py
Created November 14, 2016 05:15 — forked from kylemanna/parse-ext-csd.py
Parse eMMC Extended CSD and print useful things.
#!/usr/bin/env python
"""
Author: Kyle Manna <kyle@kylemanna.com>
Blog: https://blog.kylemanna.com
cat /d/mmc0/mmc0:0001/ext_csd
0000000000000001030100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000087a0000000000000000061502030700100608010101080800100000728000000808080808080000000000010200070002000500000000000001000200000000000000000000000000000100050000000000030001ca00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
@checko
checko / nightly.sh
Created December 25, 2013 03:10
nightly test build
#!/bin/bash
cd /home/charles-chang
. .profile
# if exist, last build failed. do nothing.
cd nightly
if [ "$?" = "0" ]; then
exit 1
fi
@checko
checko / springer-free-maths-books.md
Created December 29, 2015 07:48 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of books available for free, here are the direct links
diff --git a/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.java b/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.java
index 9853d67..de5a1ac 100644
--- a/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.java
+++ b/samples/ApiDemos/src/com/example/android/apis/media/MediaPlayerDemo_Video.java
@@ -30,9 +30,13 @@ import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceView;
import android.widget.Toast;
+import android.media.MediaScannerConnection;
+import android.net.Uri;
diff --git a/include/configs/mx53_loco_android.h b/include/configs/mx53_loco_android.h
index 3613af2..e88f7be 100644
--- a/include/configs/mx53_loco_android.h
+++ b/include/configs/mx53_loco_android.h
@@ -80,7 +80,7 @@
#define CONFIG_USB_DEVICE
#define CONFIG_FASTBOOT 1
#define CONFIG_IMX_UDC 1
-#define CONFIG_FASTBOOT_STORAGE_EMMC
+#define CONFIG_FASTBOOT_STORAGE_EMMC_SATA
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := eng
LOCAL_C_INCLUDES += $(LOCAL_PATH) $(LOCAL_PATH)/$(KERNEL_DIR)/include
LOCAL_SRC_FILES := tools/i2cbusses.c tools/util.c
LOCAL_MODULE := i2c-tools
include $(BUILD_STATIC_LIBRARY)
import subprocess
import os
import xml.dom.minidom
import sys
if len(sys.argv) < 2:
print 'Please specify the source path'
sys.exit()
sourcepath = sys.argv[1]
import subprocess
import os
import xml.dom.minidom
sourcepath = "/home/charles-chang/imx53qsbandroid4.3/src/"
root = xml.dom.minidom.parse(os.path.join(sourcepath,'.repo/manifest.xml'))
projlist = []
for node in root.childNodes[0].childNodes:
if node.nodeName == 'project':
pname = node.getAttribute('name')
import os
import xml.dom.minidom
emptyproject = []
gitproject = []
def recursive_list( pathname ):
global emptyproject
global gitproject
dirs = os.listdir( pathname )