Прошивка MESA 5i25 с помощью mesaflash
Перейти к навигации
Перейти к поиску
1. Скачиваем последнюю версию утилит с сайта cnc-box.ru
2. Распаковываем архив
3. Запускаем терминал и заходим в директорию с распаковаными файлами и utils/linux/
4. Добавляем права на запуск mesaflash
chmod ug+x mesaflash
5. Прошиваем плату
sudo ./mesaflash --write [файл с прошивкой]
Возможно, понадобится прописать определенную плату в коммандной строке, для определения имени устройства выполните:
sudo ./mesaflash --list
И потом при прошивке добавьте --device=[имя из предыдущей операции] в строку прошивки:
sudo ./mesaflash --device=[имя из предыдущей операции] --write [файл с прошивкой]
Например:
sudo ./mesaflash --device=5i25 --write /home/user/5i25/configs/hostmot2/5i25_7i77x2r.bit
5.1 Перезапустить плату/компьютер (выкл, вкл питание).
6. Чтобы проверить какие пины появляются с новой прошивкой следуйте этой инструкции. Проверка Mesa 5i25
Руководство mesaflash
Syntax:
mesaflash [options] mesaflash [options] --write filename mesaflash [options] --verify filename mesaflash [options] --program filename mesaflash [options] --readhmid mesaflash [options] --sserial mesaflash [options] --rpo address mesaflash [options] --wpo address=value mesaflash [options] --lbp16 <command> mesaflash --list mesaflash --info file_name mesaflash --help
Options:
--device select active device name. If no command is given it will detect board with given name and print info about it. --addr <device_address> select <device address> for looking for <device_name> (network C mask for ETH boards, serial port for USB boards) --fallback use the fallback area of the EEPROM --recover access board using PCI bridge GPIO (currently only 6I25) --verbose print detailed information while running commands
Commands:
--write writes a standard bitfile 'filename' configuration to the userarea of the EEPROM (IMPORTANT! 'filename' must be VALID FPGA configuration file) --verify verifies the EEPROM configuration against the bitfile 'filename' --program writes a standard bitfile 'filename' configuration to the FPGA (IMPORTANT! 'filename' must be VALID FPGA configuration file) --readhmid print hostmot2 configuration in PIN file format --sserial print full information about all sserial remote boards --rpo read hostmot2 variable directly at 'address' --wpo write hostmot2 variable directly at 'address' with 'value' --lbp16 run <command> directly by lbp16 interface module available commands: send_packet=hex_data send packet created from <hex_data> and print returned data --list show list of all detected boards --info print info about configuration in 'file_name' --help print this help message