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
- Plays a hardcoded melody on module load
- Asynchronous playback
- Uses the classic PC speaker interface
- No userspace daemon required
makesudo make installThe install target:
- Installs the module
- Updates module dependencies
- Configures automatic loading at boot
Load immediately:
sudo modprobe bootspkrUnload:
sudo rmmod bootspkr