Skip to content

Instantly share code, notes, and snippets.

@KarolPWr
KarolPWr / .config
Created October 31, 2025 10:46
busybox arm9 emulation .config
#
# Automatically generated make config: don't edit
# Busybox version: 1.37.0
# Mon Oct 13 13:22:49 2025
#
CONFIG_HAVE_DOT_CONFIG=y
#
# Settings
#
@KarolPWr
KarolPWr / gist:9cd32bf6b251cf8c1f1a2ad91812b7b3
Created December 4, 2024 15:58 — forked from robwoolley/yp2024-script.txt
Yocto Project Summit 2024 - Script
Yocto Project Summit 2024 - Presentation Script
===============================================
# Setup
1. Write image to sdcard
2. Put sdcard image in Pi
3. Connect up USB-to-serial cable from RPi4 to demo laptop
4. Connect ethernet cable from RPi4 to Ethernet switch
5. Connect HDMI from RPi4 to monitor
@KarolPWr
KarolPWr / kernel.sh
Created August 10, 2024 18:41
Kompilacja kernela na Ubuntu
### WIĘCEJ NA LINUXDEV.PL ###
sudo apt build-dep linux linux-image-unsigned-$(uname -r)
sudo apt install libncurses-dev gawk flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf llvm
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
cd boot/
cp config-6.8.0-39-generic /media/sf_shared_vm/
@KarolPWr
KarolPWr / buildroot_config.config
Created May 28, 2024 19:41
Buildroot Raspberry Pi 4 config
#
# Automatically generated file; DO NOT EDIT.
# Buildroot 2024.02-962-gb37792f768 Configuration
#
BR2_HAVE_DOT_CONFIG=y
BR2_HOST_GCC_AT_LEAST_4_9=y
BR2_HOST_GCC_AT_LEAST_5=y
BR2_HOST_GCC_AT_LEAST_6=y
BR2_HOST_GCC_AT_LEAST_7=y
BR2_HOST_GCC_AT_LEAST_8=y
@KarolPWr
KarolPWr / buildroot_wprowadzenie.sh
Created May 19, 2024 16:04
Buildroot wprowadzenie
git clone https://git.buildroot.org/buildroot
cd buildroot
# checkout na ostatni branch LTS:
git checkout -b my_root origin/2024.02.x
# korzystamy z configa dla QEMU
make qemu_x86_64_defconfig
# budujemy
@KarolPWr
KarolPWr / rpi4_qemu.sh
Created May 11, 2024 10:53
QEMU dla Raspberry Pi 4
#!/bin/bash
set -x
if [ $# -lt 1 ]; then
RPI_DIR=$(pwd)
else
RPI_DIR=$1
fi
@KarolPWr
KarolPWr / qemu_rpi3.sh
Created May 6, 2024 07:00
QEMU dla Raspberry Pi 3b
#!/bin/bash
set -x
RPI_DIR=$1
cd "$RPI_DIR" || exit
# Ściągamy obraz dla Raspberry Pi 3b+
wget https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2023-05-03/2023-05-03-raspios-bullseye-arm64.img.xz