ILD

dev_error与pr_error和printk的区别
2018-7-14
pr_*()和printk()一样,但是pr_*()包含了对应的KERN_XXXX。dev_*()和pr_*()一样,但是会打印struct device的标识信息。所以pr_info和dev_info并不是用在特定的启动阶段,用这些函数能打印出来的,printk也能。这和early printk用

aarch64 boot console init
2018-7-16
在启动过程中,start_kernel() (init/main.c) 在比较靠后的位置调用console_init()。console_init()定义在kernel/printk/printk.c,它调用存储在.con_initcall.init section中的函数:/* * Initial

QCA 9563 无线配置过程
2018-7-16
相关文件:/sbin/wifi/lib/wifi/qcawifi.sh/etc/config/wireless1 load加载下列驱动:mem_managerasfqdfath_dfsumacath_halath_rate_atheroshst_tx99ath_devqca_daqca_olath_

device tree for dummies
2018-7-16
Basic DT SyntaxRangesThe ranges property can describe an address translation between the child bus and the parent bus.参考:Thomas Petazzoni. Device tree

device tree kernel document
2018-7-18
The DT Block format内核被传递第一个指向一个内存区域的物理地址,它以一个头开始,定义在linux/of_fdt.hstruct boot_param_header { u32 magic; /* magic word OF_D

ctags
2018-7-22
使用cscope发现了一个重大的缺点,就是它包含了太多的输出,比如你要查找platform_driver结构体的定义,它会输出platform_driver的声明,很多变量等。真正的定义被淹没在输出中。因此又回过头来学习ctags。建立数据库ctags只能生成数据库,本身不能查询。支持的语言,可以使

vim使用系统剪切板
2018-7-22
检查VIM是否支持GUI不支持GUI版本的vim不能使用x-window的剪切板。$ vim --versionVIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)Included patches: 1-1689Extr

Platform driver
2018-7-22
像PCI bus和USB bus,可以发现连接到bus上的设备。有些设备是CPU不能发现的。因此需要通过某种方式显示地告诉有指定的设备。platform devices就是这种设备。platform driver就是处理这些设备的驱动。Platform driversstruct platform_

Platform devices and device trees
2018-7-22
前一篇文章,描述了内核处理不可发现设备的机制:platform devices。platform device scheme有一个很长的历史,而且使用广泛,但是它有一个缺点,必须在代码中实例化这些设备。device tree机制是后续更好的解决方法。device tree中的设备节点,有一个comp

Raspberry Pi 3 DS18B20 检测当前温度
2018-7-23
kernel config内核版本Rapsberry PI Linux/arm64 4.14.43,开启下列选项:Device Drivers -> Dalla's 1-wire support -> 1-wire Bus Masters -> GPIO 1-wire busmasterDevice

Copyright © linuxdev.cc 2017-2024. Some Rights Reserved.