From 6866877f03aa4bf9c2eefb8d36fb05f964a504ad Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Mon, 18 Nov 2019 23:28:44 +0100 Subject: [PATCH] Major correction of the disk image conception --- Makefile | 5 ++++ build/create_disk.sh | 53 +++++++++++++++++++++++++++++++++++-------- build/install-os-k.sh | 2 +- 3 files changed, 49 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 8f90f15..c090450 100644 --- a/Makefile +++ b/Makefile @@ -276,6 +276,11 @@ test: all install -rtc base=localtime -m $(ram) -hda $(installdisk) \ -d cpu_reset,guest_errors,pcall,int 2> $(BUILDDIR)/qemu.log & + @qemu-system-x86_64 -vga std -soundhw pcspk -s \ + -rtc base=localtime -m 8192 -hda /dev/sdc \ + -d cpu_reset,guest_errors,pcall,int & + + test32: all install @qemu-system-i386 -m $(ram) -hda $(installdisk) -d \ cpu_reset,guest_errors,pcall,int 2> $(BUILDDIR)/qemu.log & diff --git a/build/create_disk.sh b/build/create_disk.sh index 3b555e5..081d773 100755 --- a/build/create_disk.sh +++ b/build/create_disk.sh @@ -36,19 +36,47 @@ dd if=/dev/zero of=$1 bs=512 count=131072 status=progress ## Partition the image echo ${CL2}[create_disk.sh]${NC} Partitionning image... \(parted\)${CL3} -/sbin/parted --script $1 mktable msdos mkpart primary 2048s 100% set 1 boot on +#/sbin/parted --script $1 mktable msdos mkpart primary 2048s 100% set 1 boot on +/sbin/fdisk $1 > /dev/null <