加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

基于海思Hi3516dv300的u-boot-2016.11分析

发布时间:2020-12-14 01:11:49 所属栏目:Linux 来源:网络整理
导读:1.先看链接脚本文件u-boot.lds ,文件位于u-boot-2016.11archarmcpuarmv7hi3516dv300hw_compressed OUTPUT_FORMAT( " elf32-littlearm " , " elf32-littlearm " , " elf32-littlearm " )OUTPUT_ARCH(arm) /* 设置输出文件的架构体系为arm架构 */ENTRY(

1.先看链接脚本文件u-boot.lds ,文件位于u-boot-2016.11archarmcpuarmv7hi3516dv300hw_compressed

OUTPUT_FORMAT("elf32-littlearm","elf32-littlearm","elf32-littlearm")
OUTPUT_ARCH(arm)                 /* 设置输出文件的架构体系为arm架构 */
ENTRY(_start)                    /* 将_start的值设置为入口地址 */
SECTIONS
{
    . = 0x80700000;
    __image_copy_start =.;          /* 镜像起始地址 = 0x80700000 */
    . = ALIGN(4);
    .text    :                      /* 代码段 */
    {
        __text_start = .;
        start.o (.text*)
        init_registers.o (.text*)
        lowlevel_init_v300.o (.text*)
        ddr_training_impl.o (.text*)
        ddr_training_console.o (.text*)
        ddr_training_ctl.o (.text*)
        ddr_training_boot.o (.text*)
        ddr_training_custom.o (.text*)
        uart.o (.text*)
        div0.o (.text*)
        emmc_boot.o (.text*)
        image_data.o (.text*)
            startup.o(.text*)
            reset.o(.text*)
        __init_end = .;
        ASSERT(((__init_end - __text_start) < 0x6000),"init sections too big!");
        *(.text*)
    }
    __text_end = .;

    . = ALIGN(4);
    .image : { *(.image) }

    . = ALIGN(4);
    .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }           /* 只读数据段 */

    . = ALIGN(4);
    .data : { *(.data) }                                                 /* 数据段 */

    . = ALIGN(4);
    .got : { *(.got) }                                                  /* got段 */

    . = ALIGN(4);
    __image_copy_end =.;
    __bss_start = .;
    .bss : { *(.bss) }                                                   /* bss段 */
    __bss_end = .;
    _end = .;
}

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读