aboutsummaryrefslogtreecommitdiff
path: root/Raspberry Pi.wiki
blob: 7f83b411763a4395c0a0cc8b52778c07562b05c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
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
        -