How building and run
ShadowASO opened this issue · comments
I'm trying compiler and exec this OS without sucess. I can compiler but not run. This is my script.
#!/bin/bash
RAMSZ=$1
RAM=" -m $RAMSZ"
QEMU="qemu-system-x86_64 "
BOOT_BIN="kern/image"
RAMDISK_BIN="build/ramdisk"
FINAL_HD_IMAGE="build/hd-image"
if [[ $RAMSZ == "" ]]; then
RAM=" -m 128"
fi
echo "qemu: ram = $RAM"
Software emulation
qemu-system-x86_64 \
AMD-V or Intel VT
Use QEMUs multiboot capabilities to boot the kernel directly,
attach a PATA drive and simulate 8 CPUs
Required images: kernel, hdimage
HD=""
KERNEL=""
SMP=" "
APPEND="-monitor stdio -no-reboot "
HD="-drive format=raw,file=build/hd-image,media=disk"
#HD="-drive format=raw,file=build/hd-image,if=ide,media=disk"
KERNEL="-kernel build/hd-image"
SMP="-smp 2"
#APPEND="-append "use_debug_port=1 root=769 loglevel=0 vga=1 use_acpi=1""
#APPEND=" -monitor stdio"
QEMUFLAGS=" -no-reboot"
QEMUFLAGS+=" -boot d "
QEMUFLAGS+=" -net none"
QEMUFLAGS+=" $RAM "
QEMUFLAGS+=" -smp sockets=1,cores=4,threads=1 "
QEMUFLAGS+=" -serial stdio "
QEMUFLAGS+=" -drive format=raw,file=build/hd-image,media=disk"
#QEMUFLAGS+=" -drive format=raw,file=boot/bootsect.bin,media=disk"
#QEMUFLAGS+=" -hda kern/image"
#QEMUFLAGS+=" -cdrom $(iso)"
#QEMUFLAGS+=" -hda HDOS-Lab.img"
#"CMD="$QEMU $RAM $SMP $HD $KERNEL $APPEND"
CMD="$QEMU $QEMUFLAGS"
echo "Running " $CMD
#echo $QEMUFLAGS
eval $CMD
How run it?