piTest error
Posted: 20 May 2025, 07:34
we have several revpi running bullseye, now shows error
==>sudo piTest -x
Cannot reset: Inappropriate ioctl for device
==>sudo piTest -w RevPiLED,2
Cannot find variable 'RevPiLED'
then tried lsmod
==> lsmod | grep piControl
piControl 151552 2
gpio_max3191x 20480 1 piControl
industrialio 94208 5 ad5446,iio_mux,ti_dac082s085,piControl,mcp320x
==>
uname -a
Linux HiveController 6.1.46-rt13-v8 #1 SMP PREEMPT_RT Mon, 22 Apr 2024 08:37:46 +0200 aarch64 GNU/Linux
==>cat /var/www/revpi/pictory/projects/_config.rsc
{"App":{"name": "PiCtory", "version": "2.1.1","saveTS": "20240213111239","language": "en","layout": {"north":{"size":70,"initClosed":false,"initHidden":false},"south":{"size":200,"initClosed":false,"initHidden":false,"children":{"layout1":{"east":{"size":500,"initClosed":false,"initHidden":false}}}},"east":{"size":0,"initClosed":true,"initHidden":false,"children":{}},"west":{"size":387,"initClosed":false,"initHidden":false,"children":{"layout1":{}}}}},"Summary":{"inpTotal": 6,"outTotal": 5},"Devices":[{"GUID": "e5f194f0-5fef-d0fa-a943-d727c30ce030","id": "device_RevPiConnect_20171023_1_0_001","type": "BASE","productType": "105","position": "0","name": "RevPi Connect/+/S","bmk": "RevPi Connect/+/S","inpVariant": 0,"outVariant": 0,"comment": "This is a RevPi Connect","offset": 0,"inp": {"0": ["RevPiStatus","0","8","0",true,"0000", "",""],"1": ["RevPiIOCycle","0","8","1",true,"0001", "",""],"2": ["RS485ErrorCnt","0","16","2",false,"0002", "",""],"3": ["Core_Temperature","0","8","4",false,"0003", "",""],"4": ["Core_Frequency","0","8","5",false,"0004", "",""]},"out": {"0": ["RevPiLED","0","8","6",true,"0005", "",""],"1": ["RS485ErrorLimit1","10","16","7",false,"0006", "",""],"2": ["RS485ErrorLimit2","1000","16","9",false,"0007", "",""]},"mem": {},"extend": {}}],"Connections":[]}
==>dmesg | grep -E '(serial|piControl|pibridge)'
[ 0.000000] Kernel command line: coherent_pool=1M snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:C2:C0:D5 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 fsck.repair=yes rootwait nosplash plymouth.ignore-serial-consoles
[ 1.731596] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 32, base_baud = 0) is a PL011 rev2
[ 1.731930] serial serial0: tty port ttyAMA0 registered
[ 1.732175] uart-pl011 fe201000.serial: no DMA platform data
[ 1.732204] pi-bridge serial0-0: pibridge initialized
[ 3.349374] piControl: loading out-of-tree module taints kernel.
[ 3.352805] piControl: RevPi Connect SE
[ 3.352819] piControl: MAJOR-No. : 240
[ 3.353072] piControl: MAJOR-No. : 240 MINOR-No. : 0
[ 3.356900] piControl: read file finished, f_pos=1294
[ 3.356927] piControl: 1 devices found
[ 3.356930] piControl: 8 entries in total
[ 3.356949] piControl: cl-comp: 0 addr 6 bit ff len 8
[ 3.357496] piControl: piIO thread started
[ 3.357502] piControl: RevPiDevice_init()
[ 3.357507] piControl: Enter Init State
[ 3.357732] piControl: piControlInit done
[ 3.358057] piControl: Enter PresentSignalling1 State
[ 3.397321] piControl: Enter InitialSlaveDetectionLeft State
[ 3.397881] piControl: Enter EndOfConfig State
[ 3.397889] piControl: Device 0: Addr 0 Type 105 Act 1 In 6 Out 5
[ 3.397896] piControl: input offset 0 len 6
[ 3.397899] piControl: output offset 6 len 5
[ 3.397902] piControl: serial number 1 version 1.0
[ 3.397906] piControl:
[ 3.397914] piControl: Adjust: base 0 in 0 out 6 conf 0
[ 3.397919] piControl: After Adjustment
[ 3.397921] piControl: Device 0: Addr 0 Type 105 Act 1 In 6 Out 5
[ 3.397925] piControl: input offset 0 len 6
[ 3.397927] piControl: output offset 6 len 5
[ 3.397930] piControl:
[ 3.502571] piControl: start data exchange
[ 3.722646] piControl: set BridgeState to running
[ 3.834695] usbcore: registered new interface driver usbserial_generic
[ 3.834762] usbserial: USB Serial support registered for generic
[ 3.854004] usbserial: USB Serial support registered for FTDI USB Serial Device
==>dmesg | grep piControl -i
[ 3.354176] piControl: loading out-of-tree module taints kernel.
[ 3.358215] piControl: RevPi Connect SE
[ 3.358226] piControl: MAJOR-No. : 240
[ 3.358442] piControl: MAJOR-No. : 240 MINOR-No. : 0
[ 3.364348] piControl: read file finished, f_pos=1294
[ 3.364368] piControl: 1 devices found
[ 3.364371] piControl: 8 entries in total
[ 3.364389] piControl: cl-comp: 0 addr 6 bit ff len 8
[ 3.364914] piControl: piIO thread started
[ 3.364923] piControl: RevPiDevice_init()
[ 3.364927] piControl: Enter Init State
[ 3.365169] piControl: piControlInit done
[ 3.365482] piControl: Enter PresentSignalling1 State
[ 3.404392] piControl: Enter InitialSlaveDetectionLeft State
[ 3.404934] piControl: Enter EndOfConfig State
[ 3.404940] piControl: Device 0: Addr 0 Type 105 Act 1 In 6 Out 5
[ 3.404946] piControl: input offset 0 len 6
[ 3.404949] piControl: output offset 6 len 5
[ 3.404952] piControl: serial number 1 version 1.0
[ 3.404955] piControl:
[ 3.404961] piControl: Adjust: base 0 in 0 out 6 conf 0
[ 3.404966] piControl: After Adjustment
[ 3.404968] piControl: Device 0: Addr 0 Type 105 Act 1 In 6 Out 5
[ 3.404972] piControl: input offset 0 len 6
[ 3.404975] piControl: output offset 6 len 5
[ 3.404977] piControl:
[ 3.510794] piControl: start data exchange
[ 3.730793] piControl: set BridgeState to running
==>pictory_configcheck
WARNING:No configuration file specified. Using '/var/www/revpi/pictory/projects/_config.rsc' as default
INFO:Openning file '/var/www/revpi/pictory/projects/_config.rsc' to check
INFO:Checking device 'device_RevPiConnect_20171023_1_0_001' ...
INFO: Pass
any suggestions pls?
==>sudo piTest -x
Cannot reset: Inappropriate ioctl for device
==>sudo piTest -w RevPiLED,2
Cannot find variable 'RevPiLED'
then tried lsmod
==> lsmod | grep piControl
piControl 151552 2
gpio_max3191x 20480 1 piControl
industrialio 94208 5 ad5446,iio_mux,ti_dac082s085,piControl,mcp320x
==>
uname -a
Linux HiveController 6.1.46-rt13-v8 #1 SMP PREEMPT_RT Mon, 22 Apr 2024 08:37:46 +0200 aarch64 GNU/Linux
==>cat /var/www/revpi/pictory/projects/_config.rsc
{"App":{"name": "PiCtory", "version": "2.1.1","saveTS": "20240213111239","language": "en","layout": {"north":{"size":70,"initClosed":false,"initHidden":false},"south":{"size":200,"initClosed":false,"initHidden":false,"children":{"layout1":{"east":{"size":500,"initClosed":false,"initHidden":false}}}},"east":{"size":0,"initClosed":true,"initHidden":false,"children":{}},"west":{"size":387,"initClosed":false,"initHidden":false,"children":{"layout1":{}}}}},"Summary":{"inpTotal": 6,"outTotal": 5},"Devices":[{"GUID": "e5f194f0-5fef-d0fa-a943-d727c30ce030","id": "device_RevPiConnect_20171023_1_0_001","type": "BASE","productType": "105","position": "0","name": "RevPi Connect/+/S","bmk": "RevPi Connect/+/S","inpVariant": 0,"outVariant": 0,"comment": "This is a RevPi Connect","offset": 0,"inp": {"0": ["RevPiStatus","0","8","0",true,"0000", "",""],"1": ["RevPiIOCycle","0","8","1",true,"0001", "",""],"2": ["RS485ErrorCnt","0","16","2",false,"0002", "",""],"3": ["Core_Temperature","0","8","4",false,"0003", "",""],"4": ["Core_Frequency","0","8","5",false,"0004", "",""]},"out": {"0": ["RevPiLED","0","8","6",true,"0005", "",""],"1": ["RS485ErrorLimit1","10","16","7",false,"0006", "",""],"2": ["RS485ErrorLimit2","1000","16","9",false,"0007", "",""]},"mem": {},"extend": {}}],"Connections":[]}
==>dmesg | grep -E '(serial|piControl|pibridge)'
[ 0.000000] Kernel command line: coherent_pool=1M snd_bcm2835.enable_headphones=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=640 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:C2:C0:D5 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 fsck.repair=yes rootwait nosplash plymouth.ignore-serial-consoles
[ 1.731596] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 32, base_baud = 0) is a PL011 rev2
[ 1.731930] serial serial0: tty port ttyAMA0 registered
[ 1.732175] uart-pl011 fe201000.serial: no DMA platform data
[ 1.732204] pi-bridge serial0-0: pibridge initialized
[ 3.349374] piControl: loading out-of-tree module taints kernel.
[ 3.352805] piControl: RevPi Connect SE
[ 3.352819] piControl: MAJOR-No. : 240
[ 3.353072] piControl: MAJOR-No. : 240 MINOR-No. : 0
[ 3.356900] piControl: read file finished, f_pos=1294
[ 3.356927] piControl: 1 devices found
[ 3.356930] piControl: 8 entries in total
[ 3.356949] piControl: cl-comp: 0 addr 6 bit ff len 8
[ 3.357496] piControl: piIO thread started
[ 3.357502] piControl: RevPiDevice_init()
[ 3.357507] piControl: Enter Init State
[ 3.357732] piControl: piControlInit done
[ 3.358057] piControl: Enter PresentSignalling1 State
[ 3.397321] piControl: Enter InitialSlaveDetectionLeft State
[ 3.397881] piControl: Enter EndOfConfig State
[ 3.397889] piControl: Device 0: Addr 0 Type 105 Act 1 In 6 Out 5
[ 3.397896] piControl: input offset 0 len 6
[ 3.397899] piControl: output offset 6 len 5
[ 3.397902] piControl: serial number 1 version 1.0
[ 3.397906] piControl:
[ 3.397914] piControl: Adjust: base 0 in 0 out 6 conf 0
[ 3.397919] piControl: After Adjustment
[ 3.397921] piControl: Device 0: Addr 0 Type 105 Act 1 In 6 Out 5
[ 3.397925] piControl: input offset 0 len 6
[ 3.397927] piControl: output offset 6 len 5
[ 3.397930] piControl:
[ 3.502571] piControl: start data exchange
[ 3.722646] piControl: set BridgeState to running
[ 3.834695] usbcore: registered new interface driver usbserial_generic
[ 3.834762] usbserial: USB Serial support registered for generic
[ 3.854004] usbserial: USB Serial support registered for FTDI USB Serial Device
==>dmesg | grep piControl -i
[ 3.354176] piControl: loading out-of-tree module taints kernel.
[ 3.358215] piControl: RevPi Connect SE
[ 3.358226] piControl: MAJOR-No. : 240
[ 3.358442] piControl: MAJOR-No. : 240 MINOR-No. : 0
[ 3.364348] piControl: read file finished, f_pos=1294
[ 3.364368] piControl: 1 devices found
[ 3.364371] piControl: 8 entries in total
[ 3.364389] piControl: cl-comp: 0 addr 6 bit ff len 8
[ 3.364914] piControl: piIO thread started
[ 3.364923] piControl: RevPiDevice_init()
[ 3.364927] piControl: Enter Init State
[ 3.365169] piControl: piControlInit done
[ 3.365482] piControl: Enter PresentSignalling1 State
[ 3.404392] piControl: Enter InitialSlaveDetectionLeft State
[ 3.404934] piControl: Enter EndOfConfig State
[ 3.404940] piControl: Device 0: Addr 0 Type 105 Act 1 In 6 Out 5
[ 3.404946] piControl: input offset 0 len 6
[ 3.404949] piControl: output offset 6 len 5
[ 3.404952] piControl: serial number 1 version 1.0
[ 3.404955] piControl:
[ 3.404961] piControl: Adjust: base 0 in 0 out 6 conf 0
[ 3.404966] piControl: After Adjustment
[ 3.404968] piControl: Device 0: Addr 0 Type 105 Act 1 In 6 Out 5
[ 3.404972] piControl: input offset 0 len 6
[ 3.404975] piControl: output offset 6 len 5
[ 3.404977] piControl:
[ 3.510794] piControl: start data exchange
[ 3.730793] piControl: set BridgeState to running
==>pictory_configcheck
WARNING:No configuration file specified. Using '/var/www/revpi/pictory/projects/_config.rsc' as default
INFO:Openning file '/var/www/revpi/pictory/projects/_config.rsc' to check
INFO:Checking device 'device_RevPiConnect_20171023_1_0_001' ...
INFO: Pass
any suggestions pls?