学习[30天自制操作系统]]
@[遇到的问题|场景还原|尝试过的解决办法|]
问题描述
光盘代码day_02 helloos_4 helloos_5
在使用makefile 运行qemu 模拟器过程出错
http://img.blog.csdn.net/20160112100207867
###场景还原
makefile
``` Makefile
ipl.bin : ipl.nas Makefile
../z_tools/nask.exe ipl.nas ipl.bin ipl.lst
helloos.img : ipl.bin Makefile
../z_tools/edimg.exe imgin:../z_tools/fdimg0at.tek \
wbinimg src:ipl.bin len:512 from:0 to:0 imgout:helloos.img
asm :
../z_tools/make.exe -r ipl.bin
img :
../z_tools/make.exe -r helloos.img
run :
../z_tools/make.exe img
copy helloos.img ..\z_tools\qemu\fdimage0.bin
../z_tools/make.exe -C ..\z_tools\qemu
clean :
-del ipl.bin
-del ipl.lst
src_only :
../z_tools/make.exe clean
-del helloos.img
路径无任何问题
尝试作者给出的代码也出现同样问题
起初以为是 windows 路劲/ 和\ 的区别导致的,最后尝试了所有可能性也徒劳无功
以下是出错信息
>C:\Users\Dejavu\Desktop\tolset\helloos5>make run
>C:\Users\Dejavu\Desktop\tolset\helloos5>..\z_tools\make.exe run
>../z_tools/make.exe img
>make.exe[1]: Entering directory \`C:/Users/Dejavu/Desktop/tolset/helloos5'
>../z_tools/make.exe -r helloos.img
>make.exe[2]: Entering directory \`C:/Users/Dejavu/Desktop/tolset/helloos5'
>../z_tools/nask.exe ipl.nas ipl.bin ipl.lst
>../z_tools/edimg.exe imgin:../z_tools/fdimg0at.tek
> wbinimg src:ipl.bin len:512 from:0 to:0 >imgout:helloos.img
>make.exe[2]: Leaving directory \`C:/Users/Dejavu/Desktop/tolset/helloos5'
>make.exe[1]: Leaving directory `C:/Users/Dejavu/Desktop/tolset/helloos5'
>copy helloos.img ..\z_tools\qemu\fdimage0.bin
>process_begin: CreateProcess((null), copy helloos.img ..\z_tools\qemu\fdimage0.bin, ...) failed.
>make (e=2): 系统找不到指定的文件。
>..\z_tools\make.exe: *** [run] Error 2
在此记过,待后解决