Closed DiopWang closed 5 months ago
I am using D435i
Hi @DiopWang This error does not usually occur when using the libuvc_installation.sh script. My research of non-RealSense Linux cases indicates that when this error does occur, it is caused by the instruction sudo fallocate -l 2G /swapfile
. In the libuvc script it can be found on line 26.
Replacing the sudo fallocate command with the one below can resolve the error.
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
Hi @DiopWang This error does not usually occur when using the libuvc_installation.sh script. My research of non-RealSense Linux cases indicates that when this error does occur, it is caused by the instruction
sudo fallocate -l 2G /swapfile
. In the libuvc script it can be found on line 26.Replacing the sudo fallocate command with the one below can resolve the error.
sudo dd if=/dev/zero of=/swapfile bs=1024 count=1048576
@MartyG-RealSense Hi,I am really thank you for your response.However,I did what you told me,it still show swapon: /swapfile: swapon failed: Invalid argument
. Can you tell me what can I do in other way?Thank you so much
If you comment out the entire swapfile mechanism in lines 26 to 30 then is the libuvc script able to complete sucessfully?
https://github.com/IntelRealSense/librealsense/blob/master/scripts/libuvc_installation.sh#L26-L30
If you comment out the entire swapfile mechanism in lines 26 to 30 then is the libuvc script able to complete sucessfully?
https://github.com/IntelRealSense/librealsense/blob/master/scripts/libuvc_installation.sh#L26-L30
@MartyG-RealSense Yes,I comment out it,and it can work,and Librealsense script completed
But when I am running rs-enumerate-devices,it still did not work.
To be honest,I have tried almost every methods in last 4 days
If you comment out the entire swapfile mechanism in lines 26 to 30 then is the libuvc script able to complete sucessfully? https://github.com/IntelRealSense/librealsense/blob/master/scripts/libuvc_installation.sh#L26-L30
@MartyG-RealSense Yes,I comment out it,and it can work,and
Librealsense script completed
But when I am running rs-enumerate-devices,it still did not work. To be honest,I have tried almost every methods in last 4 days
Could this be the cause of the system kernel, such as no corresponding drivers?
When using a libuvc installation of librealsense the kernel should not matter as librealsense bypasses the kernel.
Are you using the official 1 meter USB cable supplied with the camera or a longer USB cable of your own choice?
What is the computer that you are using your D435i on, please (Raspberry Pi, Nvidia Jetson, desktop / laptop PC, etc)
Is the cable plugged into a built-in USB port on the computer or a USB interface such as a hub or PCIe?
When using a libuvc installation of librealsense the kernel should not matter as librealsense bypasses the kernel.当使用 librealsense 的 libuvc 安装时,内核应该无关紧要,因为 librealsense 会绕过内核。
Are you using the official 1 meter USB cable supplied with the camera or a longer USB cable of your own choice?您使用相机随附的官方 1 米 USB 线还是您自己选择的更长 USB 线?
What is the computer that you are using your D435i on, please (Raspberry Pi, Nvidia Jetson, desktop / laptop PC, etc)请问您使用 D435i 的计算机是什么(Raspberry Pi、Nvidia Jetson、台式机/笔记本电脑等)
Is the cable plugged into a built-in USB port on the computer or a USB interface such as a hub or PCIe?电缆是否插入计算机上的内置 USB 端口或 USB 接口(例如集线器或 PCIe)?
I am using official cable,and plugged USB3.0 port,but ubuntu shows it only used USB2.0 port, It is using a development board called "Shaolinpai" which designed by sophon company
Are you using Sophon's SLKY01 Shaolin Pai board at the link below?
https://en.sophgo.com/product/introduce/slky01.html
It appears to use a Sophon chip called BM1684 as its CPU. The librealsense SDK is intended for use with x86 / x64 CPUs (like those in desktop and laptop PCs) or Arm CPUs (such as those in Raspberry Pi and Nvidia Jetson boards). If the BM1684 CPU is neither x86/x64 or Arm chip architecture then librealsense may not know how to make use of it. It looks as though the BM1684 chip was designed to specialize in processing deep learning activities rather than general computing activities.
Are you using Sophon's SLKY01 Shaolin Pai board at the link below?您是否使用下面链接中的 Sophon SLKY01 少林牌板?
https://en.sophgo.com/product/introduce/slky01.html
It appears to use a Sophon chip called BM1684 as its CPU. The librealsense SDK is intended for use with x86 / x64 CPUs (like those in desktop and laptop PCs) or Arm CPUs (such as those in Raspberry Pi and Nvidia Jetson boards). If the BM1684 CPU is neither x86/x64 or Arm chip architecture then librealsense may not know how to make use of it. It looks as though the BM1684 chip was designed to specialize in processing deep learning activities rather than general computing activities.它似乎使用名为 BM1684 的 Sophon 芯片作为 CPU。 librealsense SDK 适用于 x86 / x64 CPU(例如台式机和笔记本电脑中的 CPU)或 Arm CPU(例如 Raspberry Pi 和 Nvidia Jetson 主板中的 CPU)。如果 BM1684 CPU 既不是 x86/x64 也不是 Arm 芯片架构,那么 librealsense 可能不知道如何使用它。看起来 BM1684 芯片的设计目的是专门处理深度学习活动,而不是一般计算活动。
yes,it is a TPU chip.Thanks for your help
Hi @DiopWang Do you require further assistance with this case, please? Thanks!
Case closed due to no further comments received.
Hello,When I'm running realsense-viewer,it shows like this:
21:12:39 [Info] /tmp/sandbox/src/linux/backend-v4l2.cpp:753 - Enumerating UVC video0 realpath=/sys/devices/platform/5fb80000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:00.0/0000:03:00.0/usb1/1-2/1-2:1.0/video4linux/video0 21:12:39 [Info] /tmp/sandbox/src/linux/backend-v4l2.cpp:753 - Enumerating UVC video1 realpath=/sys/devices/platform/5fb80000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:00.0/0000:03:00.0/usb1/1-2/1-2:1.0/video4linux/video1 21:12:39 [Info] /tmp/sandbox/src/linux/backend-v4l2.cpp:753 - Enumerating UVC video2 realpath=/sys/devices/platform/5fb80000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:00.0/0000:03:00.0/usb1/1-2/1-2:1.0/video4linux/video2 21:12:39 [Info] /tmp/sandbox/src/linux/backend-v4l2.cpp:753 - Enumerating UVC video3 realpath=/sys/devices/platform/5fb80000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:00.0/0000:03:00.0/usb1/1-2/1-2:1.0/video4linux/video3 21:12:39 [Info] /tmp/sandbox/src/linux/backend-v4l2.cpp:753 - Enumerating UVC video4 realpath=/sys/devices/platform/5fb80000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:00.0/0000:03:00.0/usb1/1-2/1-2:1.3/video4linux/video4 21:12:39 [Info] /tmp/sandbox/src/linux/backend-v4l2.cpp:753 - Enumerating UVC video5 realpath=/sys/devices/platform/5fb80000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:00.0/0000:03:00.0/usb1/1-2/1-2:1.3/video4linux/video5 21:12:39 [Info] /tmp/sandbox/src/context.cpp:128 - Found 0 RealSense devices (0xfe requested & 0xff from device-mask in settings)
Then I search online for the problems,I try to run libuvc_installation.sh,but it didn't run normally
` linaro@bm1684:/data$ sudo ./libuvc_installation.sh
Hit:2 https://librealsense.intel.com/Debian/apt-repo bionic InRelease
Hit:3 https://librealsense.intel.com/Debian/apt-repo focal InRelease Reading package lists... Done
for more information
linaro@bm1684:/data$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04 LTS Release: 20.04 Codename: focal linaro@bm1684:/data$ uname -r 5.4.217-bm1684-g70a3e20060f6-dirty
Can you give me some advice ,please