mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-19 00:46:31 +00:00
🆕 运行文件系统中的二进制程序
This commit is contained in:
10
run.sh
10
run.sh
@ -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
|
||||
|
Reference in New Issue
Block a user