
uart
文章平均质量分 79
zll5258
这个作者很懒,什么都没留下…
展开
-
uart调试
0.000000]@0 CPU: 0 PID: 0 Comm: swapper Nottainted 3.10.84-gc02f4f9-03166-g8c8a4c4-dirty #40[ 0.000000]@0 Call trace:[ 0.000000]@0 []dump_backtrace+0x0/0x270[ 0.000000]@0 []show_stack+0原创 2016-11-08 15:10:32 · 563 阅读 · 0 评论 -
Uart-log-ALL
[156940] fastboot: download:009ead28[158410] fastboot: flash:boot[158410] boot is not yl image[158610] fastboot: reboot[158610] rebooting the device[158610] SCM call: 0x2000110 failed with :原创 2016-11-08 17:12:46 · 6199 阅读 · 0 评论 -
Linux内核中的初始化initcall_t
基于Linux 2.6.32include\asm-generic\Vmlinux.lds.h中有如下定义:这等于是安排了名称如.initcall[s].init的一系列section的顺序,level越小,越靠前。符号__initcall_start记录了这片区域的开始,__initcall_end符号记录了这片区域的结束。__early_initcall_end则将这片区域更进转载 2016-11-08 17:08:31 · 1064 阅读 · 0 评论 -
.initcall##level##.init
//-----------------------kernel/init/main.c static void __init do_initcall_level(int level){extern const struct kernel_param __start___param[],__stop___param[];initcall_t *fn; strcpy(sta原创 2016-11-08 17:07:21 · 1133 阅读 · 0 评论 -
cmdline值
[1380] cmdline: console=ttyHSL0,115200,n8androidboot.console=ttyHSL0 androidboot.hardware=qcom msm_rtb.filter=0x237ehci-hcd.park=3 androidboot.bootdevice=7824900.sdhcilpm_levels.sleep_disabled=1logl原创 2016-11-08 17:05:10 · 1158 阅读 · 0 评论 -
cmdline传递
uboot向kernel的传参机制——bootm与tags 一uboot 如何启动 kernel1 do_bootmuboot下使用bootm命令启动内核镜像文件uImage,uImage是在zImage头添加了64字节的镜像信息供uboot解析使用,具体这64字节头的内容,我们在分析bootm命令的时候就会一一说到,那直接来看bootm命令。在common转载 2016-11-08 15:46:03 · 1677 阅读 · 0 评论 -
.init.setup 位置
在内核里经常可以看到__init,__devinit这样的语句,这都是在init.h中定义的宏,gcc在编译时会将被修饰的内容放到这些宏所代表的section。其典型的定义如下:#define __init __section(.init.text) __cold notrace#define __initdata __section(.init.data)转载 2016-11-08 15:44:29 · 445 阅读 · 0 评论 -
early_param流程
Linux内核源码中多处会看到诸如__init,__initdata,__exitdata的关键字, 大部分这样的关键字定义在include/linux/init.h头文件中,它们都会在编译连接阶段被实现处理。 #define __init __section(.init.text) __cold notrace __init标记的数据被存储在.init.text节 #de原创 2016-11-08 15:32:44 · 2579 阅读 · 0 评论 -
Start_kernel中的参数
[ 0.000000]@0 zll----early=0,str=rdinit=[ 0.000000]@0 zll----early=0,str=init=[ 0.000000]@0 zll----early=1,str=loglevel[ 0.000000]@0 zll----early=1,str=quiet[ 0.000000]@0 zll---原创 2016-11-08 15:14:28 · 461 阅读 · 0 评论 -
uart之kenel调用流程
Start_kernel()--------------------------------------kernel\init\main.c-->setup_arch(&command_line);----------------解析console=-->parse_early_param();-----------------------解析androidboot.mode=charge原创 2016-11-08 15:12:25 · 258 阅读 · 0 评论 -
Android启动流程 -- linux kernel
linux启动 一、zImage是怎样炼成的? zImage是linux内核编译之后产生的最终文件,它的生成过程比较复杂,这里不谈编译过程,只聊聊编译的最后阶段: 1. arm-linux-gnu-ld用arch/arm/kernel/vmlinux.lds、arch/arm/kernel/head.o、arch/arm/kernel/init_转载 2016-11-08 17:14:53 · 404 阅读 · 0 评论