# Switching Between AVED and AMR on V80
This guide provides detailed instructions for switching between AVED (Alveo Versal Example Design) and AMR (Adaptive Management Runtime) on Alveo V80 cards.
## Overview
AVED and AMR are two different platform management solutions for Alveo V80 cards:
- **AVED**: Legacy platform management solution with xbtest support
- **AMR**: New platform management solution replacing AVED, with enhanced features but without xbtest support in this release
You may need to switch between these solutions depending on your requirements:
- Switch to **AVED** if you need xbtest functionality
- Switch to **AMR** for the latest platform management features and ongoing support
**Important:** You cannot run AVED and AMR simultaneously on the same system. The switching process requires complete removal of one solution before installing the other.
## Prerequisites
- Root or sudo permissions
- Physical installation of Alveo V80 card in your system
- For firmware programming: Either Vivado Hardware Manager (2026.1) with micro-USB cable, or ami_tool if current installation is functional
- Appropriate installation packages:
- For AVED: Download from [AVED 2025.2 Release](https://xilinx.github.io/AVED/amd_v80_gen5x8_exdes_1_20231204/AVED%2BRelease%2BInformation.html)
- For AMR: Download from [AMR Release Information](../AMR-release-information.md)
## Switching from AMR to AVED/xbtest
Follow the steps below if you have an existing AMR installation and want to switch to AVED/xbtest for xbtest functionality.
### Prerequisites
- Ensure the existing AMR environment is functional
- AMI and AMC versions are compatible (matched)
- AMC is in READY state before proceeding
### Steps
1. Unzip the xbtest installation package that was downloaded from the [AVED 2025.2 Release](https://xilinx.github.io/AVED/amd_v80_gen5x8_exdes_1_20231204/AVED%2BRelease%2BInformation.html).
2. Program the OSPI FPT image using one of the following methods:
#### Method 1: Using ami_tool cfgmem_fpt
```bash
cd amd_v80_gen5x8_25.1_xbtest_stress_20251113 # Replace with your actual release package
sudo ami_tool cfgmem_fpt -d -i flash_setup/fpt_setup_amd_v80_gen5x8_25.1_exdes_1_yyymmdd.pdi -p 0 -t primary
```
**Note:** Replace `amd_v80_gen5x8_25.1_xbtest_stress_20251113` with your actual release package name, and replace `yyymmdd` with the actual date in the filename.
#### Method 2: Using Vivado HW Manager and JTAG
Update the Flash Partition Table (FPT) image in flash using Vivado HW Manager and JTAG. Refer to [Updating FPT Image in Flash](../deployment/update-fpt.md) for step-by-step instructions. If successful, Vivado HW Manager will report this with a pop-up message: "Flash programming completed successfully."
Cold boot the server to boot from flash.
3. Install the xbtest software packages
```bash
sudo ./aved_install.sh
```
Perform system cold reboot to apply changes
## Switching from AVED/xbtest to AMR
Follow the steps below to install AMR firmware/software with existing AVED/xbtest.
### Prerequisites
- Ensure the existing AVED/xbtest environment is functional
- AMI and AMC versions are compatible (matched)
- AMC is in READY state before proceeding
### Steps
1. Build the AMR sources from [How-to Build an AMR Design for V80](../getting-started/build_v80.md) or download prebuilt AMR images from [AMR Release Information](../AMR-release-information.md)
2. Program the AMR OSPI FPT image using the ami_tool cfgmem_fpt command:
```bash
sudo ami_tool cfgmem_fpt -d -i -t primary
```
3. Install the AMR Software Packages
To install the package onto the host, navigate to the directory with the debian or rpm packages depending on your host OS. Install `libami*`, `ami*`, `amitool*` packages.
##### Ubuntu - Installing Debian Packages:
```bash
sudo dpkg -i libami_x.x.x.xxx.xxx_amd64.deb
sudo dpkg -i ami_x.x.x.xxx.xxx_amd64.deb
sudo dpkg -i amitool_x.x.x.xxx.xxx_amd64.deb
```
##### RHEL - Installing RPM Packages:
```bash
sudo rpm -ivh libami_x.x.x.xxx.xxx_amd64.rpm
sudo rpm -ivh ami_x.x.x.xxx.xxx_amd64.rpm
sudo rpm -ivh amitool_x.x.x.xxx.xxx_amd64.rpm
```
## Troubleshooting
### Device Not in READY State
If the device is not in READY state after switching:
1. Perform a **cold reboot** (power cycle) of the system
2. Verify the correct firmware was programmed
3. Check that all software packages are from the same release version
4. Verify that the previous solution's packages were completely removed
### Driver Conflicts
If you encounter driver loading issues:
```bash
# List all loaded drivers
lsmod | grep -E 'ami|aved'
# Remove any conflicting drivers
sudo rmmod ami
sudo rmmod aved
# Reload the correct driver
sudo modprobe ami # For AMR
# or
sudo modprobe aved # For AVED
```
### Firmware Programming Fails
If OSPI programming fails:
1. Verify Vivado version matches the requirements (2026.1 for AMR, 2025.2 for AVED)
2. Check that the JTAG connection is stable
3. If flash is corrupted, use JTAG Boot Recovery: [AMR JTAG Boot Recovery](../deployment/jtag-recovery.md)
4. Ensure you selected the correct configuration memory part (cfgmem-2048-ospi-x8-single for V80)
### Package Installation Fails
If package installation fails:
**Ubuntu:**
```bash
# Fix broken dependencies
sudo apt-get install -f
# Check for conflicts
dpkg -l | grep -E 'ami|aved'
```
**RHEL:**
```bash
# Clean package database
sudo yum clean all
# Check for conflicts
rpm -qa | grep -E 'ami|aved'
```
For more detailed debugging information, see [AMR Debug Techniques](../deployment/debug.md).
## Verification Checklist
After switching, verify the following:
- [ ] Previous solution's packages are completely removed
- [ ] New firmware is programmed successfully
- [ ] System has been cold rebooted
- [ ] New software packages are installed
- [ ] Driver is loaded (`lsmod | grep ami` or `lsmod | grep aved`)
- [ ] Device is detected and in READY state (via tool overview command)
- [ ] Software and firmware versions match
- [ ] Basic functionality works (e.g., sensor reading, manufacturing info)
## Next Steps
### After Switching to AMR:
- Review [AMI Tool Guide](../deployment/ami-tool-guide.md) for available commands
- Learn about [Device Programming](../system-architecture/device-programming.md)
- Explore [AMR Getting Started](../getting-started/install-prebuilt.md)
### After Switching to AVED:
- Refer to [AVED Documentation](https://xilinx.github.io/AVED/amd_v80_gen5x8_exdes_1_20231204/)
- For xbtest usage, see [xbtest Installation and Testing](xbtest/install-and-run-xbtest.md)