diff options
author | Minijackson <minijackson@riseup.net> | 2020-10-13 14:46:56 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2020-10-13 14:46:56 +0200 |
commit | 65149417e1deb23f83726edfd41f3215ae0591e0 (patch) | |
tree | 90c6bcb4ad6dd9c597d04b51845e02d63c450237 /2020-10-06.md | |
parent | c9e775a44cb316d578827f333531f5101aa29658 (diff) | |
download | wtf-is-linux-slides-master.tar.gz wtf-is-linux-slides-master.zip |
Diffstat (limited to '2020-10-06.md')
-rw-r--r-- | 2020-10-06.md | 119 |
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 | --- | ||
2 | title: WTF is Linux | ||
3 | author: Rémi Nicole <remi.nicole@smile.fr> | ||
4 | date: 2020-10-06 | ||
5 | slide-level: 2 | ||
6 | aspectratio: 169 | ||
7 | |||
8 | theme: metropolis | ||
9 | colortheme: owl | ||
10 | beameroption: "show notes on second screen=right" | ||
11 | |||
12 | toc: true | ||
13 | highlightstyle: breezedark | ||
14 | lang: en-US | ||
15 | |||
16 | bibliography: ../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 | { height=80% } | ||
31 | |||
32 | ## Single-project process | ||
33 | |||
34 | { height=80% } | ||
35 | |||
36 | ## Overall process | ||
37 | |||
38 | { 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 | |||
58 | We'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 | |||
81 | By board-specific files, we can mean: kernel config & patches, scripts, etc. | ||
82 | |||
83 | ::: | ||
84 | |||
85 | ## Hierarchy of a Buildroot output | ||
86 | |||
87 | Everything 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 | ||