Bu proje AGPLv3-or-later lisansı altında yayımlanan, x86 BIOS üzerinde çalışan çok basit bir örnektir:
bootloader.S: GAS (GNU assembler) + Intel syntax ile 512-byte boot sectorkernel_entry.S: 32-bit giriş noktasıkernel.c: VGA Mode 13h (0xA0000, 320x200x256) ile piksel tabanlı renkli çizim yapar
Ekranın en üstünde bir çember, altında PSD X, onun altında da PSD Authors ve AGPLv3-or-later yazılarını gösterir.
- GNU assembler (
as, binutils) gcc(32-bit derleme desteği)ld,objcopy(binutils)qemu-system-i386(çalıştırmak için)
makeBu komut os-image.bin üretir.
make runDoğrudan QEMU komutu:
qemu-system-i386 -drive format=raw,file=os-image.binHeadless doğrulama (terminalde çıktı görmek için):
make run-headlessUbuntu/Debian üzerinde QEMU'yu yüklemek:
sudo apt-get update
sudo apt-get install qemu-system-i386 qemu-utilsFedora/RHEL üzerinde:
sudo dnf install qemu-system-i386macOS üzerinde (Homebrew kullanarak):
brew install qemuDerledikten sonra make run komutu QEMU ile önyükleme görüntüsünü otomatik olarak başlatır:
make runAlternatif olarak doğrudan:
qemu-system-i386 -drive format=raw,file=os-image.binBu komut GUI penceresiyle QEMU sanal makinesini açar.
Terminalde çalıştırmak (GUI olmadan):
qemu-system-i386 -drive format=raw,file=os-image.bin -cursesBellek ve CPU ayarlamak:
qemu-system-i386 -drive format=raw,file=os-image.bin -m 256 -smp 2GDB debugger ile bağlanmak:
qemu-system-i386 -drive format=raw,file=os-image.bin -s -S(Başka bir terminalden: gdb, sonra target remote localhost:1234)
QEMU bulunamıyor:
which qemu-system-i38632-bit desteği yok:
Sistem 32-bit desteği olmadan geliyorsa, -cpu Nehalem veya benzer seçenekler ekleyebilirsiniz.
Görüntü açılmıyor:
-display gtk veya -display sdl seçenekleri ile farklı görüntü backendleri deneyin.
PSD GNU/Linux
Copyright (C) 2026 Mass Collaboration Labs
Copyright (C) 2026 PSD Authors
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along with this program. If not, see https://www.gnu.org/licenses/.