系统移植中的关键文件

在运行时均可使用make  V=1 显示文件的编译过程从而找到链接文件,从中找到入口文件。

uboot:
    ../uboot/include/configs/x6818.h  记录开放板的硬件信息。    
    ../uboot/u-boot.lds    链接脚本记录入口地址。

busybox:
    init/init.c    记录了busybox引导根文件系统的过程。

kernel:
    /opt/kernel/arch/arm/kernel/vmlinux.lds  链接脚本,记录了kernel的入口文件head.S
    arch/arm/mach-s5p6818/cpu.c    相关开发板的硬件信息。     

static void __init cpu_init_machine(void)
{
       //S5P6818内部控制器的注册
        nxp_cpu_devs_register();
     //x6818开发板硬件驱动注册。    
        nxp_board_devs_register();
}
原文地址:https://www.cnblogs.com/DXGG-Bond/p/11811480.html