Skip to content

Instantly share code, notes, and snippets.

View omrdk's full-sized avatar
📈
focusing

omrdk

📈
focusing
View GitHub Profile
@omrdk
omrdk / Instruction.txt
Last active May 13, 2024 12:17
Qt for Embedded Linux(raspberry pi)
This is an instruction of building Raspberry Pi systems with Yocto Project.
1# Below packages must installed on your host system(18.04 or 20.04 ubuntu).
build-essential, chrpath, diffstat, gawk, libncurses5-dev, python3-distutils, texinfo
2# You should change the default Ubuntu shell from dash to bash by running this command from a shell:
sudo dpkg-reconfigure dash :: Choose No to dash when prompted.
3# First clone the main Yocto project poky layer with this command:
~$ git clone -b dunfell git://git.yoctoproject.org/poky.git poky-dunfell
@omrdk
omrdk / hotplug-udev.txt
Last active January 20, 2022 04:49
Hotplugging usb for linux
# HOTPLUGGING W/ UDEV
[Udev rule]
// Create udev rule file
sudo touch /etc/udev/rules.d/66-hotplug.rules
// Fill the file with:
KERNEL=="sd[a-z][0-9]*", SUBSYSTEM=="block", ACTION=="add", RUN+="/usr/local/bin/mount.sh &"
KERNEL=="sd[a-z][0-9]*", SUBSYSTEM=="block", ACTION=="remove", RUN+="/usr/local/bin/umount.sh &"
// Scripts will be called whenever you plug/unplug(add/remove) usb.