i.MX8 - Nitrogen8M - Getting Started - Loading Pre-built Images

From RidgeRun Developer Connection
Jump to: navigation, search


NXP Partner Program Registered Vertical.jpg NXP Partner Program Horizontal.jpg
Previous: Nitrogen8M/Getting Started/Software Support Index Next: Nitrogen8M/Yocto





For the Nitrogen8M board, there are pre-built images ready for download. This page will provide a guide for getting images and loading them into the board.

Android

Getting Image

The image can be downloaded in the following link, this image is provided by Boundary Devices.

Android Oreo 8.1

Flashing Image

In order to load the image into the board, the fastboot mode is required. This mode is activated by pushing the green button with the label fastboot.

While the board is in fastboot mode, connect the Nitrogen8M board to the host machine through the micro-USB port.

Finally, flash the image into the eMMc with the following commands:

unzip o810-nitrogen8m-*.zip -d o810-nitrogen8m
cd o810-nitrogen8m
o810-nitrogen8m$ ./device/boundary/scripts/flash_fastboot.sh

Yocto

Getting Image

The image can be downloaded in the following link, this image is provided by Boundary Devices.

Yocto Multimedia Full Image

Flashing Image

Yocto has several image types, the default type for old Yocto versions was sdcard format but the latest Yocto version has moved to wic format. Both formats can be flashed to SD card or USB stick, but the Nitrogen8M does not have SD card support.

The next command will flash the image into an USB stick:

sudo bmaptool copy image.extension /dev/sdX --nobmap

Ubuntu

Getting Image

The image can be downloaded in the following link, this image is provided by Boundary Devices.

Ubuntu Bionic

Considerations

Before flashing check if your board is running U-Boot version 2018.07. This version is required for booting Ubuntu.

The U-Boot version can be checked if you use a serial cable and a terminal with minicom.

After powering up the board, the first line in the serial terminal will display the U-Boot installed in your board.

U-Boot 2018.07-35581-gb89789f (May 13 2019 - 17:05:20 -0700), Build: jenkins-uboot_v2018.07-71

Updating U-Boot

If you need to upgrade your U-Boot, please follow the instructions below:

  • Download U-Boot and upgrade script from | here.
  • Save required files (u-boot.nitrogen8m and upgrade.scr) into a USB (FAT format) in the root.
  • Plug int the USB in the Nitrogen8m.
  • Use a serial cable to enable a terminal using minicom.
  • Power up the board and hit any key to enter the U-Boot console.
  • Run the next command to upgrade U-Boot
run upgradeu
  • After flashing, reset the board with the reset button.

Host Machine configuration

Install the following packages before flashing the board:

sudo apt update
sudo apt install fastboot android-tools-fastboot

Now, enable fastboot mode in the board by pushing the green button labeled as fastboot and connect the Nitrogen8M to a host machine using the OTG port, an USB 2.0 cable is recommended to enable the connection without issues.

The fastboot mode can also be enabled from U-Boot, follow instructions below:

  • Connect the Nitrogen8m to a host machine using a serial cable.
  • Enable a serial connection, with minicom as an example.
  • Power up the board and press any key to enter the U-Boot terminal.
  • Enable fastboot mode by running the following command
fastboot 0

Test the fastboot mode with the next command, the board's MAC address should be displayed.

sudo fastboot devices -l
0019b805f1a8           fastboot usb:3-3

Flashing Image

Finally, flash the image with the following commands:

sudo fastboot flash gpt gpt_8G.img
sudo fastboot flash rootfs rootfs_8G.simg

After booting again, the image will have 2 users (root and ubuntu) with the password Boundary.


Previous: Nitrogen8M/Getting Started/Software Support Index Next: Nitrogen8M/Yocto