Building and Installing Linux uImage on the NXP i.MX RT1024 EVK Board Print


This note explains how to install a bootable Linux image to the SD Card of the NXP i.MX RT1024 EVK board. Having installed a Linux image to the SD Card, you would be able to boot Linux on the target automatically on any power up or reset cycle.

Instructions of how to build the sample Linux image (rootfs.uImage) from the Emcraft software distribution is described in Building Linux.

To install the sample Linux image (rootfs.uImage) from the Emcraft software distribution just follow the instructions:

  1. Make sure that SD Card is formatted.
  2. Remove SD Card from the NXP i.MX RT1024 EVK board, and plug it into PC.
  3. Find out a /dev/sdX device the system has assigned to your SD Card:
  4. $ dmesg | tail
    sd 1:0:0:0: [sdb] 31116288 512-byte logical blocks: (15.9GB/14.8 GiB)
    sd 1:0:0:0: [sdb] Cache data unavailable
    sd 1:0:0:0: [sdb] Assuming drive cache: write through
    sd 1:0:0:0: [sdb] Cache data unavailable
    sd 1:0:0:0: [sdb] Assuming drive cache: write through
    sdb: sdb1

  5. Mount the first partition of the SD Card, and copy rootfs.uImage file:
  6. $ sudo mount /dev/sdb1 /mnt
    $ cp rootfs.uImage /mnt

  7. Umount, and safely remove the SD Card:
  8. $ sudo umount /mnt
    $ sync

  9. Insert the SD Card back to the SD Card holder on the NXP i.MX RT1024 EVK board. Power on the EVK board. Connect to the serial console, and make sure that Linux boot up to console:
  10. U-Boot SPL 2022.04 (Jul 04 2023 - 14:46:31 +0000) Trying to boot from MMC1 U-Boot 2022.04 (Jul 04 2023 - 14:46:31 +0000) DRAM: 32 MiB Core: 60 devices, 13 uclasses, devicetree: separate MMC: FSL_SDHC: 0 Loading Environment from MMC... OK In: serial@40184000 Out: serial@40184000 Err: serial@40184000 Net: eth0: ethernet@402D8000 Hit any key to stop autoboot: 0 6940777 bytes read in 635 ms (10.4 MiB/s) ## Booting kernel from Legacy Image at 80007fc0 ... Image Name: Linux-5.15.71 Image Type: ARM Linux Multi-File Image (uncompressed) Data Size: 6940713 Bytes = 6.6 MiB Load Address: 80008000 Entry Point: 80008001 Contents: Image 0: 6934720 Bytes = 6.6 MiB Image 1: 5981 Bytes = 5.8 KiB Verifying Checksum ... OK ## Flattened Device Tree from multi component Image at 80007FC0 Booting using the fdt at 0x806a50cc Loading Multi-File Image Loading Device Tree to 81d83000, end 81d8775c ... OK Starting kernel ... Booting Linux on physical CPU 0x0 Linux version 5.15.71 (sasha@workbench.emcraft.com) (arm-none-eabi-gcc (GNU Arm Embedded Toolchain 10.3-2021.10) 10.3.1 20210824 (release), GNU ld (GNU Arm Embedded Toolchain 10.3-2021.10) 2.36.1.20210621) #2 Tue Jul 4 14:44:18 UTC 2023 CPU: ARMv7-M [411fc271] revision 1 (ARMv7M), cr=00000000 CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache OF: fdt: Machine model: NXP IMXRT1024 EVK board …… Run /init as init process init started: BusyBox v1.24.2 (2023-07-04 14:44:03 UTC) [69] Jan 01 00:00:01 Running in background / # mmc0: host does not support reading read-only switch, assuming write-enable mmc0: new SDHC card at address 0001 mmcblk0: mmc0:0001 00000 7.37 GiB mmcblk0: p1 Micrel KSZ8081 or KSZ8091 402d8000.ethernet-1:02: attached PHY driver (mii_bus:phy_addr=402d8000.ethernet-1:02, irq=POLL) / # ls bin etc httpd lib proc sbin tmp var dev hello.ko init mnt root sys usr / #