uboot linux kernel 交汇处

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);

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值