# Ensure Docker is installed and configured.
# Create project directory
mkdir -p ~/yocto-rpi4
This file has been truncated, but you can view the full file.
This file contains hidden or 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
From 66dc86537260d0acf273a4f1f1cbac542beade41 Mon Sep 17 00:00:00 2001 | |
From: Jonathan Beri <[email protected]> | |
Date: Sun, 3 Aug 2025 07:23:54 -0700 | |
Subject: [PATCH 1/2] feat(tests): implement comprehensive test performance | |
optimization system | |
- Add intelligent test selection engine based on file change analysis | |
- Implement GitHub Actions native caching for dependencies and build artifacts | |
- Create mock implementations for hardware-dependent tests in CI | |
- Add parallel test execution with resource management and conflict detection |
This guide sets up Yocto for a Raspberry Pi 4, using the scarthgap
branch and enabling SSH access via Dropbear. It also includes steps for setting up Wi-Fi credentials, using the ghcr.io/crops/poky:ubuntu-22.04
Docker image, and configuring Shared State Cache for faster builds.
- Docker: Ensure Docker is installed and running:
This file contains hidden or 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
## Useful links | |
# https://docs.yoctoproject.org/brief-yoctoprojectqs/index.html | |
# https://github.com/crops/poky-container | |
# https://ubs_csse.gitlab.io/secu_os/tutorials/crops_yocto.html | |
Install Docker and QEMU on the host | |
mkdir -p /home/jberi/yocto | |
docker run --rm -it -v /home/jberi/yocto:/workdir crops/poky --workdir=/workdir | |
git clone git://git.yoctoproject.org/poky |
This file contains hidden or 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
FROM ubuntu:jammy | |
RUN \ | |
apt update \ | |
&& apt install -y kmod linux-tools-virtual usbutils | |
# docker run -it --cap-add=ALL --privileged -v /lib/modules/`uname -r`/kernel/drivers/usb/usbip:/lib/modules/`uname -r` usbip:latest | |
# modprobe usbip-core | |
# modprobe vhci-hcd | |
# usbip list -r <server> | |
# sudo usbip attach -r <server> -b <bus ID> |
This list is focused on programmers and debuggers.
This file contains hidden or 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
#!/bin/bash | |
# demo scripted based on https://github.com/paxtonhare/demo-magic | |
######################## | |
# include the magic | |
######################## | |
. demo-magic.sh | |
# hide the evidence |
This file contains hidden or 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
1. Flash Raspberry OS with Raspberry Pi Imager (make sure to use the [Settings](https://www.raspberrypi.org/blog/raspberry-pi-imager-update-to-v1-6/)!) | |
2. ssh [email protected] | |
3. sudo apt update & sudo apt full-upgrade | |
4. sudo apt install sqlite | |
5. curl https://dl.min.io/server/minio/release/linux-arm/minio --create-dirs -o $HOME/minio-binaries/minio | |
6. chmod +x $HOME/minio-binaries/minio | |
7. export PATH=$PATH:$HOME/minio-binaries/ | |
8. minio --help | |
9. export MINIO_ROOT_USER=minioadmin \ | |
export MINIO_ROOT_PASSWORD=minioadmin \ |
This file contains hidden or 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
package main | |
import ( | |
"context" | |
"log" | |
"os" | |
"time" | |
"github.com/plgd-dev/go-coap/v2/udp" | |
) |
NewerOlder