Bare-Metal Clocks, GIC Interrupts, DDR3, LCD & Sensor Buses

For: BSP and embedded engineers who can build freestanding C and ARMv7 assembly

Bring up a bounded, observable Cortex-A7 peripheral BSP using clock, interrupt, timer, display and sensor invariants.

18 lessons6 labs~13h 40mLinux 6.12C11U-Boot 2025.01Course 2 of 8 · Bare-Metal Peripherals

What you'll build

lab m0165 min

CCM Clock-Tree Handoff, PFD Lane Masks & Bus-Divider Verifier

Calculate parent and root frequencies, preserve unrelated register fields, and reject unsafe clock transitions.

learner@ksa: ~/gl-e02/lab-m01
learner@ksa:~/gl-e02/lab-m01./starter/lab 1 ; echo "case1_rc=$?"TAP version 131..5ok 1 - Strict C11 build from sourcelearner@ksa:~/gl-e02/lab-m01
lab m0270 min

ARMv7-A Exception Frame, GICv2 Token Lifecycle & GPIO W1C Dispatch

Install a bounded interrupt path whose exception frame, acknowledge token and peripheral clear operations preserve independent events.

learner@ksa: ~/gl-e02/lab-m02
learner@ksa:~/gl-e02/lab-m02./starter/lab 2 ; echo "gic_rc=$?"TAP version 131..5ok 1 - Strict C11 build from sourcelearner@ksa:~/gl-e02/lab-m02

Syllabus

gl-e02/

Prerequisites

  • requiredGL-E01 or equivalent ARMv7-A reset, linker script and MMIO fluency
  • requiredStrict C11, unsigned arithmetic, bit masks and command-line GCC/Make

Series map

  1. GL-E00Linux Host Workbench, POSIX Shell, Network Boot & Embedded C Style — Host VM/udev bridges, PTY/shell streams, FHS/permissions/MBR alignment, APT/TFTP/NFS boot, kernel C style & bring-up fault triage
  2. GL-E01ARMv7-A Cortex-A7 Architecture, Boot ROM & Bare-Metal BSP — Cross-workbench, Cortex-A7 modes/CP15, ARMv7 assembly, IOMUXC pad muxing, IVT/DCD Boot ROM, linker scripts & modular BSP
  3. GL-E02Bare-Metal Clocks, GIC Interrupts, DDR3, LCD & Sensor Buses — CCM PLL/PFD clock tree, GICv2 interrupts, EPIT/GPT timers, UART printf, MMDC DDR3 calibration, eLCDIF/FT5426/PWM & RTC/I2C/SPI this course
  4. GL-E03U-Boot 2025.x, Linux 6.12 Porting, Root Filesystems & Target Debugging — U-Boot Kbuild/SPL/relocation/porting, Linux 6.12 arch/arm boot/DTS/ENET port, BusyBox/Buildroot/Yocto rootfs, UUU & gdbserver
  5. GL-E04Linux 6.12 Character Drivers, Device Tree, gpiod, Concurrency & IRQ/Wait I/O — Loadable modules, cdev/udev, Flattened Device Tree, pinctrl/gpiod, atomic/spinlock/mutex/cleanup.h, timers, IRQs, wait queues & poll
  6. GL-E05Linux 6.12 Driver Model, Input, DRM/Framebuffer, Touch, PWM & ALSA SoC — platform/misc/sysfs driver model, input_dev, DRM/KMS & fbdev display, SiI9022A HDMI, MT Type-B touch, pwm-backlight & WM8960 ASoC
  7. GL-E06Linux 6.12 Bus, Sensor (regmap/IIO), Serial/CAN/USB, blk-mq & Network Drivers — RTC/I2C/SPI client drivers, regmap, IIO & SAR ADC, UART/RS-485/GPS, FlexCAN SocketCAN, USB Host/OTG/Gadget, blk-mq & FEC NAPI/Wi-Fi/4G
  8. GL-E07Linux 6.12 ASoC Audio Drivers, Early Boot Splash, Debian Rootfs & Systemd Daemons — SAI2/WM8960 ASoC & DAPM, U-Boot/CLUT224/psplash boot graphics, debootstrap Debian armhf, systemd watchdogs, SysV/POSIX IPC & vsftpd/sftp

Related live cohorts: EMB-201 · ARM Board Bring-Up: TF-A, U-Boot & Kernel (live cohort) DRV-120 · Linux Device Drivers (live cohort)

Companion formats

Slide deck

16:9 review slides with terminal listings, diagrams, and speaker notes.

Reference handbook

Printable HTML and PDF engineering reference covering every module and UAPI.

Flashcards

Leitner spaced-repetition terminal cards and TSV deck for syscalls, flags, and pitfalls.

Kernel Systems Academy engineering studio

Every Kernel Systems Academy course follows our 35% principles / 20% guided investigation / 45% engineering studio pedagogy. Listings are compiled against Linux 6.12 · C11 · U-Boot 2025.01 under strict compiler flags (-Wall -Wextra -Werror), and each module culminates in an evidence-checked lab graded locally by ./check.sh.

Frequently asked questions

Can I study this course offline from disk?

Yes. All fonts, stylesheets, diagrams, search indexes, and progress trackers use relative paths and local browser storage, so the bundle works identically over HTTP and file://.

How are the hands-on labs graded?

Each lab directory includes starter source files and an executable ./check.sh runner emitting TAP version 13 diagnostics (ok / not ok) and exiting 0 when every check passes.

What is included in the free preview?

Preview lessons and the opening module lab are unlocked in full so you can inspect our C11 listings, strace transcripts, and ./check.sh workflow before subscribing.

search — fzf

0/0 ───────────────────────────────────────────

keyboard shortcuts — less

/
search
f
focus mode
[
previous
]
next
?
help
Esc
close

figure