Building and Self-Updating U-Boot on the NXP i.MX RT1060 EVK Board |
The default U-Boot configuration is a capable Linux bootloader so typically our customers do not require re-building and re-installing U-Boot. However, certain projects still do require customizations to the U-Boot firmware, which implies making changes to the U-Boot code, rebuilding the U-Boot binary and then updating it on the i.MX RT1060. The full U-Boot source for the NXP i.MX RT1060 EVK board is included in the software distribution available from the Emcraft web site. Refer to the u-boot/ sub-directory in the software distribution tree. The key board specific-configuration files for the NXP i.MX RT1060 EVK board are as follows:
Run the following step-wise procedure in order to build U-Boot for the NXP i.MX RT1060 EVK board:
$ . ./ACTIVATE.sh $ cd u-boot $ make distclean $ make -s The resultant image will be u-boot-dtb.imx in the U-Boot top directory (i.e. the same directory where you have run the make command from). The U-Boot command line interface provides a special command that can be used to self-upgrade the U-Boot image on the running target. Before you can run this command, you need to load an upgrade U-Boot binary to the target. Typically, you download images from a TFTP host (refer to Loading Linux images via Ethernet and TFTP), however in absence of an Ethernet link in your specific target configuraiton, you can also load images over serial UART (refer to Loading Linux Images over UART). The following session is an illustration of the U-Boot self-upgrade procedure:
Note that the self-upgrade sequence is a dangerous operation. You must be sure that you load and install a functional U-Boot image, which is always a tricky thing when you develop customisations to U-Boot. If something goes wrong, you can re-install the release U-Boot image as documented in Installing U-Boot to the NXP i.MX RT1060 EVK board. The latest U-Boot image is always available from NXP i.MX RT1060 EVK board Software Materials. |