Tenfar's Tech Blog
This is the techlog of Tenfar's Coding Life.I will post my techlog in here.It's all about technology.
Comments are welcome!
Fix for Android 4.0 (ICS) compilation error while compiling mesa3d
Error while compile ics in archlinux x64,error log:
my new laptop lspci info
sh-3.2# lspci -nn
00:00.0 Host bridge [0600]: Intel Corporation Unknown device [8086:0044] (rev 12)
00:02.0 VGA compatible controller [0300]: Intel Corporation Unknown device [8086:0046] (rev 12)
00:16.0 Communication controller [0780]: Intel Corporation Unknown device [8086:3b64] (rev 06)
00:1a.0 USB Controller [0c03]: Intel Corporation Unknown device [8086:3b3c] (rev 05)
00:1b.0 Audio device [0403]: Intel Corporation Unknown device [8086:3b56] (rev 05)
00:1c.0 PCI bridge [0604]: Intel Corporation Unknown device [8086:3b42] (rev 05)
00:1c.5 PCI bridge [0604]: Intel Corporation Unknown device [8086:3b4c] (rev 05)
00:1d.0 USB Controller [0c03]: Intel Corporation Unknown device [8086:3b34] (rev 05)
00:1e.0 PCI bridge [0604]: Intel Corporation 82801 Mobile PCI Bridge [8086:2448] (rev a5)
00:1f.0 ISA bridge [0601]: Intel Corporation Unknown device [8086:3b09] (rev 05)
00:1f.2 SATA controller [0106]: Intel Corporation Unknown device [8086:3b29] (rev 05)
00:1f.3 SMBus [0c05]: Intel Corporation Unknown device [8086:3b30] (rev 05)
00:1f.6 Signal processing controller [1180]: Intel Corporation Unknown device [8086:3b32] (rev 05)
01:00.0 Ethernet controller [0200]: Broadcom Corporation Unknown device [14e4:1692] (rev 01)
02:00.0 Network controller [0280]: Atheros Communications Inc. Unknown device [168c:002e] (rev 01)
7f:00.0 Host bridge [0600]: Intel Corporation Unknown device [8086:2c62] (rev 02)
7f:00.1 Host bridge [0600]: Intel Corporation Unknown device [8086:2d01] (rev 02)
7f:02.0 Host bridge [0600]: Intel Corporation Unknown device [8086:2d10] (rev 02)
7f:02.1 Host bridge [0600]: Intel Corporation Unknown device [8086:2d11] (rev 02)
7f:02.2 Host bridge [0600]: Intel Corporation Unknown device [8086:2d12] (rev 02)
7f:02.3 Host bridge [0600]: Intel Corporation Unknown device [8086:2d13] (rev 02)
Enable adb locat stdout for Huawei Android Phones
It takes me some time to find out how to enable logcat output for Huawei Android devices.
The method is simple
There are a tempway and a permway
the temp way is :
echo 1 > /sys/kernel/logger/log_main/enable
echo 2 > /sys/kernel/logger/log_main/priority
and the perm way is to modify init.rc file which is located in ramdisk
This way is harder than the temp way.you need to unpack the boot.img to get the ramdisk.then unpack the ramdisk
and modify the init.rc file with this:
write /sys/kernel/logger/log_main/enable 1
write /sys/kernel/logger/log_main/priority 1
in the right place of the init.rc file.
then repack ramdisk --> repack boot.img
then flash the new boot.img to your phone.
That's it. all set.
sweet log cat is back to you.
Defy sbf_flash test result
I am trying to flash defy with a sbf firmware in linux using sbf_flash,but it seems the sbf_flash can not flash this sbf firmware.
it seems it can not read the cdt partition.any suggesttions?
I am too boring to flash sbf file in windows. I use Linux as my main OS for development
logs:
# sbf_flash-r -r ./JRDNEM_U3_2.21.0_SIGNED_UCAJRDNEMARAB1B80AA028.0R_USAJORDANRTGB_P026_A007_HWp3_Service1FF.sbf
SBF FLASH 1.11 (mbm)
Droid X found.
=== JRDNEM_U3_2.21.0_SIGNED_UCAJRDNEMARAB1B80AA028.0R_USAJORDANRTGB_P026_A007_HWp3_Service1FF.sbf ===
00: RDL03 0x82000000-0x8204CFFF C943 AP
01: CG31 0xB0280000-0xB02847FF 4972 Unknown
02: CG32 0xC7A00000-0xC7A207FF 4805 Unknown
03: CG33 0xB2000000-0xB2DC07FF 1ABC Unknown
04: CG34 0xB0700000-0xB07047FF D9D1 Unknown
05: CG35 0xB1000000-0xB17FFFFF 3E04 Unknown
06: CG39 0xB3300000-0xC79C07FF 35FC Unknown
07: CG40 0xC7B00000-0xC7D59FFF D196 Unknown
08: CG42 0xB0800000-0xB0842FFF C4B4 Unknown
09: CG45 0xB0C00000-0xB0F007FF 3664 Unknown
10: CG47 0xB1800000-0xB1FFFFFF 695F Unknown
11: CG53 0xB2F00000-0xB2F007FF FDFF Unknown
12: CG61 0xB0B00000-0xB0B7FFFF 538B Unknown
13: CG64 0xB0000000-0xB00047FF 85D0 Unknown
14: CG65 0xB0180000-0xB01847FF 2409 Unknown
Hi! My name is Tenfar Lin. I am an abashed geek, an author, a hacker and a Android System expert -- amongst other things!
You are reading my Tech Blog . Thanks for visiting.