Imx uuu: Difference between revisions
(Created page with "<!-- Set release according to "release" parameter in URL and use Sumo_V2.1_DART-MX8M as default --> {{#vardefine:RELEASE_PARAM|{{#urlget:release}}}} <!-- --> {{#lst:Yocto_Plat...") |
No edit summary |
||
Line 5: | Line 5: | ||
= Introduction = | = Introduction = | ||
UUU is an open source utility by NXP that allows to download and execute code on NXP i. | UUU is an open source utility by NXP that allows to download and execute code on NXP i.MX6/i.MX7/i.MX8 SoCs through the Serial Download Protocol (SDP).<br> | ||
It is the next generation of NXP's MFGTOOL used to load SPL and U-Boot via the USB OTG port and optionally program the internal storage of the SOM.<br> <br> | |||
<br> | <br> | ||
Further reading:<br> | Further reading:<br> | ||
https://github.com/ | https://github.com/NXPmicro/mfgtools<br> | ||
<br> | <br> | ||
Note:<br> | Note:<br> | ||
All Variscite SOMs are shipped with | All Variscite SOMs are shipped with U-Boot pre-programmed on the SOM's internal storage.<br> | ||
In addition, all Variscite carrier boards have an SD card slot, and even in the unlikely event of the | In addition, all Variscite carrier boards have an SD card slot, and even in the unlikely event of the U-Boot being erased from the SOM's internal storage, the SOM can always be booted from an SD card (like our recovery SD card, for example).<br> | ||
So, generally, this utility is not needed, however, it is yet another option that can be used to boot the Variscite SOMs, for anyone who is interested.<br> | So, generally, this utility is not needed, however, it is yet another option that can be used to boot the Variscite SOMs, for anyone who is interested.<br> | ||
= Step by step usage instructions = | = Step by step usage instructions = | ||
'''Download and | '''Download and build the UUU utility''':<br> | ||
<pre> | <pre> | ||
$ sudo apt-get install libusb-1.0-0-dev | $ sudo apt-get install libusb-1.0-0-dev libzip-dev libbz2-dev pkg-config cmake | ||
$ cd ~ | $ cd ~ | ||
$ git clone https://github.com/ | $ git clone https://github.com/NXPmicro/mfgtools.git | ||
$ cd | $ cd mfgtools | ||
$ | $ cmake . | ||
$ make | $ make | ||
</pre> | </pre> | ||
<br> | <br> | ||
'''Build U-Boot''':<br> | '''Build U-Boot''':<br> | ||
Build U-Boot using the defconfig for SD card/eMMC.<br> | Build U-Boot using the defconfig for SD card/eMMC.<br> | ||
You can follow the "Build U-Boot from source code" instructions {{Varlink|Yocto_Build_U-Boot|{{#var:RELEASE_LINK}}|here}}.<br> | You can follow the "Build U-Boot from source code" instructions {{Varlink|Yocto_Build_U-Boot|{{#var:RELEASE_LINK}}|here}}.<br> | ||
Copy the | Copy the U-Boot image uuu directory: | ||
$ cp -v | $ cp -v {{#var:U-BOOT_SD_IMAGE_NAME}} ~/mfgtools/uuu | ||
$ ln -fs {{#var:U-BOOT_SD_IMAGE_NAME}} _flash.bin | |||
<br> | <br> | ||
'''Boot the board into serial download mode''':<br> | '''Boot the board into serial download mode''':<br> | ||
{{Varlink|Yocto_Build_Release#Setting the Boot Mode|{{#var:RELEASE_LINK}}|Set the board boot mode}} to SD card, while not having an actual card inserted in its slot.<br> | {{Varlink|Yocto_Build_Release#Setting the Boot Mode|{{#var:RELEASE_LINK}}|Set the board boot mode}} to SD card, while not having an actual card inserted in its slot.<br> | ||
Alternatively, set the board boot mode to eMMC/NAND flash, when the eMMC/NAND flash does not contain a bootloader.<br> | Alternatively, set the board boot mode to eMMC/NAND flash, when the eMMC/NAND flash does not contain a bootloader.<br> | ||
Connect the board to your host PC via the USB OTG port, and power on the board.<br> | Connect the board to your host PC via the USB OTG port, and power on the board.<br> | ||
The board should be recognized on the host as a " | The board should be recognized on the host as a "NXP Semiconductors".<br> | ||
<br> | <br> | ||
(Note: If your board only has a regular USB type-A connector and doesn't have a USB Micro-AB receptacle, you can use a "male USB type-A to male USB type-A" cable)<br> | (Note: If your board only has a regular USB type-A connector and doesn't have a USB Micro-AB receptacle, you can use a "male USB type-A to male USB type-A" cable)<br> | ||
<br> | <br> | ||
'''Run | |||
'''Run uuu to load U-Boot on the board''': | |||
$ sudo ./ | $ sudo ./uuu ./spl_boot.lst | ||
The board should now run U-Boot.<br> | |||
The board should now run | |||
You can see its output on the console via the debug port, as always.<br> | You can see its output on the console via the debug port, as always.<br> | ||
<br> | <br> | ||
'''Notes''': | '''Notes''': | ||
* The default boot command when booting from USB is bootcmd_mfg. It | * The default boot command when booting from USB is bootcmd_mfg. It is defined in the board's default environment. |
Revision as of 16:51, 5 February 2020
Introduction
UUU is an open source utility by NXP that allows to download and execute code on NXP i.MX6/i.MX7/i.MX8 SoCs through the Serial Download Protocol (SDP).
It is the next generation of NXP's MFGTOOL used to load SPL and U-Boot via the USB OTG port and optionally program the internal storage of the SOM.
Further reading:
https://github.com/NXPmicro/mfgtools
Note:
All Variscite SOMs are shipped with U-Boot pre-programmed on the SOM's internal storage.
In addition, all Variscite carrier boards have an SD card slot, and even in the unlikely event of the U-Boot being erased from the SOM's internal storage, the SOM can always be booted from an SD card (like our recovery SD card, for example).
So, generally, this utility is not needed, however, it is yet another option that can be used to boot the Variscite SOMs, for anyone who is interested.
Step by step usage instructions
Download and build the UUU utility:
$ sudo apt-get install libusb-1.0-0-dev libzip-dev libbz2-dev pkg-config cmake $ cd ~ $ git clone https://github.com/NXPmicro/mfgtools.git $ cd mfgtools $ cmake . $ make
Build U-Boot:
Build U-Boot using the defconfig for SD card/eMMC.
You can follow the "Build U-Boot from source code" instructions here.
Copy the U-Boot image uuu directory:
$ cp -v imx-boot-sd.bin ~/mfgtools/uuu $ ln -fs imx-boot-sd.bin _flash.bin
Boot the board into serial download mode:
Set the board boot mode to SD card, while not having an actual card inserted in its slot.
Alternatively, set the board boot mode to eMMC/NAND flash, when the eMMC/NAND flash does not contain a bootloader.
Connect the board to your host PC via the USB OTG port, and power on the board.
The board should be recognized on the host as a "NXP Semiconductors".
(Note: If your board only has a regular USB type-A connector and doesn't have a USB Micro-AB receptacle, you can use a "male USB type-A to male USB type-A" cable)
Run uuu to load U-Boot on the board:
$ sudo ./uuu ./spl_boot.lst
The board should now run U-Boot.
You can see its output on the console via the debug port, as always.
Notes:
- The default boot command when booting from USB is bootcmd_mfg. It is defined in the board's default environment.