- Posts: 383
- Thank you received: 135
Can the OPI5 be Configured to Run LCNC?
- royka
- Offline
- Platinum Member
-
Less
More
3 years 6 months ago #269091
by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
Easies way of getting the config files would've been:
git clone github.com/LinuxCNC/linuxcnc.git --branch 2.9
But strange it didn't package the config files, perhaps a config option I didn't see.
The error I could reproduce, when I launch it from terminal it gives the error: DRM_IOCTL_PANFROST_CREATE_BO failed: Cannot allocate memory
I'll look into it
git clone github.com/LinuxCNC/linuxcnc.git --branch 2.9
But strange it didn't package the config files, perhaps a config option I didn't see.
The error I could reproduce, when I launch it from terminal it gives the error: DRM_IOCTL_PANFROST_CREATE_BO failed: Cannot allocate memory
I'll look into it
The following user(s) said Thank You: Guglielmi
Please Log in or Create an account to join the conversation.
- royka
- Offline
- Platinum Member
-
Less
More
- Posts: 383
- Thank you received: 135
3 years 6 months ago - 3 years 6 months ago #269104
by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
It's obvious something with the panfork driver, I can't find a solution for that. What does work is using the mali blob driver instead of panfork.
[url] github.com/numbqq/mali-debs/tree/master/.../arm64/Edge2/wayland [/url]
Not sure if this will work after installing panfork mesa, it might be necessary to do a clean install.
With this driver firefox works fine under wayland
"sudo apt install firefox-esr"
To install gnome I'd to remove xfce because this conficted with gdm3 somehow, in case you're getting the same error you could just run this command in a terminal in xfce "sudo apt remove armbian-jammy-desktop-xfce" and install gnome right after it.
With the mali-wayland blob, gnome and firefox installed, LinuxCNC works fine.
Sorry for wasting your time with the wrong advice of installing panfork, should have test it better.
[url] github.com/numbqq/mali-debs/tree/master/.../arm64/Edge2/wayland [/url]
Not sure if this will work after installing panfork mesa, it might be necessary to do a clean install.
With this driver firefox works fine under wayland
"sudo apt install firefox-esr"
To install gnome I'd to remove xfce because this conficted with gdm3 somehow, in case you're getting the same error you could just run this command in a terminal in xfce "sudo apt remove armbian-jammy-desktop-xfce" and install gnome right after it.
With the mali-wayland blob, gnome and firefox installed, LinuxCNC works fine.
Sorry for wasting your time with the wrong advice of installing panfork, should have test it better.
Last edit: 3 years 6 months ago by royka.
Please Log in or Create an account to join the conversation.
- royka
- Offline
- Platinum Member
-
Less
More
- Posts: 383
- Thank you received: 135
3 years 6 months ago #269119
by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
If you don't feel to start all over again, you could try the following:
It could be I forgot a package which you should remove/install.
Code:
sudo rm /etc/apt/sources.list.d/liujianfeng1994-ubuntu-* && sudo apt update
mkdir restore-mesa && cd restore-mesa
apt download libgbm1=22.2.5-0ubuntu0.1~22.04.1 libglapi-mesa=22.2.5-0ubuntu0.1~22.04.1 libegl-mesa0=22.2.5-0ubuntu0.1~22.04.1 libgbm-dev=22.2.5-0ubuntu0.1~22.04.1 libgl1-mesa-dri=22.2.5-0ubuntu0.1~22.04.1 libglx-mesa0=22.2.5-0ubuntu0.1~22.04.1
sudo dpkg -i --force-all *
sudo apt dist-upgrade
It could be I forgot a package which you should remove/install.
The following user(s) said Thank You: Guglielmi
Please Log in or Create an account to join the conversation.
- Guglielmi
- Offline
- Senior Member
-
Less
More
- Posts: 78
- Thank you received: 17
3 years 6 months ago #269125
by Guglielmi
The new driver couldn't be installed.. impossible overwrite "/lib/firmware/mali_csffw.bin" already present in "mali-g610-firmware 1.0.0-2".
What does it mean "to do a clean install"?
can I remove panfork mesa somehow?
Should I start from a new image installation? ..I installed using armbian but I did not choice panfork mesa somewhere..
Replied by Guglielmi on topic Can the OPI5 be Configured to Run LCNC?
no problem, I don't have doubts you are saving me.. without your good job I would already give up.Sorry for wasting your time with the wrong advice of installing panfork, should have test it better.
The new driver couldn't be installed.. impossible overwrite "/lib/firmware/mali_csffw.bin" already present in "mali-g610-firmware 1.0.0-2".
What does it mean "to do a clean install"?
can I remove panfork mesa somehow?
Should I start from a new image installation? ..I installed using armbian but I did not choice panfork mesa somewhere..
The following user(s) said Thank You: royka
Please Log in or Create an account to join the conversation.
- Guglielmi
- Offline
- Senior Member
-
Less
More
- Posts: 78
- Thank you received: 17
3 years 6 months ago #269130
by Guglielmi
Replied by Guglielmi on topic Can the OPI5 be Configured to Run LCNC?
The following user(s) said Thank You: royka
Please Log in or Create an account to join the conversation.
- royka
- Offline
- Platinum Member
-
Less
More
- Posts: 383
- Thank you received: 135
3 years 6 months ago #269131
by royka
Replied by royka on topic Can the OPI5 be Configured to Run LCNC?
sudo dpkg -i --force-overwrite linux-gpu-mali-wayland_1.1-g6p0-20230406_arm64.deb
The moment you choose to remove panfork with apt remove it will remove about all desktop related parts like gnome/ubuntu.
So to remove I just did it by downloading the non panfork versions and force install them by the commands in my previous post.
To list these you could type:
apt search mesa | grep panfork
After installing the packages in my previous post I've got still 9 packages listed, but it does work.
To replace them is quite simple:
apt show libegl1-mesa -a
This will show all versions of it, then pick the newest version and first try to install it with: sudo apt install libegl1-mesa=22.2.5-0ubuntu0.1~22.04.1
If apt wants to remove a lot of packages you don't want to, you could download it with:
apt download libegl1-mesa=22.2.5-0ubuntu0.1~22.04.1
Then sudo dpkg -i --force-all libegl1-mesa_22.2.5-0ubuntu0.1~22.04.1_arm64.deb
But when you've to force something it's likely you'll have to install more packages the same way, otherwise apt will be annoying (won't install anything)
The moment you choose to remove panfork with apt remove it will remove about all desktop related parts like gnome/ubuntu.
So to remove I just did it by downloading the non panfork versions and force install them by the commands in my previous post.
To list these you could type:
apt search mesa | grep panfork
After installing the packages in my previous post I've got still 9 packages listed, but it does work.
To replace them is quite simple:
apt show libegl1-mesa -a
This will show all versions of it, then pick the newest version and first try to install it with: sudo apt install libegl1-mesa=22.2.5-0ubuntu0.1~22.04.1
If apt wants to remove a lot of packages you don't want to, you could download it with:
apt download libegl1-mesa=22.2.5-0ubuntu0.1~22.04.1
Then sudo dpkg -i --force-all libegl1-mesa_22.2.5-0ubuntu0.1~22.04.1_arm64.deb
But when you've to force something it's likely you'll have to install more packages the same way, otherwise apt will be annoying (won't install anything)
Please Log in or Create an account to join the conversation.
Time to create page: 0.177 seconds