随笔分类 -  Qualcomm

摘要:/system/core/init/init.cpp /system/core/rootdir/init.rc /system/core/healthd/Android.mk /system/core/healthd/charger.cpp [To Be Continued] 阅读全文
posted @ 2018-09-14 14:42 wangchangruei 阅读(917) 评论(0) 推荐(0)
摘要:最近遇到一個問題, gpio 讀出來的值與預期不同, 詳細描述如下: 首先手機 download 了一個完整的 daily build image , 接下來 不斷地修改 kernel 部分 code, 並且不斷地燒錄 其中一部分 image,也就是 bootimage, 一個完整的 image 是 阅读全文
posted @ 2018-04-13 15:56 wangchangruei 阅读(222) 评论(0) 推荐(0)
摘要:``` $ adb root # cat /sys/kernel/debug/gpio ``` ![](https://images2018.cnblogs.com/blog/1070734/201803/1070734-20180319102529448-1208512171.png) 阅读全文
posted @ 2018-03-19 10:27 wangchangruei 阅读(697) 评论(0) 推荐(0)
摘要:倘若你要設定 負值的property, 可能需要括符才會 build 過。 正確 decidegc = ; 錯誤 decidegc = ; 阅读全文
posted @ 2018-02-19 11:06 wangchangruei 阅读(259) 评论(0) 推荐(0)
摘要:無限迴圈, 執行讀取 電池溫度, 阅读全文
posted @ 2018-02-01 21:20 wangchangruei 阅读(391) 评论(0) 推荐(0)
摘要:從 lk 傳送到 kerel 的 cmdline 會放在開機後的 adb /proc/cmdline 開到 android 後,又會被讀出來 /system/core/init/util.cpp /system/core/init/init.cpp 阅读全文
posted @ 2017-09-27 18:15 wangchangruei 阅读(640) 评论(0) 推荐(0)
摘要:// // power on mobile phone // power on mobile phone // // reboot bootloader // android/out/host/linux x86/bin$ sudo adb reboot bootloader // // flash 阅读全文
posted @ 2017-09-26 22:16 wangchangruei 阅读(627) 评论(0) 推荐(0)
摘要:Platform MSM8917 PM8937 PMI8940 在 Qualcomm code base 中, amss下有許多 MSM89xx 之類的 folder, 這些是為了不同 chip 所產生的 download file, 裡面有一隻 contents.xml,說明所需要 downloa 阅读全文
posted @ 2017-09-25 10:32 wangchangruei 阅读(3573) 评论(1) 推荐(0)
摘要:xxx_defconfig for debugging xxx perf_defconfig for final live user's version. 阅读全文
posted @ 2017-09-16 16:40 wangchangruei 阅读(310) 评论(0) 推荐(0)
摘要:PMI8940 唯一的 PON input pin 是 SHDN_N, PM8937 的 VREG_L5 會接到 PMI8940 的 SHDN_N, PM8937 負責整個系統的 power on sequence, 當 power on sequence 開到 VREG_L5 後, 就會 trig 阅读全文
posted @ 2017-09-16 14:21 wangchangruei 阅读(1175) 评论(0) 推荐(0)
摘要:Platform MSM8917 MSM8937 defconfig file position Android/kernel/msm 3.18/arch/arm/configs/ 阅读全文
posted @ 2017-09-15 10:02 wangchangruei 阅读(362) 评论(0) 推荐(0)
摘要:Platform Qualcomm MSM8917 or MSM8937 Source kernel/msm 3.18/drivers/power/qpnp smbcharger.c kernel/msm 3.18/arch/arm64/boot/dts/qcom/msm pmi8937.dtsi 阅读全文
posted @ 2017-09-14 14:07 wangchangruei 阅读(311) 评论(0) 推荐(0)
摘要:平台 Qualcomm 解說 Qualcomm 平台的 Turn on event 有 KYPD_PWR_N,CBL_PWR_N,.... 也有 PMIC reset and power off events 是否要讓這些 event 生效, 可以藉由 main pmic 的 PON_PON_TRI 阅读全文
posted @ 2017-09-12 16:42 wangchangruei 阅读(643) 评论(0) 推荐(0)
摘要:can get the supported GIC interrupts from the below adb command, adb root adb shell cat /proc/interrupts 阅读全文
posted @ 2017-09-05 21:29 wangchangruei 阅读(258) 评论(0) 推荐(0)
摘要:Platform Qualcomm MSM8917 / 37 + PM8937(main PMIC) + PMI8940 Schematic Principles 當 power key 按下時, KYPD_PWR_N1 會接到地, 傳到 PMI8940 的 KYPD_PWR 時,會結束 charg 阅读全文
posted @ 2017-08-31 15:06 wangchangruei 阅读(1460) 评论(0) 推荐(0)
摘要:有些 pin 可以當成多種 function, 此例以 GPIO function P3 voltage 為例 Voh(min) = 1.67 0.45 = 1.22 V 阅读全文
posted @ 2017-08-17 13:42 wangchangruei 阅读(657) 评论(0) 推荐(0)
摘要:Platform : Qualcomm MSM8937 PMIC : Qualcomm PMI8940 OTG base on USB2.0,增加 1. device 可當 host 也可當 peripheral。 2. 增加 HNP 用來交換 host peripheral 的 protocol. 阅读全文
posted @ 2017-08-09 19:34 wangchangruei 阅读(1566) 评论(0) 推荐(0)
摘要:也就是 Usage: dtc [options] <input file + I, in format <arg Input formats are: dts device tree source text dtb device tree blob fs /proc/device tre 阅读全文
posted @ 2017-05-14 21:43 wangchangruei 阅读(2535) 评论(0) 推荐(0)
摘要:安裝 Android Development Environment 1. http://www.cnblogs.com/youchihwang/p/6645880.html 除了上述還得安裝, 2. modify bash shell answer : no 3. Installing Repo 阅读全文
posted @ 2017-04-05 16:51 wangchangruei 阅读(2048) 评论(0) 推荐(0)