Structured notes and case studies for Embedded Linux, Android BSP, and kernel subsystems.
This repository contains:
- Structured notes for Linux kernel and subsystems
- BSP bring-up related knowledge
- Android system notes
- Driver examples with trace notes
- Real-world debugging case studies
notes/ is organized by topic:
linux/– Linux subsystem overviews (memory, scheduler, networking, VFS, DRM/KMS, tracing, etc.)kernel/– Kernel concepts (interrupts, synchronization, memory, power management)bsp/– BSP topics (boot flow, device tree, interfaces, U-Boot, Yocto, debug tools)android/– Android system components (binder, services, boot flow, graphics, media)firmware/– Firmware notes (TF-A boot flow and runtime)subsystems/– Subsystem deep dives:alsa/– ALSA / ASoC, DAPM, machine drivergpio/– gpiolib, device tree binding, libgpiodinterrupt/– GIC, irq_domain, GPIO interruptsmultimedia/– GStreamer, V4L2, zero-copy dma-bufnetworking/– Ethernet and switch / DSAsecurity/– TrustZone, OP-TEE, secure boot, TPM
cases-study/ contains debugging and analysis records, including:
- Boot and flashing issues
- Peripheral bring-up problems
- Kernel / driver debugging
- System configuration issues
Platforms include:
code/examples/ contains small kernel and userspace examples:
kernel/– module basics, character device, miscdevicememory/– mmap, DMA allocation, kmalloc vs vmalloc, page faultsynchronization/– spinlock, mutex, completion, waitqueueuserspace/– ioctlbus/– platform busdrm/– DRM/KMS flows (dumb buffer, plane/CRTC, atomic commit, vblank/page flip, dma-buf PRIME, fences, GEM shmem, MIPI-DSI panel)security/– minimal hash chain
Each example includes:
- source code
- Makefile (in the example directory, or in its
kernel//userspace/subdirectory) - trace notes
drm_fence_sync_flow is notes only (no source code).
bcmdhd/– Broadcom WiFi driver notesbluetooth/– Bluetooth stack and transport notesmt76/– MT76 driver analysis
tools/generate_index.js– generatesassets/notes_index.json(run by CI on push)
This repository is used to:
- Organize subsystem knowledge
- Record debugging experience
- Keep trace notes for kernel and drivers
Formatting rules for all documents are in CONTRIBUTING.md.
LC Wang