How to compile the RT kernel of a ARM board?

More
19 Aug 2024 08:41 #308121 by panming
Hi all, I recently purchased an ARM board and installed Debian12 as well as LinuxCNC for it.The following information is provided on the official website.

NanoPC-T6 - FriendlyELEC WiKi

I didn't know how to compile the RT kernel, so I downloaded the source code according to the wiki provided on the official website and tried to patch it.But the patch is wrong, and apparently there seems to be some conflict between the source code given by the official website and the RT kernel patch.See the attached attachment for detailed error messages.

Thank you to everyone
Attachments:

Please Log in or Create an account to join the conversation.

More
19 Aug 2024 22:25 #308169 by royka
The same as for Orange Pi 5 (rk3588):
- Already patched source:
forum.linuxcnc.org/18-computer/48079-can...cnc?start=310#298309

- For the most part it already has mainline support, so you could patch that and use the right configuration (drivers).

- Or install this kernel:
drive.google.com/drive/folders/1JglCIPKv...roZcjOvr?usp=sharing

Please Log in or Create an account to join the conversation.

More
26 Aug 2024 07:51 #308675 by panming
@royka Thank you for your reply. I have carefully read your answer, tried your plan, and finally decided to give up. Forgive me, this rookie, I really can't solve it.

Please Log in or Create an account to join the conversation.

More
26 Aug 2024 10:18 #308687 by royka
Which of the 3 options? What didn't work?
The easiest route is to install the kernel from Google Drive by downloading both files and install with:
cd ~/Downloads
sudo apt install ./linux-headers-_5.10.160-rt89+-5_arm64.deb ; sudo apt install ./linux-image-_5.10.160-rt89+-8_arm64.deb
To compile it yourself, the easiest way is to use the already rt patched source. Then you need to use the right config file, the one in the attachment will probably also work for yours. Assuming that you downloaded that config file in your Downloads directory: 

File Attachment:

File Name: config-5.1...rt89.txt
File Size:195 KB
git clone https://github.com/orangepi-xunlong/linux-orangepi.git -b orange-pi-5.10-rk35xx-rt
cd linux-orangepi
cp ~/Downloads/config-5.10.160-rt89.txt ./.config
make menuconfig #Here you can make your changes
make -j$(nproc)
sudo make modules_install
sudo make install
Attachments:

Please Log in or Create an account to join the conversation.

More
28 Aug 2024 03:24 #308861 by panming
I tried apt install, but nothing changed after the reboot , the kernel is still the same.

And the compiled kernel can't be turned on after being flashed in via a USB cable.

I've returned the board. ARM is an architecture that makes me sad.

Please Log in or Create an account to join the conversation.

More
28 Aug 2024 06:04 #308870 by royka
That has nothing to do with ARM, perhaps something with the distro that you were using. If it did install but not boot, then it didn't update the bootloader or symlinks in /boot. That could've been easily solved.

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum