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 / gist:aa756f2b968359c3264f
Last active August 28, 2015 10:25 — forked from semack/gist:9654dea80502d7ff3642
led_state_fix_for_uboot_m8_k200_v1.pach
diff --git a/board/amlogic/m8_k200_v1/m8_k200_v1.c b/board/amlogic/m8_k200_v1/m8_k200_v1.c
index b4f2a73..847b099 100755
--- a/board/amlogic/m8_k200_v1/m8_k200_v1.c
+++ b/board/amlogic/m8_k200_v1/m8_k200_v1.c
@@ -561,6 +561,21 @@ void wifi_power_init()
}
#endif
+void set_power_led_state(int flag)
+{
@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