But I managed to build it, but not on my laptop, on my desktop that doesn't have all my laptops problems....
Well anyway here's my problem, I managed to build the cross compiler, but now I want to use it (surprisingly ).
So I use this as a batch file to assemble my bootloader, the ASM part of my kernel, call cygwin and pass it my script then make the floppy image... and finally start bochs to show me the results....
Here it is:
Code: Select all
"C:\cygwin\MyOS\nasm-0.98.35-win32\nasm.exe" -o bootloader.bin bootloader.asm -f bin
"C:\cygwin\MyOS\nasm-0.98.35-win32\nasm.exe" -o kernel_start.elf kernel_start.asm -f elf -w+gnu-elf-extensions
C:\cygwin\bin\bash.exe --login -i "C:\cygwin\MyOS\virginix\build.bashrc"
copy /b "bootloader.bin"+"a.out" "SOS v0.0.1.img"
"C:\Program Files\Bochs-2.3.6\bochs.exe" -q -f "C:\Program Files\Bochs-2.3.6\bochsrc.txt"
PAUSE
Code: Select all
#!/bin/bash
i586-elf-gcc --Wall -O -fstrength-reduce -fomit-frame-pointer -fno-builtin -c -o /MyOS/virginix/kernel.o /MyOS/virginix/kernel.c
i586-elf-ld -Map /MyOS/virginix/kernel.map.txt -T /MyOS/virginix/link.ld -O /MyOS/virginix/kernel.bin /MyOS/virginix/kernel_start.elf /MyOS/virginix/kernel.o
exit 0
Code: Select all
: No such file or directoryx/kernel.c
i586-elf-gcc: no input files
: No such file: No such file or directory
I checked all the files referred to in the script and their all right....
Can't figure this out...
Thanks in advance,
Jules