20,290
edits
mNo edit summary |
mNo edit summary |
||
Line 6: | Line 6: | ||
__TOC__ | __TOC__ | ||
=Overview= | ==Overview== | ||
This page presents a guide about how to recover your board when it is not booting. | This page presents a guide about how to recover your board when it is not booting. | ||
In order to recover your board, some components are required to be built in specific folders. | In order to recover your board, some components are required to be built in specific folders. | ||
Line 20: | Line 20: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=Dependencies= | ==Dependencies== | ||
Install required dependencies for Nitrogen8M recovery: | Install required dependencies for Nitrogen8M recovery: | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
Line 26: | Line 26: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=U-Boot= | ==U-Boot== | ||
Clone Boundary Devices repository using your desired U-Boot version. | Clone Boundary Devices repository using your desired U-Boot version. | ||
Line 49: | Line 49: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=Building Image= | ==Building Image== | ||
In order to generate the final flash file, '''imx-mkimage''' tool is required. | In order to generate the final flash file, '''imx-mkimage''' tool is required. | ||
Download imx-mkimage tool as follows. | Download imx-mkimage tool as follows. | ||
Line 71: | Line 71: | ||
At this point, a '''flash.bin''' file should be created under '''$RECOVERY_DIR/imx-mkimage/iMX8M'''. | At this point, a '''flash.bin''' file should be created under '''$RECOVERY_DIR/imx-mkimage/iMX8M'''. | ||
=USB loader= | ==USB loader== | ||
Before flashing the board, build the flashing tool '''imx_usb''' as follows. | Before flashing the board, build the flashing tool '''imx_usb''' as follows. | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
Line 80: | Line 80: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=Flashing Board= | ==Flashing Board== | ||
Finally, under RECOVERY_DIR you must have 3 directories: | Finally, under RECOVERY_DIR you must have 3 directories: | ||
# imx-mkimage: Image to flash. | # imx-mkimage: Image to flash. | ||
Line 101: | Line 101: | ||
As example, the Nitrogen8M with 2 GB RAM requires the file '''bl31_2g.bin''' in '''mx8mq_usb_work.conf'''. | As example, the Nitrogen8M with 2 GB RAM requires the file '''bl31_2g.bin''' in '''mx8mq_usb_work.conf'''. | ||
See table below in order to set the conf file according to your board's available RAM. | See the table below in order to set the conf file according to your board's available RAM. | ||
{| class="wikitable" style="margin-right: auto; margin-left: auto; border: none;" | {| class="wikitable" style="margin-right: auto; margin-left: auto; border: none;" |