Ash*_*mar 0 linux-kernel u-boot
我试图了解嵌入式 Linux 原理,但无法在 u-boot 输出中找出地址。
如何找到U-boot的起始地址?
例如,我有基于 i.MX6 四核处理器的 MX6-SabreSD 板,我从 U-Boot 得到以下输出:
U-Boot 2015.10-rc3 (Aug 10 2017 - 13:33:34)
CPU: Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: POR
Board: MX6-SabreSD
DRAM: 1 GiB
MMC: FSL_SDHC: 0
No panel detected: default to LDB-WVGA
Display: LDB-WVGA (800x480)
In: serial
Out: serial
Err: serial
Net: using phy at 6
FEC [PRIME]
Warning: FEC MAC addresses don't match:
Address in SROM is 00:c0:08:88:a5:e6
Address in environment is 00:c0:08:88:9c:ce
Hit any key to stop autoboot: 0
Booting from mmc ...
4788388 bytes read in 303 ms (15.1 MiB/s)
## Booting kernel from Legacy Image at 12000000 ...
Image Name: Linux-3.0.35
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4788324 Bytes = 4.6 MiB
Load Address: 10008000
Entry Point: 10008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
Starting kernel ...
Run Code Online (Sandbox Code Playgroud)
U-boot起始地址?
U-Boot 的起始地址使用符号CONFIG_SYS_TEXT_BASE指定,该符号通常定义在板的配置头文件中,即include/configs/.h。
对于 i.MX6 板,此值通常为 0x17800000。
但是可执行文件会将自己重新定位到上层 RAM。如果您有构建文件,
可以通过查看System.map或u-boot.map文件来确认起始地址。
和 u-boot.imx 文件包含?
该U型boot.imx文件是i.MX片上系统的ROM启动码使用的二进制图像。
它由标准的u-boot.bin可执行文件组成,但前面有一个 0xC00 字节头。
详细信息在 U-Boot 文档文件doc/README.imximage 中,它描述了如何构建二进制文件并将其写入媒体。
如何找到U-boot的起始地址?
起始地址似乎存储在u-boot.imx文件的偏移量 0x4(以及 0x14 的加载地址)处(尽管我无法找到确认)。
该U型boot.imx文件存储在你的SD卡开始第三部门(即字节偏移量0x400)。
请参阅与将二进制文件写入 SD 卡相关的嵌入式 linux ARM 启动地址。
| 归档时间: |
|
| 查看次数: |
4218 次 |
| 最近记录: |