This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |