OSDev.org
https://forum.osdev.org/

How to generate GRUB 2 iso under Windows
https://forum.osdev.org/viewtopic.php?f=1&t=32942
Page 1 of 1

Author:  AwfulMint [ Tue May 15, 2018 3:44 pm ]
Post subject:  How to generate GRUB 2 iso under Windows

I'm following the tutorials in Windows 10 64-bits. I'm stuck in the part of generating an iso, how I supposed to do this in Windows? '-'

Sorry for the bad english in advance ;-;

Author:  AJ [ Tue May 15, 2018 5:33 pm ]
Post subject:  Re: How to generate GRUB 2 iso under Windows

Hi,

I've found that by far the easiest way to follow all the tutorials in Windows is to install Windows Subsystem for Linux (and use the Ubuntu shell). Every tutorial I've tested so far from the wiki has worked very well.

Cheers,
Adam

Author:  AwfulMint [ Wed May 16, 2018 9:43 pm ]
Post subject:  Re: How to generate GRUB 2 iso under Windows

AJ wrote:
Hi,

I've found that by far the easiest way to follow all the tutorials in Windows is to install Windows Subsystem for Linux (and use the Ubuntu shell). Every tutorial I've tested so far from the wiki has worked very well.

Cheers,
Adam


I just installed Ubuntu 18.04 now lol :D Now everything ir running fine (less GCC who don't want to compile ;-;)

Author:  max [ Thu May 17, 2018 1:54 am ]
Post subject:  Re: How to generate GRUB 2 iso under Windows

Hey,

I'm using grub-mkrescue too, and GRUB2 was actually running well in older versions of Cygwin but for some reason they seem to have removed it from the repositories. I've built it in Cygwin by hand previously, but for some reason it didn't build all the tools, I guess there are still some issues.

The WSL approach sounds quite good, did any of you also get a cross toolchain build under it?

Greets

Author:  AJ [ Thu May 17, 2018 3:13 am ]
Post subject:  Re: How to generate GRUB 2 iso under Windows

Hi,

max wrote:
...for some reason they seem to have removed it from the repositories. I've built it in Cygwin by hand previously, but for some reason it didn't build all the tools


GRUB failing to build is what pushed me in to WSL too and I've never looked back. IIRC, it was first Cygwin 64 that failed for me and then GRUB started not to build in the 32 bit version too(?). I've tested several "latest release" GCC and binutils builds and they all work as per the wiki (follow instructions for apt-based systems).

In fact, I've previously mentioned on the forums that I think WSL should become our default recommendation for Windows users as it is now out of beta and a mainline Windows feature.

There is one "catch". If you want to edit your files in a Windows-based IDE, you need to store your files in your normal Windows filesystem and then symlink in WSL. This is the only way to ensure that both systems see the same file version. It's very easy - a simple "ln -s /mnt/c/Users/n/Documents/myproject" is all that is needed. I run GCC and my build process from WSL and use the Eclipse IDE.

Cheers,
Adam

Author:  AwfulMint [ Sat May 19, 2018 3:23 am ]
Post subject:  Re: How to generate GRUB 2 iso under Windows

So, yesterday I discovered something, Ubuntu 18.04 is a crazy ****. Broken packages and things like this, so I'm migrating to Fedora 28 and succefully built a Cross compiler by hand using: GCC 7.3.0, Binutils 2.30 and GDB 8.1. Idk how to use GDB but debug is very important so I added it to mah toolchain :D

I'm lucky bcs I learn fast, so I'm really loving Linux (Fedora 28 with KDE Plasma at least) :) Thank you guys for posting your ideas and tips. Good coding and stay cheeki breeki :3

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/