https://git.hornquist.se/raspberry-builder/tree/ deb http://archive.raspberrypi.org/debian/ bullseye main deb http://raspbian.raspberrypi.org/raspbian bullseye main contrib non-free rpi t sudo debootstrap --foreign --arch=anmhf bullseye PWD/root http://raspbian.raspberrypi.org/raspbian - [[https://github.com/RPi-Distro/pi-gen|How upstream builds packages]] pacaur -S qemu-user-static binfmt-qemu-static stty -F {} 115200 ==== puppet ==== {{{ include profiles::raspberry_builder }}} == Binfmt == `/proc/sys/fs/binfmt_misc/` :: registered bin formats `systemd-binfmt.service` :: systemd service for updating == MAC-addresses == `b8:27:eb:b7:0e:59` :: clear case ethernet `b8:27:eb:e2:5b:0c` :: clear case WiFi Serial : 00000000e3b70e59 cat /sys/firmware/devicetree/base/serial-number grep Serial /proc/cpuinfo id[8:] == e3b70e59 == Packages == - openssh-server (which enables ssh.service) - raspberrypi-kernel - raspberrypi-bootloader {{{ root@stock-raspberrypi:~# apt-cache search raspberrypi firmware-brcm80211 - Binary firmware for Broadcom/Cypress 802.11 wireless cards libraspberrypi-bin - Miscellaneous Raspberry Pi utilities libraspberrypi-bin-dbgsym - debug symbols for libraspberrypi-bin libraspberrypi-dev - Libraries for the Raspberry Pi's VideoCore IV (headers) libraspberrypi-doc - Libraries for the Raspberry Pi's VideoCore IV (docs) libraspberrypi0 - Libraries for the Raspberry Pi's VideoCore IV libraspberrypi0-dbgsym - debug symbols for libraspberrypi0 raspberrypi-bootloader - Raspberry Pi bootloader raspberrypi-kernel - Raspberry Pi bootloader raspberrypi-kernel-headers - Header files for the Raspberry Pi Linux kernel raspberrypi-net-mods - Network configuration for the Raspberry Pi UI raspberrypi-sys-mods - System tweaks for the Raspberry Pi }}} == Repos == {{{ deb http://raspbian.raspberrypi.org/raspbian bullseye main contrib non-free rpi }}} Primary raspberry repo, used for debootstrap. main :: Required base system? contrib :: Probably optinal non-free :: Hopefully optoinal rpi :: Most firmware and the like {{{ deb http://archive.raspberrypi.org/debian/ bullseye main }}} kerne === DHCP === === Netboot === TFTP GET bootcode.bin (required) TFTP GET bootcode.sig (optional) TFTP GET - e3b70e59/start.elf - autoboot.txt - config.txt - recovery.elf - start.elf == För Stupan == - /var/lib/machines/raspberry-builder/setup-used-for-stupan.sh - /setup.sh bullseye stupan - chroot $ apt install xterm openbox cantata - cd /var/tmp - dd if=/dev/zero of=stupan.img bs=4M count=1000 status=progress - parted stupan.img mklabel msdos - parted -a optimal mkpart primary 0% 512MB - parted -a optimal mkpart primary 512MB 100% apt install parted echo 'options loop max_part=8' > /etc/modprobe.d/loop.conf == För Stupan 2 == Nuvarande är installerad med `stage{0..2}`, men med följande ändringar vilka ska bilda `stage-vg` - apt install tmux vim - apt install lightdm - apt install icewm cantata - apt install x11-xserver-utils - apt install plymouth-themes - /etc/lightdm/lightdm.conf - [Seat:*] - autologin-user: vastgota - autologin-session: icewm-session - apt install mpc - set MPD_HOST environment - # exec: `sudo update-initramfs -c -k $(uname -r)` - file /etc/fstab - append - `tmpfs /tmp tmpfs defaults 0 0` - `tmpfs /var/log tmpfs defaults 0 0` - `tmpfs /var/tmp tmpfs defaults 0 0` - change -