Demo5 build problem msvc++ help please?????

If you are new to development, plan on spending some time here before visiting the other forums.

Moderator: Moderators

Demo5 build problem msvc++ help please?????

Postby usman_the_great » Wed May 19, 2010 3:17 pm

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???????????????????? :cry:
usman_the_great
 
Posts: 5
Joined: Wed May 19, 2010 3:06 pm

Re: Demo5 build problem msvc++ help please?????

Postby Mike » Wed May 19, 2010 9:16 pm

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.
Lead Programmer for BrokenThorn Entertainment, Co.
Website: http://www.brokenthorn.com
Email: webmaster@brokenthorn.com
User avatar
Mike
Site Admin
 
Posts: 463
Joined: Sat Oct 20, 2007 7:58 pm

Re: Demo5 build problem msvc++ help please?????

Postby usman_the_great » Wed May 19, 2010 9:30 pm

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
usman_the_great
 
Posts: 5
Joined: Wed May 19, 2010 3:06 pm

Re: Demo5 build problem msvc++ help please?????

Postby usman_the_great » Wed May 19, 2010 10:22 pm

these are the screenshots
Attachments
screenshot3.JPG
screenshot3.JPG (123.26 KiB) Viewed 13380 times
screenshot2.JPG
screenshot2.JPG (107.54 KiB) Viewed 13363 times
screenshot1.JPG
screenshot1.JPG (120.93 KiB) Viewed 13452 times
usman_the_great
 
Posts: 5
Joined: Wed May 19, 2010 3:06 pm

Re: Demo5 build problem msvc++ help please?????

Postby usman_the_great » Wed May 19, 2010 10:23 pm

and these
Attachments
screenshot6.JPG
screenshot6.JPG (102.72 KiB) Viewed 13366 times
screenshot5.JPG
screenshot5.JPG (129.79 KiB) Viewed 13360 times
screenshot4.JPG
screenshot4.JPG (108.39 KiB) Viewed 13341 times
usman_the_great
 
Posts: 5
Joined: Wed May 19, 2010 3:06 pm

Re: Demo5 build problem msvc++ help please?????

Postby halofreak1990 » Thu May 27, 2010 11:23 pm

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.
halofreak1990
 
Posts: 92
Joined: Thu May 27, 2010 8:54 pm
Location: Netherlands


Return to Beginners

Who is online

Users browsing this forum: No registered users and 2 guests

cron