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 / ping.py
Created April 5, 2014 03:19 — forked from pklaus/ping.py
#!/usr/bin/env python2
"""
Other Repositories of python-ping
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* https://github.com/l4m3rx/python-ping supports Python2 and Python3
* https://bitbucket.org/delroth/python-ping
@luftreich
luftreich / update_aml_otg
Created July 16, 2014 12:03
err_log_aml_update_via_OTG
?
DDR clock is 516MHz with Low Power & 1T mode
DDR training :
DX0DLLCR:40000000
DX0DQTR:ffffffff
DX0DQSTR:3db05001
DX1DLLCR:40000000
DX1DQTR:ffffffff
@luftreich
luftreich / oops_mxb_TF_up.log
Created July 16, 2014 12:14
oops_mxb_TF_update
U-boot-00000-g83e5cff-dirty(m6_mbx_th10@jb-mr1-timehold-new) (Jul 16 2014 - 14:36:31)
aml_rtc_init
aml rtc init first time!
Clear HDMI KSV RAM
DRAM: 512 MiB
relocation Offset is: 105e4000
NAND: Amlogic nand flash uboot driver, Version U1.06.020 (c) 2010 Amlogic Inc.
SPI BOOT : continue i 0
@luftreich
luftreich / OK_TF_UP
Created July 16, 2014 12:27
Ok_update_via_TF-Std
DDR clock is 444MHz with Low Power & 1T mode
DDR training :
DX0DLLCR:40000000
DX0DQTR:ffffffff
DX0DQSTR:3db05001
DX1DLLCR:40000000
DX1DQTR:ffffffff
DX1DQSTR:3db05001
@luftreich
luftreich / ok_nand_boot
Created July 16, 2014 12:28
ok_nand_boot_Std
U-boot-00000-g38a523d-dirty(m6_mbx_th10@jb-mr1-timehold-new) (Apr 11 2014 - 09:33:23)
aml_rtc_init
aml rtc init first time!
Clear HDMI KSV RAM
DRAM: 1 GiB
relocation Offset is: 105e8000
NAND: Amlogic nand flash uboot driver, Version U1.06.017 (c) 2010 Amlogic Inc.
SPI BOOT : continue i 0
@luftreich
luftreich / mxb_bootm_uImage.log
Created July 16, 2014 13:50
tmp_uImage_bootm_ddr
m6_mbx_th10>mmcino fo
Device: SDIO Port B
Manufacturer ID: 0
OEM: 0
Name: Tran Speed: 40000000
Rd Block Len: 512
SD version 2.0
High Capacity: Yes
Capacity: 3965190144
@luftreich
luftreich / patch_repo.sh
Last active August 29, 2015 14:04
Script to patch up diff reated by `repo diff`
## Script to patch up diff reated by `repo diff`
if [ -z "$1" ] || [ ! -e "$1" ]; then
echo "Usages: $0 <repo_diff_file>";
exit 0;
fi
rm -fr _tmp_splits*
cat $1 | csplit -qf '' -b "_tmp_splits.%d.diff" - '/^project.*\/$/' '{*}'
@luftreich
luftreich / UBoot 烧进 SPI Flash
Created July 18, 2014 04:32
UBoot 烧进 SPI Flash
kernel
把编译好的 uImage 拷在启动卡根目录上,启动后进入 uboot,执行
mmcinfo
fatload mmc 0 82000000 uImage
bootm
system
编译出 otapackage zip 包,拷到 T 卡,进入“升级”应用,选择对应的 zip 升级
@luftreich
luftreich / uboot-ota-update ???
Created July 18, 2014 04:41
验证 update u-boot via OTA, 手动change 默认u-boot
DDR clock is 444MHz with Low Power & 1T mode
DDR training :
DX0DLLCR:40000000
DX0DQTR:ffffffff
DX0DQSTR:3db05001
DX1DLLCR:40000000
DX1DQTR:ffffffff
DX1DQSTR:3db05001
@luftreich
luftreich / adb devices
Created July 19, 2014 08:36
Ubuntu adb devices :???????????? no permissions 解决方法[转
Ubuntu adb devices :???????????? no permissions 解决方法[转]
untun下USB连接Android手机后,使用adb devices 出现如下:
List of devices attached
???????????? no permissions
同时在DDMS中显示设备名也显示????,也无法显示进程名,无法查看log。
一、工具介绍
android-sdk-linux_x86/tools下有一堆工具,今天要用的是:Android Debug Bridge,在android开发过程中,这个工具是使用得最多的。(缩写adb,有点像gcc的gdb似的)