随笔分类 -  kernel

摘要:如果要在 rc.local 呼叫 python script python script 的位置需使用絕對路徑 其 python script 裡的有關 file 的位置也需使用 絕對路徑 如果要在 rc.local 呼叫建立 file file 的位置需使用絕對路徑 rc.local 位在 /et 阅读全文
posted @ 2019-07-17 17:17 wangchangruei 阅读(593) 评论(0) 推荐(0) 编辑
摘要:Question about git commit rule I git commit a patch, The patch has a "static int xxxxxxxxxxxxxxxxxxxxxxxxxx = 0;" It show error messge "ERROR: do not 阅读全文
posted @ 2018-08-25 20:50 wangchangruei 阅读(1026) 评论(0) 推荐(0) 编辑
摘要:Some defconfig files are placed on below path. Only one _defconfig can be selected. android/kernel/msm 4.9/arch/arm64/configs/ _defconfig Below is fin 阅读全文
posted @ 2018-07-30 21:37 wangchangruei 阅读(559) 评论(0) 推荐(0) 编辑
摘要:epoll is a Linux kernel system call for a scalable I/O event notification mechanism, first introduced in version 2.5.44 of the Linux kernel mainline.[ 阅读全文
posted @ 2018-06-18 16:10 wangchangruei 阅读(155) 评论(0) 推荐(0) 编辑
摘要:Question : When you see the log "Flags mismatch irq ............", maybe you use the same irq number to register different interrupt handler . irq num 阅读全文
posted @ 2018-05-17 22:06 wangchangruei 阅读(3679) 评论(0) 推荐(0) 编辑
摘要:device tree source 的 interrupt names property 會對應到 pltform_get_irq_byname() 的第二個參數。 .dtsi or .dts .c 阅读全文
posted @ 2018-04-22 20:08 wangchangruei 阅读(1002) 评论(0) 推荐(0) 编辑
摘要:最近遇到一個問題, gpio 讀出來的值與預期不同, 詳細描述如下: 首先手機 download 了一個完整的 daily build image , 接下來 不斷地修改 kernel 部分 code, 並且不斷地燒錄 其中一部分 image,也就是 bootimage, 一個完整的 image 是 阅读全文
posted @ 2018-04-13 15:56 wangchangruei 阅读(207) 评论(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 阅读(632) 评论(0) 推荐(0) 编辑
摘要:倘若你要設定 負值的property, 可能需要括符才會 build 過。 正確 decidegc = ; 錯誤 decidegc = ; 阅读全文
posted @ 2018-02-19 11:06 wangchangruei 阅读(236) 评论(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 阅读(605) 评论(0) 推荐(0) 编辑
摘要:kernel/Makefile 阅读全文
posted @ 2017-07-31 17:59 wangchangruei 阅读(405) 评论(0) 推荐(0) 编辑
摘要:目標 因為對 device tree 不是很熟悉, 所以就將 device tree, 設為學習目標。 啟動 注意, 這篇隨筆的解說都放在最下面,會標 Explanation_XX,只要搜尋 Explanation_XX 往上找,就可以看到 source code 要解說的點, 總之就是多找幾遍,如 阅读全文
posted @ 2017-07-13 19:46 wangchangruei 阅读(7807) 评论(0) 推荐(0) 编辑
摘要:為 device node 取 label name, 可以在其它位置使用 &label 存取 device node。 Ex ./arch/arm/boot/dts/stm32f429.dtsi ./arch/arm/boot/dts/stm32f429 disco.dts 阅读全文
posted @ 2017-06-24 22:37 wangchangruei 阅读(835) 评论(0) 推荐(0) 编辑
摘要:打印 PMIC register value 方式有二種, 一種是使用 adb shell cat pmic register 一種是直接在 code 裡 call dump pmic register function, 一直在 log 中印出 pmic register. 阅读全文
posted @ 2017-06-21 19:39 wangchangruei 阅读(942) 评论(0) 推荐(0) 编辑
摘要:device tree source Example1 Example2 Example3 阅读全文
posted @ 2017-06-21 15:56 wangchangruei 阅读(614) 评论(0) 推荐(0) 编辑
摘要:device tree source Example1 Example2 Example3 Example4 阅读全文
posted @ 2017-06-19 22:13 wangchangruei 阅读(2578) 评论(0) 推荐(1) 编辑
摘要:Creating .config file 以上命令是 將變數 ARCH=arm,CROSS_COMPILE=arm none eabi 傳進 Makefile 裡使用, 在 ./arch/arm/configs下有一隻給 stm32 board 使用的設定檔 stm32_defconfig 使用 阅读全文
posted @ 2017-06-18 18:36 wangchangruei 阅读(289) 评论(0) 推荐(0) 编辑
摘要:command Makefile content output 阅读全文
posted @ 2017-06-18 18:04 wangchangruei 阅读(271) 评论(0) 推荐(0) 编辑
摘要:usage 在使用 gdb debug 程式前, compile 需要加 g 產生 debug information, g3 為最多 debug information 以及 加 O0 程式不要優化 Do not print the introductory and copyright messa 阅读全文
posted @ 2017-05-04 19:15 wangchangruei 阅读(558) 评论(0) 推荐(0) 编辑
摘要:This is for Devicetree Specification Release 0.1 Interrupt Mapping Example p19 在講解前,先帶進一些 PCI 的基礎觀念 pci device 的 其中一種 type address 由下方組成 為什麼 硬體要連成這樣子呢 阅读全文
posted @ 2017-04-24 11:42 wangchangruei 阅读(1641) 评论(0) 推荐(0) 编辑