Franka
Standard Franka Develop Environment
OS
For using franka,we select Ubuntu 20.04 with the kernel version 5.15.133rt .
- Download Ubuntu 20.04 Image.
- Download Rufus.
- Using Rufus to write IOS into USB:
- Select the Image downloaded before.
- Leave all other parameters with their default values and click START to initiate the write process. This operation will clean all data in your selected USB, please make sure backup for important data is avaliable.
- Install missing files if noticed and accept warning for cleaning data. Wait until the process is finished, then close Rufus.
- Restart your computer and hold down a specific key to enter BIOS to bringup the boot menu and choose boot from USB.
- Follow the tutorial to setup the real-time kernel for Ubuntu 20.04.
-
Install necessary dependency:
sudo apt-get install build-essential bc curl ca-certificates gnupg2 libssl-dev lsb-release libelf-dev bison flex dwarves zstd libncurses-dev
-
Download patch:
curl -SLO https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.9.1.tar.xz curl -SLO https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.9.1.tar.sign curl -SLO https://www.kernel.org/pub/linux/kernel/projects/rt/5.9/patch-5.9.1-rt20.patch.xz curl -SLO https://www.kernel.org/pub/linux/kernel/projects/rt/5.9/patch-5.9.1-rt20.patch.sign
-
Extract them with
xz -d *.xz
. -
Extract the source code and apply the patch:
tar xf linux-*.tar cd linux-*/patch patch -p1 < ../patch-*.patch
-
Copy your currently booted kernel configuration as the default config for the new real time kernel:
cp -v /boot/config-$(uname -r) .config
-
Use this config as the default to configure the build:
make olddefconfig make menuconfig
The second command brings up a terminal interface in which you can configure the preemption model. Navigate with the arrow keys to General Setup > Preemption Model and select Fully Preemptible Kernel (Real-Time).
After that navigate(exit to the last level of the dictionary) to Cryptographic API > Certificates for signature checking (at the very bottom of the list) > Provide system-wide ring of trusted keys > Additional X.509 keys for default system keyringGeneral Setup -> Preemption Model set to Fully Preemptible Kernel(RT)
General Setup -> Timers subsystem -> Timer tick handling set to Full dynticks system
General Setup -> Timers subsystem open High Resolution Timer Support
Processor type and features -> Timer frequency set to 1000 HZRemove the “debian/canonical-certs.pem” from the prompt and press OK. Then press Save. Save this configuration to .config and exit the TUI.
-
Compile the kernel. As this is a lengthy process, set the multithreading option -j to the number of your CPU cores: make -j$(nproc) deb-pkg
-
Install the newly created package:
sudo dpkg -i ../linux-headers-*.deb ../linux-image-*.deb
-
Restart system. The Grub boot menu should now allow you to choose your newly installed kernel. To see which one is currently being used, see the output of the
uname -a
command. It should contain the stringPREEMPT RT
and the version number you chose. Additionally,/sys/kernel/realtime
should exist and contain the the number 1.
-
Software
Option
- Add Chinese Input method for Ubuntu 20.04:
- Open Settings, go to
Region & Language
->Manage Installed Languages
->Install / Remove languages
. - Select
Chinese (Simplified)
. Make sureKeyboard Input method system
hasIbus
selected. Apply. - Reboot
- Log back in, reopen Settings, go to
Keyboard
. - Click on the "+" sign under
Input sources
. - Select
Chinese (China)
and thenChinese (Intelligent Pinyin)
.
- Open Settings, go to