Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 896 Bytes

File metadata and controls

53 lines (36 loc) · 896 Bytes

BootSpkr

A Linux kernel module that plays a melody through the PC speaker during boot.

Uses the legacy x86 PIT (8253/8254) and PC speaker interface to generate tones directly from kernel space.

This project exists mostly for fun and as a learning exercise covering:

  • Kernel Workqueues
  • Hardware I/O ports
  • PIT programming
  • PC speaker control

Features

  • Plays a hardcoded melody on module load
  • Asynchronous playback
  • Uses the classic PC speaker interface
  • No userspace daemon required

Building

make

Installation

sudo make install

The install target:

  • Installs the module
  • Updates module dependencies
  • Configures automatic loading at boot

Usage

Load immediately:

sudo modprobe bootspkr

Unload:

sudo rmmod bootspkr