🆕 运行文件系统中的二进制程序

This commit is contained in:
fslongjin
2022-05-06 00:25:32 +08:00
parent 099b24539a
commit 0aec6827ee
24 changed files with 673 additions and 68 deletions

10
run.sh
View File

@ -22,7 +22,7 @@ iso_boot_grub='./iso/boot/grub'
iso_boot='./iso/boot/'
iso='./DragonOS.iso'
iso_folder='./iso/'
root_folder="$(pwd)"
# toolchain
OS=`uname -s`
@ -88,6 +88,14 @@ else
flag_can_run=1
fi
# 拷贝init文件到硬盘
cd tools
bash m*
sudo cp ${root_folder}/bin/user/init.bin ${root_folder}/bin/disk_mount
sync
bash u*
cd ..
if [ $flag_can_run -eq 1 ]; then
if [ ${IA32_USE_QEMU} == 0 ]; then
bochs -q -f ${bochsrc} -rc ./tools/bochsinit