Init
This commit is contained in:
3
aux/bochs_amd64.sh
Executable file
3
aux/bochs_amd64.sh
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
bochs -f aux/bochsrc.txt -q
|
||||
21
aux/bochsrc.txt
Normal file
21
aux/bochsrc.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
cpu: model=p4_prescott_celeron_336
|
||||
|
||||
memory: guest=4096 host=2048
|
||||
|
||||
romimage: file=/usr/share/bochs/BIOS-bochs-latest, options=fastboot
|
||||
vgaromimage: file=/usr/share/bochs/VGABIOS-lgpl-latest.bin
|
||||
|
||||
ata0: enabled=1
|
||||
ata0-master: type=cdrom, path=mop3.iso, status=inserted
|
||||
com1: enabled=1, mode=file, dev=bochs-com1.txt
|
||||
|
||||
boot: cdrom
|
||||
|
||||
error: action=report
|
||||
panic: action=report
|
||||
info: action=report
|
||||
debug: action=ignore
|
||||
|
||||
log: bochs-log.txt
|
||||
|
||||
display_library: x
|
||||
19
aux/limine_iso_amd64.sh
Executable file
19
aux/limine_iso_amd64.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
make -C boot/limine
|
||||
mkdir -p iso_root/boot/limine
|
||||
mkdir -p iso_root/EFI/BOOT
|
||||
|
||||
cp -v kernel/build/kernel.elf iso_root/boot
|
||||
cp -v boot/limine/limine-bios.sys boot/limine/limine-bios-cd.bin \
|
||||
boot/limine/limine-uefi-cd.bin boot/limine.conf iso_root/boot/limine
|
||||
|
||||
cp -v boot/limine/BOOTX64.EFI boot/limine/BOOTIA32.EFI iso_root/EFI/BOOT
|
||||
|
||||
xorriso -as mkisofs -R -r -J -b boot/limine/limine-bios-cd.bin \
|
||||
-no-emul-boot -boot-load-size 4 -boot-info-table -hfsplus \
|
||||
-apm-block-size 2048 --efi-boot boot/limine/limine-uefi-cd.bin \
|
||||
-efi-boot-part --efi-boot-image --protective-msdos-label \
|
||||
iso_root -o mop3.iso
|
||||
|
||||
boot/limine/limine bios-install mop3.iso
|
||||
Reference in New Issue
Block a user