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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
|
Linux Kernelprogrammierung - Somersemester 2012 - HS Ravensburg-Weingarten
https://www.youtube.com/watch?v=yVpbFMhOAwE
Organisatorisch
^^^^^^^^^^^^^^^
weitere Termine
===============
30.3 - 1. Vorlesung
13.4 - 2. Vorlesung
20.4 - 3. Vorlesung
27.4 - ==>> 4. Vorlesung <<== Termin entfällt
4.5 - 4. Vorlesung
11.5 - 5. Vorlesung
18.5 - Brueckentag (Christi Himmelfahrt)
8.6 - Brueckentag (Christi Himmelfahrt)
15.6 - 6. Vorlesung
22.6
29.6 - Vortrag von einem Kernelmaintainer + Pruefungsvorbereitung (freiwillig)
Linuxtag:
=========
Mi 23. - Sa 26. Mai Messe Berlin
http://www.winters-hotel-berlin-city-messe.de/
Uebernachtung ca. 100 pro Person
Nach Berlin mit Nachtzug ab Dienstag Abend ca. 21 Uhr
Zurueck Sonntag Nachmittag ~100 EUR pro Person
Eintritt: Sponsoren
Zuschuss durch Studiengebuehren, Erfahrungsgemaess ca. 20%.
--> Kosten ca. 180 EUR + Verpflegung und Nahverkehr in Berlin
TOPICS:
=======
- Linux News
Slides
^^^^^^
- Linux Kernel Device
- Dateisysteme
- Flash Devices
- UBI
- Boot Prozess
- Dateisystem erzeugen
- UDEV
web
^^^
- Beagle Board Boot Configuration (Grafiken, Schaltplan)
Tafel
^^^^^
Komponentenliste erstellen (x-loader, u-boot, Kernel, RFS1, RFS2)
Was auf welches Medium / Partition
Board Bringup
^^^^^^^^^^^^^
- Komponenten erzeugen und Flashen
LWN - summary:
==============
13.04.2012:
^^^^^^^^^^^
More than eight years after the 2.6.0 release, Willy Tarreau has announced that
he will no longer be releasing updates to the 2.4 series.
For those who really are unable to move on, he may maintain a git tree with an
occasional fix, "but with no guarantees."
Development of SCHED_DEADLINE returns
- it's a new scheduling policy like SCHED_FIFO
- kernel git repo: https://github.com/jlelli/sched-deadline
- example application: https://github.com/gbagnoli/rt-app
- Mailinglist: http://feanor.sssup.it/mailman/listinfo/linux-dl
3.4-rc2 (released on April, 7th)
^^^^^^^
- The x32 system call ABI
(https://sites.google.com/site/x32abi/documents/abi.pdf?attredirects=0&d=1)
- printk: support structured and multi-facility log messages
(lwn.net/Articles/490690/)
- The Common Clk Framework (see drivers/clk/clk-*.c for examples)
- Introduce a led trigger for CPU activity and consolidate LED driver in ARM
(lwn.net/Articles/489612/)
<< INSERT SLIDES ABOUT struct device >>
- Reworking the DMA mapping code Patchset
* merge ARM DMA API in generic DMA code
* remove duplicated code
* remove special alloc/mapping functions for writecombine, (non)coherent
* use flags in dma_(alloc/mapping) for writecombine, (non)coherent
* now each architecture can implement the following functions:
include/linux/dma-mapping.h (very simplified pseudo code):
struct dma_map_ops {
vaddr = alloc(dev, size, &paddr, attr)
free(dev, size, vaddr, paddr, attr)
vaddr = mmap(dev, paddr, attr)
sync_for_cpu (dev, paddr)
sync_for_device (dev, vaddr)
...
yes/no = dma_supported(dev)
};
e.g. arm does this in arch/arm/common/dmabounce.c
* add per-device i/o mmu support to (ARM) DMA API:
Some hardware has a separate IOMMU built into it that cannot be used
for other devices, so the IOMMU cannot be made available to the system
as a whole.
But it is possible to attach a device-specific dma_map_ops structure
to such devices that would cause the DMA API to use the IOMMU without
the device driver even needing to know about it.
arch/arm/include/asm/dma-iommu.h:
struct dma_iommu_mapping {
/* iommu specific data */
struct iommu_domain *domain;
void *bitmap;
size_t bits;
unsigned int order;
dma_addr_t base;
spinlock_t lock;
struct kref kref;
};
struct dma_iommu_mapping *arm_iommu_create_mapping(dma_addr_t base,
size_t size, int order);
void arm_iommu_release_mapping(struct dma_iommu_mapping *mapping);
int arm_iommu_attach_device(struct device *dev,
struct dma_iommu_mapping *mapping);
(implementation see below)
arch/arm/mm/dma-mapping.c:
struct dma_map_ops iommu_ops = {
.alloc = arm_iommu_alloc_attrs,
.free = arm_iommu_free_attrs,
.mmap = arm_iommu_mmap_attrs,
.map_page = arm_iommu_map_page,
.unmap_page = arm_iommu_unmap_page,
.sync_single_for_cpu = arm_iommu_sync_single_for_cpu,
.sync_single_for_device = arm_iommu_sync_single_for_device,
.map_sg = arm_iommu_map_sg,
.unmap_sg = arm_iommu_unmap_sg,
.sync_sg_for_cpu = arm_iommu_sync_sg_for_cpu,
.sync_sg_for_device = arm_iommu_sync_sg_for_device,
};
int arm_iommu_attach_device(struct device *dev,
struct dma_iommu_mapping *mapping)
{
int err;
err = iommu_attach_device(mapping->domain, dev);
if (err)
return err;
kref_get(&mapping->kref);
dev->archdata.mapping = mapping;
set_dma_ops(dev, &iommu_ops);
printk(KERN_INFO "Attached IOMMU controller to %s device.\n",
dev_name(dev));
return 0;
}
Prior to this work, IOMMU awareness had been built into specific drivers
directly.
Status of Android merge:
^^^^^^^^^^^^^^^^^^^^^^^^
Grant Likely asked about the progress of the Android patches into the mainline;
when is that job "done"?
Once Android is using mainline kernels was the answer Bottomley gave.
Kroah-Hartman noted that the real problem is on the user-space side.
Kernel hackers can't do anything about changing the Android user space,
but companies like Linaro and Samsung are making some progress in doing so.
The 3.3 kernel can boot an Android user space, but it will
"eat your battery alive",
he said. We are making progress, but it will require teamwork to get there.
Plumbers:
^^^^^^^^^
Udev and systemd to merge
Zawinski's Law.
Quick, someone write an email reader for systemd, to stop the progression before
it's too late. ;-)
Java and C swap places at the top of the TIOBE index (C: 17.555, Java 17.026 %)
(http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html)
30.03.2012:
^^^^^^^^^^^
Long Term Kernel: 2.6.27.62, 2.6.32.59
Stable Kernel: 3.0.26, 3.1.10, 3.2.13
Mainline: 3.3 released on March 18th
- byte queue limits
- Open vSwitch
- Network priority cgroup (Documentation/cgroups/net_prio.txt)
- return of Android code into staging subtree
- TI C6X arch support (DSP architecture - see https://lwn.net/Articles/457635/)
- EFI boot support
- Drivers
for a more complete list see (http://kernelnewbies.org/Linux_3.3)
Devel: 3.4 merge window is open
- moved 'telephony' into staging
- qnx6fs (readonly)
- perf improvements
- USB audio gadget
- deferred driver probing
- Remote Processor Framework (see Documentation/remoteproc.txt | rpmsg.txt)
- more cleanup/consolidation on ARM
linux-next
Prüfung:
========
schriftlich, 60 Minuten
Material:
=========
http://manut.eu/hswgt
Script:
=======
Mitschriebe gerne an
manut@mecka.net
Literatur:
==========
http://lwn.net
http://heise.de/open <-- Kernel Log
http://kernelnewbies.org
http://beagleboard.org
Corbet, Rubini, Kroah-Hartmann: Linux Device Drivers 3rd Edition
http://lwn.net/Kernel/LDD3
Kroah-Hartmann: Linux Kernel In A Nutshell
http://www.kroah.com/lkn
Bovet, Cesati: Understanding The Linux Kernel (34,95)
Love: Linux Kernel Development (29,95 EUR)
Bewertung:
==========
http://www.meinprof.de/uni/prof/51131
geplante Themen:
================
Termin1: what is linux:
------------------------
Voraussetzungen fuer Linux
Linux Desktop vs. embedded Linux:
- Kernel vs. Userspace
- Fedora, Debian, ubuntu ..
- Android
- KDE / GNOME
- CPU Architekturen
- cross
Kernelentwicklung
- Mainline / Maintainer
- syscalls (stabil)
- interne API (instabil)
Versionskontrolle:
- diff / patch
- quilt
- git
Termin2: kernel build, bootloader, MTD:
---------------------------------------
Board Bringup:
- Bootloader
- grub vs. IPL vs. u-boot
Kernel:
- Kernel konfigurieren
- Kernel kompilieren (auch cross)
- Kernel Dokumentation
Userspace:
- RFS generieren
- busybox / cross
- read only RFS
- 'kein' RFS vs. full-featured Debian
Praxis: Board Bringup
Termin3:
--------
Datenuebergabe zwischen Userspace und Kernel
Kernelarchitektur:
- Core
- Driver
- Arch
- Coding Style
Kernelmodule:
- 1. Kernelmodul 'Hello world'
registrieren bei Subsystemen:
- char dev
Tracing
Termin4:
--------
Kernelkonzepte:
Review eines Treibers:
- IRQ Handling
- MM
- Timer
UIO:
- UIO am Beispiel
Termin 5 & 6:
-------------
Kernelprogrammierung an einem Beispiel
Termin 7:
---------
Maintainer Vortrag & Questioning
Pruefungsvorbereitung
weitere Termine:
================
12.3 Vorlesungsbeginn
4.4 - 11.4 Ostern
18.5 Blutfreitag
25.5 - 04.6 Pfingsten
=> 12 Vorlesungsfreitage -> 14 taegig = 6 Veranstaltungen:
Vorschlag zur Terminplanung
30.3 - 1. Vorlesung
13.4 - 2. Vorlesung
20.4 - 3. Vorlesung
27.4
4.5 - 4. Vorlesung
11.5 - 5. Vorlesung
18.5 - Brueckentag (Christi Himmelfahrt)
8.6 - Brueckentag (Christi Himmelfahrt)
15.6 - 6. Vorlesung
22.6
29.6 - Vortrag von einem Kernelentwickler + Pruefungsvorbereitung (freiwillig)
|