Install libdrm-tests in weston

Hi,

I’m following the guide:

at this point:
apt update && apt install libdrm-tests

I get the error on my Riverdi display:
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)

I also tried with sudo apt update && apt install libdrm-tests,
but I cannot provide any working password. The password I have for my torizon user and the “torizon” passwor do not work.

Can you please help me to install the packages?

Best Regards
Verdin iMX8M Plus Quad 4GB IT V1.1A
Verdin Development Board V1.1E
Capacitive Touch Display 10.1" DSI
Verdin DSI Display Adapter

Hi, I’m the Toradex AI Assistant. I’m in early beta, and I would appreciate your feedback.
The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


:handshake:

It seems like you are encountering a permission issue when trying to install the libdrm-tests package. This is likely because the default Torizon user does not have the necessary permissions to perform apt operations.

To resolve this, you can start a container with root privileges. Here’s how you can do it:

  1. Start a new container with root privileges:

    docker run -it --rm --privileged torizon/weston:2
    
  2. Inside the container, update the package list and install libdrm-tests:

    apt update && apt install libdrm-tests
    

This should allow you to install the package without encountering permission issues.

Best regards,
Toradex AI Assistant

Unfortunately the solution does not work.
The container does not run:
[08:43:52.602] warning: no input devices on entering Weston. Possible causes:
- no permissions to read /dev/input/event*
- seats misconfigured (Weston backend option ‘seat’, udev device property ID_SEAT)
[08:43:52.602] failed to create input devices
[08:43:52.602] warning: no input devices on entering Weston. Possible causes:
- no permissions to read /dev/input/event*
- seats misconfigured (Weston backend option ‘seat’, udev device property ID_SEAT)
[08:43:52.602] failed to create input devices

Hello @VMB,

Please note that the recommendation from the @ToradexAI is incorrect here.

To setup the Capacitive Touch Display 10.1" DSI you do not need to go through Setting up Displays with Torizon | Toradex Developer Center.
You can just follow the steps on First Steps with Capacitive Touch Display 10.1 Inch DSI | Toradex Developer Center.

However, if you want to follow the steps on Setting up Displays with Torizon | Toradex Developer Center and need to install packages on the weston container, you will need to use the root user in that container.
This can be done by adding a -u 0:0 argument to the docker run command:

docker run -e ACCEPT_FSL_EULA=1 -it --rm --name=weston \
--net=host --cap-add CAP_SYS_TTY_CONFIG -u 0:0 \
-v /dev:/dev -v /tmp:/tmp -v /run/udev/:/run/udev/ \
--device-cgroup-rule='c 4:* rmw' --device-cgroup-rule='c 13:* rmw' \
--device-cgroup-rule='c 199:* rmw' --device-cgroup-rule='c 226:* rmw' \
torizon/weston-vivante:$CT_TAG_WESTON_VIVANTE --developer --tty=/dev/tty7

Now, you will be able to run apt update and apt install libdrm-tests

If you have further questions, please feel free to reach out.

Best Regards,
Bruno

Hi @bruno.tx ,

thank you for the help.
With the argument -u =0:0 I get the same behaviour as before.
After executing the command you posted I get this screen

I would like to install the libdrm-test to have a look at the status of the drm with the modetest.

Best Regards

Hello @VMB,

Thanks for sending the screen picture, now I understand better how you are trying to install the package.
What is being used is the Wayland Terminal, which should not be used for any debugging tasks that require elevated privileges.

The way I recommend you to install these packages is to actually open a bash shell within the container.
For this, you can revert back to the old command being used to start Weston:

docker run -e ACCEPT_FSL_EULA=1 -d --rm --name=weston \
--net=host --cap-add CAP_SYS_TTY_CONFIG \
-v /dev:/dev -v /tmp:/tmp -v /run/udev/:/run/udev/ \
--device-cgroup-rule='c 4:* rmw' --device-cgroup-rule='c 13:* rmw' \
--device-cgroup-rule='c 199:* rmw' --device-cgroup-rule='c 226:* rmw' \
torizon/weston-vivante:$CT_TAG_WESTON_VIVANTE --developer --tty=/dev/tty7

And then, open bash within the container, with the root user:

docker exec -it -u 0:0 weston bash

This shell will then allow you to use apt in the Weston container without authentication.

Please note that both commands above need to be run via an ssh or serial connection to the module, not in the Wayland Terminal.

Best Regards,
Bruno

It works.
Thank you.

Hello @VMB,

Thanks for the update.

Best Regards,
Bruno