make makefile use mkfs.vfat and fix bochsrc

This commit is contained in:
2025-03-25 23:48:12 +03:00
parent 6e340a6e4f
commit 4513325cfa
2 changed files with 6 additions and 5 deletions
+2 -1
View File
@@ -25,7 +25,8 @@ create-image:
parted boot.iso --script mkpart primary fat32 1MiB 100%
sudo losetup /dev/loop0 boot.iso
sudo losetup /dev/loop1 boot.iso -o 1048576
sudo mkdosfs -F32 -f 2 /dev/loop1
#sudo mkdosfs -F32 -f 2 /dev/loop1
sudo mkfs.vfat -F32 -f 2 /dev/loop1
sudo mount /dev/loop1 /mnt
sudo grub-install --root-directory=/mnt --no-floppy --modules="normal part_msdos ext2 multiboot biosdisk" /dev/loop0 #there was biosdev also
sudo cp -r grubshit/* /mnt/
+4 -4
View File
@@ -1,6 +1,6 @@
romimage: file=$BXSHARE/BIOS-bochs-latest
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
boot: cdrom
ata0-master: type=cdrom, path="boot.iso", status=inserted
#boot:disk
#ata0-master: type=disk, path="boot.iso", cylinders=615, heads=6, spt=17
#boot: cdrom
#ata0-master: type=cdrom, path="boot.iso", status=inserted
boot:disk
ata0-master: type=disk, path="boot.iso", cylinders=306, heads=16, spt=17