kubota_012
2023年9月26日 15時25分
お世話になっております。
Armadillo X1にDA00絶縁デジタル入出力/アナログ入力アドオンモジュールのDA00を接続し、
4-20mAのアナログセンサ(重量計)から得られた電流値を電圧として取得することを試行しています。
マニュアルを見ると、電圧値の算出に必要なファイルとして以下が挙げられていました。
in_voltage0_raw シングルエンド入力 CH0 のAD 変換値
in_voltage1_raw シングルエンド入力 CH1 のAD 変換値
in_voltage_scale シングルエンド入力の最小入力電圧変動
in_voltage0-voltage1_raw 疑似差動入力のAD 変換値
in_voltage-voltage_scale 疑似差動入力の最小入力電圧変動
しかし、当方の環境では
in_voltage0_raw
in_voltage1_raw
in_voltage_scale
の3つしかファイルが生成されておりません。
また、これら3つのファイル内容は、重量計上に載った重量を変化させても殆ど誤差レベルでしか変化しておりません。
DA00側に課題があるのか、4-20mAアナログセンサとDA00の接続間に課題があるか、問題の切り分けを行いたいと考えております。
ファイルが3つしか生成されていない点に何か問題があるか、ご教示頂けますでしょうか。
また、ファイルから電圧値を算出する際の計算方法についてもご教示いただけますと幸いです。
コメント
kubota_012
三浦様
お世話になります。
Linuxカーネル起動時のログには以下が確認できましたので、モジュールは認識されているかと思います。
armadillo_iotg_addon addon: Atmark Techno DI/DO/AD board detected at Add-On Module I/F 1(Rev 2, SerialNumber=5474).
回路に関しても、CON3の1ピンと2ピンの間に250Ωの抵抗を接続しており、0-5Vの範囲となるようにしております。
> 三浦です。
>
> まず、アドオンモジュールが認識されているかをご確認ください。
> 絶縁IOアドオンモジュールが接続されているとき、Linuxカーネルの起動ログに次のように出力されます。
>
>
> armadillo_iotg_addon addon: Atmark Techno DI/DO/AD board detected at Add-? On Module I/F 1(Rev x, SerialNumber=xxxx). >
>
> Linux起動後であれば以下コマンドでも確認できます。
>
>
> root@armadillo:~# dmesg | grep "addon" >
>
> また、DA00絶縁デジタル入出力/アナログ入力アドオンモジュールのアナログ入力は0-5V入力用なので
> 4-20mA出力機器と接続する場合には、250Ωのシャント抵抗を外付けで接続する必要があります。
> こちら、接続済みでしょうか?
> アナログ入力CH0を使用の場合は、CON3の1ピンと2ピン間に挿入してください。
>
> 以上、よろしくお願いします。
>
at_keitaro.takahashi
kubota_012
以下が確認時のコマンドとディレクトリ構造となります。
root@armadillo:~# ls /sys/bus/iio/devices/iio\:device*/
current_timestamp_clock in_voltage0_raw name subsystem
dev in_voltage1_raw of_node uevent
events in_voltage_scale power
devicesのディレクトリにはiio:device0しか存在しておりません。
> 高橋です。
> 確認するIIOデバイスが違っている可能性があります。
>
> ファイルの存在や電圧の確認の際に実行したコマンドに加えて、
> 以下コマンドの結果をご確認いただけますでしょうか。
>
>
> ls /sys/bus/iio/devices/iio\:device*/ >
>
>
at_keitaro.takahashi
kubota_012
お世話になっております。
Linuxカーネルのみ、標準状態から一部設定を有効にした上でビルドを行っております。
以下がコマンドの実行結果となります。
root@armadillo:~# cat /sys/bus/platform/devices/addon/interface1/product_name
DI/DO/AD
root@armadillo:~# uname -a
Linux armadillo 4.9.133-at30 #2 SMP PREEMPT Tue Sep 26 16:31:11 JST 2023 armv7l GNU/Linux
root@armadillo:~# dmesg |grep addon
[ 0.431906] armadillo_iotg_addon addon: probe
[ 1.715354] armadillo_iotg_addon addon: Atmark Techno DI/DO/AD board detected at Add-On Module I/F 1(Rev 2, SerialNumber=5474).
[ 1.715624] armadillo_iotg_addon addon: Failed to resolve phandles
[ 1.722488] armadillo_iotg_addon addon: No add-on expansion board detected at Add-On Module I/F 2.
root@armadillo:~# cat /proc/device-tree/model
Atmark-Techno Armadillo-X1 Board
> 高橋です。
>
> アドオンモジュールがIIOデバイスとして認識されていないようです。
>
> ご使用のソフトウェア(ブートローダー、デバイスツリー、カーネルなど)は、標準イメージからカスタマイズして使用していますでしょうか。
> また、以下コマンドを実行し、表示される内容を全て教えてください。
> cat /sys/bus/platform/devices/addon/interface1/product_name
> uname -a
> dmesg |grep addon
> cat /proc/device-tree/model
>
at_keitaro.takahashi
高橋です。情報ご提供いただきありがとうございます。
手元のArmadillo-X1で試しましたが、DA00を認識でき、下記のエラーも表示されませんでした。
「armadillo_iotg_addon addon: Failed to resolve phandles」
以下ページのインストールディスクイメージを使用して初期化した場合も、同様の現象が発生しますでしょうか。
https://armadillo.atmark-techno.com/resources/software/armadillo-x1/dis…
また、現状(DA00を認識できない状態)の起動ログ及び、Linuxカーネルの変更内容(変更したコンフィギュレーションなど)を貼っていただけると幸いです。
kubota_012
再度uImageとdbtファイルのビルド、書き換えを行ったところ、iio:device1が出現しました。
in_voltage0_rawの値も重量に応じて変化するようになりましたので、解決したかと思います。
お手数をお掛け致しました。
カーネルの変更内容としては、USBディスプレイ接続の為に下記記事の通りに変更しております
https://armadillo.atmark-techno.com/blog/53/2964
以下が異常発生時の起動時全ログとなります。
reboot
udlfb: released /dev/fb0 user=1 count=1
udlfb: /dev/fb0 FB_BLANK mode 1 --> 0
udlfb: /dev/fb0 FB_BLANK mode 0 --> 0
udlfb: released /dev/fb0 user=1 count=0
[ OK ] Started Show Plymouth Reboot Screen.
[ OK ] Unmounted /run/user/0.
[ OK ] Stopped User Runtime Directory /run/user/0.
[ OK ] Removed slice User Slice of UID 0.
[ OK ] Unmounted /run/user/113.
[ OK ] Stopped User Runtime Directory /run/user/113.
[ OK ] Removed slice User Slice of UID 113.
Stopping Permit User Sessions...
[ OK ] Stopped Permit User Sessions.
[ OK ] Stopped target Network.
Stopping WPA supplicant...
Stopping Network Manager...
[ OK ] Stopped target Remote File Systems.
[ OK ] Stopped WPA supplicant.
[ OK ] Stopped Network Manager.
Stopping D-Bus System Message Bus...
[ OK ] Stopped D-Bus System Message Bus.
[ OK ] Stopped target Basic System.
[ OK ] Stopped Forward Password R…s to Plymouth Directory Watch.
[ OK ] Stopped target Slices.
[ OK ] Removed slice User and Session Slice.
[ OK ] Stopped target Sockets.
[ OK ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Closed Syslog Socket.
[ OK ] Stopped target Paths.
[ OK ] Closed D-Bus System Message Bus Socket.
[ OK ] Stopped target System Initialization.
[ OK ] Stopped Apply Kernel Variables.
Stopping Network Time Synchronization...
[ OK ] Stopped target Local Encrypted Volumes.
[ OK ] Stopped Forward Password R…uests to Wall Directory Watch.
[ OK ] Stopped Load Kernel Modules.
Stopping Load/Save Random Seed...
[ OK ] Stopped target Swap.
Stopping Update UTMP about System Boot/Shutdown...
[ OK ] Stopped Network Time Synchronization.
[ OK ] Stopped Load/Save Random Seed.
[ OK ] Stopped Update UTMP about System Boot/Shutdown.
[ OK ] Stopped Create Volatile Files and Directories.
[ OK ] Stopped target Local File Systems.
Unmounting /media/root/643F-7C87...
Unmounting /media/root/643F-7C7F...
[ OK ] Unmounted /media/root/643F-7C87.
[ OK ] Unmounted /media/root/643F-7C7F.
Stopping Clean the /media/root/643F-7C7F mount point...
[ OK ] Reached target Unmount All Filesystems.
Stopping Clean the /media/root/643F-7C87 mount point...
[ OK ] Stopped target Local File Systems (Pre).
[ OK ] Stopped Create Static Device Nodes in /dev.
[ OK ] Stopped Create System Users.
[ OK ] Stopped Remount Root and Kernel File Systems.
[ OK ] Stopped Clean the /media/root/643F-7C7F mount point.
[ OK ] Stopped Clean the /media/root/643F-7C87 mount point.
[ OK ] Removed slice system-clean\x2dmount\x2dpoint.slice.
[ OK ] Reached target Shutdown.
[ OK ] Reached target Final Step.
[ OK ] Started Reboot.
[ OK ] Reached target Reboot.
watchdog: watchdog0: watchdog did not stop!
systemd-shutdow: 24 output lines suppressed due to ratelimiting
systemd-shutdown[1]: Syncing filesystems and block devices.
systemd-shutdown[1]: Sending SIGTERM to remaining processes...
systemd-journald[279]: Received SIGTERM from PID 1 (systemd-shutdow).
systemd-shutdown[1]: Sending SIGKILL to remaining processes...
systemd-shutdown[1]: Hardware watchdog 'imx2+ watchdog', version 0
systemd-shutdown[1]: Unmounting file systems.
[3975]: Remounting '/' read-only in with options 'data=ordered'.
EXT4-fs (mmcblk2p2): re-mounted. Opts: data=ordered
systemd-shutdown[1]: All filesystems unmounted.
systemd-shutdown[1]: Deactivating swaps.
systemd-shutdown[1]: All swaps deactivated.
systemd-shutdown[1]: Detaching loop devices.
systemd-shutdown[1]: All loop devices detached.
ci_hdrc ci_hdrc.1: remove, state 1
usb usb2: USB disconnect, device number 1
usb 2-1: USB disconnect, device number 2
ci_hdrc ci_hdrc.1: USB bus 2 deregistered
ci_hdrc ci_hdrc.0: remove, state 1
usb usb1: USB disconnect, device number 1
usb 1-1: USB disconnect, device number 2
usb 1-1.1: USB disconnect, device number 3
udlfb: USB disconnect starting
udlfb: Freeing all render urbs
udlfb: fb_info for /dev/fb0 has been freed
udlfb: freeing dlfb_data 88cc2000
usb 1-1.2: USB disconnect, device number 4
usb 1-1.3: USB disconnect, device number 5
usb 1-1.4: USB disconnect, device number 6
ci_hdrc ci_hdrc.0: USB bus 1 deregistered
imx2-wdt 30280000.wdog: Device shutdown: Expect reboot!
reboot: Restarting system
U-Boot SPL 2016.07-at23 (Mar 25 2022 - 16:42:41)
Trying to boot from SPI
U-Boot 2016.07-at23 (Mar 25 2022 - 16:42:41 +0900)
CPU: Freescale i.MX7D rev1.3 at 996MHz
CPU: Extended Commercial temperature grade (-20C to 105C) at 41C
Reset cause: POR
Watchdog enabled
I2C: ready
DRAM: 512 MiB
Boot Source: QSPI Flash
Board Type: Armadillo-X1(0a100000)
Revision: 0002
S/N: 45268
DRAM: 00001d05
XTAL: 00
X1 Addon EEPROM Detect
MMC: FSL_SDHC: 0
Loading Environment from SPI Flash... SF: Detected N25Q128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
Failed (-5)
Loading Environment from SPI Flash... SF: Detected N25Q128 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
Failed (-5)
In: serial
Out: serial
Err: serial
Found PFUZE300! deviceid 0x30, revid 0x11
Net: FEC0
switch to partitions #0, OK
mmc0(part 0) is current device
switch to partitions #0, OK
mmc0(part 0) is current device
reading boot.scr
** Unable to read file boot.scr **
reading boot.scr
** Unable to read file boot.scr **
reading uImage
12932560 bytes read in 317 ms (38.9 MiB/s)
Booting from mmc ...
reading armadillo_x1.dtb
39081 bytes read in 17 ms (2.2 MiB/s)
## Booting kernel from Legacy Image at 82000000 ...
Image Name: Linux-4.9.133-at30
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 12932496 Bytes = 12.3 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 84800000
Booting using the fdt blob at 0x84800000
Loading Kernel Image ... OK
Using Device Tree in place at 84800000, end 8480c8a8
Starting kernel ...
Booting Linux on physical CPU 0x0
Linux version 4.9.133-at30 (atmark@atde8) (gcc version 8.3.0 (Debian 8.3.0-2) ) #2 SMP PREEMPT Tue Sep 26 16:31:11 JST 2023
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
CPU: div instructions available: patching division code
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Atmark-Techno Armadillo-X1 Board
Reserved memory: created CMA memory pool at 0x8c000000, size 320 MiB
OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
Memory policy: Data cache writealloc
percpu: Embedded 14 pages/cpu @8ba9f000 s26636 r8192 d22516 u57344
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129920
Kernel command line: console=ttymxc4,115200 root=/dev/mmcblk2p2 rootwait rw
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 166932K/524288K available (11264K kernel code, 680K rwdata, 6024K rodata, 4096K init, 511K bss, 29676K reserved, 327680K cma-reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xa0800000 - 0xff800000 (1520 MB)
lowmem : 0x80000000 - 0xa0000000 ( 512 MB)
pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
.text : 0x80008000 - 0x80c00000 (12256 kB)
.init : 0x81300000 - 0x81700000 (4096 kB)
.data : 0x81700000 - 0x817aa1a0 ( 681 kB)
.bss : 0x817ac000 - 0x8182bcac ( 512 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Preemptible hierarchical RCU implementation.
Build-time adjustment of leaf fanout to 32.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
arm_arch_timer: Architected cp15 timer(s) running at 8.00MHz (phys).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1d854df40, max_idle_ns: 440795202120 ns
sched_clock: 56 bits at 8MHz, resolution 125ns, wraps every 2199023255500ns
Switching to timer-based delay loop, resolution 125ns
Ignoring duplicate/late registration of read_current_timer delay
clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 16.00 BogoMIPS (lpj=80000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
CPU0: update cpu_capacity 1024
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x80100000 - 0x80100058
CPU1: update cpu_capacity 1024
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (32.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 512 (order: 3, 32768 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
DDR type is DDR3!
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
imx7d-pinctrl 302c0000.iomuxc-lpsr: initialized IMX pinctrl driver
imx7d-pinctrl 30330000.iomuxc: initialized IMX pinctrl driver
MU is ready for cross core communication!
GPIO line 13 (MCU_INTB) hogged as input
GPIO line 60 (LAN1_INT_N) hogged as input
GPIO line 62 (LAN1_COMA_MODE) hogged as output/low
mxs-dma 33000000.dma-apbh: initialized
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
30800000.aips-bus:usbphynop1 supply vcc not found, using dummy regulator
30800000.aips-bus:usbphynop2 supply vcc not found, using dummy regulator
i2c i2c-0: IMX I2C adapter registered
i2c i2c-0: can't use DMA, using PIO instead.
i2c i2c-1: IMX I2C adapter registered
i2c i2c-1: can't use DMA, using PIO instead.
i2c i2c-2: IMX I2C adapter registered
i2c i2c-2: can't use DMA, using PIO instead.
gpio_bmic 3-0014: version: 2.0
bmic_regulator 3-0016: version: 1.0
i2c i2c-3: IMX I2C adapter registered
i2c i2c-3: can't use DMA, using PIO instead.
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
PTP clock support registered
MIPI CSI2 driver module loaded
imx rpmsg driver is registered.
Advanced Linux Sound Architecture Driver Initialized.
Bluetooth: Core ver 2.22
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
random: fast init done
armadillo_iotg_addon addon: Atmark Techno DI/DO/AD board detected at Add-On Module I/F 1(Rev 2, SerialNumber=5474).
OF: resolver: of_resolve_phandles: no symbols in root of device tree.
armadillo_iotg_addon addon: Failed to resolve phandles
armadillo_iotg_addon addon: No add-on expansion board detected at Add-On Module I/F 2.
clocksource: Switched to clocksource arch_sys_counter
VFS: Disk quotas dquot_6.6.0
VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Bus freq driver module loaded
workingset: timestamp_bits=14 max_order=17 bucket_order=3
squashfs: version 4.0 (2009/01/31) Phillip Lougher
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) c 2001-2006 Red Hat, Inc.
fuse init (API version 7.26)
NET: Registered protocol family 38
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
OF: PCI: host bridge /soc/pcie@0x33800000 ranges:
OF: PCI: No bus range found for /soc/pcie@0x33800000, using [bus 00-ff]
OF: PCI: IO 0x4ff80000..0x4ff8ffff -> 0x00000000
OF: PCI: MEM 0x40000000..0x4fefffff -> 0x40000000
imx6q-pcie 33800000.pcie: phy link never came up
imx6q-pcie 33800000.pcie: Link never came up
imx6q-pcie 33800000.pcie: failed to initialize host
imx6q-pcie: probe of 33800000.pcie failed with error -110
usbcore: registered new interface driver udlfb
imx-sdma 30bd0000.sdma: loaded firmware 4.2
pfuze100-regulator 3-0009: Full layer: 1, Metal layer: 1
pfuze100-regulator 3-0009: FAB: 0, FIN: 0
pfuze100-regulator 3-0009: pfuze3000 found.
30860000.serial: ttymxc0 at MMIO 0x30860000 (irq = 45, base_baud = 5000000) is a IMX
30890000.serial: ttymxc1 at MMIO 0x30890000 (irq = 46, base_baud = 5000000) is a IMX
30a70000.serial: ttymxc4 at MMIO 0x30a70000 (irq = 51, base_baud = 5000000) is a IMX
console [ttymxc4] enabled
imx sema4 driver is registered.
[drm] Initialized
[drm] Initialized vivante 1.0.0 20120216 on minor 0
usbcore: registered new interface driver udl
brd: module loaded
loop: module loaded
(hci_tty): inside hci_tty_init
(hci_tty): allocated 246, 0
fsl-quadspi 30bb0000.qspi: n25q128a13 (16384 Kbytes)
3 ofpart partitions found on MTD device 30bb0000.qspi
Creating 3 MTD partitions on "30bb0000.qspi":
0x000000000000-0x000000100000 : "bootloader"
0x000000100000-0x000000140000 : "license"
0x000000140000-0x000004000000 : "reserved"
mtd: partition "reserved" extends beyond the end of device "30bb0000.qspi" -- size truncated to 0xec0000
spi_imx 30630000.ecspi: dma setup error -19, use pio
spi_imx 30630000.ecspi: probed
spi_imx 30830000.ecspi: dma setup error -19, use pio
spi_imx 30830000.ecspi: probed
libphy: Fixed MDIO Bus: probed
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky
CAN device driver interface
30bf0000.ethernet supply phy not found, using dummy regulator
pps pps0: new PPS source ptp0
libphy: fec_enet_mii_bus: probed
fec 30bf0000.ethernet eth0: registered PHC device 0
PPP generic driver version 2.4.2
usbcore: registered new interface driver kaweth
pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
usbcore: registered new interface driver pegasus
usbcore: registered new interface driver rtl8150
usbcore: registered new interface driver r8152
usbcore: registered new interface driver asix
usbcore: registered new interface driver ax88179_178a
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver cdc_eem
usbcore: registered new interface driver smsc95xx
usbcore: registered new interface driver net1080
usbcore: registered new interface driver cdc_subset
usbcore: registered new interface driver zaurus
usbcore: registered new interface driver sierra_net
usbcore: registered new interface driver cdc_ncm
usbcore: registered new interface driver qmi_wwan
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver cdc_wdm
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver cp210x
usbserial: USB Serial support registered for cp210x
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver option
usbserial: USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver sierra
usbserial: USB Serial support registered for Sierra USB modem
usbcore: registered new interface driver usb_serial_simple
usbserial: USB Serial support registered for carelink
usbserial: USB Serial support registered for zio
usbserial: USB Serial support registered for funsoft
usbserial: USB Serial support registered for flashloader
usbserial: USB Serial support registered for google
usbserial: USB Serial support registered for libtransistor
usbserial: USB Serial support registered for vivopay
usbserial: USB Serial support registered for moto_modem
usbserial: USB Serial support registered for motorola_tetra
usbserial: USB Serial support registered for novatel_gps
usbserial: USB Serial support registered for hp4x
usbserial: USB Serial support registered for suunto
usbserial: USB Serial support registered for siemens_mpi
usbcore: registered new interface driver usb_ehset_test
usb3503 3-0008: switched to HUB mode
usb3503 3-0008: usb3503_probe: probed in hub mode
30b10200.usbmisc supply vbus-wakeup not found, using dummy regulator
30b30200.usbmisc supply vbus-wakeup not found, using dummy regulator
30b20200.usbmisc supply vbus-wakeup not found, using dummy regulator
ci_hdrc ci_hdrc.0: EHCI Host Controller
ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
30b30000.usb supply vbus not found, using dummy regulator
ci_hdrc ci_hdrc.1: EHCI Host Controller
ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 2
ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
mousedev: PS/2 mouse device common for all mice
input: 30370000.snvs:snvs-powerkey as /devices/soc0/soc/30000000.aips-bus/30370000.snvs/30370000.snvs:snvs-powerkey/input/input0
bmic_rtc 3-0011: version: 1.1
bmic_rtc 3-0011: rtc core: registered bmic_rtc as rtc0
snvs_rtc 30370000.snvs:snvs-rtc-lp: rtc core: registered 30370000.snvs:snvs- as rtc1
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR Sharp protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
IR XMP protocol handler initialized
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
bmic_thermal 3-0013: version: 1.0
imx_thermal 30000000.aips-bus:tempmon: failed to get nvmem device
imx_thermal 30000000.aips-bus:tempmon: failed to init from from fsl,tempmon-data
imx_thermal: probe of 30000000.aips-bus:tempmon failed with error -2
imx2-wdt 30280000.wdog: timeout 10 sec (nowayout=0)
softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
Bluetooth: HCI UART driver ver 2.3
Bluetooth: HCI UART protocol H4 registered
Bluetooth: HCI UART protocol BCSP registered
Bluetooth: HCI UART protocol LL registered
Bluetooth: HCI UART protocol ATH3K registered
usbcore: registered new interface driver bcm203x
usbcore: registered new interface driver btusb
usbcore: registered new interface driver ath3k
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sdhci-esdhc-imx 30b60000.usdhc: could not get ultra high speed state, work on normal mode
sdhci-esdhc-imx 30b60000.usdhc: allocated mmc-pwrseq
mmc2: SDHCI controller on 30b60000.usdhc [30b60000.usdhc] using ADMA
usb 1-1: new high-speed USB device number 2 using ci_hdrc
caam 30900000.caam: ERA source: CCBVID.
caam 30900000.caam: Entropy delay = 3200
caam 30900000.caam: Instantiated RNG4 SH0
usb 2-1: new high-speed USB device number 2 using ci_hdrc
caam 30900000.caam: Instantiated RNG4 SH1
caam 30900000.caam: device ID = 0x0a16030000000000 (Era 8)
mmc2: new DDR MMC card at address 0001
caam 30900000.caam: job rings = 3, qi = 0
mmcblk2: mmc2:0001 Q2J55L 3.56 GiB
caam algorithms registered in /proc/crypto
caam_jr 30901000.jr0: registering rng-caam
mmcblk2boot0: mmc2:0001 Q2J55L partition 1 2.00 MiB
caam 30900000.caam: caam pkc algorithms registered in /proc/crypto
mmcblk2boot1: mmc2:0001 Q2J55L partition 2 2.00 MiB
snvs-secvio 30370000.caam-snvs: can't get snvs clock
mmcblk2rpmb: mmc2:0001 Q2J55L partition 3 4.00 MiB
snvs-secvio 30370000.caam-snvs: violation handlers armed - non-secure state
mmcblk2: p1 p2 p3
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usbcore: registered new interface driver r8712u
bmic_adc 3-0012: version: 1.0
coresight-etm3x 3007c000.etm: ETM 3.5 initialized
coresight-etm3x 3007d000.etm: ETM 3.5 initialized
usbcore: registered new interface driver snd-usb-audio
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
NET: Registered protocol family 26
Netfilter messages via NETLINK v0.30.
nfnl_acct: registering with nfnetlink.
nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
ctnetlink v0.93: registering with nfnetlink.
nf_tables: (c) 2007-2009 Patrick McHardy
nf_tables_compat: (c) 2012 Pablo Neira Ayuso
xt_time: kernel timezone is -0000
IPVS: Registered protocols ()
IPVS: Connection hash table configured (size=4096, memory=32Kbytes)
IPVS: Creating netns size=912 id=0
IPVS: ipvs loaded.
ipip: IPv4 and MPLS over IPv4 tunneling driver
gre: GRE over IPv4 demultiplexor driver
ip_gre: GRE over IPv4 tunneling driver
ip_tables: (C) 2000-2006 Netfilter Core Team
ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
arp_tables: arp_tables: (C) 2002 David S. Miller
Initializing XFRM netlink socket
NET: Registered protocol family 10
mip6: Mobile IPv6
ip6_tables: (C) 2000-2006 Netfilter Core Team
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
ip6_gre: GRE over IPv6 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
Bridge firewalling registered
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20161123 t)
can: netlink gateway (rev 20130117) max_hops=1
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: BNEP filters: protocol multicast
Bluetooth: BNEP socket layer initialized
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
Bluetooth: HIDP socket layer initialized
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
ThumbEE CPU extension supported.
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 3 ports detected
input: gpio-keys as /devices/soc0/gpio-keys/input/input1
bmic_rtc 3-0011: setting system clock to 2023-09-27 07:56:51 UTC (1695801411)
VLDO2: disabling
ALSA device list:
No soundcards found.
Warning: unable to open an initial console.
Freeing unused kernel memory: 4096K
systemd-udevd[206]: starting version 215
usb 1-1.1: new high-speed USB device number 3 using ci_hdrc
random: systemd-udevd: uninitialized urandom read (16 bytes read)
udlfb: DisplayLink GX-HDMI_U2 - serial #220210041591249
udlfb: vid_17e9&pid_413c&rev_0101 driver's dlfb_data struct at 88c02000
udlfb: console enable=1
udlfb: fb_defio enable=1
udlfb: shadow enable=1
udlfb: vendor descriptor length:27 data:27 5f 01 00 25 00 04 04 01 00 03
udlfb: DL chip limited to 2080000 pixel modes
udlfb: allocated 4 65024 byte urbs
udlfb: 1920x1080 @ 59 Hz valid mode
udlfb: 640x480 @ 60 Hz valid mode
udlfb: 800x600 @ 60 Hz valid mode
udlfb: 1024x768 @ 60 Hz valid mode
udlfb: 1280x1024 @ 60 Hz valid mode
udlfb: 1280x720 @ 60 Hz valid mode
udlfb: 1600x900 @ 60 Hz valid mode
udlfb: Reallocating framebuffer. Addresses will change!
udlfb: 1920x1080 @ 59 Hz valid mode
udlfb: set_par mode 1920x1080
usb 1-1.2: new low-speed USB device number 4 using ci_hdrc
udlfb: DisplayLink USB device /dev/fb0 attached. 1920x1080 resolution. Using 8104K framebuffer memory
input: SEM USB Keyboard as /devices/soc0/soc/30800000.aips-bus/30b10000.usb/ci_hdrc.0/usb1/1-1/1-1.2/1-1.2:1.0/0003:1A2C:4324.0001/input/input2
hid-generic 0003:1A2C:4324.0001: input: USB HID v1.10 Keyboard [SEM USB Keyboard] on usb-ci_hdrc.0-1.2/input0
input: SEM USB Keyboard as /devices/soc0/soc/30800000.aips-bus/30b10000.usb/ci_hdrc.0/usb1/1-1/1-1.2/1-1.2:1.1/0003:1A2C:4324.0002/input/input3
hid-generic 0003:1A2C:4324.0002: input: USB HID v1.10 Device [SEM USB Keyboard] on usb-ci_hdrc.0-1.2/input1
usb 1-1.3: new low-speed USB device number 5 using ci_hdrc
input: PixArt USB Optical Mouse as /devices/soc0/soc/30800000.aips-bus/30b10000.usb/ci_hdrc.0/usb1/1-1/1-1.3/1-1.3:1.0/0003:093A:2510.0003/input/input4
hid-generic 0003:093A:2510.0003: input: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-ci_hdrc.0-1.3/input0
usb 1-1.4: new high-speed USB device number 6 using ci_hdrc
EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null)
cgroup: cgroup2: unknown option "nsdelegate"
systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
systemd[1]: Detected architecture arm.
Welcome to Debian GNU/Linux 10 (buster)!
systemd[1]: Set hostname to .
systemd[1]: /lib/systemd/system/winbind.service:8: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/winbindd.pid → /run/samba/winbindd.pid; please update the unit file accordingly.
systemd[1]: /lib/systemd/system/smbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/smbd.pid → /run/samba/smbd.pid; please update the unit file accordingly.
systemd[1]: /lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid → /run/samba/nmbd.pid; please update the unit file accordingly.
random: systemd: uninitialized urandom read (16 bytes read)
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Created slice system-serial\x2dgetty.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ OK ] Set up automount Arbitrary…s File System Automount Point.
systemd[1]: Listening on Journal Socket.
[ OK ] Listening on Journal Socket.
systemd[1]: Starting Remount Root and Kernel File Systems...
Starting Remount Root and Kernel File Systems...
[ OK ] Listening on udev Control Socket.
[ OK ] Reached target Remote File Systems.
[ OK ] Created slice User and Session Slice.
[ OK ] Reached target Swap.
[ OK ] Listening on Syslog Socket.
[ OK ] Listening on initctl Compatibility Named Pipe.
[ OK ] Created slice system-getty.slice.
[ OK ] Started Forward Password R…uests to Wall Directory Watch.
Mounting POSIX Message Queue File System...
Mounting Kernel Debug File System...
[ OK ] Listening on Journal Socket (/dev/log).
Starting Journal Service...
[ OK ] Reached target Slices.
[ OK ] Listening on udev Kernel Socket.
Starting udev Coldplug all Devices...
Starting Load Kernel Modules...
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Mounted Kernel Debug File System.
[ OK ] Started Journal Service.
[ OK ] Started Load Kernel Modules.
Starting Apply Kernel Variables...
Mounting FUSE Control File System...
Mounting Kernel Configuration File System...
Starting Flush Journal to Persistent Storage...
Starting Load/Save Random Seed...
Starting Create System Users...
[ OK ] Started Apply Kernel Variables.
[ OK ] Mounted FUSE Control File System.
[ OK ] Mounted Kernel Configuration File System.
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Create System Users.
[ OK ] Started udev Coldplug all Devices.
systemd-journald[278]: Received request to flush runtime journal from PID 1
Starting Create Static Device Nodes in /dev...
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
Starting Create Volatile Files and Directories...
Starting Tell Plymouth To Write Out Runtime Data...
Starting udev Kernel Device Manager...
[ OK ] Started Create Volatile Files and Directories.
[ OK ] Started Tell Plymouth To Write Out Runtime Data.
Starting Update UTMP about System Boot/Shutdown...
Starting Network Time Synchronization...
[ OK ] Started udev Kernel Device Manager.
Starting Show Plymouth Boot Screen...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Started Show Plymouth Boot Screen.
[ OK ] Reached target Paths.
[ OK ] Reached target Local Encrypted Volumes.
[ OK ] Started Forward Password R…s to Plymouth Directory Watch.
[ OK ] Started Network Time Synchronization.
[ OK ] Reached target System Time Synchronized.
[ OK ] Reached target System Initialization.
[ OK ] Started Daily man-db regeneration.
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Started Daily Cleanup of Temporary Directories.
[ OK ] Started Daily apt download activities.
[ OK ] Started Daily apt upgrade and clean activities.
[ OK ] Started Daily rotation of log files.
[ OK ] Reached target Timers.
[ OK ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Basic System.
Starting Restore /etc/reso… the ppp link was shut down...
[ OK ] Started Regular background program processing daemon.
Starting Login Service...
Starting Disk Manager...
Starting Modem Manager...
Starting LSB: Load kernel …d to enable cpufreq scaling...
Starting Avahi mDNS/DNS-SD Stack...
[ OK ] Started D-Bus System Message Bus.
Starting Network Manager...
Starting WPA supplicant...
Starting System Logging Service...
Starting rng-tools.service...
[ OK ] Started Restore /etc/resol…re the ppp link was shut down.
random: crng init done
random: 6 urandom warning(s) missed due to ratelimiting
[ OK ] Started System Logging Service.
[ OK ] Started rng-tools.service.
[ OK ] Started Login Service.
[ OK ] Started WPA supplicant.
Starting Authorization Manager...
[ OK ] Started Avahi mDNS/DNS-SD Stack.
[ OK ] Started LSB: Load kernel m…ded to enable cpufreq scaling.
Starting LSB: set CPUFreq kernel parameters...
[ OK ] Started Authorization Manager.
[ OK ] Started Network Manager.
Starting Hostname Service...
Starting Network Manager Wait Online...
[ OK ] Reached target Network.
IPVS: Creating netns size=912 id=1
Starting Permit User Sessions...
Starting OpenBSD Secure Shell server...
Starting Connection Recover...
[ OK ] Started Modem Manager.
[ OK ] Started LSB: set CPUFreq kernel parameters.
[ OK ] Started Permit User Sessions.
Starting Light Display Manager...
[ OK ] Started Connection Recover.
[ OK ] Started OpenBSD Secure Shell server.
udlfb: open /dev/fb0 user=1 fb_info=88de5800 count=1
udlfb: released /dev/fb0 user=1 count=0
udlfb: open /dev/fb0 user=1 fb_info=88de5800 count=1
udlfb: /dev/fb0 FB_BLANK mode 0 --> 1
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Vitesse VSC8501 30bf0000.ethernet-1:00: attached PHY driver [Vitesse VSC8501] (mii_bus:phy_addr=30bf0000.ethernet-1:00, irq=-1)
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
fec 30bf0000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
udlfb: /dev/fb0 FB_BLANK mode 1 --> 0
nf_conntrack: default automatic helper assignment has been turned off for security reasons and CT-based firewall rule not found. Use the iptables CT target to attach helpers instead.
Debian GNU/Linux 10 armadillo ttymxc4
armadillo login:
> 高橋です。情報ご提供いただきありがとうございます。
>
> 手元のArmadillo-X1で試しましたが、DA00を認識でき、下記のエラーも表示されませんでした。
> 「armadillo_iotg_addon addon: Failed to resolve phandles」
>
> 以下ページのインストールディスクイメージを使用して初期化した場合も、同様の現象が発生しますでしょうか。
> https://armadillo.atmark-techno.com/resources/software/armadillo-x1/dis…
>
> また、現状(DA00を認識できない状態)の起動ログ及び、Linuxカーネルの変更内容(変更したコンフィギュレーションなど)を貼っていただけると幸いです。
at_hironori.miura
2023年9月26日 17時59分
三浦です。
まず、アドオンモジュールが認識されているかをご確認ください。
絶縁IOアドオンモジュールが接続されているとき、Linuxカーネルの起動ログに次のように出力されます。
Linux起動後であれば以下コマンドでも確認できます。
また、DA00絶縁デジタル入出力/アナログ入力アドオンモジュールのアナログ入力は0-5V入力用なので
4-20mA出力機器と接続する場合には、250Ωのシャント抵抗を外付けで接続する必要があります。
こちら、接続済みでしょうか?
アナログ入力CH0を使用の場合は、CON3の1ピンと2ピン間に挿入してください。
以上、よろしくお願いします。