Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
The error message you’re encountering, “Permission denied” for the device files /dev/dma_heap/linux,cma
and /dev/dma_heap/linux,cma-uncached
, indicates a permissions issue when the Weston container attempts to access these resources. This is likely causing the container to exit with code 139.
Here are some steps you can take to resolve this issue:
-
Check User Permissions: Ensure that the user running the Docker container has the necessary permissions to access these device files. You might need to add the user to the appropriate group that has access to these devices. Typically, this involves adding the user to the
video
orrender
group, depending on your system configuration.sudo usermod -aG video <your-username> sudo usermod -aG render <your-username>
After modifying group memberships, log out and back in for the changes to take effect.
-
Adjust Docker Permissions: You can modify the Docker Compose file to run the container with elevated privileges, which might be necessary for accessing certain hardware resources.
In your
docker-compose.yml
, add the following under the specific service:services: test-weston: ... privileged: true
Note that using
privileged: true
grants the container extended privileges, which should be used cautiously. -
Verify Device File Access: Ensure that the device files
/dev/dma_heap/linux,cma
and/dev/dma_heap/linux,cma-uncached
exist and have the correct permissions set. You can check this with:ls -l /dev/dma_heap/
If the files do not exist or have incorrect permissions, you may need to adjust them or ensure the necessary kernel modules are loaded.
By following these steps, you should be able to resolve the permission issues and successfully run the Weston container on your Colibri iMX8X module.
Best regards,
Toradex AI Assistant.
Please, also check if these links can help you solve your problem: