imx6q u-boot 启动脚本分析
来源:互联网 发布:咨询行业 知乎 编辑:程序博客网 时间:2024/06/07 03:27
bootcmd=
run findfdt; (1)
mmc dev ${mmcdev}; (mmc dev 2) (2)
if mmc rescan; then (3)
if run loadbootscript; then
run bootscript;
else
if run loadimage; then (4)
run mmcboot; (13)
else
run netboot;
fi;
fi;
else
run netboot;
fi
loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image} (fatload mmc 2:1 0x12000000 zImage 从第2块mmc设备的1分区 装载zImage到内存的0x12000000位置) (5)
mmcboot=
echo Booting from mmc ...; (6)
run mmcargs; (7)
if test ${boot_fdt} = yes || test ${boot_fdt} = try; then (9)
if run loadfdt; then (10)
bootz ${loadaddr} - ${fdt_addr}; (12)
else
if test ${boot_fdt} = try; then
bootz;
else
echo WARN: Cannot load the DT;
fi;
fi;
else
bootz;
fi;
mmcargs=setenv bootargs console=${console},${baudrate} ${smp} root=${mmcroot} (setenv bootargs console=ttymxc0,115200 root=/dev/mmcblk3p2 rootwait rw) (8)
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file} (fatload mmc 2:1 0x18000000 imx6q-sabresd.dtb) (11)
findfdt=
if test $fdt_file = undefined; then
if test $board_name = SABREAUTO && test $board_rev = MX6QP; then
setenv fdt_file imx6qp-sabreauto.dtb;
fi;
if test $board_name = SABREAUTO && test $board_rev = MX6Q; then
setenv fdt_file imx6q-sabreauto.dtb;
fi;
if test $board_name = SABREAUTO && test $board_rev = MX6DL; then
setenv fdt_file imx6dl-sabreauto.dtb;
fi;
if test $board_name = SABRESD && test $board_rev = MX6QP; then
setenv fdt_file imx6qp-sabresd.dtb;
fi;
if test $board_name = SABRESD && test $board_rev = MX6Q; then
setenv fdt_file imx6q-sabresd.dtb;
fi;
if test $board_name = SABRESD && test $board_rev = MX6DL; then
setenv fdt_file imx6dl-sabresd.dtb;
fi;
if test $fdt_file = undefined; then
echo WARNING: Could not determine dtb to use;
fi;
run findfdt; (1)
mmc dev ${mmcdev}; (mmc dev 2) (2)
if mmc rescan; then (3)
if run loadbootscript; then
run bootscript;
else
if run loadimage; then (4)
run mmcboot; (13)
else
run netboot;
fi;
fi;
else
run netboot;
fi
loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image} (fatload mmc 2:1 0x12000000 zImage 从第2块mmc设备的1分区 装载zImage到内存的0x12000000位置) (5)
mmcboot=
echo Booting from mmc ...; (6)
run mmcargs; (7)
if test ${boot_fdt} = yes || test ${boot_fdt} = try; then (9)
if run loadfdt; then (10)
bootz ${loadaddr} - ${fdt_addr}; (12)
else
if test ${boot_fdt} = try; then
bootz;
else
echo WARN: Cannot load the DT;
fi;
fi;
else
bootz;
fi;
mmcargs=setenv bootargs console=${console},${baudrate} ${smp} root=${mmcroot} (setenv bootargs console=ttymxc0,115200 root=/dev/mmcblk3p2 rootwait rw) (8)
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file} (fatload mmc 2:1 0x18000000 imx6q-sabresd.dtb) (11)
findfdt=
if test $fdt_file = undefined; then
if test $board_name = SABREAUTO && test $board_rev = MX6QP; then
setenv fdt_file imx6qp-sabreauto.dtb;
fi;
if test $board_name = SABREAUTO && test $board_rev = MX6Q; then
setenv fdt_file imx6q-sabreauto.dtb;
fi;
if test $board_name = SABREAUTO && test $board_rev = MX6DL; then
setenv fdt_file imx6dl-sabreauto.dtb;
fi;
if test $board_name = SABRESD && test $board_rev = MX6QP; then
setenv fdt_file imx6qp-sabresd.dtb;
fi;
if test $board_name = SABRESD && test $board_rev = MX6Q; then
setenv fdt_file imx6q-sabresd.dtb;
fi;
if test $board_name = SABRESD && test $board_rev = MX6DL; then
setenv fdt_file imx6dl-sabresd.dtb;
fi;
if test $fdt_file = undefined; then
echo WARNING: Could not determine dtb to use;
fi;
fi;
阅读全文
0 0
- imx6q u-boot 启动脚本分析
- [IMX6Q]u-boot启动kernel流程
- [IMX6Q]u-boot环境变量原理分析
- U-boot启动分析
- U-boot启动分析
- U-BOOT启动分析
- U-BOOT启动分析
- u-boot启动分析
- u-boot链接脚本分析
- u-boot链接脚本分析
- U-Boot启动内核分析
- u-boot启动代码分析
- u-boot启动过程分析
- U-Boot启动内核分析
- u-boot启动参数分析
- u-boot启动流程分析
- u-boot启动代码分析
- DM365 u-boot 启动分析
- 群主吓得瑟瑟发抖?再不用怕了:群主对群成员言行担责纯属误读
- iPhone X停产?iPhone 8滞销?最后黄牛赢了...
- 1000万额度!支付宝上线新产品:余利宝
- 京东云任成元:技术驱动的第四次零售革命
- 第九届未来赢销峰会四宗“最”
- imx6q u-boot 启动脚本分析
- 试过的都哭了?腾讯回应微信卡死Bug:别乱试!正在紧急修复
- eclipse 快捷键大全,eclipse查找类,文件,添加注释
- 【CIO早班车】用云计算创新太难?那是因为你还不了解ICp!
- HDU 1181-变形课
- Schlumberger GeoFrame 4.3+PTV VISSIM
- leetcode--8. String to Integer (atoi)
- android事件分发机制
- 双内核 IE兼容性模式及设置方法