15. FAQs¶
15.1. Processor SDK TDA4VM vs Processor SDK J721E¶
It is important to know the differences between TDA4VM Starter Kit (SK), J721E EVM, and the accompanying Processor SDK.
While the SoC is common between TDA4VM SK and J721E EVM, the board design and peripherals are very different. For example both eDP and HDMI port is directly available on TDA4VM SK where as only eDP port is available on J721E EVM and it requires add-on infotainment card for HDMI. Similarly there are differences related to other available peripherals and board properties starting from power supply. Kindly refer to the respective board user-guide to know the differences better.
The SDKs are not compatible either. The Processor SDK TDA4VM works only on the TDA4VM SK and the Processor SDK J721E works only on the J721E EVM. There are differences in software driver availability between both the SDK. The build configuration between them is very different. For example peripheral access like GPIO is enabled using Linux on Processor SDK TDA4VM whereas the same is made available from RTOS core in Processor SDK J721E and so on.
The key differences are highlighted here but not limited to below list.
Component |
Processor SDK TDA4VM |
Processor SDK J721E |
---|---|---|
TDA4VM-SK |
Supported |
Not Supported |
J721E-EVM |
Not Supported |
Supported |
Capture Driver |
Linux Device Driver |
RTOS Driver |
Display Driver |
Linux Device Driver |
RTOS Driver |
Video Codecs |
Linux Device Driver |
Linux Device Driver |
VPAC Driver |
RTOS Driver |
RTOS Driver |
DMPAC Driver |
RTOS Driver |
RTOS Driver |
ETHFW |
Not Supported |
Supported |
Peripherals |
Linux Device Driver |
RTOS Driver |
For more information please refer to TDA4VM Build Sheet
15.2. Getting Error when trying to capture from multiple USB cameras simultaneously¶
This is a common issue faced in the industry with many USB cameras.
You may get errors like Failed to allocate required memory.
when tying to
capture simultaneously from more than one usb cameras.
The root cause for this issue is that most of the USB cameras requests for more BW than actually required. If the use case is to capture only from 2 USB cameras , it can be done by connecting one of them to USB type-C port since it is internally connected to a separate instance of USB controller. But if the use case is to capture from more than 2 cameras, you need to modify the UVC driver to override the BW allocation.
The root cause and work around is explained in detail in this blog Multiple UVC cameras on linux
To apply the work around to our SDK, use below steps
Download and install Processor SDK Linux Processor SDK Linux
Get the patch to add bandwidth_cap parameter to uvcvideo kernel module uvcvideo patch
Apply the patch to kernel source in Processor SDK Linux Install path. Please refer to PSDK building kernel
Compile only uvcvideo module using below command
make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- j721e_evm_a72_defconfig make ARCH=arm64 CROSS_COMPILE=aarch64-none-linux-gnu- ./drivers/media/usb/uvc/uvcvideo.ko
Copy ./drivers/media/usb/uvc/uvcvideo.ko to sk
Remove uvcvideo module and install modified version using below commands
rmmmod uvcvideo insmod uvcvideo.ko
Set the desired BW cap as shown below
echo 1200 > /sys/module/uvcvideo/parameters/bandwidth_cap
Note
The unit of BW here is Bytes/125us, you can estimate the approximate BW requirement by multiplying fps with size/frame