Armadilloフォーラム

Armadillo Base OSにおけるデバイスドライバのインストール

nakamori

2023年12月27日 19時30分

お世話になっております。

初歩的な質問となってしまうのですが、armadillo-x2でUSB/CAN変換デバイスを使おうと考えています。
変換デバイス:https://www.peak-system.com/PCAN-USB.199.0.html?&L=1
このような場合、armadillo-x2またはATDEでどのような対応(ドライバのインストール手順)を取るのが良いのでしょうか?

よろしくお願いします。

コメント

at_dominique.m…

2023年12月28日 9時14分

nakamoriさん

お世話になっています、
アットマークテクノのマルティネです。

> 初歩的な質問となってしまうのですが、armadillo-x2でUSB/CAN変換デバイスを使おうと考えています。
> 変換デバイス:https://www.peak-system.com/PCAN-USB.199.0.html?&L=1
> このような場合、armadillo-x2またはATDEでどのような対応(ドライバのインストール手順)を取るのが良いのでしょうか?

このデバイスの Linux ドライバーの案内はこちらですね:
https://www.peak-system.com/fileadmin/media/linux/index.htm

確認したところ、標準のドライバで問題ないですが、Armadillo X2 のデフォルト状態では有効にされてませんので、まずは ATDE で Linux カーネルをビルドする必要があります。
以下の手順でビルド・インストールしていただければ、「menuconfig」のステップに 「/」キーで検索モードに入って、「CAN_PEAK_USB」 を入力して、「1」で選択して、「m」でモジュールとして有効にしてください。
https://manual.atmark-techno.com/armadillo-iot-g4/armadillo-iotg-g4_pro…

ドライバーをインストールした後に /dev/can0 が生成されるはずなので、コンテナのコンフィグレーションに 「add_devices /dev/can0 」を指定していただければ使用可能になります。
(ATDE で vscode のサンプルプロジェクトを使う場合は config/app.conf ファイルを編集してください)

このドライバで問題なければ、次のアップデートで Armadillo の標準なカーネルで有効にしようと思いますので、問題の有無を確認していただければ助かります。
作業で何か分からないところがあればまた聞いてください。

よろしくお願いします。

nakamori

2024年1月8日 20時30分

お世話になっております。

> ドライバーをインストールした後に /dev/can0 が生成されるはずなので、コンテナのコンフィグレーションに 「add_devices /dev/can0 」を指定していただければ使用可能になります。

上記方法を試したのですが、/dev/can0が生成されない状況です。

armadillo:/dev# ls
autofs              mmcblk2gp3          stderr              tty43               ttypc
block               mmcblk2p1           stdin               tty44               ttypd
bsg                 mmcblk2p2           stdout              tty45               ttype
btrfs-control       mmcblk2p3           tee0                tty46               ttypf
bus                 mmcblk2p4           teepriv0            tty47               ubi_ctrl
caam-keygen         mmcblk2p5           tty                 tty48               uhid
cec0                mmcblk2rpmb         tty0                tty49               uinput
char                mqueue              tty1                tty5                urandom
console             mxc_hantro          tty10               tty50               v4l
core                mxc_hantro_vc8000e  tty11               tty51               vcs
cpu_dma_latency     net                 tty12               tty52               vcs1
cuse                null                tty13               tty53               vcs2
disk                port                tty14               tty54               vcs3
dri                 ppp                 tty15               tty55               vcs4
fb0                 pps0                tty16               tty56               vcs5
fd                  ptmx                tty17               tty57               vcs6
full                ptp0                tty18               tty58               vcsa
fuse                pts                 tty19               tty59               vcsa1
galcore             ptyp0               tty2                tty6                vcsa2
gpiochip0           ptyp1               tty20               tty60               vcsa3
gpiochip1           ptyp2               tty21               tty61               vcsa4
gpiochip2           ptyp3               tty22               tty62               vcsa5
gpiochip3           ptyp4               tty23               tty63               vcsa6
gpiochip4           ptyp5               tty24               tty7                vcsu
hidraw0             ptyp6               tty25               tty8                vcsu1
hwrng               ptyp7               tty26               tty9                vcsu2
i2c-0               ptyp8               tty27               ttyS0               vcsu3
i2c-1               ptyp9               tty28               ttyS1               vcsu4
i2c-2               ptypa               tty29               ttyS2               vcsu5
i2c-3               ptypb               tty3                ttyS3               vcsu6
i2c-6               ptypc               tty30               ttymxc0             vfio
input               ptypd               tty31               ttymxc1             vga_arbiter
ion                 ptype               tty32               ttyp0               vhci
kmsg                ptypf               tty33               ttyp1               video0
log                 random              tty34               ttyp2               video1
loop-control        rfkill              tty35               ttyp3               vsi_daemon_ctrl
mapper              rtc                 tty36               ttyp4               watchdog
mem                 rtc0                tty37               ttyp5               watchdog0
mmcblk2             rtc1                tty38               ttyp6               zero
mmcblk2boot0        sda                 tty39               ttyp7               zram0
mmcblk2boot1        sda1                tty4                ttyp8
mmcblk2gp0          shm                 tty40               ttyp9
mmcblk2gp1          snapshot            tty41               ttypa
mmcblk2gp2          snd                 tty42               ttypb

参考までに、カーネルアップデートはリンク先の方法を参考にしています。
https://armadillo.atmark-techno.com/forum/armadillo/14927
https://armadillo.atmark-techno.com/index.php/forum/armadillo/18002

また、SWUアップデート自体はアルマジロの出力から成功していると思います。

You can change this message by editing /etc/motd.
Last update on Mon Jan  8 20:07:54 JST 2024, updated:
  extra_os.kernel: 5.10.185-5 -> 5.10.185-6

よろしくおねがいします。

ファイル ファイルの説明
CAN_PEAK_USB確認.png アップデート後に再確認した結果

at_dominique.m…

2024年1月9日 10時09分

nakamoriさん

お世話になっています、
マルティネです。

> 上記方法を試したのですが、/dev/can0が生成されない状況です。

了解しました。
最初の返事はデバイスメーカーのサイトだけを参考にしていましたので、
もう少し確認します。

> また、SWUアップデート自体はアルマジロの出力から成功していると思います。

この出力とコンフィグの画像で問題ないと思いますが、いくつか確認させてください:

- インストールされたカーネルが /proc/config.gz に反映されますので、まずは有効にした設定があるかとモジュールの存在の確認です:

armadillo:~# zcat /proc/config.gz | grep CAN_PEAK_USB
CONFIG_CAN_PEAK_USB=m
armadillo:~# modinfo peak_usb
filename:       /lib/modules/5.10.../kernel/drivers/net/can/usb/peak_usb/peak_usb.ko
author:         Stephane Grosjean <s.grosjean@peak-system.com>
description:    CAN driver for PEAK-System USB adapters
license:        GPL v2
alias:          usb:v0C72p0014d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0C72p0013d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0C72p0011d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0C72p0012d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0C72p000Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0C72p000Cd*dc*dsc*dp*ic*isc*ip*in*
...

- そのドライバは「alias」でリストされている usb vendor/product id がある場合にロードされますので、USB/CAN変換デバイスが接続されている状態で lsusb を実行してデバイス ID を確認させてください (「ID 0C72:00○○」があるはずです)。
ある場合にモジュールもロードされるはずです:

armadillo:~# lsusb
Bus 003 Device 001: ID 1d6b:0002
Bus 001 Device 001: ID 1d6b:0002
...
armadillo:~# lsmod
Module                  Size  Used by    Not tainted

- モジュールがロードされている場合は 「dmesg」 の出力に何かのエラーが表示されている可能性が高いので、そのコマンドの出力も添付していただければ助かります。

よろしくお願いします。

nakamori

2024年1月9日 11時46分

お世話になっております。

下記、PCAN-USBを接続した状態で、コマンドを確認しました。

armadillo:~# zcat /proc/config.gz | grep CAN_PEAK_USB
CONFIG_CAN_PEAK_USB=m
armadillo:~# modinfo peak_usb
filename:       /lib/modules/5.10.185/kernel/drivers/net/can/usb/peak_usb/peak_usb.ko
author:         Stephane Grosjean <s.grosjean@peak-system.com>
description:    CAN driver for PEAK-System USB adapters
license:        GPL v2
alias:          usb:v0C72p0014d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0C72p0013d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0C72p0011d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0C72p0012d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0C72p000Dd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0C72p000Cd*dc*dsc*dp*ic*isc*ip*in*
depends:        can-dev
intree:         Y
vermagic:       5.10.185 SMP preempt mod_unload modversions aarch64
armadillo:~# lsusb
Bus 003 Device 001: ID 1d6b:0002
Bus 002 Device 002: ID 05e3:0626
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 003: ID 0c72:000c
Bus 001 Device 002: ID 05e3:0610
Bus 004 Device 001: ID 1d6b:0003
Bus 002 Device 001: ID 1d6b:0003
Bus 003 Device 003: ID 0eda:12df
Bus 003 Device 002: ID 0424:2422
Bus 002 Device 003: ID 056e:605d
armadillo:~# lsmod
Module                  Size  Used by    Tainted: G
peak_usb               36864  0
can_dev                24576  1 peak_usb

下記エラーが発生しているようです。
[ 3102.919788] can_dev: module verification failed: signature and/or required key missing - tainting kernel

armadillo:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.10.185 (atmark@atde9) (aarch64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #7 SMP PREEMPT Mon Jan 8 19:30:19 JST 2024
[    0.000000] Machine model: Atmark-Techno Armadillo-X2 Board
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000062000000, size 768 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Reserved memory: created DMA memory pool at 0x0000000094300000, size 1 MiB
[    0.000000] OF: reserved mem: initialized node vdev0buffer@94300000, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000055ffffff]
[    0.000000]   node   0: [mem 0x0000000058000000-0x00000000923fffff]
[    0.000000]   node   0: [mem 0x0000000092400000-0x00000000943fffff]
[    0.000000]   node   0: [mem 0x0000000094400000-0x00000000bfffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x00000000bfffffff]
[    0.000000] On node 0 totalpages: 516096
[    0.000000]   DMA zone: 8192 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 516096 pages, LIFO batch:63
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 22 pages/cpu s49176 r8192 d32744 u90112
[    0.000000] pcpu-alloc: s49176 r8192 d32744 u90112 alloc=22*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: kernel page table isolation forced ON by KASLR
[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 507904
[    0.000000] Kernel command line: console=ttymxc1,115200 root=/dev/mmcblk2p2 rootwait ro quiet drm.edid_firmware=edid/1280x800.bin
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1181392K/2064384K available (14334K kernel code, 1314K rwdata, 4972K rodata, 1984K init, 429K bss, 96560K reserved, 786432K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 160 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000038880000
[    0.000000] ITS: No ITS available, not enabling LPIs
[    0.000000] arch_timer: cp15 timer(s) running at 8.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
[    0.000003] sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
[    0.000465] Console: colour dummy device 80x25
[    0.000492] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=32000)
[    0.000501] pid_max: default: 32768 minimum: 301
[    0.000883] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000895] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.002482] rcu: Hierarchical SRCU implementation.
[    0.003996] smp: Bringing up secondary CPUs ...
[    0.004412] Detected VIPT I-cache on CPU1
[    0.004436] GICv3: CPU1: found redistributor 1 region 0:0x00000000388a0000
[    0.004469] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.004920] Detected VIPT I-cache on CPU2
[    0.004937] GICv3: CPU2: found redistributor 2 region 0:0x00000000388c0000
[    0.004954] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.005378] Detected VIPT I-cache on CPU3
[    0.005394] GICv3: CPU3: found redistributor 3 region 0:0x00000000388e0000
[    0.005413] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.005471] smp: Brought up 1 node, 4 CPUs
[    0.005479] SMP: Total of 4 processors activated.
[    0.005485] CPU features: detected: 32-bit EL0 Support
[    0.005489] CPU features: detected: CRC32 instructions
[    0.005773] CPU: All CPU(s) started at EL2
[    0.005788] alternatives: patching kernel code
[    0.006567] devtmpfs: initialized
[    0.017347] KASLR enabled
[    0.017519] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.017530] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.038078] pinctrl core: initialized pinctrl subsystem
[    0.038167] regulator: Failed to create debugfs directory
[    0.038362] regulator-dummy: Failed to create debugfs directory
[    0.039019] NET: Registered protocol family 16
[    0.046653] DMA: preallocated 256 KiB GFP_KERNEL pool for atomic allocations
[    0.047726] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.048836] DMA: preallocated 256 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.049375] thermal_sys: Registered thermal governor 'step_wise'
[    0.049712] cpuidle: using governor ladder
[    0.049728] cpuidle: using governor menu
[    0.049967] ASID allocator initialised with 32768 entries
[    0.051170] Serial: AMBA PL011 UART driver
[    0.051222] imx mu driver is registered.
[    0.051244] imx rpmsg driver is registered.
[    0.084004] imx8mp-pinctrl 30330000.pinctrl: no fsl,pins and pins property in node /soc@0/bus@30000000/pinctrl@30330000/expansiongrp
[    0.084022] imx8mp-pinctrl 30330000.pinctrl: no fsl,pins and pins property in node /soc@0/bus@30000000/pinctrl@30330000/customizegrp
[    0.084147] imx8mp-pinctrl 30330000.pinctrl: initialized IMX pinctrl driver
[    0.098558] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.098567] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.098572] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.098578] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.100378] cryptd: max_cpu_qlen set to 1000
[    0.102951] raid6: skip pq benchmark and using algorithm neonx8
[    0.102959] raid6: using neon recovery algorithm
[    0.104650] 1P8V: Failed to create debugfs directory
[    0.104872] 2P8V: Failed to create debugfs directory
[    0.105165] iommu: Default domain type: Translated
[    0.105318] vgaarb: loaded
[    0.105619] SCSI subsystem initialized
[    0.105785] libata version 3.00 loaded.
[    0.105947] usbcore: registered new interface driver usbfs
[    0.105977] usbcore: registered new interface driver hub
[    0.106002] usbcore: registered new device driver usb
[    0.107364] mc: Linux media interface: v0.10
[    0.107401] videodev: Linux video capture interface: v2.00
[    0.107450] pps_core: LinuxPPS API ver. 1 registered
[    0.107456] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.107468] PTP clock support registered
[    0.107498] EDAC MC: Ver: 3.0.0
[    0.108547] Advanced Linux Sound Architecture Driver Initialized.
[    0.108966] Bluetooth: Core ver 2.22
[    0.108981] NET: Registered protocol family 31
[    0.108987] Bluetooth: HCI device and connection manager initialized
[    0.108994] Bluetooth: HCI socket layer initialized
[    0.108999] Bluetooth: L2CAP socket layer initialized
[    0.109004] Bluetooth: SCO socket layer initialized
[    0.109902] clocksource: Switched to clocksource arch_sys_counter
[    0.116734] NET: Registered protocol family 2
[    0.116860] IP idents hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.117934] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    0.117966] TCP established hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.118106] TCP bind hash table entries: 16384 (order: 6, 262144 bytes, linear)
[    0.118316] TCP: Hash tables configured (established 16384 bind 16384)
[    0.118398] UDP hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.118439] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes, linear)
[    0.118633] NET: Registered protocol family 1
[    0.118653] NET: Registered protocol family 44
[    0.118662] PCI: CLS 0 bytes, default 64
[    0.123784] Initialise system trusted keyrings
[    0.123881] workingset: timestamp_bits=46 max_order=19 bucket_order=0
[    0.129813] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.166171] NET: Registered protocol family 38
[    0.166180] xor: measuring software checksum speed
[    0.170356]    8regs           :  2366 MB/sec
[    0.173874]    32regs          :  2802 MB/sec
[    0.178020]    arm64_neon      :  2382 MB/sec
[    0.178024] xor: using function: 32regs (2802 MB/sec)
[    0.178032] Key type asymmetric registered
[    0.178036] Asymmetric key parser 'x509' registered
[    0.178067] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.193578] imx-sdma 30bd0000.dma-controller: firmware found.
[    0.193723] imx-sdma 30bd0000.dma-controller: loaded firmware 4.5
[    0.195452] Bus freq driver module loaded
[    0.200274] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.202692] 30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 30, base_baud = 5000000) is a IMX
[    0.203363] 30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 31, base_baud = 1500000) is a IMX
[    0.203445] printk: console [ttymxc1] enabled
[    0.215567] zram: Added device: zram0
[    0.216695] imx ahci driver is registered.
[    0.219677] tun: Universal TUN/TAP device driver, 1.6
[    0.221744] PPP generic driver version 2.4.2
[    0.221868] PPP Deflate Compression module registered
[    0.222093] VFIO - User Level meta-driver version: 0.3
[    0.227752] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.227760] ehci-pci: EHCI PCI platform driver
[    0.227791] ehci-platform: EHCI generic platform driver
[    0.227963] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.227969] ohci-pci: OHCI PCI platform driver
[    0.228007] ohci-platform: OHCI generic platform driver
[    0.228611] usbcore: registered new interface driver cdc_acm
[    0.228614] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    0.228749] usbcore: registered new interface driver uas
[    0.228797] usbcore: registered new interface driver usb-storage
[    0.228864] usbcore: registered new interface driver usbserial_generic
[    0.228881] usbserial: USB Serial support registered for generic
[    0.228906] usbcore: registered new interface driver ftdi_sio
[    0.228931] usbserial: USB Serial support registered for FTDI USB Serial Device
[    0.228956] usbcore: registered new interface driver option
[    0.228972] usbserial: USB Serial support registered for GSM modem (1-port)
[    0.229007] usbcore: registered new interface driver usb_serial_simple
[    0.229021] usbserial: USB Serial support registered for carelink
[    0.229036] usbserial: USB Serial support registered for zio
[    0.229054] usbserial: USB Serial support registered for funsoft
[    0.229069] usbserial: USB Serial support registered for flashloader
[    0.229085] usbserial: USB Serial support registered for google
[    0.229098] usbserial: USB Serial support registered for libtransistor
[    0.229114] usbserial: USB Serial support registered for vivopay
[    0.229129] usbserial: USB Serial support registered for moto_modem
[    0.229143] usbserial: USB Serial support registered for motorola_tetra
[    0.229169] usbserial: USB Serial support registered for nokia
[    0.229188] usbserial: USB Serial support registered for novatel_gps
[    0.229203] usbserial: USB Serial support registered for hp4x
[    0.229229] usbserial: USB Serial support registered for suunto
[    0.229243] usbserial: USB Serial support registered for siemens_mpi
[    0.229275] usbcore: registered new interface driver usb_ehset_test
[    0.230974] udc-core: couldn't find an available UDC - added [g_multi] to list of pending drivers
[    0.232335] snvs_rtc 30370000.snvs:snvs-rtc-lp: registered as rtc1
[    0.232531] i2c /dev entries driver
[    0.233621] usbcore: registered new interface driver uvcvideo
[    0.233624] USB Video Class driver (1.1.1)
[    0.236135] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-devel@redhat.com
[    0.236225] Bluetooth: HCI UART driver ver 2.3
[    0.236247] Bluetooth: HCI UART protocol H4 registered
[    0.236251] Bluetooth: HCI UART protocol BCSP registered
[    0.236268] Bluetooth: HCI UART protocol LL registered
[    0.236272] Bluetooth: HCI UART protocol ATH3K registered
[    0.236289] Bluetooth: HCI UART protocol Three-wire (H5) registered
[    0.236354] Bluetooth: HCI UART protocol Intel registered
[    0.236438] Bluetooth: HCI UART protocol Broadcom registered
[    0.236470] Bluetooth: HCI UART protocol QCA registered
[    0.236474] Bluetooth: HCI UART protocol AG6XX registered
[    0.236491] Bluetooth: HCI UART protocol Marvell registered
[    0.236530] usbcore: registered new interface driver bcm203x
[    0.236569] usbcore: registered new interface driver bpa10x
[    0.236613] usbcore: registered new interface driver bfusb
[    0.236642] usbcore: registered new interface driver btusb
[    0.236687] usbcore: registered new interface driver ath3k
[    0.236962] EDAC MC: ECC not enabled
[    0.238099] sdhci: Secure Digital Host Controller Interface driver
[    0.238103] sdhci: Copyright(c) Pierre Ossman
[    0.238233] Synopsys Designware Multimedia Card Interface Driver
[    0.238857] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.240419] mmc2: CQHCI version 5.10
[    0.241423] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[    0.242203] caam-snvs 30370000.caam-snvs: violation handlers armed - init state
[    0.242440] hid: raw HID events driver (C) Jiri Kosina
[    0.242670] usbcore: registered new interface driver usbhid
[    0.242674] usbhid: USB HID core driver
[    0.245979] optee: probing for conduit method.
[    0.245997] optee: revision 3.15 (accb888e)
[    0.246218] optee: dynamic shared memory is enabled
[    0.246571] optee: initialized driver
[    0.249463] Galcore version 6.4.3.p2.336687
[    0.271163] mmc2: SDHCI controller on 30b60000.mmc [30b60000.mmc] using ADMA
[    0.364994] [drm] Initialized vivante 1.0.0 20170808 for 40000000.mix_gpu_ml on minor 0
[    0.366197] hantrodec 0 : module inserted. Major = 237
[    0.366830] hantrodec 1 : module inserted. Major = 237
[    0.367959] hantroenc: HW at base <0000000038320000> with ID <0x80006200>
[    0.368078] hx280enc: module inserted. Major <236>
[    0.369034] usbcore: registered new interface driver snd-usb-audio
[    0.375431] NET: Registered protocol family 10
[    0.377413] Segment Routing with IPv6
[    0.377661] NET: Registered protocol family 17
[    0.377693] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    0.377765] Bluetooth: RFCOMM TTY layer initialized
[    0.377774] Bluetooth: RFCOMM socket layer initialized
[    0.377778] Bluetooth: RFCOMM ver 1.11
[    0.377782] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    0.377788] Bluetooth: BNEP filters: protocol multicast
[    0.377793] Bluetooth: BNEP socket layer initialized
[    0.377798] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    0.377803] Bluetooth: HIDP socket layer initialized
[    0.377886] lib80211: common routines for IEEE802.11 drivers
[    0.377890] lib80211_crypt: registered algorithm 'NULL'
[    0.377912] lib80211_crypt: registered algorithm 'WEP'
[    0.377916] lib80211_crypt: registered algorithm 'CCMP'
[    0.377920] lib80211_crypt: registered algorithm 'TKIP'
[    0.377927] tsn generic netlink module v1 init...
[    0.378015] Key type dns_resolver registered
[    0.378020] mpls_gso: MPLS GSO support
[    0.378344] registered taskstats version 1
[    0.378352] Loading compiled-in X.509 certificates
[    0.380491] mmc2: Command Queue Engine enabled
[    0.380513] mmc2: new HS400 Enhanced strobe MMC card at address 0001
[    0.381297] mmcblk2: mmc2:0001 G1M15L 9.84 GiB
[    0.381463] mmcblk2boot0: mmc2:0001 G1M15L partition 1 31.5 MiB
[    0.381612] mmcblk2boot1: mmc2:0001 G1M15L partition 2 31.5 MiB
[    0.381698] Loaded X.509 cert 'Build time autogenerated kernel key: bb780a06ecb1c637e1befe496546ed1072c141f7'
[    0.381744] mmcblk2gp0: mmc2:0001 G1M15L partition 4 8.00 MiB
[    0.381931] mmcblk2gp1: mmc2:0001 G1M15L partition 5 8.00 MiB
[    0.382128] mmcblk2gp2: mmc2:0001 G1M15L partition 6 8.00 MiB
[    0.382268] mmcblk2gp3: mmc2:0001 G1M15L partition 7 8.00 MiB
[    0.382431] mmcblk2rpmb: mmc2:0001 G1M15L partition 3 4.00 MiB, chardev (239:0)
[    0.382716] Btrfs loaded, crc32c=crc32c-generic
[    0.386813]  mmcblk2: p1 p2 p3 p4 p5
[    0.390175] usb1_host_vbus: Failed to create debugfs directory
[    0.390440] VSD_3V3: Failed to create debugfs directory
[    0.390722] ENET_LDO_EN: Failed to create debugfs directory
[    0.390982] ENET1_LDO_EN: Failed to create debugfs directory
[    0.391245] VEXT_3P3V: Failed to create debugfs directory
[    0.391488] M2_3P3V: supplied by VEXT_3P3V
[    0.391558] M2_3P3V: Failed to create debugfs directory
[    0.394129]  mmcblk2gp1:
[    0.394144] BUCK1: Failed to create debugfs directory
[    0.395494] BUCK2: Failed to create debugfs directory
[    0.396257] BUCK4: Failed to create debugfs directory
[    0.396998] BUCK5: Failed to create debugfs directory
[    0.397737] BUCK6: Failed to create debugfs directory
[    0.398145] LDO1: Failed to create debugfs directory
[    0.398555] LDO2: Failed to create debugfs directory
[    0.399280] LDO3: Failed to create debugfs directory
[    0.399986] LDO4: Failed to create debugfs directory
[    0.400992] LDO5: Failed to create debugfs directory
[    0.402441] nxp-pca9450 0-0025: pca9450bc probed.
[    0.402599] i2c i2c-0: IMX I2C adapter registered
[    0.404494] rtc-rv8803 1-0032: Voltage low, temperature compensation stopped.
[    0.404502] rtc-rv8803 1-0032: Voltage low, data loss detected.
[    0.405764] rtc-rv8803 1-0032: Voltage low, data is invalid.
[    0.405865] rtc-rv8803 1-0032: registered as rtc0
[    0.406471] rtc-rv8803 1-0032: Voltage low, data is invalid.
[    0.406476] rtc-rv8803 1-0032: hctosys: unable to read the hardware clock
[    0.413968] usb251xb 1-002c: supply vdd not found, using dummy regulator
[    0.487458] usb251xb 1-002c: Hub configuration was successful.
[    0.487465] usb251xb 1-002c: Hub probed successfully
[    0.487607] i2c i2c-1: IMX I2C adapter registered
[    0.489179] fxl6408 2-0043: FXL6408 probe returned DID: 0xfa
[    0.494955] i2c i2c-2: IMX I2C adapter registered
[    0.495907] i2c i2c-3: IMX I2C adapter registered
[    0.497237] imx8mq-usb-phy 381f0040.usb-phy: supply vbus not found, using dummy regulator
[    0.497543] imx8mq-usb-phy 382f0040.usb-phy: supply vbus not found, using dummy regulator
[    0.509452] SoC: i.MX8MP revision 1.1
[    0.509670] imx-cpufreq-dt imx-cpufreq-dt: cpu speed grade 7 mkt segment 2 supported-hw 0x80 0x4
[    0.513240] imx-sdma 30e10000.dma-controller: firmware found.
[    0.795079] pps pps0: new PPS source ptp0
[    0.801229] mdio_bus 30be0000.ethernet-1: MDIO device at address 3 is missing.
[    0.810187] hwmon hwmon0: temp1_input not attached to any thermal zone
[    0.810757] fec 30be0000.ethernet eth0: registered PHC device 0
[    0.811656] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    0.811669] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1
[    0.811997] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x0000002021810010
[    0.812028] xhci-hcd xhci-hcd.1.auto: irq 63, io mem 0x38100000
[    0.812034] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[    0.812040] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2
[    0.812050] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed
[    0.812737] hub 1-0:1.0: USB hub found
[    0.812756] hub 1-0:1.0: 1 port detected
[    0.812983] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.813287] hub 2-0:1.0: USB hub found
[    0.813314] hub 2-0:1.0: 1 port detected
[    0.814323] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    0.814337] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 3
[    0.814664] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220fe6c hci version 0x110 quirks 0x0000002021810010
[    0.814697] xhci-hcd xhci-hcd.2.auto: irq 64, io mem 0x38200000
[    0.814703] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    0.814712] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 4
[    0.814719] xhci-hcd xhci-hcd.2.auto: Host supports USB 3.0 SuperSpeed
[    0.815367] hub 3-0:1.0: USB hub found
[    0.815394] hub 3-0:1.0: 1 port detected
[    0.815620] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.815939] hub 4-0:1.0: USB hub found
[    0.815955] hub 4-0:1.0: 1 port detected
[    0.817774] sdhci-esdhc-imx 30b50000.mmc: Got CD GPIO
[    0.817824] mmc1: CQHCI version 5.10
[    0.818607] caam 30900000.crypto: device ID = 0x0a16040100000100 (Era 9)
[    0.818615] caam 30900000.crypto: job rings = 1, qi = 0
[    0.822659] caam algorithms registered in /proc/crypto
[    0.823388] caam 30900000.crypto: caam pkc algorithms registered in /proc/crypto
[    0.823396] caam 30900000.crypto: registering rng-caam
[    0.824389] Device caam-keygen registered
[    0.828800] imx-drm display-subsystem: bound imx-lcdifv3-crtc.0 (ops 0xffffb49ec86be728)
[    0.828848] imx-drm display-subsystem: bound imx-lcdifv3-crtc.1 (ops 0xffffb49ec86be728)
[    0.829028] imx-drm display-subsystem: bound 32c00000.bus:ldb@32ec005c (ops 0xffffb49ec86ab748)
[    0.829253] dwhdmi-imx 32fd8000.hdmi: Detected HDMI TX controller v2.13a with HDCP (samsung_dw_hdmi_phy2)
[    0.829607] dwhdmi-imx 32fd8000.hdmi: registered DesignWare HDMI I2C bus driver
[    0.830321] imx-drm display-subsystem: bound 32fd8000.hdmi (ops 0xffffb49ec86abe30)
[    0.830503] [drm] Initialized imx-drm 1.0.0 20120507 for display-subsystem on minor 1
[    0.831218] [drm] Got external EDID base block and 0 extensions from "edid/1280x800.bin" for connector "HDMI-A-1"
[    0.849254] mmc1: SDHCI controller on 30b50000.mmc [30b50000.mmc] using ADMA
[    0.861128] random: crng init done
[    0.861976] ------------[ cut here ]------------
[    0.861987] WARNING: CPU: 2 PID: 32 at drivers/gpu/imx/lcdifv3/lcdifv3-common.c:401 lcdifv3_set_mode+0xb4/0x2f0
[    0.861989] Modules linked in:
[    0.861997] CPU: 2 PID: 32 Comm: kworker/2:1 Not tainted 5.10.185 #7
[    0.861999] Hardware name: Atmark-Techno Armadillo-X2 Board (DT)
[    0.862006] Workqueue: events deferred_probe_work_func
[    0.862011] pstate: 60000005 (nZCv daif -PAN -UAO -TCO BTYPE=--)
[    0.862014] pc : lcdifv3_set_mode+0xb4/0x2f0
[    0.862018] lr : lcdifv3_set_mode+0x1bc/0x2f0
[    0.862020] sp : ffff800010243160
[    0.862022] x29: ffff800010243160 x28: ffff4bc4837a6b60
[    0.862028] x27: 0000000000000000 x26: ffff4bc483c10c00
[    0.862034] x25: ffff4bc483c11600 x24: ffffb49ec86be738
[    0.862040] x23: 0000000000000038 x22: ffff4bc4837be400
[    0.862047] x21: ffffb49ec8da6810 x20: ffff4bc4837bc680
[    0.862053] x19: ffff8000102431c8 x18: 00000000fffffffb
[    0.862059] x17: 0000000095407b37 x16: 00000000545468fe
[    0.862065] x15: 00000023515178fa x14: 000000000000003a
[    0.862071] x13: 0000000000000000 x12: 0000000000000008
[    0.862077] x11: 0000000000000000 x10: 000000000000003a
[    0.862082] x9 : 0000000000000000 x8 : ffff4bc4ffb82e80
[    0.862088] x7 : ffff4bc4ffb82e00 x6 : 0000000000000000
[    0.862094] x5 : 0000000000000000 x4 : 0000000000000000
[    0.862100] x3 : 0000000000000000 x2 : 0000000000000000
[    0.862106] x1 : ffff800021f80018 x0 : 00000000001a000a
[    0.862110] Call trace:
[    0.862116]  lcdifv3_set_mode+0xb4/0x2f0
[    0.862120]  lcdifv3_crtc_atomic_enable+0x84/0xd0
[    0.862124]  drm_atomic_helper_commit_modeset_enables+0x200/0x250
[    0.862128]  lcdifv3_drm_atomic_commit_tail+0x30/0x70
[    0.862130]  commit_tail+0xa0/0x17c
[    0.862134]  drm_atomic_helper_commit+0x14c/0x17c
[    0.862138]  drm_atomic_commit+0x4c/0x5c
[    0.862143]  drm_client_modeset_commit_atomic+0x20c/0x250
[    0.862148]  drm_client_modeset_commit_locked+0x5c/0x1a0
[    0.862153]  drm_client_modeset_commit+0x30/0x60
[    0.862159]  drm_fb_helper_set_par+0xc8/0x120
[    0.862163]  fbcon_init+0x3bc/0x53c
[    0.862167]  visual_init+0xb0/0x110
[    0.862170]  do_bind_con_driver.isra.0+0x1c8/0x39c
[    0.862173]  do_take_over_console+0x140/0x200
[    0.862176]  do_fbcon_takeover+0x74/0xf0
[    0.862179]  fbcon_fb_registered+0x104/0x120
[    0.862182]  register_framebuffer+0x20c/0x320
[    0.862188]  __drm_fb_helper_initial_config_and_unlock+0x300/0x4f4
[    0.862192]  drm_fbdev_client_hotplug+0x110/0x220
[    0.862196]  drm_fbdev_generic_setup+0xb0/0x190
[    0.862200]  imx_drm_bind+0x108/0x14c
[    0.862205]  try_to_bring_up_master+0x164/0x1d0
[    0.862209]  __component_add+0xa0/0x170
[    0.862215]  component_add+0x14/0x20
[    0.862220]  lcdifv3_crtc_probe+0x4c/0x80
[    0.862228]  platform_drv_probe+0x54/0xac
[    0.862235]  really_probe+0xf0/0x4c0
[    0.862242]  driver_probe_device+0x58/0xec
[    0.862247]  __device_attach_driver+0xb8/0x120
[    0.862250]  bus_for_each_drv+0x78/0xd0
[    0.862254]  __device_attach+0xa8/0x1c0
[    0.862258]  device_initial_probe+0x14/0x20
[    0.862261]  bus_probe_device+0x9c/0xa4
[    0.862266]  device_add+0x358/0x780
[    0.862271]  platform_device_add+0x114/0x234
[    0.862274]  imx_lcdifv3_probe+0x2c4/0x490
[    0.862279]  platform_drv_probe+0x54/0xac
[    0.862285]  really_probe+0xf0/0x4c0
[    0.862290]  driver_probe_device+0x58/0xec
[    0.862296]  __device_attach_driver+0xb8/0x120
[    0.862302]  bus_for_each_drv+0x78/0xd0
[    0.862308]  __device_attach+0xa8/0x1c0
[    0.862312]  device_initial_probe+0x14/0x20
[    0.862317]  bus_probe_device+0x9c/0xa4
[    0.862323]  deferred_probe_work_func+0x80/0xc0
[    0.862328]  process_one_work+0x1cc/0x330
[    0.862334]  worker_thread+0x2e0/0x460
[    0.862338]  kthread+0x158/0x160
[    0.862343]  ret_from_fork+0x10/0x38
[    0.862345] ---[ end trace 5d801ada8ccacb8f ]---
[    0.878969] Console: switching to colour frame buffer device 128x48
[    0.903824] imx-drm display-subsystem: [drm] fb0: imx-drmdrmfb frame buffer device
[    0.907236] input: audio-hdmi HDMI Jack as /devices/platform/sound-hdmi/sound/card0/input0
[    0.909227] input: gpio-keys as /devices/platform/gpio-keys/input/input1
[    0.926338] ALSA device list:
[    0.926346]   #0: audio-hdmi
[    0.933114] EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null)
[    0.933149] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    0.934069] devtmpfs: mounted
[    0.934531] Freeing unused kernel memory: 1984K
[    0.954238] Run /sbin/init as init process
[    0.954245]   with arguments:
[    0.954247]     /sbin/init
[    0.954250]   with environment:
[    0.954252]     HOME=/
[    0.954255]     TERM=linux
[    1.069938] usb 3-1: new high-speed USB device number 2 using xhci-hcd
[    1.069941] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    1.260462] hub 1-1:1.0: USB hub found
[    1.260719] hub 1-1:1.0: 4 ports detected
[    1.263635] hub 3-1:1.0: USB hub found
[    1.263677] hub 3-1:1.0: 2 ports detected
[    1.350089] usb 2-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
[    1.405080] hub 2-1:1.0: USB hub found
[    1.405871] hub 2-1:1.0: 4 ports detected
[    1.553958] usb 3-1.1: new full-speed USB device number 3 using xhci-hcd
[    1.669171] udevd[690]: starting version 3.2.11
[    1.694031] usb 2-1.4: new SuperSpeed Gen 1 USB device number 3 using xhci-hcd
[    1.711793] udevd[690]: starting eudev-3.2.11
[    1.713536] input: Noritake GTWX101VHB00P as /devices/platform/soc@0/32f10108.usb/38200000.dwc3/xhci-hcd.2.auto/usb3/3-1/3-1.1/3-1.1:1.0/0003:0EDA:12DF.0001/input/input2
[    1.713707] hid-multitouch 0003:0EDA:12DF.0001: input,hidraw0: USB HID v1.00 Device [Noritake GTWX101VHB00P] on usb-xhci-hcd.2.auto-1.1/input0
[    1.721353] usb-storage 2-1.4:1.0: USB Mass Storage device detected
[    1.748026] scsi host0: usb-storage 2-1.4:1.0
[    1.780812] EXT4-fs (mmcblk2p2): re-mounted. Opts: (null)
[    1.822360] EXT4-fs (mmcblk2p3): mounted filesystem with ordered data mode. Opts: (null)
[    1.864856] BTRFS: device label app devid 1 transid 15915 /dev/mmcblk2p5 scanned by busybox (863)
[    1.865536] BTRFS info (device mmcblk2p5): using crc32c (crc32c-generic) checksum algorithm
[    1.865551] BTRFS info (device mmcblk2p5): flagging fs with big metadata feature
[    1.865560] BTRFS info (device mmcblk2p5): use zstd compression, level 3
[    1.865567] BTRFS info (device mmcblk2p5): turning on async discard
[    1.865573] BTRFS info (device mmcblk2p5): using free space tree
[    1.865577] BTRFS info (device mmcblk2p5): has skinny extents
[    1.873284] BTRFS info (device mmcblk2p5): enabling ssd optimizations
[    2.755126] scsi 0:0:0:0: Direct-Access     ELECOM   MF-SU3A          PMAP PQ: 0 ANSI: 6
[    2.756044] sd 0:0:0:0: [sda] 242118656 512-byte logical blocks: (124 GB/115 GiB)
[    2.756949] sd 0:0:0:0: [sda] Write Protect is off
[    2.756965] sd 0:0:0:0: [sda] Mode Sense: 45 00 00 00
[    2.757531] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.882093] Marvell 88E1510 30be0000.ethernet-1:00: attached PHY driver [Marvell 88E1510] (mii_bus:phy_addr=30be0000.ethernet-1:00, irq=POLL)
[    2.921012]  sda: sda1
[    2.923361] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    3.062657] zram0: detected capacity change from 0 to 1000001536
[    3.094091] Adding 976560k swap on /dev/zram0.  Priority:100 extents:1 across:976560k SS
[    3.962202] podman0: port 1(veth0) entered blocking state
[    3.962211] podman0: port 1(veth0) entered disabled state
[    3.962355] device veth0 entered promiscuous mode
[    3.963645] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    3.963732] IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready
[    3.963802] podman0: port 1(veth0) entered blocking state
[    3.963806] podman0: port 1(veth0) entered forwarding state
[    4.415115] podman0: port 1(veth0) entered disabled state
[    4.415610] device veth0 left promiscuous mode
[    4.415617] podman0: port 1(veth0) entered disabled state
[   29.506789] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   29.507549] fec 30be0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 3102.779677] usb 1-1.1: new full-speed USB device number 3 using xhci-hcd
[ 3102.919788] can_dev: module verification failed: signature and/or required key missing - tainting kernel
[ 3102.920647] CAN device driver interface
[ 3102.923527] peak_usb 1-1.1:1.0: PEAK-System PCAN-USB adapter hwrev 84 serial FFFFFFFF (1 channel)
[ 3102.923726] peak_usb 1-1.1:1.0 can0: attached to PCAN-USB channel 0 (device 255)
[ 3102.924524] usbcore: registered new interface driver peak_usb

参考までに、再度CAN0を確認しましたが、ありませんでした。

armadillo:/dev# ls
autofs              input               ptyp0               tty                 tty36               tty7                vcs1
block               ion                 ptyp1               tty0                tty37               tty8                vcs2
bsg                 kmsg                ptyp2               tty1                tty38               tty9                vcs3
btrfs-control       log                 ptyp3               tty10               tty39               ttyS0               vcs4
bus                 loop-control        ptyp4               tty11               tty4                ttyS1               vcs5
caam-keygen         mapper              ptyp5               tty12               tty40               ttyS2               vcs6
cec0                mem                 ptyp6               tty13               tty41               ttyS3               vcsa
char                mmcblk2             ptyp7               tty14               tty42               ttymxc0             vcsa1
console             mmcblk2boot0        ptyp8               tty15               tty43               ttymxc1             vcsa2
core                mmcblk2boot1        ptyp9               tty16               tty44               ttyp0               vcsa3
cpu_dma_latency     mmcblk2gp0          ptypa               tty17               tty45               ttyp1               vcsa4
cuse                mmcblk2gp1          ptypb               tty18               tty46               ttyp2               vcsa5
disk                mmcblk2gp2          ptypc               tty19               tty47               ttyp3               vcsa6
dri                 mmcblk2gp3          ptypd               tty2                tty48               ttyp4               vcsu
fb0                 mmcblk2p1           ptype               tty20               tty49               ttyp5               vcsu1
fd                  mmcblk2p2           ptypf               tty21               tty5                ttyp6               vcsu2
full                mmcblk2p3           random              tty22               tty50               ttyp7               vcsu3
fuse                mmcblk2p4           rfkill              tty23               tty51               ttyp8               vcsu4
galcore             mmcblk2p5           rtc                 tty24               tty52               ttyp9               vcsu5
gpiochip0           mmcblk2rpmb         rtc0                tty25               tty53               ttypa               vcsu6
gpiochip1           mqueue              rtc1                tty26               tty54               ttypb               vfio
gpiochip2           mxc_hantro          sda                 tty27               tty55               ttypc               vga_arbiter
gpiochip3           mxc_hantro_vc8000e  sda1                tty28               tty56               ttypd               vhci
gpiochip4           net                 shm                 tty29               tty57               ttype               video0
hidraw0             null                snapshot            tty3                tty58               ttypf               video1
hwrng               port                snd                 tty30               tty59               ubi_ctrl            vsi_daemon_ctrl
i2c-0               ppp                 stderr              tty31               tty6                uhid                watchdog
i2c-1               pps0                stdin               tty32               tty60               uinput              watchdog0
i2c-2               ptmx                stdout              tty33               tty61               urandom             zero
i2c-3               ptp0                tee0                tty34               tty62               v4l                 zram0
i2c-6               pts                 teepriv0            tty35               tty63               vcs

よろしくお願いします。

at_dominique.m…

2024年1月9日 13時27分

マルティネです。

> 下記、PCAN-USBを接続した状態で、コマンドを確認しました。

ログありがとうございます。

> 下記エラーが発生しているようです。
> [ 3102.919788] can_dev: module verification failed: signature and/or required key missing - tainting kernel

このメッセージはただビルドが証明されてないというワーニングだけで、無視していいです。

> [ 0.861987] WARNING: CPU: 2 PID: 32 at drivers/gpu/imx/lcdifv3/lcdifv3-common.c:401 lcdifv3_set_mode+0xb4/0x2f0
(このワーニングは今の話と関係ないですが、ちょっと気になりますので後ほど確認します)

> [ 3102.920647] CAN device driver interface
> [ 3102.923527] peak_usb 1-1.1:1.0: PEAK-System PCAN-USB adapter hwrev 84 serial FFFFFFFF (1 channel)
> [ 3102.923726] peak_usb 1-1.1:1.0 can0: attached to PCAN-USB channel 0 (device 255)
> [ 3102.924524] usbcore: registered new interface driver peak_usb

モジュールが無事にロードされましたね。
私の勘違いでお手数をお掛けしましたが、最初から /dev/can0 というデバイスがなくていいらしいです。
(can を linux で使ったことなかったので勘違いしていました)

おそらく 「ip link」でネットワークインターフェースを表示すると can0 のインタフェースがあると思いますが、どうでしょうか?

コンテナで使う場合は add_devices ではなく、「

set_network host<code>」で使用可能になります。
「<code>add_args --cap-add NET_ADMIN

」も必要かもしれません。

https://elinux.org/Bringing_CAN_interface_up / https://developer.ridgerun.com/wiki/index.php/How_to_configure_and_use_… によりますと、can0 インターフェースの bitrate を設定する必要があります(iproute2 の ip コマンドが必要だと思いますので、このコマンドも iproute2 がインストールされているコンテナで実行してみてください)

# ip link set can0 type can bitrate 125000
# ip link set up can0

コンテナに can-utils パッケージをインストールしていただければ candump/cansend コマンド等で確認できます。

(コンテナがアルマジロのネットワークを直接に使うことになります。厳密には can インターフェスだけをコンテナに提供することもできますが、複雑な手順になりますのでひとまずこれで確認していただければと思います)

よろしくお願いします。

nakamori

2024年1月9日 18時33分

マルティネ様

お世話になっております。

> おそらく 「ip link」でネットワークインターフェースを表示すると can0 のインタフェースがあると思いますが、どうでしょうか?
上記コマンドで確認出来ました。

armadillo:~# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:11:0c:36:00:06 brd ff:ff:ff:ff:ff:ff
5: can0: <NOARP,UP,LOWER_UP40000> mtu 16 qdisc pfifo_fast state UP qlen 10
    link/[280]
6: podman0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP qlen 1000
    link/ether ca:ac:8c:1e:8a:ac brd ff:ff:ff:ff:ff:ff
7: veth0@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master podman0 state UP qlen 1000
    link/ether ca:ac:8c:1e:8a:ac brd ff:ff:ff:ff:ff:ff

> コンテナで使う場合は add_devices ではなく、
>set_network host
>で使用可能になります。
> add_args --cap-add NET_ADMIN
も必要かもしれません。

> https://elinux.org/Bringing_CAN_interface_up / https://developer.ridgerun.com/wiki/index.php/How_to_configure_and_use_… によりますと、can0 インターフェースの bitrate を設定する必要があります(iproute2 の ip コマンドが必要だと思いますので、このコマンドも iproute2 がインストールされているコンテナで実行してみてください)

> # ip link set can0 type can bitrate 125000
> # ip link set up can0

上記につきましても、動作確認出来ました。対応ありがとうございます。
参考までに、コンテナのコンフィグファイルからadd_args --cap-add NET_ADMIN
部分を省略した際は、パーミッションエラーが発生することも分かりました。

nakamori

2024年1月9日 18時39分

上記と直接は関係ないのですが、armadillo-x2は下記のようなUSB/RS232C変換デバイスも接続可能でしょうか?
https://www.sanwa.co.jp/product/syohin?code=USB-CVRS9HN
*上記サイトのQ&AではLinux不可とありますが、デバイスのざっくりしたイメージ確認用です。

at_ohsawa

2024年1月10日 17時36分

> 質問が不明瞭だったため、改めて質問させていただきます。
> https://www.aten.com/jp/ja/supportcenter/downloads/?action=display_prod…
> 上記リンク製品のデバイスドライバをarmadillo-x2にインストールする方法を教えて頂けますでしょうか?
>
> よろしくお願いします。

自分でドライバの導入することに自信がある場合を除いて、この製品ではなく
FTDIやProlific, silicon labs等のLinuxカーネルにデバイスドライバが含まれる
製品を使うことをお勧めします。

nakamori

2024年1月10日 17時49分

> 自分でドライバの導入することに自信がある場合を除いて、この製品ではなく
> FTDIやProlific, silicon labs等のLinuxカーネルにデバイスドライバが含まれる
> 製品を使うことをお勧めします。

ご連絡ありがとうございます。
ちなみにlsusbコマンドを実行すると、

armadillo:/sys/bus/usb-serial/drivers# lsusb
...
Bus 001 Device 005: ID 067b:23a3 Prolific Technology Inc. ATEN USB to Serial Bridge
...

と表示される場合は、Prolific、つまり新規のドライバインストール無しで使用することが出来るのでしょうか?
よろしくお願いします。

at_ohsawa

2024年1月10日 19時41分

そのVID:PIDであればProlificのPL2032ですね。
Armadillo X2 のデフォルト状態では有効にされていませんが、すでにLinuxにはドライバがあるので
まずは ATDE で Linux カーネルをビルドする必要があります。

手順は先のCANと同じで、特定のドライバについてmenuconfigで"m"を設定して
ビルドします。menuconfig内で/で検索するときのキーワードは
「USB_SERIAL_PL2303」です。

nakamori

2024年1月12日 11時38分

お世話になっております。

> 手順は先のCANと同じで、特定のドライバについてmenuconfigで"m"を設定して
> ビルドします。menuconfig内で/で検索するときのキーワードは
> 「USB_SERIAL_PL2303」です。

上記手順で動作確認出来ました。対応ありがとうございました。