[原创]QNX700 i.mx8(imx8)烧写方法及SD和eMMC boot步骤

如果你认为本系列文章对你有所帮助,请大家有钱的捧个钱场,点击此处赞助,赞助额0.1元起步,多少随意

声明:本文只用于个人学习交流,若不慎造成侵权,请及时联系我,立即予以改正

锋影

email:[email protected]

 

导入bsp到qnx ide:
If use the QNX Momentics IDE to build your BSP, you don't need to extract the ZIP file. To import the BSP code into the IDE:
1. If not already opened, open the QNX Momentics IDE. From the C/C++ Perspective, select File ➝
Import.
2. Expand the QNX folder.
3. Select QNX Source Package and BSP (archive) from the list and then click Next.
4. In the Select the archive file dialog, click Browse....
5. In the Open dialog box, navigate to and select the BSP archive file that you downloaded earlier, and then click Open and then click Next.
6. Confirm the BSP package you want is shown as the Selected Package list and then click Next to proceed importing the BSP archive file.
7. Optionally, set the Project Name and Location to import the BSP archive file. Defaults are provided for the project name and location, but you can override them if you choose.
8. Click Finish. The project is created and the source brought from the archive.
You should see the project in the Project Explorer view (e.g., bsp-nxp-imx8qxp-cpu). You can now build your BSP. For more information, see the “Build the BSP (IDE) ” section in the Build the BSP chapter of this guide.

制作SD boot卡

1. Start a Command Prompt window (e.g., on Windows 10, run Start Menu ➝ All Programs ➝ Accessories ➝ Command Prompt). Ensure that you start the Command Prompt window using Administrator privileges.
2. Run the diskpart utility from your Command Prompt window:
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved. C:\windows\system32>diskpart
Microsoft DiskPart version 6.3.9600
Copyright (C) 1999-2013 Microsoft Corporation. On computer: CI0700000001064
DISKPART>

3. Run the list disk command to get a list of available drives, then identify your SD card on this list (in this example, Disk 1):
DISKPART> list disk

DISKPART>
When the command is run with the card inserted, an additional disk should appear (in this case Disk 1). This additona is the target device. For the steps that follow, we'll be using Disk 1. Ensure you use the disk that matches your SD card.
4. Run the select disk command to perform operations on the SD card:
DISKPART > select disk 1
Disk 1 is now the selected disk. DISKPART >

 

5. Show the partitions on your disk on the SD card. In this case, there are two partitions:
DISKPART> list part
Partition ### Type Size Offset
------------- ---------------- ------- -------
Partition 1 Primary 512 MB 1024 KB
Partition 0 Primary 2048 MB 1125 MB

6. Delete all available partitions on the SD card:
DISKPART> select part 1
Partition 1 is now the selected partition. DISKPART> delete part
DiskPart successfully deleted the selected partition. DISKPART> select part 1
Partition 1 is now the selected partition. DISKPART> delete part
DiskPart successfully deleted the selected partition. DISKPART> list part
There are no partitions on this disk to show.
DISKPART>_


7. Create a partition with a 1 Mb offset, by running the following command:
DISKPART> create partition primary offset=1024
DiskPart succeeded in creating the specified partition. DISKPART>

8. Run the list partition command, to see the partition you created:
DISKPART> list partition
Partition ###

DISKPART> select partition 1
Partition 1 is now the selected partition. DISKPART>

10. Run the active command to make the partition active:
DISKPART> active
DiskPart marked the current partition as active.
11. Run the format command to format the partition:
DISKPART> format fs=fat32 quick
100 percent completed
DiskPart successfully formatted the volume. DISKPART>

12. Run the list partition command to verify that the partition is active and that you have the correct partition size and offset:
DISKPART> list partition
Partition ###

DISKPART>
The “*” (asterisk) beside the partition name indicates that the partition is active. You can now copy the QNX IPL or U-Boot file and IFS file to the partition.
13. Exit the diskpart utility:
DISKPART> exit Leaving

DiskPart... C:\windows\system32>

 

Emmc 烧写和boot方法

  1. imx8qxp-cpu-graphics.build 文件增加语句 mount -t dos /dev/emmc0t11 /
  2. 在ubuntu 使用vfae_release_2019_0531/qnx-imx8qxp/colibri-imx8qxp工具对 emmc 进行烧写

Sd卡烧写和boot方法

1.按照文档qnx bsp userguide进行格式化,分区,需要注意在分区按照下面执行:

 

Command (m for help): n
Partition type:
   p   primary (0 primary, 0 extended, 4 free)
   e   extended
Select (default p): p
Partition number (1-4, default 1): 1                      //输入1
First sector (2048-15523839, default 2048):    //回车
Using default value 2048                                      //回车
Last sector, +sectors or +size{K,M,G} (2048-15523839, default 15523839)://回车
Using default value 15523839           

2.拷贝source/image/ipl-imx8qxp-cpu.bin ipl文件到 burn/vfae_release_2019_0531/ipl_B0/B0/make_image_3G_VFAE目录执行 ./flash-imx8.sh 生成 ipl-imx8qxp-cpu_b0.bin镜像。
3.使用命令sudo dd if=ipl-imx8qxp-cpu_b0.bin of=/dev/sdc bs=1k seek=32 skip=0对SD卡烧写。

  1. 拷贝IPL和QNX-IFS 镜像拷贝到SD卡上即可。

 

  1. imx8qxp-cpu-graphics.build 文件增加语句 mount -t dos /dev/sd0t11 /

 

你可能感兴趣的:(QNX,操作系统平台,blackberry)