SAM9X75 Curiosity Development Board - Booting Demo Linux® Image

Last modified by Microchip on 2024/10/03 10:25

Overview

This training lists step-by-step instructions for booting a demonstration Linux® image to the SAM9X75 Curiosity Development Board. There are two methods; the first is to boot from a microSD memory card, and the second is from the onboard NAND Flash memory . There are several pre-compiled demonstration Linux images available from the Linux4sam website.

In summary, the steps are:

  • Download a demonstration image
  • Load the image onto a microSD memory card or NAND Flash memory using utility programs
  • Power up the SAM9X75-Curiosity Demonstration Board
  • Connect a USB-to-Serial adapter to view the console, and 
  • Press the RESET button (SW3)

Back to top

What You Will Need

  • SAM9X75 Curiosity Development Board
  • Micro-B USB cable (included in the SAM9X75-Curiosity box)
  • Personal computer (Windows®, macOS®, Linux) running a terminal emulation program
  • USB-to-Serial 3.3 VDC TTL Level adapter with a 6-pin single-in-line 0.1” pitch connector
  • microSD memory card (1 GB or larger)

Back to top

Prerequisites

Back to top

Download a Demonstration Image

The latest demonstration images for the SAM9X75-Curiosity are available on the Linux4sam website. There you will find two sets of images created from one of two build systems:

Note there are separate images for SD memory card and NAND Flash memory. In addition, there are images without a display (headless) and with the AC69T88A LVDS Display.

Download the image for your choice of storage media (SD memory card or NAND Flash) and choice of headless or display.

Table showing media types and associated boards

Back to top

Load the Image onto a microSD Memory Card

To boot Linux from a microSD memory card, perform the following steps. If you want to boot from the onboard NAND Flash memory, skip to the next section.

You will write the image to the SD memory card using the balenEtcher utility program. balenEtcher is a cross-platform utility program used for writing image files onto storage media.

Select Image

Locate the directory where the image is stored. There is no need to un-compress the image file. The balenEtcher utility program can handle compressed image files. 

balenEtcher Screen Shot:  Flash from File

Back to Top


Select Target

Select the microSD memory card.

balenEtcher Screenshot:  Select Target

Back to Top


Flash

Finally, write the image to the microSD memory card. This will take some time. Be patient.

balenEtcher Screenshot:  Flash

Back to Top


Insert the microSD Memory Card Into Slot (J14)

Skip to the "Terminal Emulation Program" section below.

Back to Top

Load image onto NAND Flash Memory

To boot Linux from the onboard NAND Flash memory (U5), perform the following steps.

You will write the image to the onboard NAND Flash memory using the SAM-BA In-System Programmer (ISP) utility. 

Note: Ensure that you have the SAM-BA ISP installed on your host computer and the SAM-BA directory path added to the environment variables.

Ensure there is no microSD memory card is inserted in slot (J14).

Back to Top


Connect a Micro-B USB cable from the host computer to USB-A port (J2) or Power through the jack connector (J1).

This will power the SAM9X75 Curiosity and the USB Type-A port will enumerate on the host computer. For Windows, the port will be labeled as "AT91 USB to Serial Converter (COMx)" and for Linux as "/dev/ttyACMx."

Device Manager window

Back to Top


Un-Compress the downloaded demo Linux package to boot from NAND flash from demonstration images

Un-compress the NAND Flash image into a working directory.

Back to Top


Write Image to NAND Flash

Run the demo_linux_nandflash.bat (Windows) or demo_linux_nandflash.sh (Linux) file from the uncompressed directory in Step3.

This will take a while. Be patient. When the write operation is complete you will see the following on the command line:

-I- === Done. ===

If you have a terminal emulation program running and connected to the console, you will see the following display:

Tera Term Screenshot

Back to top

Console

Terminal Emulation Program

Download, install, and configure a Terminal Emulation program onto your host computer. There are several choices for terminal programs for Windows, macOS, and Linux. Refer to "SAM9X75 Curiosity Development Board - Console Serial Communications" page for a list of popular programs.

Back to top

Jumpers

  • Ensure that NAND BOOT jumper (J9) is closed (default).

Back to top

Apply Power

Connect a Micro-B USB cable from the host computer to USB-A port (J2) or Power through the jack connector (J1).

Back to top

Connect to UART Debug Port:

Connect the USB-to-Serial 3.3 VDC TTL level adapter to the host computer. Take care to align Pin 1 (GND) of the Curiosity board to the adapter Pin 1. (Look for an arrow on the connector and a black wire.)

Back to top

Serial Communication Established

Once you connect the USB-to-Serial adapter to the host PC, locate the COM Port, open the terminal emulation program, and enter the settings:

  • Com Port: as indicated
  • Baud: 115200
  • Data Bits: 8
  • Parity: None
  • Stop Bits: 1

Back to top

Boot

Press the RESET Button (SW3). Observe the boot log scrolling on the console. At the end, the command line will prompt the user to log in. Log in as root. There is no password required.

Log in for Linux image:

Tera Term Screenshot

Observe the RGB LED Flashing blue (heartbeat).

Congratulations! Booting of the demo Linux image on the SAM9X75-Curiosity is complete.

Back to top

Summary

In this training, you booted a demonstration Linux image to the SAM9X75 Curiosity Development Board using one of two methods, an SD memory card or onboard NAND Flash memory.

Back to top

Learn More

Back to top