libfranka: Realtime Kernel build instructions not working on ubuntu 18.04 and higher
Just a quick heads-up about the real-time kernel instructions found in your online documentation. These instructions do not seem to work anymore on ubuntu versions higher than 18.04 and kernel versions higher than 5.0. I was, however, able to build real-time kernel (v5.4.26) on ubuntu 18.04 using the steps below:
See the OLD steps
⚠️ UPDATE: The instructions below are not working anymore on my new system. For installing the real-time kernel on ubuntu 20.04 or higher see my new comment.
Ubuntu 18.04 (kernel 5.4.26) instructions
- Install the following necessary dependencies
apt-get install build-essential bc curl ca-certificates fakeroot gnupg2 libssl-dev lsb-release libelf-dev bison flex liblz4-tool libncurses-dev libssl-dev(The liblz4-tool dependency is added here since it is not installed by default on ubuntu 18.04) - Download the regular kernel and the patch from the Linux Kernel archive
- Verifying file integrity
- Unzip the Linux kernel
tar -xvf Linux-5.4.26.tar - Go into the kernel folder
cd linux-5.4.26 - Apply the patch
patch -p1 < ../patch-5.4.26-rt17.patch - Run
make menuconfigand change the Preemption Model toFully Preemptible Kernel (RT) (PREEMPT_RT_FULL) (NEW)(see this stack question for more info) - Disable debug info
scripts/config --disable DEBUG_INFO(Not needed but recommended). - Run
make clean - Make the bzImage
make -j $(nproc) bzImage - Make the modules
make -j $(nproc) modules - Install the modules
make -j $(nproc) modules_install - Install the kernel
make -j $(nproc) install
I did not test your instructions for kernel versions lower than 5.0 or ubuntu versions lower than 18.04.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 4
- Comments: 20 (2 by maintainers)
@rickstaa I tried your (OLD) instructions with the same Ubuntu version (18.04) and kernel version (5.4.26) and got the following error. Did you encounter any errors like this?
It’s good to learn that you cracked the code on your issue! Thanks for sharing the solution here so other users can use it in the future! 🌟
By the way, when I tried to run the command ‘make -j$(nproc) deb-pkg’ again after the previous error showed up, this time it didn’t do the build that long and stopped within 10 seconds with this error:
Sorry, I didn’t know that. Thanks for letting me know.
Hello @medashan,
you do know that
libfrankais used for Panda robots not UR5s right? I suggest you open a ticket in their Github or, better yet, buy our robot 😉Thank you all for solving this issue. We updated the documentation with the findings from you
I was actually able to resolve it by changing one of the config options based on this post.