历史上的今天
今天是:2024年12月16日(星期一)
2020年12月16日 | TQ210 —— s5pv210u-boot.lds分析
2020-12-16 来源:eefocus
/*
* (C) Copyright 2002
* Gary Jennejohn, DENX Software Engineering, * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, * MA 02111-1307 USA */ // u-boot.lds决定了u-boot可执行映像的连接方式,以及各个段的装载地址(装载域)和执行地址(运行域)。 // 这个文件指定了各个文件链接后的先后排序。 OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm") /*OUTPUT_FORMAT("elf32-arm", "elf32-arm", "elf32-arm")*/ OUTPUT_ARCH(arm) ENTRY(_start) SECTIONS { /* 指定可执行image文件的全局入口点,通常这个地址都放在ROM(flash)0x0位置。 必须使编译器知道这个地址,通常都是修改此处来完成 */ . = 0x00000000; /* .表示当前,当前地址是0,但这不是_start地址,会被TETX_BASE替代 */ /* 代码段基地址,boardsamsungTQ210config.mk中定义,TEXT_BASE=0x23e00000 无论这里是什么都会被TEXT_BASE替代,所以这里的这个地址是不起作用的 */ . = ALIGN(4); /* 4字节对齐 */ .text : @ 指定代码段 { @ 执行顺序,start.S先运行 cpu/s5pv210/start.o (.text) cpu/s5pv210/s5pv210/cpu_init.o (.text) board/samsung/TQ210/lowlevel_init.o (.text) /* cpu/s5pc11x/onenand_cp.o (.text) */ cpu/s5pv210/nand_cp.o (.text) cpu/s5pv210/movi.o (.text) /*common/secure_boot.o (.text)*/ common/ace_sha1.o (.text) cpu/s5pv210/pmic.o (.text) * (.text) @ 其它代码部分 } . = ALIGN(4); .rodata : { *(.rodata) } @ 指定只读数据段 . = ALIGN(4); .data : { *(.data) } @ 指定读写数据段 . = ALIGN(4); .got : { *(.got) } @ 指定got段,got段式是uboot自定义的一个段,非标准段 __u_boot_cmd_start = .; @ u_boot命令段起始 .u_boot_cmd : { *(.u_boot_cmd) } __u_boot_cmd_end = .; @ u_boot命令段结束 . = ALIGN(4); .mmudata : { *(.mmudata) } @ mmu数据 . = ALIGN(4); __bss_start = .; @ bss段起始 .bss : { *(.bss) } _end = .; @ bss段结束 }
史海拾趣
|
编译DirectDrawCreateEx 出错!!请高手指点!! 编译时 DirectDrawCreateEx 有问题,代码如下: if( FAILED( dirdr = DirectDrawCreateEx( NULL, (VOID**)&m_pDD,IID_IDirectDraw7, NULL ) ) ) return FALSE; 连接库有: winmm.lib dx ...… 查看全部问答> |
|
比如以前,我们说微处理器的出现是因为大规模集成电路的使用,那么请问最近这十年的性能的飙升是因为什么? 像内存,为什么以前只有64KB那么多,一下子飙升了上百倍,上千倍,而且体积还是那么大? … 查看全部问答> |
|
汇编不好,看UBOOT刚启动就困住了,好几天了都还没整明白。 在汇编语言子论坛里发过,但没有什么同学。来这里试试。 ================start16.s================ #define BOOT_SEG 0xffff0000 &n ...… 查看全部问答> |
|
程序中的一块要实现软件看门狗功能,中间到reboot(0x00)并不能实现目标机重启,求高手指点~~~ /*includes*/ #include \"vxWorks.h\" #include \"logLib.h\" #include \"math.h\" #include \"stdioLib.h\" #include \"stdio.h\" #incl ...… 查看全部问答> |
|
首先 在网站www.mcu123.com下载 软件 。 然后是安装。 STEP1:将下载好的文件解压缩,得到一个虚拟光驱文件TLF-SOFT-12.30.05.ARM.RealView.Developer.Suite.v2.2-ZWTiSO.bin。用虚拟光驱打开它,点击SETUP.exe一路默认安装RVD ...… 查看全部问答> |




