Skip to content

Instantly share code, notes, and snippets.

View beriberikix's full-sized avatar
🐶
I have no idea what I'm doing

Jonathan Beri beriberikix

🐶
I have no idea what I'm doing
View GitHub Profile
@beriberikix
beriberikix / speedrun.sh
Created October 3, 2021 23:10
Golioth speedrun with Zephyr & ESP32-C3 (RISC-V WiSOC)
#!/bin/bash
# demo scripted based on https://github.com/paxtonhare/demo-magic
########################
# include the magic
########################
. demo-magic.sh
# hide the evidence
@beriberikix
beriberikix / oss_embedded_tools.md
Last active May 16, 2022 16:06
Open Source and source available tools for embedded
@beriberikix
beriberikix / Dockerfile
Last active February 5, 2023 16:34
Attempts at using USB/IP VHCI in a container
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>
@beriberikix
beriberikix / QEMU_cheat_sheat.md
Last active July 10, 2024 09:20
QEMU cheat sheet for the most basic setup

Create system drive

qemu-img create -f qcow2 alpine.qcow2 16G

Install image

Linux

## 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
@beriberikix
beriberikix / README.MD
Last active November 4, 2024 01:29
Yocto + RPI4

Quick Start Guide: Building Yocto for Raspberry Pi 4

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.


Prerequisites

  1. Docker: Ensure Docker is installed and running:
@beriberikix
beriberikix / yocto-guide.md
Last active November 12, 2024 13:12
Yocto Rasbperry Pi 4

Quick Yocto Guide for Raspberry Pi 3

Prerequisites

# Ensure Docker is installed and configured.

# Create project directory
mkdir -p ~/yocto-rpi4