上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 77 下一页
摘要: 答: 使用root命令,如: grub> set root=(hd0,msdos1) 阅读全文
posted @ 2019-08-15 17:47 Jello 阅读(656) 评论(0) 推荐(0)
摘要: 1. 获取notes git fetch origin refs/notes/*:refs/notes/* 2. 设置notes 2.1 git config --add core.notesRef refs/notes/{name} (需要注意替换name) 2.2 export GIT_NOTE 阅读全文
posted @ 2019-08-15 13:09 Jello 阅读(903) 评论(0) 推荐(0)
摘要: 1. 内核版本 5.2.0 2. 请看devm_regmap_init_i2c (include/linux/regmap.h) 3. 看看__regmap_lockdep_wrapper 4. KBUILD_BASENAME的定义在哪里? 在编译时由编译选项-D提供,如此处为: -DKBUILD_ 阅读全文
posted @ 2019-08-14 15:16 Jello 阅读(2490) 评论(0) 推荐(0)
摘要: 1. 定义如下: (include/linux/kernel.h) #define IS_ALIGNED(x, a) (((x) & ((typeof(x))(a) - 1)) == 0) 2. 实例拆解 IS_ALIGNED(reg, map->reg_stride) -> (((reg) & ( 阅读全文
posted @ 2019-08-14 10:17 Jello 阅读(841) 评论(0) 推荐(0)
摘要: 调用过程如下: hwclock -w -> xioctl(RTC_SET_TIME); -> rtc_dev_ioctl() -> rtc_set_time() 阅读全文
posted @ 2019-08-13 19:00 Jello 阅读(618) 评论(0) 推荐(0)
摘要: 答: 步骤如下: 1. git submodule init 2. git submodule update 阅读全文
posted @ 2019-08-13 17:06 Jello 阅读(1886) 评论(0) 推荐(0)
摘要: 一. hwclock 1.1 hwclock源码在哪里? util-linux 或者busybox 1.2 获取源码 git clone https://github.com/karelzak/util-linux.git 或 git clone git://git.busybox.net/busy 阅读全文
posted @ 2019-08-13 16:51 Jello 阅读(3214) 评论(0) 推荐(0)
摘要: 1. 硬件架构 arm64 2. 内核版本 4.19 3. 分析相关函数 setup_arch() -> psci_dt_init() -> psci_0_2_init() -> get_set_conduit_method() -> of_property_read_string(np, "met 阅读全文
posted @ 2019-08-12 15:30 Jello 阅读(2695) 评论(0) 推荐(0)
摘要: 1. 安装homebrew $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 2. 安装python3 $ brew install python3 阅读全文
posted @ 2019-08-09 23:34 Jello 阅读(418) 评论(0) 推荐(0)
摘要: 1. 内核版本 4.19 2. 在arch/arm/kernel/sleep.S中实现如下: 阅读全文
posted @ 2019-08-09 18:19 Jello 阅读(671) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 77 下一页