05 2021 档案
摘要:include/uapi/linux/input-event-codes.h188#define KEY_MUTE 113189#define KEY_VOLUMEDOWN 114190#define KEY_VOLUMEUP 115191#define KEY_POWER 116 /* SC Sy
阅读全文
摘要:userdata.img里的block count等于userdata partition size/block_size build/core/Makefile define build-userdataimage-target $(call pretty,"Target userdata fs
阅读全文
摘要:注册tick event handler为tick_handle_periodic,在每个系统tick到来时将回调此tick event handler: clockevents_register_devicetick_check_new_devicetick_setup_devicetick_se
阅读全文
摘要:历经一年多时间的系统整理合补充,《手机安全和可信应用开发指南:TrustZone与OP-TEE技术详解 》一书得以出版,书中详细介绍了TEE以及系统安全中的所有内容,全书按照从硬件到软件,从用户空间到内核空间的顺序对TEE技术详细阐述,读者可从用户空间到TEE内核一步一步了解系统安全的所有内容,同时
阅读全文
摘要:Cache是eMMC中临时存储数据的位置,相比于Nand,Cache可以提供更快的存取速度。一般可以用于临时存放逻辑数据、算法表格等等。Cache大小由Devcie在EXT CSD中给出,以1KB为单位。Host可以通过设置EXT CSD[33] CACHE_CTRL来进行使能。Host可以通过Fl
阅读全文
摘要:内核reboot流程 kernel/reboot.c void kernel_restart(char *cmd) { kernel_restart_prepare(cmd); migrate_to_reboot_cpu(); syscore_shutdown(); if (!cmd) pr_eme
阅读全文
摘要:Power Off Notification (PON) 1) Short Power Off Notification: Host shall expect a shorter timeout when this command is executed. The max value is defi
阅读全文
摘要:really_probe() platform_device_register platform_device_add device_add bus_probe_device device_initial_probe __device_attach __device_attach_driver dr
阅读全文
摘要:ro.boot.bootreason property设置(androidboot.xxxx bootargs) system/core/init.cpp static void process_kernel_cmdline() { // The first pass does the common
阅读全文
摘要:kernel exception vector table kernel里异常vector table define在如下位置,(1)/(2)/(3)/(4)部分分别对应上面table中的第1、2、3、4行。 一个vector占128字节,在该vector里,会有branch指令跳转到对应的exce
阅读全文
摘要:compile/link misc .pushsection ".entry.text", "ax" permission permission 字段用于指明 section 的权限。section 权限包括: “a” (可分配)、 “w” (可写)、”r” (可读)、”x” (可执行),permi
阅读全文
摘要:user space syscall/library API misc get thread name get thread name:char threadname[20] = {'\0'};prctl(PR_GET_NAME,(unsigned long)threadname);get pid:
阅读全文
摘要:LIUNX SHELL中-a 到-z的解释 [ -a FILE ] 如果 FILE 存在则为真。[ -b FILE ] 如果 FILE 存在且是一个块特殊文件则为真。[ -c FILE ] 如果 FILE 存在且是一个字特殊文件则为真。[ -d FILE ] 如果 FILE 存在且是一个目录则为真。
阅读全文