I am a begginer in os dev and also in msvc++ the problem is that i don't know that how to build the demo 5 or any kernel in msvc++ please explain the build setting and also that in demo5 you also give stage 2 and stage 1 stage 1 is a bootloader but what is the stage 2 the KRNLDR.SYS how i can use it with the msvc++ and also what type of format i use to build it
.exe, .dll or .sys and i am using microsoft visual c++ 2010 express edition help please this is a big problem for me????????????????????
Demo5 build problem msvc++ help please?????
Moderator:Moderators
-
- Posts:5
- Joined:Wed May 19, 2010 3:06 pm
Re: Demo5 build problem msvc++ help please?????
Hello,
"Stage 1" (The bootstrap code) is part of the bootloader, not the entire bootloader. "Stage2" (Krnldr.sys) is the core part of the bootloader and is responsible for loading the operating system kernel in the series.
The series kernel is built as a PE-executable (EXE or DLL file output from MSVC, both will work as they are both the same format.)
Please see the Stage 2 chapters, Chapters 7-11, for detailed information on what Krnldr.sys does. Also, please see this chapter for detail information on how Stage2 loads and executes your MSVC kernel, and how to properly set up MSVC.
"Stage 1" (The bootstrap code) is part of the bootloader, not the entire bootloader. "Stage2" (Krnldr.sys) is the core part of the bootloader and is responsible for loading the operating system kernel in the series.
The series kernel is built as a PE-executable (EXE or DLL file output from MSVC, both will work as they are both the same format.)
Please see the Stage 2 chapters, Chapters 7-11, for detailed information on what Krnldr.sys does. Also, please see this chapter for detail information on how Stage2 loads and executes your MSVC kernel, and how to properly set up MSVC.
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
-
- Posts:5
- Joined:Wed May 19, 2010 3:06 pm
Re: Demo5 build problem msvc++ help please?????
i see this page already but when i try to boot it it on virtual box or virtual machine it says that kernel is missing or corrupted and also in demo 5 or 6 it is important that in build setting in linker system driver is has to be enable or we can disable it when i debug it it gives error that A:\KRNL32.EXE : fatal error LNK1295: '/DYNAMICBASE' not compatible with '/DRIVER' specification; link without '/DYNAMICBASE' and if i disable it hen it works right but it not work in emulator it says kernel is missing or corrupted help please and thanks for information about stage 2
-
- Posts:5
- Joined:Wed May 19, 2010 3:06 pm
Re: Demo5 build problem msvc++ help please?????
these are the screenshots
- Attachments
-
- screenshot3.JPG (123.26KiB)Viewed 46442 times
-
- screenshot2.JPG (107.54KiB)Viewed 46425 times
-
- screenshot1.JPG (120.93KiB)Viewed 46514 times
-
- Posts:5
- Joined:Wed May 19, 2010 3:06 pm
Re: Demo5 build problem msvc++ help please?????
and these
- Attachments
-
- screenshot6.JPG (102.72KiB)Viewed 46428 times
-
- screenshot5.JPG (129.79KiB)Viewed 46422 times
-
- screenshot4.JPG (108.39KiB)Viewed 46403 times
-
- Posts:92
- Joined:Thu May 27, 2010 8:54 pm
- Location:Netherlands
Re: Demo5 build problem msvc++ help please?????
Hi,
From what I can see in your screen shots, and based on my own settings in VS2005 Pro,
you should disable the Randomized Base Address option under the Advanced Linker Options, as the bootloader requires a fixed base address.
And you should disable the Driver setting under the System Linker Options, since the kernel is NOT a windows system driver.
From what I can see in your screen shots, and based on my own settings in VS2005 Pro,
you should disable the Randomized Base Address option under the Advanced Linker Options, as the bootloader requires a fixed base address.
And you should disable the Driver setting under the System Linker Options, since the kernel is NOT a windows system driver.