![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
文章平均质量分 79
记录自己每日解决问题的方法和心得
从明天起20200323
闭门造车,出门合辙
展开
-
TI AM5728搭载BCM5482S phy芯片
phy_init-->mdio_bus_init 注册mdio_bus_type总线。 --> phy_driver_register 注册通用phy驱动,并匹配device在这里注册的genphy_driver一般不会被特定的设备绑定。然后在绑定时调用Driver->bus->match接口,最终调用到mdio_bus_type->mdio_bus_match。Phydriver注册到mdio_bus_type总线流程如下:static ...原创 2021-03-22 16:50:15 · 521 阅读 · 0 评论 -
AM5728 phy初始化卡死问题
根据TI官方debug信息https://processors.wiki.ti.com/index.php/Ethernet_Triage_Checklist_for_AM3x/4x/5x_CPSW可以看出出现以下信息说明phy的硬件是没有问题的,之后出现的问题TI才会去提供帮助。[ 3.053916] cpsw 48484000.ethernet: Detected MACID = 34:03:de:ef:5e:54[ 3.060541] cpsw 48484000.ethernet:...原创 2020-09-30 15:28:07 · 1171 阅读 · 0 评论 -
linux clk时钟初始化
实例记录的是AM335X 时钟初始化框架,具体细节还没来得及深究,仅供自己记录学习用。/arch/arm/mach-omap2/board_generic.cDT_MACHINE_START(AM33XX_DT, "Generic AM33XX (Flattened Device Tree)") .reserve = omap_reserve, .map_io = am33xx_map_io, .init_early = am33xx_init_ea...原创 2020-09-22 17:55:49 · 818 阅读 · 0 评论 -
Linux 重要接口函数
读取dts中的属性值的接口:of_property_read_stringof_property_read_string_indexof_property_read_u8of_property_read_u32of_property_read_u8_arrayof_property_read_u32_arrayof_property_read_u16of_property_read_u16_array中断解析接口:irq_of_parse_and_map;根据devi原创 2020-09-22 14:11:53 · 212 阅读 · 0 评论 -
Linux 中断框架
start_kernel -----------------init/main.c ---->init_IRQ(选择Linux通用初始化函数,还是板子自带初始化函数)-------arch/arm/kernel/irq.c ---------->irqchip_init---------------------driver/irqchip/irqchip.c ------------------->of_irq_init()-----------...原创 2020-09-22 11:23:42 · 215 阅读 · 0 评论 -
pinctrl和gpio DTS解析
linux pinctrl和gpio两个部分的dts解析规则可以参考如下两片blog。https://www.cnblogs.com/zhuangquan/p/12750736.htmlhttps://blog.csdn.net/shiyongyue/article/details/75103446原创 2020-09-10 19:46:29 · 545 阅读 · 0 评论 -
Linux dts解析phandle
在每个dts的设备节点下device_node,如果有交叉引用其他设备节点的,即反编译出来的dts文件中有引用对应的phandle的,可用如下方法解析。timer4_pins:timer4_pin_default{AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1)};&timer4{ pinctrl-0 = <&timer4-pins>;};编译后就会在timer4节点下,生成phandle = &l.原创 2020-09-10 19:38:09 · 3715 阅读 · 0 评论 -
创建UBUNTU根文件系统 RK3288
准备工作安装 qemu在 Linux PC 主机上安装模拟器:sudo apt-get install qemu-user-static下载和解压 ubuntu-coreFirefly-RK3399 Ubuntu 根文件系统是基于 Ubuntu base 16.04 来创建的。用户可以到 ubuntu cdimg 下载,选择下载 ubuntu-base-16.04.1-base-arm64.tar.gz。下载完之后,创建临时文件夹并解压根文件系统:mkdir tempsudo tar原创 2020-06-24 15:02:36 · 454 阅读 · 0 评论 -
Linux信号 应用层 kernel 通过信号通讯
Linux信号getpid 获取应用进程pid号,通过ioctl发送到kernel驱动层pid =find_get_pid(pid num)查找进程pid描述符task = pid_task查找tasksend_sig(sig, task, 0)以上为完整kernel和应用层信号应用范例...原创 2020-04-27 11:47:53 · 305 阅读 · 0 评论 -
linux platform驱动流程整理
kernel4.19 驱动注册module_platform_driver <——include/linux/platform_device.h include/linuxmodule_driver <—— include/linux/device.h platform_driver_register <—— drivers/base/platform.c ...原创 2020-03-28 16:21:12 · 208 阅读 · 0 评论 -
Vmware workstation 恢复VMnet0桥接虚拟网卡的方法
标题ssh串口出现Network error:Software caused connection abort解决办法一、一般可用下面方法解决#1在 linux下的ssh命令:vim /etc/ssh/ssh_config#然后找到里面的ServerAliveInterval 参数,如果没有你同样自己加一个就好了。参数意义相同,都#是秒数,比如9分钟:ServerAliveInterva...原创 2020-03-24 19:35:12 · 474 阅读 · 0 评论