会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
aspirs
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
39
下一页
2022年6月21日
makefile misc
摘要: makefile misc make cmd中传入参数 用origin函数来判断 ifeq ($(origin CMD_LINE_VAR), command line) 获取所执行的Makefile所在的路径 root-dir := $(realpath $(dir $(realpath $(MAK
阅读全文
posted @ 2022-06-21 13:56 aspirs
阅读(28)
评论(0)
推荐(0)
2022年6月13日
从一个文件里读取出每一行,并解析每一行
摘要: 从一个文件里读取出每一行,并解析每一行 #!/bin/bash callstack_file=${1} cat ${callstack_file} | while read line do entry=`echo ${line} | grep entry -w` if [ -n "${entry}"
阅读全文
posted @ 2022-06-13 21:53 aspirs
阅读(53)
评论(0)
推荐(0)
2022年6月12日
uboot入口boot flow(ARMv8)
摘要: uboot入口boot flow(ARMv8) uboot entry point是_start,这个在u-boot.lds里有define _start里执行b reset跳转到reset label处执行 19 .globl _start 20 _start: 21 #if defined(CO
阅读全文
posted @ 2022-06-12 18:48 aspirs
阅读(455)
评论(0)
推荐(0)
uboot misc
摘要: uboot misc global_data struct成员含义 mon_lenuboot image size,uboot image里包含.text,.rodata, .data, .u_boot_list, .bss等section,这些section size之和即是mon_len sta
阅读全文
posted @ 2022-06-12 18:43 aspirs
阅读(131)
评论(0)
推荐(0)
2022年6月9日
uboot relocation
摘要: uboot relocation platform: ARM64 arch/arm/lib/crt0_64.S uboot分为relocation前和relocation后两个stage,这两个stage stack所在的位置不同 对于relocation前,在_main()里设置sp的初始值为CO
阅读全文
posted @ 2022-06-09 17:51 aspirs
阅读(183)
评论(0)
推荐(0)
2022年5月25日
driver misc
摘要: driver misc driver probe函数调用callstack [ 0.073075][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.147-gac0f89dbd82d-dirty #1 [ 0.073080][ T1] Hardw
阅读全文
posted @ 2022-05-25 10:52 aspirs
阅读(37)
评论(0)
推荐(0)
2022年5月19日
uboot 2019 uclass、udevice
摘要: uboot 2019 uclass、udevice uclass链表 drivers/core/uclass.c uclass_get,根据uclass_id去get,如果没有find到,则调用uclass_add()将uclass添加到gd->uclass_root链表里,uclass是用UCLA
阅读全文
posted @ 2022-05-19 17:57 aspirs
阅读(360)
评论(0)
推荐(0)
2022年4月27日
cpp msic
摘要: cpp misc std::set iterate方法 // Set of strings std::set<std::string> setOfStr = { "jjj", "khj", "bca", "aaa", "ddd" }; // Creating a iterator pointing
阅读全文
posted @ 2022-04-27 10:40 aspirs
阅读(44)
评论(0)
推荐(0)
2022年4月20日
Android misc
摘要: Android misc 解压boot.img里的ramdisk ramdisk包含在boot.img里,想要解压ramdisk,首先需要解包boot.img unpack boot.img(AN 11) 使用/system/tools/mkbootimg/unpack_bootimg.py来unp
阅读全文
posted @ 2022-04-20 21:13 aspirs
阅读(728)
评论(0)
推荐(0)
2022年4月18日
drivers misc
摘要: module_platform_driver(xxx)最终展开后就是如下形式:static int __init xxx_init(void){undefined return platform_driver_register(&xxx);}module_init(xxx_init);static
阅读全文
posted @ 2022-04-18 20:24 aspirs
阅读(39)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
39
下一页
公告