The target Linux commands listed in this section will only work correctly if Linux is booted from SD card on the target hardware.
The phyCORE-AM57xx RDK is delivered with a pre-flashed bootloader and root file system. The following instructions will be useful if you would like to:
- Create a flashable NAND image
- Flash images to NAND
Create a NAND Root File System Image
To create a flashable NAND root file system image, follow these steps on your host PC. In these steps, we use phytec-tisdk-image-am5728-phycore-rdk.tar.xz as an example source root file system.
Make temporary directories to store your work:
Place your root file system in the temporary directory created in the previous step:
Create a UBI File System (UBIFS) image from your root file system directory:
Create and save a file named ubi.ini in your current working directory with the following contents:
Create an unsorted block image (UBI) from your UBIFS image:
Configure SD Card for Flashing
In addition to the standard SD card formatted in Creating a Bootable SD Card, the following steps are required to copy images that will be flashed. From the host PC:
Copy the NAND-specific MLO and u-boot.img files to the rootfs partition on the SD card. In order to read from and write to the NAND by default, bootloader images that are compiled with NAND support are needed. The images needed are available in the release binaries and the filenames may vary.
Copy the NAND-specific root file system image to a convenient place on the SD card. We recommend using the root user's home directory as you will not need to change directories after logging in to follow the rest of this guide.
Flash Images to NAND
With a properly configured SD card, follow these steps to flash your NAND:
Please reference AM57xx Boot Configuration for boot mode settings.
- Set the boot switches to boot from the SD card and power on the board and boot into Linux.
Flash MLO image to NAND:
Flash u-boot.img image to NAND:
Flash the root file system image to NAND:
- Power off the board, set the boot switches to boot from NAND, and power the board back on.