This note explains how to install a bootable Linux image to the SD Card of the NXP i.MX RT10XX 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:
Make sure that SD Card is formatted.
Remove SD Card from the NXP i.MX RT10XX EVK board, and plug it into PC.
Find out a
/dev/sdX
device the system has assigned to your SD Card:Code Block $ 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
Mount the first partition of the SD Card, and copy
rootfs.uImage
file:Code Block $ sudo mount /dev/sdb1 /mnt $ cp rootfs.uImage /mnt
Umount, and safely remove the SD Card:
Code Block $ sudo umount /mnt $ sync
Insert the SD Card back to the SD Card holder on the NXP i.MX RT10XX EVK board. Power on the EVK board. Connect to the serial console, and make sure that Linux boot up to console:
Code Block U-Boot SPL 2024.04 (Dec 19 2024 - 08:16:46 +0000) Trying to boot from MMC1 U-Boot 2024.04 (Dec 24 2024 - 06:30:18 +0000) DRAM: 32 MiB Core: 79 devices, 18 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 8579371 bytes read in 5857 ms (1.4 MiB/s) ## Booting kernel from Legacy Image at 80007fc0 ... Image Name: Linux-6.6.36 Image Type: ARM Linux Multi-File Image (uncompressed) Data Size: 8579307 Bytes = 8.2 MiB Load Address: 80008000 Entry Point: 80008001 Contents: Image 0: 8567460 Bytes = 8.2 MiB Image 1: 11835 Bytes = 11.6 KiB Verifying Checksum ... OK ## Flattened Device Tree from multi component Image at 80007FC0 Booting using the fdt at 0x80833ab0 Working FDT set to 80833ab0 Loading Multi-File Image to 80008000 Loading Device Tree to 81dfa000, end 81dffe3a ... OK Working FDT set to 81dfa000 Starting kernel ... Booting Linux on physical CPU 0x0 Linux version 6.6.36 (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 PREEMPT Tue Dec 24 06:42:32 UTC 2024 ..... Run /init as init process [51] Jan 01 00:52:31 Running in background / # Micrel KSZ8081 or KSZ8091 402d8000.ethernet-1:02: attached PHY driver (mii_bus:phy_addr=402d8000.ethernet-1:02, irq=POLL) fec 402d8000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off random: crng init done / # ls bin hello.ko lib proc sbin usr dev httpd linuxrc root sys var etc init mnt run tmp / #