summaryrefslogtreecommitdiffstats
path: root/2020-10-06.md
diff options
context:
space:
mode:
Diffstat (limited to '2020-10-06.md')
-rw-r--r--2020-10-06.md119
1 files changed, 119 insertions, 0 deletions
diff --git a/2020-10-06.md b/2020-10-06.md
new file mode 100644
index 0000000..31133e4
--- /dev/null
+++ b/2020-10-06.md
@@ -0,0 +1,119 @@
1---
2title: WTF is Linux
3author: Rémi Nicole <remi.nicole@smile.fr>
4date: 2020-10-06
5slide-level: 2
6aspectratio: 169
7
8theme: metropolis
9colortheme: owl
10beameroption: "show notes on second screen=right"
11
12toc: true
13highlightstyle: breezedark
14lang: en-US
15
16bibliography: ../bibliography.bib
17---
18
19# Before we get started
20
21## Practical work practicalities
22
23- One or two group is going to have only 1 Raspberry
24- SD card readers are provided
25
26# Buildroot
27
28## Overview
29
30![Buildroot overview](./res/plantuml/buildroot-overview.png){ height=80% }
31
32## Single-project process
33
34![Buildroot single-project process](./res/plantuml/buildroot-project.png){ height=80% }
35
36## Overall process
37
38![Buildroot overall process](./res/plantuml/buildroot-process.png){ height=80% }
39
40## Configuring Buildroot
41
42- Same as the Linux kernel
43- Allows you to set:
44 - Target architecture
45 - Target packages
46 - Build options
47 - ...
48
49## Default configuration
50
51- To list available default configurations:
52 - `make list-defconfigs`
53- To set the configurations as one of the default:
54 - `make <configuration>_defconfig`
55
56::: notes
57
58We're going to use `raspberrypi2_defconfig`
59
60:::
61
62
63## Hierarchy of a Buildroot project
64
65- package/
66: All the available packages
67- toolchain/
68: Packages for building stuff
69- linux/
70: The Linux kernel package
71- system/skeleton/
72: The skeleton of the target Linux system
73- board/
74: All the board-specific files
75- docs/
76: The documentation of Buildroot
77- And other things
78
79::: notes
80
81By board-specific files, we can mean: kernel config & patches, scripts, etc.
82
83:::
84
85## Hierarchy of a Buildroot output
86
87Everything into `output/`
88
89- images/
90: The images to flash
91- target/
92: The target root filesystem
93- And other things
94
95## Demo time
96
97- _[Raspberry PI 2's pins](https://www.electronicwings.com/public/images/user_images/images/Raspberry%20Pi/RaspberryPi_UART/Raspberry%20pi%203%20UART%20pins.png)_
98- _[Serial cable's datasheet](https://docs.rs-online.com/12f1/0900766b811b9e83.pdf)_ page 7
99
100::: notes
101
102- Show Buildroot's download page
103- Go to extracted Buildroot directory
104- Show available defconfigs
105- Use `raspberrypi2_defconfig`
106- `make all`
107- Show output directory
108- Flash image on sdcard
109- Put sdcard on raspberry pi
110- Show
111- Boot raspberry
112
113:::
114
115# Installing GNU/Linux
116
117
118
119# References