Skip to content
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

KO Driverが認識しなくなる #39

Open
MibuchiYuta opened this issue Feb 15, 2024 · 8 comments
Open

KO Driverが認識しなくなる #39

MibuchiYuta opened this issue Feb 15, 2024 · 8 comments

Comments

@MibuchiYuta
Copy link
Contributor

現在共有PCはUbuntu20.04を利用しており USB経由でrs485変換基板とシリアル通信をしている。以前の環境構築でttyUSB*に認識するように設定したが現在は認識しない。

@MibuchiYuta
Copy link
Contributor Author

@MibuchiYuta
Copy link
Contributor Author

以前に別リポジトリで同じ問題に対峙しました。citbrains/B3MServoChecker#5

リンク先の手法に則って作業します。

@MibuchiYuta
Copy link
Contributor Author

MibuchiYuta commented Feb 15, 2024

sudo vi /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
 
modprobe ftdi-sio
echo "165C 0009" > /sys/bus/usb-serial/drivers/ftdi_sio/new_id
 
exit 0
sudo vi /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.
 
lp
rtc
ftdi_sio
 
#
sudo chmod 755 /etc/rc.local
sudo vi /etc/systemd/system/rc-local.service
[Unit]
Description=/etc/rc.local Compatibility
ConditionPathExists=/etc/rc.local

[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
StandardOutput=tty
RemainAfterExit=yes
SysVStartPriority=99

[Install]
WantedBy=multi-user.target
sudo systemctl enable rc-local.service

@MibuchiYuta
Copy link
Contributor Author

MibuchiYuta commented Feb 15, 2024

再起動後ttyUSB0で認識しました。

@KiyoshiroKawanabe
Copy link
Contributor

@MibuchiYuta
まさかこれpushしてない??
自分の環境でアーム動かそうと思ったら、またttyUSB0なくって、/etc/rc.localもない。

@MibuchiYuta
Copy link
Contributor Author

これはそもそもリポジトリ外の設定なので、同じ設定をそれぞれの環境でもやる必要があります。

@KiyoshiroKawanabe
Copy link
Contributor

そうですよね。失礼しました。
環境構築手順のまとめるとこなかったっけ?追記して欲しい

@MibuchiYuta
Copy link
Contributor Author

スクリプトを作成する

@MibuchiYuta MibuchiYuta reopened this Mar 5, 2024
@MibuchiYuta MibuchiYuta moved this from 完了 to 後回し in ORNE OR Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 後回し
Development

No branches or pull requests

2 participants