linux内核移植imx8,基于Toradex Imx8qxp 升级 Qnx Linux

使用Toradex imx8qxp板子 更新 Qnx 方法

登陆 my Ubuntu 机器

短路开发板上的烧写连线,上电.

输入命令 lsusb 如下 log说明已经进入到烧写模式

>(Bus 004 Device 006: ID 1fc9:012f NXP Semiconductors)

在编译完成的images目录下执行下面命令:

tar -cf QNX-IMAGE.tar QNX-IFS && xz -z QNX-IMAGE.tar

cp QNX-IMAGE.tar.xz E:/Colibri-iMX8QXP_Console-Image-Tezi_3.0b2.41-nightly

cp ipl-imx8qxp-cpu_b0.bin E:/Colibri-iMX8QXP_Console-Image-Tezi_3.0b2.41-nightly

执行下面命令:基于对Toradex 提供的更新工具修改后完成的

cd /home/fuchao/tftp/Toradex-install/ ./recovery-linux.sh

提示: 执行 ./recovery-linux.sh 后系统会在板子上运行一个临时系统

把带有 Qnx-compile-2019-0802 文件夹插入到板子的USB口上去完成升级。

升级linux

1.短路开发板上的烧写连线,上电 ubuntu 执行下面命令:

cd /home/fuchao/tftp/Toradex-uuu1 (ubuntu)

sudo ./uuu _flash.bin (ubuntu) # 执行uuu命令下载自己的_flash.bin文件到系统

2.在串口终端执行下面命令

mmc dev 1 #转换到 SD 卡

load mmc 1:1 $loadaddr flash.bin #读取镜像

setexpr blkcnt ${filesize} + 0x1ff && setexpr blkcnt ${blkcnt} / 0x200 #设置blkcnt

mmc dev 0 1 #转换到emmc 第一个分区里面去

mmc write ${loadaddr} 0x0 ${blkcnt} #写入当前地址镜像

env default -a; saveenv

在 (ubuntu) 执行下面命令:

bzcat fsl-image-validation-imx-colibri-imx8qxp-20190329152822.rootfs.sdcard.bz2 | sudo dd of=/dev/sdc bs=4M

4.单独更新内核在 (ubuntu)系统执行下面命令:

ums 0 mmc 0 #让imx8系统变为sdb命令,此时产生 `/dev/sdc`盘符

./cp_Image.sh

5.单独升级uboot:

把flash.bin 拷贝到 sd卡里面,启动机器安装上面2.命令进行操作即可。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
*************************** Freescale i.MX8QM MEK board *************************** This file documents the Buildroot support for the NXP i.MX8QM MEK board. You will find a reference to the board on nxp.com: https://www.nxp.com/design/development-boards/i.mx-evaluation-and-development-boards/i.mx-8quadmax-multisensory-enablement-kit-mek:MCIMX8QM-CPU You can also find the get started guide here: https://www.nxp.com/document/guide/get-started-with-the-i.mx-8quadmax-mek:GS-iMX-8QM-MEK Build ===== First, configure Buildroot for the i.MX8QM MEK board: $ make freescale_imx8qmmek_defconfig Build all components: $ make You will find in output/images/ the following files: - ahab-container.img - bl31.bin - boot.vfat - fsl-imx8qm-mek.dtb - Image - imx8-boot-sd.bin - mkimg.commit - mx8qm-mek-scfw-tcm.bin - mx8qm-val-scfw-tcm.bin - mx8qm-a0-ddr4-scfw-tcm.bin - mx8qm-a0-mek-scfw-tcm.bin - mx8qm-a0-val-scfw-tcm.bin - mx8qm-ddr4-scfw-tcm.bin - rootfs.ext2 - rootfs.ext4 - rootfs.tar - sdcard.img - u-boot-atf.bin - u-boot.bin - u-boot-hash.bin Create a bootable SD card ========================= To determine the device associated to the SD card have a look in the /proc/partitions file: cat /proc/partitions Buildroot prepares a bootable "sdcard.img" image in the output/images/ directory, ready to be dumped on a SD card. Launch the following command as root: dd if=output/images/sdcard.img of=/dev/ *** WARNING! This will destroy all the card content. Use with care! *** For details about the medium image layout, see the definition in board/freescale/common/imx/genimage.cfg.template_imx8. Boot the i.MX8QM MEK board ========================== To boot your newly created system: - insert the SD card in the SD slot of the board; - Configure the boot switch as follows: SW2: OFF OFF ON ON OFF OFF - put a micro USB cable into the Debug USB Port and connect using a terminal emulator at 115200 bps, 8n1; - power on the b

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值