Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] OPI3B Low Ulimit after switched to testing vendor kernel #7301

Open
yoni13 opened this issue Dec 3, 2024 · 16 comments
Open

[Bug] OPI3B Low Ulimit after switched to testing vendor kernel #7301

yoni13 opened this issue Dec 3, 2024 · 16 comments
Labels
External bug 🐞 For bugs which are not caused by DietPi. Kernel related 🧬 Orange Pi 3B
Milestone

Comments

@yoni13
Copy link

yoni13 commented Dec 3, 2024

Creating a feature request

Is your feature request related to a problem? Please describe:

No

Describe the solution you'd like:

Add NPU support for 3B

Describe alternatives you've considered:

Use the official image from OrangePi or the image from Armbian

Also, is that possible? It looks like we are on the mainline instead of the Rockchip one.

@yoni13 yoni13 changed the title Support RKNPU on OPI3B [Feature request] Support RKNPU on OPI3B Dec 3, 2024
@MichaIng
Copy link
Owner

MichaIng commented Dec 6, 2024

Use the official image from OrangePi or the image from Armbian

We do own kernel builds with a soft-fork of the Armbian build system. In case of Orange Pi 3B, it is the edge branch, hence mainline kernel, not Orange Pi vendor kernel.

I guess the NPU requires particular drivers, which are not implemented into mainline Linux (yet)? We could provide vendor kernel builds, but I would prefer to see a way to have the needed drivers in mainline Linux. Maybe you have some more information/background, as you actually aim to make use of the NPU?

@yoni13
Copy link
Author

yoni13 commented Dec 6, 2024

Use the official image from OrangePi or the image from Armbian

We do own kernel builds with a soft-fork of the Armbian build system. In case of Orange Pi 3B, it is the edge branch, hence mainline kernel, not Orange Pi vendor kernel.

I guess the NPU requires particular drivers, which are not implemented into mainline Linux (yet)? We could provide vendor kernel builds, but I would prefer to see a way to have the needed drivers in mainline Linux. Maybe you have some more information/background, as you actually aim to make use of the NPU?

Yes, I am currently working on getting Immich's ML running on the RKNPU. (I am still figuring out how to resolve issues with get_inputs and get_outputs btw).

For testing, I need to swap to another SD card with Armbian installed. It's a bit inconvenient, it’s manageable for now.

@MichaIng
Copy link
Owner

MichaIng commented Dec 6, 2024

Ah, with Armbian it works? With the Linux v6.1 image, not the v6.6 image, right?

@yoni13
Copy link
Author

yoni13 commented Dec 6, 2024 via email

@MichaIng
Copy link
Owner

MichaIng commented Dec 6, 2024

Please test this:

cd /tmp
wget https://dietpi.com/downloads/binaries/linux-{image,dtb}-vendor-rk35xx.deb
dpkg -i linux-{image,dtb}-vendor-rk35xx.deb
reboot

@yoni13
Copy link
Author

yoni13 commented Dec 6, 2024

Please test this:

cd /tmp
wget https://dietpi.com/downloads/binaries/linux-{image,dtb}-vendor-rk35xx.deb
dpkg -i linux-{image,dtb}-vendor-rk35xx.deb
reboot

It boots!

@MichaIng
Copy link
Owner

MichaIng commented Dec 6, 2024

Sure it boots 😄. Or you mean the NPU works with it?

@yoni13
Copy link
Author

yoni13 commented Dec 6, 2024 via email

@MichaIng
Copy link
Owner

MichaIng commented Dec 6, 2024

Okay great. I'll add the vendor kernel to the APT repo component for the Orange Pi 3B, so it can then be easier installed and kept updated.

@yoni13 yoni13 closed this as completed Dec 6, 2024
@MichaIng MichaIng added Solution available 🥂 Definite solution has been done and removed Investigating 🤔 labels Dec 6, 2024
@MichaIng MichaIng added this to the v9.9 milestone Dec 6, 2024
@yoni13
Copy link
Author

yoni13 commented Dec 6, 2024

I just noticed a issue with ulimit while trying to create a mc server

root@orangepi3b:~# ulimit -u
488

Might be this:Joshua-Riek/ubuntu-rockchip#919

@yoni13 yoni13 reopened this Dec 6, 2024
@yoni13 yoni13 changed the title [Feature request] Support RKNPU on OPI3B [Feature request] Support RKNPU on OPI3B && Low Ulimit after ner kernel Dec 6, 2024
@yoni13 yoni13 changed the title [Feature request] Support RKNPU on OPI3B && Low Ulimit after ner kernel [Bug] OPI3B Low Ulimit after new kernel Dec 6, 2024
@MichaIng
Copy link
Owner

MichaIng commented Dec 6, 2024

Before we add patches, can you test the latest build of this kernel?

cd /tmp
wget https://dietpi.com/downloads/binaries/testing/linux-{image,dtb}-vendor-rk35xx.deb
dpkg -i linux-{image,dtb}-vendor-rk35xx.deb
reboot

@yoni13
Copy link
Author

yoni13 commented Dec 7, 2024

Before we add patches, can you test the latest build of this kernel?

cd /tmp
wget https://dietpi.com/downloads/binaries/testing/linux-{image,dtb}-vendor-rk35xx.deb
dpkg -i linux-{image,dtb}-vendor-rk35xx.deb
reboot

The NPU works, what would you also want to test?

@yoni13
Copy link
Author

yoni13 commented Dec 7, 2024

The RKMPP also works btw.

@MichaIng
Copy link
Owner

The NPU works, what would you also want to test?

Is the ulimit correct with that one?

@yoni13
Copy link
Author

yoni13 commented Dec 12, 2024

The NPU works, what would you also want to test?

Is the ulimit correct with that one?

No

ulimit -u
486

@MichaIng
Copy link
Owner

Okay, I'll create a build with these two patches:

@MichaIng MichaIng modified the milestones: v9.9, v9.10 Dec 25, 2024
@MichaIng MichaIng removed the Solution available 🥂 Definite solution has been done label Dec 25, 2024
@MichaIng MichaIng added the External bug 🐞 For bugs which are not caused by DietPi. label Dec 25, 2024
@yoni13 yoni13 changed the title [Bug] OPI3B Low Ulimit after new kernel [Bug] OPI3B Low Ulimit after switched to testing vendor kernel Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External bug 🐞 For bugs which are not caused by DietPi. Kernel related 🧬 Orange Pi 3B
Projects
None yet
Development

No branches or pull requests

2 participants