Support Booting from QSPI Flash in Linux BSP for the i.MX RT1170 Targets
- 1 1. Overview
- 2 2. Requirements
- 3 3. Design
- 3.1 3.1. Design: U-Boot Boot from QSPI Flash
- 3.2 3.2. Design: U-Boot sf Commands
- 3.3 3.3. Design: U-Boot Environment in QSPI Flash
- 3.4 3.4. Design: Install U-Boot Images to the QSPI Flash using Serial Downloader
- 3.5 3.5. Design: Install Linux Images to the QSPI Flash using U-Boot Command Line Interface
- 3.6 3.6. Design: Linux Boot from QSPI Flash
- 3.7 3.7. Design: Linux Device Driver for QSPI Flash and Flash File System
- 4 4. Test Plan
- 4.1 4.1. Secure Download Area
- 4.2 4.2. Downloadable Files
- 4.3 4.3. Test Set-Up
- 4.3.1 4.3.1. Hardware Set-Up
- 4.3.2 4.3.2. Software Set-Up
- 4.3.2.1 4.3.2.1. MCUXpresso Secure Provisioning Tool
- 4.3.2.2 4.3.2.2. U-Boot Build:
- 4.3.2.3 4.3.2.3. Linux Build:
- 4.4 4.4. Detailed Test Plan
- 4.4.1 4.4.1. Test Plan: U-Boot Boot from QSPI Flash
- 4.4.2 4.4.2. Test Plan: U-Boot sf Commands
- 4.4.3 4.4.3. Test Plan: U-Boot Environment in QSPI Flash
- 4.4.4 4.4.4. Test Plan: Install U-boot Images to QSPI Flash
- 4.4.5 4.4.5. Test Plan: Install Linux Images (JFFS2 variant) to QSPI Flash
- 4.4.6 4.4.6. Test Plan: Linux Boot from QSPI Flash (JFFS2 variant)
- 4.4.7 4.4.7. Test Plan: Linux Device Driver for QSPI Flash and Flash File System (JFFS2 variant)
- 4.4.8 4.4.8. Test Plan: Install Linux Images (UBIFS variant) to QSPI Flash
- 4.4.9 4.4.9. Test Plan: Linux Boot from QSPI Flash (UBIFS variant)
- 4.4.10 4.4.10. Test Plan: Linux Device Driver for QSPI Flash and Flash File System (UBIFS variant)
1. Overview
The following is a high-level overview of the problem being resolved by this project:
This project develops support for booting from QSPI Flash in the Linux i.MX RT1170 BSP.
Note: This project is developed for MIXMRT1170-EVK board only. Since the MIXMRT1170-EVKB and Avnet MaaXBoard-RT use a different type of QSPI/Hyperbus Flash, this AN does not apply to those boards.
2. Requirements
The following are the requirements for this project:
Support booting of U-Boot from QSPI Flash, with no reliance on presence of SD Card or any other storage devices.
Rationale: Explicit customer requirement.
Implementation: Section: "Design: U-Boot Boot from QSPI Flash".
Test: Section: "Test Plan: U-Boot Boot from QSPI Flash".
Support the U-Boot standard SPI Flash commands (the
sfcommands family) for QSPI Flash.Rationale: Explicit customer requirement.
Implementation: Section: "Design: U-Boot sf Commands".
Test: Section: "Test Plan: U-Boot sf Commands".
Store the U-Boot environment in QSPI Flash.
Rationale: Explicit customer requirement.
Implementation: Section: "Design: U-Boot Environment in QSPI Flash".
Test: Section: "Test Plan: U-Boot Environment in QSPI Flash".
Support installation of the U-Boot images to the QSPI Flash using the IMXRT1170 Serial Downloader feature.
Rationale: Explicit customer requirement.
Implementation: Section: "Design: Install U-Boot Images to the QSPI Flash using Serial Downloader".
Test: Section: "Test Plan: Install U-boot Images to QSPI Flash".
Support installation of the Linux images to QSPI Flash from the networking from the U-Boot command line interface.
Rationale: Explicit customer requirement.
Implementation: Section: "Design: Install Linux Images to the QSPI Flash using U-Boot command line interface".
Test: Section: "Test Plan: Install Linux Images (JFFS2 variant) to QSPI Flash", Section: "Test Plan: Install Linux Images (UBIFS variant) to QSPI Flash".
Support Linux boot from QSPI Flash, in the following configuration:
multiimage including kernel and DTB loaded from QSPI Flash to RAM for execution;
root file system mounted in QSPI Flash as the read-write Flash file system (JFFS2 or UBIFS optionally).
Rationale: Explicit customer requirement.
Implementation: Section: "Design: Linux Boot from QSPI Flash".
Test: Section: "Test Plan: Linux Boot from QSPI Flash (JFFS2 variant)", Section: "Test Plan: Linux Boot from QSPI Flash (UBIFS variant)".
Support QSPI Flash in Linux. This must include support for Linux Flash file system.
Rationale: Explicit customer requirement.
Implementation: Section: "Design: Linux Device Driver for QSPI Flash and Flash File System".
Test: Section: "Test Plan: Linux Device Driver for QSPI Flash and Flash File System (JFFS2 variant)", Section: "Test Plan: Linux Device Driver for QSPI Flash and Flash File System (UBIFS variant)".
2.2. Detailed Non-Requirements
The following are the non-requirements for this project that may otherwise not be obvious:
Support for any Flash devices other than the QSPI Flash device present on the NXP IMXRT1170-EVK boards is not required.
Rationale: Costs reduction measure.
Support for Linux boot scenarios other than the one listed in Section: "Detailed Requirements" is not required.
Rationale: Costs reduction measure.
3. Design
A dedicated configuration file imxrt1170-evk-qspi_defconfig will be added to U-Boot to support booting from the QSPI Flash on the NXP IMXRT1170-EVK board. The standard build procedure will be used to generate the bootable SPL and TPL images. The Makefile in the U-Boot source tree will be updated to generate the special header and prepend it to the general SPL image in order to make it bootable from the QSPI Flash if the corresponding option is enabled in the config file, the resulting file will be saved with the ".flexspi" extension in the filename. So in case of the imxrt1170-evk-qspi configuration the resultunt binaries from the make command for U-Boot will be SPL.flexspi and u-boot.img images:
make imxrt1170-evk-qspi_defconfig
make
ls SPL.flexspi u-boot.img The SPL.flexspi image must be programmed to the QPSI flash on the NXP IMXRT1170-EVK board at offset 0. The image consists of the U-Boot SPL and two i.MXRT1170-specific headers:
Image Vector Table (IVT);
The FlexSPI Configuration Block.
The Image Vector Table is generated by mkimage using the board/freescale/imxrt1170-evk/imximage.cfg configuration file.
The The FlexSPI Configuration Block is compiled from the board/freescale/imxrt1170-evk/flexspi_cb.c file. This file contains the FlexSPI Configuration Block parameters, as per the corresponding Processor Reference Manual.
The u-boot.img image is the U-Boot TPL itself. It must be programmed to the QPSI flash on the NXP IMXRT1170-EVK board at offset 0x10000.
The default configuration will be set up to support the ISSI QSPI Flash installed on the EVK board.
The standard U-Boot sf commands will be enabled in the U-Boot configuration to support the SPI Flash read, erase and write operations.
Whenever the corresponding configuration described above is selected in U-Boot, the U-Boot environment will be stored in the QSPI Flash.
The environment, along with the redundant environment copy, will be placed at the address range 0x60000 - 0x80000 in the QSPI Flash.
The QSPI Flash device will be logically divided into 4 sections to store the software components of the system:
0x000000 - 0x060000- U-Boot (both SPL + TPL images)0x060000 - 0x080000- U-Boot Environment0x080000 - 0x880000- Kernel Image (multi image including the kernel and the device tree blob)0x880000 - 0x1000000- Root File System
The IMXRT1170 Serial Downloader feature can be used to write the SPL and TPL images to U-Boot section of the QSPI Flash on the IMXRT1170-EVK board. The SPL.flexspi image must be installed at offset 0 of the QSPI Flash, the u-boot.img image must be installed at offset 0x10000 of the QSPI Flash.
The NXPs MCUXpresso Secure Provisioning Tool (actual version for Nov 2024 is v10) can be used to install the SPL and TPL image to the QSPI Flash. The tool is available for download at NXP's web site: MCUXpresso Secure Provisioning Tool This tool provides graphical user interface to program images to the on board mass storage for various NXP's EVK boards.
For user convenience, the dedicated installation script imxrt_install.sh will be provided for installing U-Boot using the command line interface. The script will invoke only the blhost utility from the Secure Provisioning Tool, so running the whole tool set is not necessary. The flashloader binary required by blhost will be provide along with the installation script. The script and the flashloader is part of the linux-cm-imxrt117x-x.x.x installation (starting from linux-cm-imxrt117x-3.0.7 and are available in the tools/bin.
Script usage is as foolows:
$ imxrt_install.sh - script to install the bootable U-Boot and Linux images to external
QSPI Flash or HypeFlash memory on the IMXRT-based board using SDP over USB
Usage: imxrt_install.sh [-p project] [-t fstype] [options]
Options:
-f flashloader.bin specify alternative path to the flashloader.bin file;
default is:
/home/qa/linux-cm-imxrt117x-3.3.1/tools/bin/unsigned_MIMXRT1176_flashloader.bin
-b blhost specify alternative path to the blhost utility; default
is /opt/nxp/MCUX_Provi_25.03/bin/_internal/tools/spsdk/blhost
-d sdphost specify alternative path to the sdphost utility; default
is
-S install the SPL image from the current build environment:
/home/qa/linux-cm-imxrt117x-3.3.1/u-boot/SPL.flexspi
-s SPL.flexspi install the SPL image from an alternative location
-U install the main U-Boot image from the current build environment:
/home/qa/linux-cm-imxrt117x-3.3.1/u-boot/SPL.flexspi
-u u-boot.img install the main U-Boot image from an alternative location
-I install the Linux uImage from the current build environment:
/home/qa/linux-cm-imxrt117x-3.3.1/projects/rootfs/rootfs.uImage
-i uImage install the Linux uImage from an alternative location
-R install the rootfs Image from the current build environment:
-r RFSImage install the rootfs Image from an alternative location
-p project project name
-t fstype rootfs type (none or jffs2 or ubi)
-a install all - short alias for the -SUIR options
-v enable verbose
-h display this help
The QSPI Flash device will be logically divided into 4 sections to store the software components of the system:
0x000000 - 0x060000- U-Boot (both SPL + TPL images)0x060000 - 0x080000- U-Boot Environment0x080000 - 0x880000- Kernel Image (multi image including the kernel and the device tree blob)0x880000 - 0x1000000- Root File System
The following commands will be defined in the U-Boot environment to update the kernel and rootfs components:
sf_kernel_update- Update the Kernel sectionsf_rootfs_update- Update the RootFS section
For the NXP i.MXRT1170 BSP the sf_*_update commands will download images from the TFTP server via networking and install them to the corresponding section in the QSPI Flash. The names of the images to download will be constructed automatically using the following U-Boot environment variables:
project- is the project name, default isrootfs_flashfstype- is the type of the flash file system image :jffs2orubi, default isjffs2
The name of the kernel multiimage in the sf_kernel_update command is ${project}.uImage, i.e. rootfs_flash.uImage in the default settings. The name of the rootfs image in the sf_rootfs_update command is ${project}.${fstype}, i.e. rootfs_flash.jffs2 in the default settings.
The separate project projects/rootfs_flash will be created to demonstrate booting Linux from QSPI flash. The following main feature will be enabled in the new project:
Support for the QSPI Flash will be enabled in the kernel configuration.
initramfswill be disabled in the kernel configuration. Instead the root filesystem will be mounted on JFSS2 or alternatively on an UBIFS file system in the QSPI Flash.The kernel and the DTB images will be built in a single multi-part image.
To implement these features the following options will be added to the common build rules and will be used in Makefile for the rootfs_flash project:
RFS_BUILD_DIR- temporary directory to build the root file system imageFLASHFS_TYPE- to select certain file system image to build:jffs2orubiMKFSUBIFS_FLAGS- Flash-specific flags for themkfs.ubifsutility (ifFLASHFS_TYPEisubi)UBINIZE_FLAGS- Flash-specific flags for theubinizeutility (ifFLASHFS_TYPEisubi)SEPARATE_DTB- tells the make either build the multi-part image or save the DTB separately.
The existing nxp-fspi driver from the common NXP's codebase will be used to provide support for the FlexSPI controller. The driver will be updated to support the i.MXTRT1170 SoC.
The MTD, SPI_MEM, MTD_SPI_NOR kernel features will be enabled in the rootfs_flash project's configurations, so that the QSPI Flash will be available in Linux as a standard MTD device.
The UBI, UBIFS and JFFS2 related options will be enabled to support for Linux Flash file systems.
4. Test Plan
The downloadable materials developed by this project are available from a secure Web page on the Emcraft Systems web site. Specifically, proceed to the following URL to download the software materials.
for the i.MX RT1170 BSP:
The page is protected as follows:
Login: CONTACT EMCRAFT
Password: CONTACT EMCRAFT
The following files are available from the secure download area for this release:
SPL.flexspi- Bootable U-Boot SPL image to be installed to the QSPI Flash.u-boot.img- U-Boot TPL image to be installed to the QSPI Flash.rootfs_flash.uImage- Multiimage with Linux kernel and DTB.rootfs_flash.jffs2- JFFS2 image with Linux rootfs.rootfs_flash.ubi- UBIFS image with Linux rootfs.u-boot.patch- Source code patch to U-Boot.projects.patch- Source code patch toprojects/.
4.3. Test Set-Up
4.3.1. Hardware Set-Up
The following hardware set-up is required for execution of the test plan in this project:
A development host Linux PC.
The NXP IMXRT1170-EVK board.
The NXP IMXRT1170-EVK Board is connected to LAN using the J3 100M ENET connector.
The NXP IMXRT1170-EVK Board is connected to the development host via the J11 micro-USB connector to provide Serial Console.
The NXP IMXRT1170-EVK Board is connected to the development host via the J20 micro-USB connector for Serial Downloader.
4.3.2. Software Set-Up
4.3.2.1. MCUXpresso Secure Provisioning Tool
Download and install the
MCUXpresso Secure Provisioning ToolfromMCUXpresso Secure Provisioning Tool
Make sure the
blhostutility is available from the standard destination of theMCUXpresso Secure Provisioning Toolinstallation:$ ls /opt/nxp/MCUX_Provi_25.03/bin/_internal/tools/spsdk/blhost /opt/nxp/MCUX_Provi_25.03/bin/_internal/tools/spsdk/blhost
4.3.2.2. U-Boot Build:
Apply the U-Boot patch from the top of the fresh
linux-cortexminstallation:$ cd u-boot $ patch -p1 < ../u-boot.patchBuild the U-Boot images bootable from QSPI Flash
Configure and build U-Boot for QSPI Flash
for the IMXRT1170 EVK board:
$ make mrproper $ make imxrt1170-evk-qspi_defconfig $ make
4.3.2.3. Linux Build:
Apply the Linux and
projects/patches:$ cd linux $ patch -p1 < ../linux.patch $ cd ../projects $ patch -p1 < ../projects.patchBuild the
rootfs_flashproject in the defaultjffs2configuration:$ cd rootfs_flash $ makeRedefine
FLASHFS_TYPEasubito build therootfs_flashproject in theubiconfiguration:$ cd rootfs_flash $ make FLASHFS_TYPE=ubiCopy the resultant images to a TFTP server:
$ sudo cp rootfs_flash.uImage rootfs_flash.jffs2 rootfs_flash.ubi ~/tmp/
Prebuilt Binaries: For convenience, the prebuilt binaries resulting from the above build procedure are available in the area documented in Section: "Downloadable Files".
4.4. Detailed Test Plan
The following step-wise test procedure will be used:
Power off the target board.
Set-up the
SW1switch on the target board for the Serial Downloader mode (SW1/3=OFF,SW1/4=ON)Power on the target board.
Run the
imxrt_install.shscript in terminal with activated cross-development environment:$ $ imxrt_install.sh -SU starting flashloader ... Loading image [####################################] 100% Response status = 0 (0x0) Success. Response status = 0 (0x0) Success. Response status = 0 (0x0) Success. Response status = 0 (0x0) Success. Response status = 0 (0x0) Success. erasing 0x30000000+0x10000 ... Response status = 0 (0x0) Success. Writing memory [####################################] 100% Response status = 0 (0x0) Success. Response word 1 = 55064 (0xd718) erasing 0x30010000+0x50000 ... Response status = 0 (0x0) Success. Writing memory [####################################] 100% Response status = 0 (0x0) Success. Response word 1 = 306520 (0x4ad58) $Power off the target board.
Set-up the
SW1andSW2switches on the target board to boot from QSPI Flash (SW1/1=OFF,SW1/2=OFF,SW1/3=ON,SW1/4=OFF,SW2allOFF)Power on the target board.
Validate that U-Boot has successfully booted from QSPI Flash:
U-Boot SPL 2025.04 (Jan 26 2026 - 08:05:26 +0000) Trying to boot from NOR U-Boot 2025.04 (Jan 26 2026 - 08:05:26 +0000) Model: NXP imxrt1170-evk board DRAM: 64 MiB Core: 78 devices, 17 uclasses, devicetree: separate MMC: FSL_SDHC: 0 Loading Environment from SPIFlash... SF: Detected is25wp128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB OK In: serial@4007c000 Out: serial@4007c000 Err: serial@4007c000 Net: eth0: ethernet@40424000 Hit any key to stop autoboot: 0 =>
The following step-wise test procedure will be used:
Boot U-Boot from QSPI Flash.
Probe the QSPI Flash. Make sure that the correct Flash info is printed out to the console:
=> sf probe 0 SF: Detected is25wp128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB =>Read the U-Boot partition to RAM:
=> sf read 0x80000000 0 0x60000 device 0 offset 0x0, size 0x60000 SF: 327680 bytes @ 0x0 Read: OK =>Make sure the FlexSPI Configuration Block is at the offset 0x400 of the read data: the 4 symbols at offset 0x400 must be "FCFB" for the IMXRT1170-EVK boards:
=> md 0x80000400 1 80000400: 42464346 FCFB =>Erase an area in the middle of QSPI Flash:
=> sf erase 0x300000 0x60000 SF: 393216 bytes @ 0x300000 Erased: OK =>Write the U-Boot image to the erased area:
=> sf write 0x80000000 0x300000 0x60000 device 0 offset 0x300000, size 0x60000 SF: 393216 bytes @ 0x300000 Written: OK =>Read it back to a separate area in RAM:
=> sf read 0x81000000 0x300000 0x60000 device 0 offset 0x300000, size 0x60000 SF: 393216 bytes @ 0x300000 Read: OK =>Make sure that the data in 2 areas are identical:
=> cmp.b 0x80000000 0x81000000 0x60000 Total of 393216 byte(s) were the same =>
The following step-wise test procedure will be used:
Define and save a test variable:
=> setenv testvar testval => saveenv Saving Environment to SPIFlash... Erasing SPI flash...Writing to SPI flash...done Valid environment: 2 OK =>Reset the board:
=> resetMake sure the test variable exists and has the correct value:
=> print testvar testvar=testval =>
The following step-wise test procedure will be used:
The procedure for initial installation of the U-Boot imaged described in Section: "Test Plan: U-Boot Boot from QSPI Flash" can be used to re-install U-boot on the working board, another components, including the U-Boot environment, linux kernel and
rootfswill not be damaged by this:$ imxrt_install.sh -s ~/SPL.flexspi -u ~/u-boot.img starting flashloader ... Loading image [####################################] 100% Response status = 0 (0x0) Success. Response status = 0 (0x0) Success. Response status = 0 (0x0) Success. Response status = 0 (0x0) Success. Response status = 0 (0x0) Success. erasing 0x30000000+0x10000 ... Response status = 0 (0x0) Success. Writing memory [####################################] 100% Response status = 0 (0x0) Success. Response word 1 = 55064 (0xd718) erasing 0x30010000+0x50000 ... Response status = 0 (0x0) Success. Writing memory [####################################] 100% Response status = 0 (0x0) Success. Response word 1 = 306520 (0x4ad58) $
The following step-wise test procedure will be used:
Boot U-Boot from QSPI Flash.
Reset the environment:
=> env default -f -a => saveenv =>Set IP addresses as per actual networking settings:
=> setenv ipaddr 192.168.1.117 => setenv serverip 192.168.1.73 => setenv gatewayip 192.168.1.1 => saveenv =>Make sure the
JFFS2file system type is selected:=> printenv fstype fstype=jffs2 =>Install the software components:
=> sf probe 0 SF: Detected is25wp128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB => run sf_kernel_update Using ethernet@40424000 device TFTP from server 192.168.1.73; our IP address is 192.168.1.117 Filename 'imxrt1170/rootfs_flash.uImage'. Load address: 0x80007fc0 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################# 6 MiB/s done Bytes transferred = 7154353 (6d2ab1 hex) SF: 8388608 bytes @ 0x80000 Erased: OK device 0 offset 0x80000, size 0x6d2ab1 SF: 7154353 bytes @ 0x80000 Written: OK => run sf_rootfs_update Using ethernet@40424000 device TFTP from server 192.168.1.73; our IP address is 192.168.1.117 Filename 'imxrt1170/rootfs_flash.jffs2'. Load address: 0x80007fc0 Loading: ################################################### 5.8 MiB/s done Bytes transferred = 741596 (b50dc hex) SF: 7864320 bytes @ 0x880000 Erased: OK device 0 offset 0x880000, size 0xb50dc SF: 741596 bytes @ 0x880000 Written: OK =>
The following step-wise test procedure will be used:
This item requires the JFFS2 image installed to the QSPI Flash as per Section: "Test Plan: Install Linux Images (JFFS2 variant) to QSPI Flash" and the fstype variable is set as jffs2 in the U-Boot environment.
Reset the board and make sure it automatically boots up to
busybox:=> reset ... This architecture does not have kernel memory protection. Run /sbin/init as init process / #
The following step-wise test procedure will be used:
This item requires the JFFS2 image installed to the QSPI Flash as per Section: "Test Plan: Install Linux Images (JFFS2 variant) to QSPI Flash" and the
fstypevariable is set asjffs2in the U-Boot environment.Boot from the QSPI Flash up the
busyboxshell.Make sure that the rootfs partition is mounted as the Linux root file system:
/ # mount mtd3 on / type jffs2 (rw,relatime) devtmpfs on /dev type devtmpfs (rw,relatime) proc on /proc type proc (rw,relatime) sysfs on /sys type sysfs (rw,relatime) devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000) / #Make copy of the
busyboxbinary in the Flash-based root file system and reboot:/ # cp /bin/busybox / / # rebootAfter reboot, make sure that the original file and the copy are identical:
/ # md5sum /busybox /bin/busybox 27e837025a0a4457ea11b7ecd187d6a4 /busybox 27e837025a0a4457ea11b7ecd187d6a4 /bin/busybox / #
The following step-wise test procedure will be used:
Boot U-Boot from QSPI Flash.
Reset the environment:
=> env default -f -a => saveenv =>Set IP addresses as per actual networking settings:
=> setenv ipaddr 192.168.1.117 => setenv serverip 192.168.1.73 => setenv gatewayip 192.168.1.1 => saveenv =>Set the
UBIfile system type and save the environment:=> setenv fstype ubi => saveenv Saving Environment to SPIFlash... Erasing SPI flash...Writing to SPI flash...done Valid environment: 2 OK =>Install the software components:
=> sf probe 0 SF: Detected is25wp128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB => run sf_kernel_update Using ethernet@40424000 device TFTP from server 192.168.1.73; our IP address is 192.168.1.117 Filename 'imxrt1170/rootfs_flash.uImage'. Load address: 0x80007fc0 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################# 6 MiB/s done Bytes transferred = 7154353 (6d2ab1 hex) SF: 8388608 bytes @ 0x80000 Erased: OK device 0 offset 0x80000, size 0x6d2ab1 SF: 7154353 bytes @ 0x80000 Written: OK => run sf_rootfs_update Using ethernet@40424000 device TFTP from server 192.168.1.73; our IP address is 192.168.1.117 Filename 'imxrt1170/rootfs_flash.ubi'. Load address: 0x80007fc0 Loading: ################################################################# #################################################### 5.9 MiB/s done Bytes transferred = 1703936 (1a0000 hex) SF: 7864320 bytes @ 0x880000 Erased: OK device 0 offset 0x880000, size 0x1a0000 SF: 1703936 bytes @ 0x880000 Written: OK =>
The following step-wise test procedure will be used:
This item requires the UBIFS image installed to the QSPI Flash as per Section: "Test Plan: Install Linux Images (UBIFS variant) to QSPI Flash" and the
fstypevariable is set asubiin the U-Boot environment.Reset the board and make sure it automatically boots up to
busybox:=> reset ... This architecture does not have kernel memory protection. Run /sbin/init as init process / #
The following step-wise test procedure will be used:
This item requires the UBIFS image installed to the QSPI Flash as per Section: "Test Plan: Install Linux Images (UBIFS variant) to QSPI Flash" and the
fstypevariable is set asubiin the U-Boot environment.Boot from the QSPI Flash up the
busyboxshell.Make sure that the rootfs partition is mounted as the Linux root file system:
/ # mount ubi0:rootfs on / type ubifs (rw,relatime,assert=read-only,ubi=0,vol=0) devtmpfs on /dev type devtmpfs (rw,relatime) proc on /proc type proc (rw,relatime) sysfs on /sys type sysfs (rw,relatime) devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000) / #Make copy of the
busyboxbinary in the Flash-based root file system and reboot:/ # cp /bin/busybox / / # rebootAfter reboot, make sure that the original file and the copy are identical:
/ # md5sum /busybox /bin/busybox 27e837025a0a4457ea11b7ecd187d6a4 /busybox 27e837025a0a4457ea11b7ecd187d6a4 /bin/busybox / #