Python: Use mmap to create shared memory for IPC
There are several ways to achieve IPC, shared memory is one of those. In this post, we will try to create shared memory via mmap module in python.
There are several ways to achieve IPC, shared memory is one of those. In this post, we will try to create shared memory via mmap module in python.
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} |
In AndroidX, TabLayout has been extended and moved to package com.google.android.material.tabs.TabLayout. This post will describe how to use TabLayout + ViewPager to create swipe views with tabs in AndroidX.
AWS IoT Getting Started: MQTT sample
SWUpdate is a popular embedded system update framework. I’m trying to bring up a OTA update system on stm32mp1, and this OTA system will base on SWUpdate. This post records steps need to be done to install SWUpdate system into Yocto Linux, and create a single copy image to test it.
Yesterday we found that nfsroot will get crash after systemd-networkd starts:
1 | nfs: server 192.168.0.101 not responding, still trying |
Notes about some useful Yocto debugging commands
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…
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 🖋
It specifies that a member field has the smallest possible alignment. That is, one byte for a variable field, and one bit for a bitfield, unless you specify a larger value with the aligned attribute.