16 件のコメント:

  1. USB3でBootできないとのことですが、SDカードで起動した場合、USB3に接続したSSDはOSで認識されますか?

    返信削除
    返信
    1. それは、確認しました。mountできるかは確認してませんが、logにerrorな感じが表示されます。

      削除
    2. [ 1475.107785] sda: sda1 sda2
      [ 1475.111182] sd 0:0:0:0: [sda] Attached SCSI disk
      [ 1488.816896] usb 1-1.3: USB disconnect, device number 3
      [ 1488.823026] sd 0:0:0:0: [sda] Synchronizing SCSI cache
      [ 1489.060804] sd 0:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=0x07 driverbyte=0x00
      [ 1491.225093] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
      [ 1491.246481] usb 2-1: New USB device found, idVendor=152d, idProduct=0578, bcdDevice= 1.00
      [ 1491.246496] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
      [ 1491.246509] usb 2-1: Product: USB to ATA/ATAPI Bridge
      [ 1491.246521] usb 2-1: Manufacturer: JMicron
      [ 1491.246532] usb 2-1: SerialNumber: 0123456789ABCDEF
      [ 1491.259840] scsi host0: uas
      [ 1491.267438] scsi 0:0:0:0: Direct-Access JMicron Generic 8101 PQ: 0 ANSI: 6
      [ 1491.269156] sd 0:0:0:0: Attached scsi generic sg0 type 0
      [ 1494.422778] sd 0:0:0:0: [sda] 250069680 512-byte logical blocks: (128 GB/119 GiB)
      [ 1494.422787] sd 0:0:0:0: [sda] 4096-byte physical blocks
      [ 1494.422980] sd 0:0:0:0: [sda] Write Protect is off
      [ 1494.422986] sd 0:0:0:0: [sda] Mode Sense: 53 00 00 08
      [ 1494.423357] sd 0:0:0:0: [sda] Disabling FUA
      [ 1494.423365] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
      [ 1494.423930] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
      [ 1494.438871] sda: sda1 sda2
      [ 1494.441054] sd 0:0:0:0: [sda] Attached SCSI disk
      [ 1524.725084] sd 0:0:0:0: [sda] tag#28 uas_eh_abort_handler 0 uas-tag 5 inflight: CMD IN
      [ 1524.725103] sd 0:0:0:0: [sda] tag#28 CDB: opcode=0x28 28 00 0e e7 bf 28 00 00 a8 00
      [ 1524.725391] sd 0:0:0:0: [sda] tag#0 uas_eh_abort_handler 0 uas-tag 6 inflight: CMD IN
      [ 1524.725403] sd 0:0:0:0: [sda] tag#0 CDB: opcode=0x28 28 00 0e e7 bf d8 00 00 28 00
      [ 1524.741102] scsi host0: uas_eh_device_reset_handler start
      [ 1524.870076] usb 2-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
      [ 1524.895129] scsi host0: uas_eh_device_reset_handler success
      [ 1555.445366] sd 0:0:0:0: [sda] tag#15 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD IN
      [ 1555.445387] sd 0:0:0:0: [sda] tag#15 CDB: opcode=0x28 28 00 00 08 1f 88 00 00 68 00
      [ 1555.445751] sd 0:0:0:0: [sda] tag#12 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD
      [ 1555.445763] sd 0:0:0:0: [sda] tag#12 CDB: opcode=0x35 35 00 00 00 00 00 00 00 00 00
      [ 1555.461380] scsi host0: uas_eh_device_reset_handler start
      [ 1555.590164] usb 2-1: reset SuperSpeed Gen 1 USB device number 2 using xhci_hcd
      [ 1555.614220] scsi host0: uas_eh_device_reset_handler success

      削除
    3. 〇USB2.0に繋いだ時の lsusb
      pi@pi4b:/boot $ lsusb
      Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
      Bus 001 Device 003: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge
      Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      pi@pi4b:/boot $ lsusb -t
      /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
      /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
      |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
      |__ Port 3: Dev 3, If 0, Class=Mass Storage, Driver=uas, 480M
      pi@pi4b:/boot $
      〇USB3.0に繋いだ時の lsusb
      pi@pi4b:~ $ lsusb
      Bus 002 Device 002: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge
      Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
      Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
      Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
      pi@pi4b:~ $ lsusb -t
      /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 5000M
      |__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
      /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/1p, 480M
      |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
      pi@pi4b:~ $

      削除
  2. 128GBとか、容量も認識しているようですね。

    こちらのboot時のログです。
    [ 1.869959] usb 2-2: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd
    [ 1.901095] usb 2-2: New USB device found, idVendor=0411, idProduct=02ea, bcdDevice= 1.00
    [ 1.901112] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 1.901126] usb 2-2: Product: SSD-PGM/N
    [ 1.901140] usb 2-2: Manufacturer: BUFFALO
    [ 1.901154] usb 2-2: SerialNumber: 0040537200401668
    [ 1.919385] scsi host0: uas
    [ 1.920490] scsi 0:0:0:0: Direct-Access BUFFALO SSD-PGM/N 0000 PQ: 0 ANSI: 6
    [ 1.922679] sd 0:0:0:0: [sda] 468862128 512-byte logical blocks: (240 GB/224 GiB)
    [ 1.922697] sd 0:0:0:0: [sda] 4096-byte physical blocks
    [ 1.922878] sd 0:0:0:0: [sda] Write Protect is off
    [ 1.922895] sd 0:0:0:0: [sda] Mode Sense: 53 00 10 08
    [ 1.923232] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
    [ 1.933434] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
    [ 1.936352] sda: sda1 sda2
    [ 1.939488] sd 0:0:0:0: [sda] Attached SCSI disk
    [ 1.944334] EXT4-fs (sda2): INFO: recovery required on readonly filesystem
    [ 1.944348] EXT4-fs (sda2): write access will be enabled during recovery

    返信削除
  3. 認識している感じなのですが、tag#あたりが何らかのエラーコードと思います。引き続き探求した方がいいのか、別のSSD変換器をポチったほうが早いのかですね。

    返信削除
  4. USB2と3では、速度がかなり違うので、交換した方が良いかもしれませんね。とりあえず、uasを無効化(?)する、次を試してみては?

    /boot/cmdline.txtに次を加えてみてはいかがでしょうか。(152dと0578はkajiのログから)
    usb-storage.quirks=152d:0578:u

    こちらの記事を参考にしています。
    https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=245931

    Run a text editor as root - sudo nano /boot/cmdline.txt from the console or sudo leafpad /boot/cmdline.txt from the desktop.
    At the start of the line of parameters, add the text usb-storage.quirks=aaaa:bbbb:u where aaaa is the idVendor for your device and bbbb is the idProduct. So, with the device above the string will be usb-storage.quirks=2109:0715:u.

    参照したkajiのログ
    [ 1491.246481] usb 2-1: New USB device found, idVendor=152d, idProduct=0578, bcdDevice= 1.00

    返信削除
    返信
    1. 何度もコメントありがとうございます。
      そのusb.strage.quirksは書いてみたのですが、状況は変わりません。その辺をだらーっと記事にしているのですが、解決しましたに到達しない感じです。

      削除
  5. 他に、思いつきそうな件は。pi4のfirmware

    こちらのは、ちょっと古いかもしれませんが、こんな感じ;

    $ vcgencmd bootloader_version
    Aug 31 2020 10:07:44
    version 5c41dcec664690fa692969e860623543a868c55d (release)

    返信削除
    返信
    1. 確か9/3版を入れた気がします。
      raspi-configで変わってるかもしれません。夜確認してみます。

      削除
  6. bootloaderは、これでした。
    pi@pi4b:~ $ vcgencmd version
    Sep 2 2020 21:13:13
    Copyright (c) 2012 Broadcom
    version 4439d2aaa6c376a2d1ef4402f142e1cf4de37c43 (clean) (release) (start)
    pi@pi4b:~ $

    返信削除
  7. 最新のようですね! こちらは現在32bit版のOSなので、64bit版のテストを兼ねて、テストしてみます。ちなみに、インストールしたOSのダウンロード先は、どちらですか?

    返信削除
    返信
    1. https://qiita.com/tkyonezu/items/6c2a4638e3b8aee390e2
      この記事にある2020/08/20版の64bitをDLしました。
      というか、64bit版Raspbian OSはこれしか見当たりません。

      削除
  8. 了解です。SSDの予備はないので、普通のHDDをUSBポートへ接続して試してみます。

    返信削除
  9. USB Bootで64bit OSの起動を確認できました。
    $uname -a
    Linux pi4 5.4.51-v8+ #1333 SMP PREEMPT Mon Aug 10 16:58:35 BST 2020 aarch64 GNU/Linux
    root@pi4:/home/pi# cat /etc/os-release
    PRETTY_NAME="Debian GNU/Linux 10 (buster)"
    NAME="Debian GNU/Linux"
    VERSION_ID="10"
    VERSION="10 (buster)"
    VERSION_CODENAME=buster
    ID=debian

    返信削除
    返信
    1. 引き続き64bit kernelネタ共有お願いします。

      削除

ラズパイ日記...esp32(arduino)+mpu6050

# esp32で6軸センサー読み出し esp32で6軸センサーを読み出し、値をグラフ表示して動作を確認します。 ## 準備 ハード的な接続は、センサーが3.3V駆動できるので、3.3VとGNDの2線で電源供給します。I2C用にSDAとSCLのデータ線が必要ですが、esp...