uboot linux kernel 交汇处

来源:互联网 发布:windows蓝屏代码查询器 编辑:程序博客网 时间:2024/05/05 00:01

1. kernel command line:

在uboot阶段,会出现这行Log,具体调用是在:bootable/bootloader/uboot/arch/arm/lib/bootm.c

在kernel阶段,也会出现这行log,具体调用是在:kernel/init/main.c,

可以参考文档:kernel/Documentation/arm/Setup

详见内核参数解析:http://emblinux.sinaapp.com/ar01s17.html


kernel/include/generated/mach-types.h

#ifndef __ASSEMBLY__/* The type of machine we're running on */extern unsigned int __machine_arch_type;#endif#define MACH_TYPE_MT6575               6575#ifdef CONFIG_MACH_MT6575# ifdef machine_arch_type#  undef machine_arch_type#  define machine_arch_type __machine_arch_type# else#  define machine_arch_type MACH_TYPE_MT6575# endif# define machine_is_mt6575()    (machine_arch_type == MACH_TYPE_MT6575)#else# define machine_is_mt6575()    (0)#endif#ifndef machine_arch_type#define machine_arch_type   __machine_arch_type#endif

machine_arch_type在kernel/arch/arm/kernel/setup.c中被调用

            mdesc = setup_machine_tags(machine_arch_type);

原创粉丝点击