0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

RPi Zero WをUSBキーボードにするときのls: write error: Device or resource busy

Last updated at Posted at 2020-08-19

Raspberry Pi Zero Wを買ってUSBキーボードにしようとおもってハマったのでメモ。

準備

Raspberry Pi Zero (W) をUSBキーボード(USBガジェット)にするhttps://qiita.com/exthnet/items/98aa9b6d6a606f8f2cf8
こちらのページを参考にセットアップをします。

発生したエラー

mkdir: cannot create directory ‘functions/hid.usb0’: No such file or directory
/usr/bin/isticktoit_usb: line 18: functions/hid.usb0/protocol: No such file or directory
/usr/bin/isticktoit_usb: line 19: functions/hid.usb0/subclass: No such file or directory
/usr/bin/isticktoit_usb: line 20: functions/hid.usb0/report_length: No such file or directory
/usr/bin/isticktoit_usb: line 21: functions/hid.usb0/report_desc: No such file or directory
ln: failed to create symbolic link 'configs/c.1/hid.usb0': No such file or directory
ls: write error: Device or resource busy

もしくは

ls: write error: Device or resource busy

重要なところ

cmdline.txtが重要です。

sudo vim /boot/cmdline.txt

modules-loadを以下のように記述します

modules-load=dwc2,libcomposite

libcompositeのところをg_etherとかg_serialにするとエラーが出ました。

modules-load=dwc2,libcompositeの記述を削除することで解決できました。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?