ABB IMSET01
◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆
【厦门莫格电气自动化有限公司】
【Xiamen Mogget Electric Automation Co.,Ltd】
【当天顺丰发货,欢迎上门验货,不要犹豫,不要徘徊,错失良机,后悔晚矣】
【来电咨询:雷(女士)】
【销售热线请点上面↑↑↑↑↑↑↑↑↑↑】
【传真:0592-6514751 (请备注:雷琳收)】
【邮箱:1982497648@qq.com 】
◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆◆
IMSET01
IMSET01
IMSET01
-------------------------------
Toradex 在去年推出了 Toradex Easy Installer 操作系统安装工具。用户借助该工具能够以图形化界面的操作方式,在Toradex 的 Arm 计算机模块上方便地安装所需的操作系统,如 Linux、WinCE 以及 Toradex 合作伙伴提供的其他系统包括 QNX、安卓等。这极大降低了用户安装嵌入式系统的难度,同时也让产品的量产编程变得简单。
对于已经使用Toradex Easy Installer 安装完系统的用户,如果仍旧想要借助 Toradex Easy Installer 更新系统,需要进入 Arm 计算机模块的恢复模式, 连接 USB 接口至电脑。这种连接方法在有些场合下可能并不容易实现和操作。Linux用户则可以使用 U-Boot 的 distroboot 功能,直接从外部存储介质上启动 Toradex Easy Installer,并进行系统安装。通过这种方法可以实现本地更新系统。下面将介绍如何在Toradex 的 Arm 计算机模块上使用该功能。
2). 启用 U-Boot distroboot 功能
Toradex 默认的 U-Boot 并没有启用distroboot,需要在对应模块的配置文件添加 CONFIG_DISTRO_DEFAULTS,例如 Colibri iMX6 模块在 colibri_imx6_defconfig 末尾添加
---------------------------------
u-boot-toradex/configs/colibri_imx6_defconfig
CONFIG_DISTRO_DEFAULTS=y
---------------------------------
然后重新编译生成U-Boot 并更新到模块
---------------------------------
user@user-pc:~/Toradex/u-boot-toradex$ makecolibri_imx6_defconfig
user@user-pc:~/Toradex/u-boot-toradex$ make-j4
---------------------------------
3). 制作启动文件
Toradex U-Boot distroboot 支持从 U 盘、SD 卡或者网络(tftp)启动。你需要在 U 盘、SD 卡或者 tftp 根目录下存放 r 等相关文件。Toradex Easy Installer 已经包含所有的文件,解压后复制到对应目录即可。
Toradex Easy Installer 也是基于 Linux ,常用的 cmdline 同样也适用。如果你需要在 Toradex Easy Installer启动时加载其他功能,例如修改 devicetree,启用电容触摸屏功能,可以创建如下bootNaNd 文件
---------------------------------
# Set timings for 7" multitouch
setenv bootargs console=ttymxc0,115200quiet video=mxcfb0:dev=lcd,FusionF07A,if=RGB666 rootfstype=squashfsroot=/dev/ram autoinstall fullscreen ${teziargs}
# Reenable fdt relocation since in placefdt edits corrupt the ramdisk
# in a FIT image...
setenv fdt_high
# Load FIT image from location as detectedby distroboot
load ${devtype} ${devnum}:${bootpart}${ramdisk_addr_r} ${prefix}b
bootm start ${ramdisk_addr_r} &&bootm loados && bootm ramdisk && bootm fdt
# Enable capacitive multitouch driver
fdt set /soc/aips-bus@02100000/i2c@021a8000/atmel_mxt_ts@4astatus okay
bootm prep && bootm go
---------------------------------
然后生成用于启动的r
---------------------------------
user@user-pc:~/$ mkimage -A arm -O linux -Tscript -C none -a 0 -e 0 -n "Distro boot script" -d bootNaNd r
---------------------------------
4). U-Boot 启动 Toradex Easy Installer
将准好的 U 盘、SD 卡连接至 Toradex Arm 计算机模块,进入 U-Boot 命令模式,运行下面命令将启动 Toradex Easy Installer,而无需连接电脑并进入模块的恢复模式。
---------------------------------