2.1 bootz_start 调用函数 do_bootm_states,执行 BOOTM_STATE_START 阶段。 593 行,设置 images 的 ep,也就是系统镜像的入口点,使用 bootz 命令启动系统的时候就会设置系统在 DRAM 中的存储位置,这个存储位置就是系统镜像的入口点,因此 images->ep=0X80800000。镜像加载地址定义在incl
bootz[addr [initrd[:size]][fdt]] 命令bootz 有三个参数,addr 是 Linux 镜像文件在 DRAM 中的位置,initrd 是 initrd 文件在DRAM 中的地址,如果不使用 initrd 的话使用 ‘-’ 代替即可,fdt 就是设备树文件在 DRAM 中的地址。 TFTP启动:Linux 镜像文件和设备树都准备好,使用 tftp 命令将 zImage 下载到 DRA...
1、uboot 的本质工作是引导操作系统如 Linux,所以 uboot 肯定有相关的引导(boot) 命令来启动操作系统。常用的跟系统引导有关的命令有:bootm、bootz 和 boot。 2、要启动 Linux,需要: (1)将 Linux 镜像文件拷贝到 DRAM 中。如果使用到设备树的话也需要将设备树 拷贝到 DRAM 中。 ①可以从SD卡中将 Linux 镜像...
bootz命令 bootz和bootm功能类似,但是bootz用于启动zImage镜像文件,bootz命令格式如下: bootz [addr [initrd[:size]] [fdt]] 命令bootz有三个参数,addr是 Linux镜像文件在DRAM中的位置,initrd是initrd文件在DRAM中的地址,如果不使用initrd的话使用‘-’代替即可,fdt就是设备树文件在DRAM中的地址,使用方法和bootm一...
2.查看命令的详细用法:? bootz 或 help bootz 3.信息查询命令:bdinfo、printenv、version bdinfo:用于查看板子信息 printenc:用于输出环境变量的信息,uboot中的环境变量都是字符串 bootdelay:表示bbuoot启动延时时间 version:用于查看uboot的版本号 4.环境变量操作命令 ...
bootz 80800000 - 83000000' saveenv boot 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. ⏩ 其他常用命令 reset #复位重启 go #用于跳到指定的地址处执行应用 run #用于运行环境变量中定义的命令 #例如通过“run bootcmd”来运行bootcmd中的启动命令 ...
bootz-boot Linux zImage image from memory clocks-display clocks clrlogo-fill the boot logo areawithblack cmp-memory compare coninfo-print console devices and information cp-memory copy crc32-checksum calculation dcache-enable or disable data cache ...
bootz [addr [initrd[:size]] [fdt]] - boot Linux zImage stored in memory The argument 'initrd' is optional and specifies the address of the initrd in memory. The optional argument ':size' allows specifying the size of RAW initrd.
bootz#用于启动zImage镜像文件bootm#用于启动uImage镜像文件boot#用于启动Linux系统的,该命令会读取环境变量bootcmd来启动Linuxbootcmd#环境变量保存着引导命令(启动的命令集合)###例如使用tftp命令从网络启动Linuxtftp80800000zImage #下载zImagetftp83000000imx6ull-14x14-emmc-7-1024x600-c.dtb #下载设备树bootz8080000...
,bootz_start函数执行过程参考下一小节。 第75行,调用函数bootm_disable_interrupts中断。 第行,设置images.os.os为IH_OS_LINUX,也就是设置系统镜像为Linux,我们要启动的是Linux。后面会用到images.os.os来选择具体的启动函数。 第78行,调用函数do_bootm_来不同的BOOT这里要执行的BOOT阶段有:BOOTMSTATE_...