Coding Spirit

一位程序员,比较帅的那种

When we try to access a serial port device(i.e /dev/ttyUSB0) as a normal user, a Permission denied error will occur. Let’s take a look at permissions for those serial port devices:

1
2
ll /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 6月 22 19:28 /dev/ttyUSB0

As we can see, except root user, dialout group also has permissions to those serial port tty devices. Hence, to allow normal user access serial port devices, adding normal user to dialout group will suffice:

1
sudo usermod -aG dialout $USER

kazam is an easy to use screen record tool for Linux. User can install it via apt install kazam on Debian based distribution. After recording, kazam supports to save as mp4 files, which are 4:4:4 by default. To make it available for typical player on other platform, we can covert it to 4:2:0:

1
ffmpeg -i ${original.mp4} -vf format=yuv420p ${new.mp4}

Last and this weekend I spend some time on mounting NFS rootfs on STM32MP1… There are some PHY driver issues and permission issues troubled me a lot…

Read more »

Today I just managed to boot kernel via TFTP on STM32MP1 board but steps I go through are quite different with i.MX8. Thus, I think there is a necessity to have a short note about this 🖋

Read more »
0%