Getting Started with ADSP-SC589-MINI (main)
Setting Up Your Host PC
The build system is currently supported on host PCs running Ubuntu 22.04 LTS 64-bit. For setting up your host PC, please see the Setting Up Your Host PC page.
Building in a container (optional)
If your host is not Ubuntu 22.04 LTS, or you do not want to install the build packages on it, you can run all of the build steps below inside a container. Docker or Podman both work; the examples use Podman. This replaces the host package and git setup, the rest of the guide is unchanged.
This release is built by the CI with the v2 container image
(openSUSE Leap 16, Yocto Wrynose), defined by the
Containerfile. It installs the packages Yocto
requires, creates a non-root user (bitbake refuses to run as root) and sets a
default git identity, as a missing one makes the build fail with *** Please
tell me who you are. Build the image straight from the repository:
~$
podman build -t adi/meta-adi:v2 \
https://github.com/analogdevicesinc/meta-adi.git#ci
Start a shell in the image, mounting persistent folders from the host. Everything in the container is lost when it exits, so the sources, the download cache and the shared-state cache must be on mounted paths, otherwise each run starts from scratch:
~$
mkdir -p ~/yocto/adsp-sc589-mini-yocto-build ~/yocto/downloads ~/yocto/sstate-cache
~$
podman run -it --rm --userns=keep-id:uid=1000,gid=1000 \
-v ~/yocto/adsp-sc589-mini-yocto-build:/home/runner/adsp-sc589-mini-yocto-build:Z \
-v ~/yocto/downloads:/cache/downloads:Z \
-v ~/yocto/sstate-cache:/cache/sstate-cache:Z \
-e BB_ENV_PASSTHROUGH_ADDITIONS="DL_DIR SSTATE_DIR" \
-e DL_DIR=/cache/downloads -e SSTATE_DIR=/cache/sstate-cache \
adi/meta-adi:v2
Then follow Fetching the Sources and Building the Image below from inside
that shell; kas and its Python virtual environment are used there as usual.
The caches can be shared between builds of different machines and releases.
With Docker use --user $(id -u):$(id -g) instead of --userns and drop
the :Z suffixes.
Fetching the Sources
The source is fully contained in the Analog Devices Linux for ADSP repositories.
To install the sources:
~$
mkdir ~/adsp-sc589-mini-yocto-build
~$
cd ~/adsp-sc589-mini-yocto-build
~/adsp-sc589-mini-yocto-build$
python3 -m venv .venv
~/adsp-sc589-mini-yocto-build$
. .venv/bin/activate
~/adsp-sc589-mini-yocto-build$
pip install kas
~/adsp-sc589-mini-yocto-build$
git clone https://github.com/analogdevicesinc/lnxdsp-adi-meta.git config
~/adsp-sc589-mini-yocto-build$
KAS_MACHINE=adsp-sc589-mini kas checkout config/kas/adsp-sc5xx.yml
Building the Image
Preparing the buildtool
Open a shell configured by kas for your board:
~$
cd ~/adsp-sc589-mini-yocto-build
~/adsp-sc589-mini-yocto-build$
. .venv/bin/activate
~/adsp-sc589-mini-yocto-build$
KAS_MACHINE=adsp-sc589-mini kas shell config/kas/adsp-sc5xx.yml
The shell starts in the build directory with the BitBake environment
configured. Run the following build commands from this shell. To resume in
another terminal, repeat the commands above.
Note
kas regenerates conf/local.conf. Put persistent configuration changes in
conf/auto.conf within the build directory instead.
Building the example
You can build two different versions of the root file system; minimal and full. To build the example images invoke bitbake from within the build directory created previously.
~$
bitbake adsp-sc5xx-minimal
~$
bitbake adsp-sc5xx-full
When the build completes you will see a warning that the ELF binary has relocations in .text. It is OK to ignore this warning
Note
Building a Linux distribution with Yocto is a significantly demanding process, both in CPU and network usage. A full build from scratch is estimated to take around 170 minutes for an 11th Gen Intel Core i5-11500T with 16 GB of RAM and a stable, fast Internet connection. This estimate can go up significantly for a poorer Internet connection or CPU resources, so set aside plenty of time for a clean build.
Building the SDK
The SDK will provide you with the cross toolchain needed to develop application for the target board, alongside various miscellaneous tools. Notably, it will provide you with OpenOCD and GDB, which you can use to run and flash U-Boot on the board.
The SDK can be built for the adsp-sc5xx-minimal image or the
adsp-sc5xx-full image. To build the SDK for the adsp-sc5xx-minimal
image invoke bitbake from within the build directory created previously.
~$
bitbake adsp-sc5xx-minimal -c populate_sdk
or for the adsp-sc5xx-full image
~$
bitbake adsp-sc5xx-full -c populate_sdk
When the build has completed you will find a set of files in the
<BUILD_DIR>/tmp/deploy/sdk directory. For example, the
minimal image on
ADSP-SC589-MINI:
~$
ls tmp/deploy/sdk
adi-distro-glibc-glibc-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc589-mini-toolchain-6.0.0.host.manifest
adi-distro-glibc-glibc-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc589-mini-toolchain-6.0.0.sh
adi-distro-glibc-glibc-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc589-mini-toolchain-6.0.0.spdx.json
adi-distro-glibc-glibc-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc589-mini-toolchain-6.0.0.target.manifest
adi-distro-glibc-glibc-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc589-mini-toolchain-6.0.0.testdata.json
The adi-distro-glibc-glibc-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc589-mini-toolchain-6.0.0.sh is a self-extracting archive containing the SDK.
Installing the SDK
Invoke the self-extracting archive. It will default to installing to
/opt/adi-distro-glibc/6.0.0 but gives you the option to select your own install folder
during the installation. For the
minimal image on
ADSP-SC589-MINI
~$
./adi-distro-glibc-glibc-x86_64-adsp-sc5xx-minimal-cortexa5t2hf-neon-adsp-sc589-mini-toolchain-6.0.0.sh
Analog Devices Inc Reference Distro (glibc) SDK installer version 6.0.0
--------------------------------------------------------------------------
Enter target directory for SDK (default: /opt/adi-distro-glibc/6.0.0):
You are about to install the SDK to "/opt/adi-distro-glibc/6.0.0". Proceed [Y/n]?
Extracting SDK....................................................................................................................done
Setting it up...done
SDK has been successfully set up and is ready to be used.
Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.
$ . /opt/adi-distro-glibc/6.0.0/environment-setup-cortexa5t2hf-neon-adi_glibc-linux
Your SDK is now installed.
Setup the hardware
Before installing the software on to the development board, ensure that the following cables are connected:
Board connected to network via ethernet cable using J13 connector.
Board connected to host PC using USB micro cable, connected to USB/UART port on the development board
Board connected to the ICE 1000 or ICE 2000 via the DEBUG port on the board
ICE is also connected to host PC via USB mini cable
The BOOT MODE selector should be turned to “0”.
Programming the board for the first time
Note
It’s always good practice to erase the contents of the folders mentioned
below before running and/or flashing a new build of U-Boot or Linux. You can
do so by executing rm /<folder>/* on your host PC before proceeding.
This will erase the contents of the folders but not the folders themselves.
Bootstrapping to Linux
The programming sequence uses nfsboot to bootstrap to Linux, and from there program all available boot media. Before beginning, follow these steps.
Populate the NFS file system with the files for booting:
~$
sudo tar -xf tmp/deploy/images/adsp-sc589-mini/adsp-sc5xx-full-adsp-sc589-mini.rootfs.tar.xz -C /romfs
Note
The directory for this extraction is /romfs if you followed the directions in Setting Up Your Host PC. The adsp-sc5xx-minimal image can also be used, but will not include some of the debugging tools that the full image will have if there are problems.
Copy the programming files into the /usr/firmware directory in the NFS filesystem
~$
sudo cp tmp/deploy/images/adsp-sc589-mini/programming-images/adsp-sc5xx-minimal/* /romfs/usr/firmware
Starting the Python webserver
Start the Python web server to serve the files
~$
cd <folder>
~/<folder>$
python3 -m http.server 8000
Note
The Python web server can be run directly from the images/adsp-sc589-mini/programming-images directory, however it is advised to copy the images to another directory and serve them from that folder, as the images in the tmp/deploy directory are overwritten with each new build
Setting Up Terminal Connections
The console output from U-Boot and later on Linux will appear on the USB serial port configured in minicom earlier so open up minicom.
Terminal1: minicom
~$
sudo minicom
In a separate console launch OpenOCD and connect to the development board.
Terminal2: OpenOCD
~$
sdk_usr=/opt/adi-distro-glibc/6.0.0/sysroots/x86_64-adi_glibc_sdk-linux/usr/
~$
$sdk_usr/bin/openocd -f $sdk_usr/share/openocd/scripts/interface/<ICE>.cfg -f $sdk_usr/share/openocd/scripts/target/adspsc58x.cfg
Where <ICE> should be replaced with ice1000 or ice2000 depending on
your hardware. When successful you should see a message similar to the console
output below
Terminal2: OpenOCD
Open On-Chip Debugger 0.12.0...
In a third console window launch GDB and type target extended-remote :3333.
This will make GDB to connect to the gdbserver on the local host using
port 3333. Then, load the U-Boot SPL into RAM by typing load. Hit
Ctrl+C to interrupt thereafter.
Terminal3: GDB
cd build/tmp/deploy/images/adsp-sc589-mini/programming-images/adsp-sc5xx-minimal # or wherever the Python webserver is serving from
/opt/adi-distro-glibc/6.0.0/sysroots/x86_64-adi_glibc_sdk-linux/usr/bin/arm-adi_glibc-linux-gnueabi/arm-adi_glibc-linux-gnueabi-gdb u-boot-spl-sc589-mini.elf
...
(gdb) target extended-remote :3333
Remote debugging using :3333
0x000000000000352c in ?? ()
(gdb) load
Loading sections... Transfer rate: 29 KB/sec
(gdb) c
Continuing.
^C
Program received signal SIGINT, Interrupt.
You will see a message on Terminal 1 running minicom, informing you that you can now load U-Boot Proper
Terminal1: minicom
U-Boot SPL 2025.10
ADI Boot Mode: 0x0 (JTAG/BOOTROM)
SPL execution has completed.
Now, load U-Boot Proper into RAM.
Terminal3: GDB
(gdb) load u-boot-proper-sc589-mini.elf
Loading sections... Transfer rate: 28 KB/sec
(gdb) c
Continuing.
At this point U-Boot will now be running in RAM on your target board. You should see U-Boot booting in the minicom console (Terminal 1). Press a key to interrupt the boot process before the countdown terminates:
Terminal1: minicom
U-Boot 2025.10
CPU: ADSP ADSP-SC589-MINI
Hit any key to stop autoboot: 0
=>
Programming Images
In the U-Boot console, set the IP address of the Linux PC that hosts the Python webserver, and the IP address of the board itself, if not using dhcp.
Terminal1: minicom
=> setenv serverip <SERVERIP>
=> setenv ipaddr <IPADDR>
Note
To find the IP address of your host Linux PC you can issue the ip addr
command from the shell or console.
If your network supports DHCP, run:
=> dhcp
Start the boot to Linux using nfsboot, and wait for the login prompt.
=> run nfsboot
...
...
adsp-sc589-mini login:
After logging in, run the following command:
~$
/usr/firmware/init
This will call the programming script which will walk you through programming the boot media on the board
The init script will then move on to the USB programming
Install U-Boot to USB
This will erase and program the USB.
Continue? [y/N]:
Select y to program the USB, or N to skip programming.
Booting Linux after programming
Default Login
The default login credentials for the development build of the ADSP Yocto images is shown below. User/passwords can be set or changed in the Yocto adsp-sc5xx.bbclass file, and the default credentials should be changed before a production deployment.
Starting services...
Analog Devices Yocto Distribution
login: root
Password: adi
Network Booting
In order to boot Linux via the network, the Python web server should be setup as indicated above with the fitImage populated for booting.
NFS Boot
In order to boot Linux via NFS, the NFS server should be setup as indicated in Setting Up Your Host PC: Configure NFS Server.
The root filesystem should then be copied to /romfs.
~$
sudo tar -xf tmp/deploy/images/adsp-sc589-mini/adsp-sc5xx-full-adsp-sc589-mini.rootfs.tar.xz -C /romfs
Next, on the target, from u-boot, run the following commands:
=> setenv ipaddr <IPADDR>
=> setenv serverip <SERVERIP>
=> run nfsboot
......
......
Booting Linux Using SD Card
Program the SD card using the init script mmc instructions above.
Alternatively, the SD card can be programmed by the host PC before being inserted into the board.
Formatting the SD card
~$
sudo fdisk /dev/mmcblk0
Welcome to fdisk (util-linux 2.39.3).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-15269887, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-15269887, default 15269887): +32M
Created a new partition 1 of type 'Linux' and of size 32 MiB.
Partition #1 contains a ext4 signature.
Command (m for help): n
Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (2-4, default 2): 2
First sector (67584-15269887, default 67584):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (67584-15269887, default 15269887):
Created a new partition 2 of type 'Linux' and of size 7.2 GiB.
Partition #2 contains a ext4 signature.
Command (m for help): w
Programming the SD card
~$
mke2fs -F -t ext4 -L "BOOT" /dev/mmcblk0p1
~$
mkdir -p /tmp/boot_mount
~$
mount /dev/mmcblk0p1 /tmp/boot_mount
~$
cp fitImage /tmp/boot_mount
~$
sync
~$
umount /tmp/boot_mount
~$
dd if=rootfs.ext4 of=/dev/mmcblk0p2 bs=512
~$
sync
Booting from the SD card
Now, boot to U-boot and interrupt autoboot to drop to the shell and enter the following command
=> run mmcboot
Booting Linux from USB Mass Storage
Formatting the USB storage device
The USB can be programmed by the init script from the instructions mentioned above if plugged into the board. However, the USB can also be formatted by the host PC before plugging into the board as well, following the instructions below.
The first step is to format the USB stick to a format that U-Boot supports.
To do this, follow the commands below. The example code in this section assumes
that the USB device is reported to be /dev/sda. Ensure that you change
these commands to use your device.
Note
You can use sudo fdisk -l to list the available devices and partitions,
in order to locate the USB device.
~$
sudo fdisk /dev/sda
Welcome to fdisk (util-linux 2.39.3).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-15269887, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-15269887, default 15269887): +32M
Created a new partition 1 of type 'Linux' and of size 32 MiB.
Partition #1 contains a ext4 signature.
Command (m for help): n
Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (2-4, default 2): 2
First sector (67584-15269887, default 67584):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (67584-15269887, default 15269887):
Created a new partition 2 of type 'Linux' and of size 7.2 GiB.
Partition #2 contains a ext4 signature.
Command (m for help): w
Copying to the USB storage device
~$
mke2fs -F -t ext4 -L "BOOT" /dev/sda1
~$
mkdir -p /tmp/boot_mount
~$
mount /dev/sda1 /tmp/boot_mount
~$
cp fitImage /tmp/boot_mount
~$
sync
~$
umount /tmp/boot_mount
~$
dd if=rootfs.ext4 of=/dev/sda2 bs=512
~$
sync
Booting from the USB storage device
Now, boot to U-boot and interrupt autoboot to drop to the shell and enter the following command
=> run usbboot
Now the rootfs is set to be your USB storage device, and the amount of space is the size of the partition created earlier on the device.