OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 1:47 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Help,Setting up environment to compile VC kernel in windows
PostPosted: Sun Sep 09, 2018 2:18 am 
Offline

Joined: Sun Sep 09, 2018 2:07 am
Posts: 15
Hello
most of the tutorials in this forums or google either use linux tools to compile like gcc and grub-rescue to generate the iso or they are using Visual C in windows and pass it to grub-rescue too.
that process is a little exhausting with a lot of debugging, So i need a way to use compile a kernel using Visual Studio (VC) and create and iso with a boot loader (like grub) in windows.
thank you.


Top
 Profile  
 
 Post subject: Re: Help,Setting up environment to compile VC kernel in wind
PostPosted: Sun Sep 09, 2018 8:11 am 
Offline
User avatar

Joined: Fri Oct 14, 2016 7:37 pm
Posts: 24
Location: Canada
You can usee grub-mkrescue under the Windows Subsystem for Linux environment, and you can invoke it from the normal windows command line by:
Code:
ubuntu -c "grub-mkrescue /mnt/c/..."

This, of course, assumes you've set up WSL correctly, and that you've installed Ubuntu for WSL from the Windows Store.

This beauty of this is that you can now pass the command to Visual Studio to execute after build, allowing for seamless integration. You can also now execute arbitrary Linux commands from the Windows command prompt, again, streamlining workflow.

So, to use Grub with the Visual Studio Build System, just add a Post Build event to execute the grub-mkrescue.

However, on the off chance you decide that this is too complicated, well you can use the syslinux bootloader instead, however, this is highly discouraged.

I would personally recommend you use Visual Studio Code instead.

~ Kevin

_________________
LiquiDOS, my weird hobbyist OS.
"Strive for progress, not perfection" - Anonymous


Top
 Profile  
 
 Post subject: Re: Help,Setting up environment to compile VC kernel in wind
PostPosted: Sun Sep 09, 2018 4:54 pm 
Offline

Joined: Sun Sep 09, 2018 2:07 am
Posts: 15
TheCool1Kevin wrote:
..

Thank you. This is the best solution so far but i read that WSL is available in win10 only ,i'm using win8.1 :/
you talked about "syslinux bootloader " is possible to create iso with kernel in windows with that ?


Top
 Profile  
 
 Post subject: Re: Help,Setting up environment to compile VC kernel in wind
PostPosted: Sat Sep 15, 2018 12:54 am 
Offline

Joined: Sun Sep 09, 2018 2:07 am
Posts: 15
still looking for an answer.
is there any other way without linux ? (does not have to be grub)


Top
 Profile  
 
 Post subject: Re: Help,Setting up environment to compile VC kernel in wind
PostPosted: Mon Sep 17, 2018 2:17 pm 
Offline
User avatar

Joined: Fri Oct 14, 2016 7:37 pm
Posts: 24
Location: Canada
0xCC wrote:
still looking for an answer.
is there any other way without linux ? (does not have to be grub)


Yes, syslinux is possible. The COSMOS project uses that to compile their ISO images.
I highly suggest you find an alternative. You may want to look into Vagrant for near seamless integration. I used to use Vagrant for many of my projects until I upgraded (for free) to Windows 10. Furthermore, what's so bad about a free Windows 10 upgrade?

Best regards, Kevin

_________________
LiquiDOS, my weird hobbyist OS.
"Strive for progress, not perfection" - Anonymous


Top
 Profile  
 
 Post subject: Re: Help,Setting up environment to compile VC kernel in wind
PostPosted: Fri Oct 12, 2018 3:30 pm 
Offline

Joined: Wed Oct 10, 2018 12:08 pm
Posts: 10
Just to be clear by your original post on this thread, you are wanting a way to create an ISO file under the Windows Host. And then you want to make it bootable ?
Hopefully I have that right, if not, then please disregard my reply.

If true, then here is a program I use on my windows host to create ISO files. You can even attach a bootable BIN / IMG file to it and it will boot up. Tested this many times and it works on legacy hardware and even in virtualbox. This will not boot up on modern computers that have UEFI Class 3 Firmware. This only works with Legacy ( CSM ) mode hardware and older. So if you can't get it to boot on your physical computer, double check your BIOS.

IMGBURN
http://www.imgburn.com/

That latest update is June 2013. But still usable to this day.

Here is a youtube tutorial on how to use it and make it bootable.

https://www.youtube.com/watch?v=lizhzDX7-AI


Hope this helps.

digg

_________________
TUTORIAL - Boot USB Drive using 64-Bit UEFI CLASS 3 - x86_64


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 78 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group