-
Notifications
You must be signed in to change notification settings - Fork 2
Add NXT support for Linux #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main-ru
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,6 +42,43 @@ | |
|
|
||
|  | ||
|
|
||
| Если вы хотите использовать режим «Генерация» на Linux, то: | ||
|
|
||
| 1. Откройте терминал (его можно открыть комбинацией Ctrl+Alt+T) и напишите: | ||
| ``` | ||
| sudo addgroup legonxt | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Наверное, более правильно использовать |
||
| sudo adduser $USER legonxt | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Для привилегированной сессии не всегда используется |
||
| ``` | ||
| 2. Создайте файл с именем 45-legonxt.rules | ||
| 3. Заполните его содержимым: | ||
| ``` | ||
| SUBSYSTEM=="usb", ATTRS{idVendor}=="0694", ATTRS{idProduct}=="0002", SYMLINK+="legonxt-%k", GROUP="legonxt", MODE="0666" | ||
|
|
||
| SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="6124", SYMLINK+="legonxt-%k", GROUP="legonxt", MODE="0666" | ||
| ``` | ||
|
|
||
| 4. Напишите из терминала (его можно открыть комбинацией Ctrl+Alt+T) | ||
|
|
||
| ```sudo cp 45-legonxt.rules /etc/udev/rules.d``` | ||
|
|
||
| После перезагрузки Ваше устройство будет распознавать контроллер. | ||
|
|
||
|
|
||
| 5. Вам понадобится arm-none-eabi. Его можно установить по [ссылке](https://developer.arm.com/-/media/Files/downloads/gnu/12.3.rel1/binrel/arm-gnu-toolchain-12.3.rel1-x86_64-aarch64-none-elf.tar.xz?rev=a8bbb76353aa44a69ce6b11fd560142d&hash=8DC6C55310058C1594FD6EEFD60F0B2528265C64). Затем необходимо разархивировать. | ||
|
|
||
| Так же вы можете запустить установочный скрипт download-arm-none-eabi.sh через консоль, он находится в папке TRIKStudio/bin/nxt-tools | ||
|
|
||
| Чтобы его запустить, достаточно написать в консоль из папки со скриптом | ||
| ```chmod +x download-arm-eabi.sh | ||
| ./download-arm-eabi.sh | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Скрипт должен быть исполняемым сразу после извлечения/установки. И тогда тут не будет этого шага. |
||
| ``` | ||
| Чтобы получить более подробную инструкцию по запуску скрипта, напишите | ||
| ``` | ||
| ./download-arm-eabi.sh --help | ||
| ``` | ||
|
|
||
| 6. Зайдите в Настройки. Укажите путь к папке, полученной после разархивации, а затем нажмите "Применить". | ||
|
|
||
| ## **Загрузка на контроллер** | ||
|
|
||
| Из TRIK Studio можно загрузить готовую программу на робота, чтобы в дальнейшем автономно её исполнять без связи с компьютером. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не получится инструкция, которая ко всем Линуксам применима. Надо сразу указать, на чём тестировалось (для чего применимо), а остальные пусть пользуются аналогичными шагами.