Re: configure fail for grub
- Original Message > From: Pavel Roskin <[EMAIL PROTECTED]> > To: The development of GRUB 2 > Sent: Tuesday, 9 December, 2008 6:22:36 AM > Subject: RE: configure fail for grub > > On Mon, 2008-12-08 at 07:39 -0500, James Shewey wrote: > > > When I configure grub-1.96, I got following error message: > > > > configure: error: neither start nor _start is defined > > > > Could anybody give me some ideas for it? > > This happens if tools for 32-bit compilation are not available. > Compiling on x86_64 defaults to 32-bit PC platform. It's possible to > compile for 64-bit EFI platform by specifying: > > ./configure --with-platform=efi > > -- > Regards, > Pavel Roskin > > Hi, As mentioned above, it is because of the 32 bit compilation tools not available.I have faced the same problem in which my compiler was gcc-4.2.1 and to compile this I installed gcc-3.4.3 and made the CC point to the proper compiler and it worked. Viswesh Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/ ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel
Re: device.map
- Original Message > From: Manoel Rebelo Abranches <[EMAIL PROTECTED]> > To: The development of GRUB 2 > Sent: Tuesday, 2 December, 2008 9:39:20 PM > Subject: device.map > > Can someone show me where grub2 uses device.map? I'm having a hard time > finding it in source. > > Thanks. > -- > Best Regards, > > Manoel Abranches > IBM Linux Technology Center Brazil > > > > ___ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel Please have a look at the grub-install script or grub-mkdevice map scripts present in /usr/local/sbin/grub- * . To get this you might have to do grub-install "boot disk" if ide drives , then boot disk = /dev/hda (or) hdb .based on which ide hard drive if sata drives use sda, sdb ...similarly Viswesh Did you know? You can CHAT without downloading messenger. Go to http://in.webmessenger.yahoo.com/ ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel
Re: I'm a newb, looking for guidance
Hi Jay, After make install , you may proceed with grub-install "boot disk" and then do update grub so as to update the files in /boot/grub in accordance with grub2. grub-install will change the /usr/local/bin/grub and other binaries to grub2. Regards, Viswesh From: Jay Sullivan <[EMAIL PROTECTED]> To: The development of GRUB 2 Sent: Tuesday, 2 December, 2008 8:49:45 PM Subject: Re: I'm a newb, looking for guidance Okay! I realized now that I would like to install the newest version of grub2 to a USB drive. Can anyone recommend to me the best way to do this? This seems like a good idea since if it fails to boot, I can easily fallback to my harddrive's bootloader. I'd like to point out that I'm currently having trouble getting started with grub2 development. The reason is that I currently have grub-legacy installed to my system, and I can't figure out how to get grub2 working properly and I have a feeling that they are conflicting. I have downloaded GRUB-1.96, and configured and successfully ran makefile, but if I run make-install will I overwrite grub-legacy? If not, how can I access the grub2 shell? I've attempted to install it but /usr/local/bin/grub still holds grub-legacy. Do I chainload core.img? Am I doing this whole thing wrong? Thanks and I'm sorry if I'm asking stupid questions =) On Mon, Dec 1, 2008 at 3:31 AM, Jay Sullivan <[EMAIL PROTECTED]> wrote: Thank you for responding in such detail, it helps a lot. Right now I'm not sure what I'm interested in -- I'm interested in everything. I'm going to try to install the current svn of grub2 to an test computer that I have, and see what works and what doesn't. On Sun, Nov 30, 2008 at 5:29 AM, Vesa Jääskeläinen <[EMAIL PROTECTED]> wrote: Hi Jay, Welcome on the board! Jay Sullivan wrote: > Hi, I'm very interested in helping out with the grub project, but I don't > know where to begin! I've been interested in the project for a long time, > but I try to respect people's time and I don't like to ask stupid questions > until I've searched hard for the answers by myself. I've tried very hard to > find good documentation for GRUB, but, erm..all of the decent tutorials > out there are incomplete at best, and many of them make too many assumptions > to be very helpful. I've read many tutorials but it seems like each one > conflicts with the others. I assume you are wanting to help with GRUB 2. Well we have wiki. http://grub.enbug.org/ http://grub.enbug.org/ContributingChangesToGrub This is supposed to be central point for developer oriented information. There are parts that are outdated. So if you see something weird or would like to know something better, please ask so we can improve the wiki. > First of all, I'm having trouble even understanding the grub architecture, > and most of that is because I am constantly seeing conflicting information > all over the internet due to the common fact that many people are ambiguous > with which branch of grub they are referring to. Also, there seems to be a > plague of broken and outdated links. For GRUB 2 there exists only one official development branch (there are others but basically we want to keep it as one branch). Idea for GRUB 2 is to promote other people to contribute patches to upstream. > In general, though, I've found that grub is extremely underdocumented; but > of the reading material which I have found to be at all helpful, there is a > MAJOR tendency to overcomplicate things. I have a background in C and x86 > assembly programming, and have had my fair share of device driving > programming. I enjoy helping others track down bugs in their code, and I > love writing idiot-proof tutorials (being the idiot that I am). > > I'm not afraid to sit down and read thousands of lines of code if that's > what it takes to be up to date with the project. I just want to make sure > I'm not headed in the wrong direction or anything. Ask what you want to know :) > I remember reading a LONG time ago that the ETA for GRUB-2.0 was "November > 2008," and so I expected to start seeing a lot more tutorials devoted to > helping people prepare for it, but this hasn't happened as quickly as I'd > hoped. So I figured I would try to delve into the project and see what's > REALLY going on. I would assume 2006 but hey :). So basically there are things to be done. There are different roles of developers. Some of them are developing specific features, and some of them are trying to catch up with features of GRUB legacy, and some just trying to follow the "roadmap" for GRUB 2. Which is kinda zapped at this time. Keypoint here is, what are your interests? What do you want to work on. Some pointers that we see missing: https://savannah.gnu.org/task/?group=grub http://grub.enbug.org/TodoList Oh.. before you start coding. Better start discussion on this list because there might be others working on the same thing, or there might be so
Re: Windows,grub and grub2
Hi, - Original Message > From: Viswesh S <[EMAIL PROTECTED]> > To: The development of GRUB 2 > Sent: Tuesday, 14 October, 2008 5:04:53 PM > Subject: Re: Windows,grub and grub2 > > Hi, > > > > - Original Message > > From: Bean > > To: The development of GRUB 2 > > Sent: Monday, 29 September, 2008 4:20:57 PM > > Subject: Re: Windows,grub and grub2 > > > > On Mon, Sep 29, 2008 at 1:18 PM, Viswesh S wrote: > > > Hi, > > > > > > > > > > > > - Original Message > > >> From: Bean > > >> To: The development of GRUB 2 > > >> Sent: Tuesday, 23 September, 2008 7:20:49 PM > > >> Subject: Re: Windows,grub and grub2 > > >> > > >> On Tue, Sep 23, 2008 at 4:23 PM, Viswesh S wrote: > > >> > > > >> > > > >> > > > >> > > > >> > - Original Message > > >> >> From: Bean > > >> >> To: The development of GRUB 2 > > >> >> Sent: Monday, 22 September, 2008 9:10:26 AM > > >> >> Subject: Re: Windows,grub and grub2 > > >> >> > > >> >> On Tue, Sep 9, 2008 at 2:00 PM, Viswesh S wrote: > > >> >> > Below is the dump of screen output while chainloading the ntfsnew > file. > > >> >> > *** > > >> >> > DI=CFF0 SI=07EE BP=1FF0 SP=1FE8 BX= DX= CX= AX= > > >> >> > CS= SS= DS= ES= FG=0246 IP=7C57 > > >> >> > > > >> >> > DI=7FF0 SI=07EE BP=1FF0 SP=7BF4 BX=55AA DX= CX= AX=0100 > CX=07C0 > > >> >> > DS=07C0 ES= FG=0007 IP=0082 > > >> >> > ** > > >> >> > Could you please let me know the way to disassemble the binary file > > without > > >> >> > any header.The way in which you decoded the boot record. > > >> >> > > > >> >> > Also one more thing to let you know is that, > > >> >> > > > >> >> > with the grub-1.96 ( without the chainloader patch of > disk->dev->read() > > ) , > > >> >> > with windows2003 in partition 1 and linux in partition 3, when we > > >> chainload, > > >> >> > if we look at the partition table passed to another bootloader ie > > location > > >> >> > 0x7be - we can see that it is junk, but the surprising point is > > >> >> > that, > in > > >> >> > this case as I have mentioned in my first mail, windows boots up > > >> >> > from > > >> >> > grub2.So it is that the partition table is not required for the > > chainloader > > >> >> > thing and just the boot record is sufficient > > >> >> > > >> >> Hi, > > >> >> > > >> >> Oh, sorry for another long delay. I disassemble the file with ida, > > >> >> which is an amazing tool. I don't know if there is open source > > >> >> alternative, please let me know if you find one. > > >> >> > > >> >> The output from ida is in masm format, I modify it a bit so that it > > >> >> can be compiled using nasm. Please note that nasm doesn't generate the > > >> >> same binary file as original one, but you can get an idea what it > > >> >> does. > > >> >> > > >> >> From the output, the program fails at the second int 13 call, int > > >> >> 13/ah = 48h. Although I notice that DL=0, which is not supposed to > > >> >> happen. Perhaps you can add a grub_printf in grub_chainloader_boot to > > >> >> show the value of boot drive: > > >> >> > > >> >> static grub_err_t > > >> >> grub_chainloader_boot (void) > > >> >> { > > >> >> grub_printf ("boot_drive=%d\n", boot_drive); > > >> >> grub_chainloader_real_boot (boot_drive, boot_part_addr); > > >> >> > > >> >> /* Never reach here. */ > > >> >> return GRUB_ERR_NONE; > > >> >> } > > >> >> > > >> >> -- > > >> >> Bean > > >> >> > > >> >> > > >>
USB support
Hi, Is the USB support for grub2 completed or still in progress ? Is it possible to know,if incomplete, till what level we have reached ? Thanks, Viswesh Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel
Re: Windows,grub and grub2
Hi, - Original Message > From: Bean <[EMAIL PROTECTED]> > To: The development of GRUB 2 > Sent: Monday, 29 September, 2008 4:20:57 PM > Subject: Re: Windows,grub and grub2 > > On Mon, Sep 29, 2008 at 1:18 PM, Viswesh S wrote: > > Hi, > > > > > > > > - Original Message > >> From: Bean > >> To: The development of GRUB 2 > >> Sent: Tuesday, 23 September, 2008 7:20:49 PM > >> Subject: Re: Windows,grub and grub2 > >> > >> On Tue, Sep 23, 2008 at 4:23 PM, Viswesh S wrote: > >> > > >> > > >> > > >> > > >> > - Original Message > >> >> From: Bean > >> >> To: The development of GRUB 2 > >> >> Sent: Monday, 22 September, 2008 9:10:26 AM > >> >> Subject: Re: Windows,grub and grub2 > >> >> > >> >> On Tue, Sep 9, 2008 at 2:00 PM, Viswesh S wrote: > >> >> > Below is the dump of screen output while chainloading the ntfsnew > >> >> > file. > >> >> > *** > >> >> > DI=CFF0 SI=07EE BP=1FF0 SP=1FE8 BX= DX= CX= AX= > >> >> > CS= SS= DS= ES= FG=0246 IP=7C57 > >> >> > > >> >> > DI=7FF0 SI=07EE BP=1FF0 SP=7BF4 BX=55AA DX= CX= AX=0100 > >> >> > CX=07C0 > >> >> > DS=07C0 ES= FG=0007 IP=0082 > >> >> > ** > >> >> > Could you please let me know the way to disassemble the binary file > without > >> >> > any header.The way in which you decoded the boot record. > >> >> > > >> >> > Also one more thing to let you know is that, > >> >> > > >> >> > with the grub-1.96 ( without the chainloader patch of > >> >> > disk->dev->read() > ) , > >> >> > with windows2003 in partition 1 and linux in partition 3, when we > >> chainload, > >> >> > if we look at the partition table passed to another bootloader ie > location > >> >> > 0x7be - we can see that it is junk, but the surprising point is that, > >> >> > in > >> >> > this case as I have mentioned in my first mail, windows boots up from > >> >> > grub2.So it is that the partition table is not required for the > chainloader > >> >> > thing and just the boot record is sufficient > >> >> > >> >> Hi, > >> >> > >> >> Oh, sorry for another long delay. I disassemble the file with ida, > >> >> which is an amazing tool. I don't know if there is open source > >> >> alternative, please let me know if you find one. > >> >> > >> >> The output from ida is in masm format, I modify it a bit so that it > >> >> can be compiled using nasm. Please note that nasm doesn't generate the > >> >> same binary file as original one, but you can get an idea what it > >> >> does. > >> >> > >> >> From the output, the program fails at the second int 13 call, int > >> >> 13/ah = 48h. Although I notice that DL=0, which is not supposed to > >> >> happen. Perhaps you can add a grub_printf in grub_chainloader_boot to > >> >> show the value of boot drive: > >> >> > >> >> static grub_err_t > >> >> grub_chainloader_boot (void) > >> >> { > >> >> grub_printf ("boot_drive=%d\n", boot_drive); > >> >> grub_chainloader_real_boot (boot_drive, boot_part_addr); > >> >> > >> >> /* Never reach here. */ > >> >> return GRUB_ERR_NONE; > >> >> } > >> >> > >> >> -- > >> >> Bean > >> >> > >> >> > >> > > >> > Hi, > >> > > >> > The value of boot drive is 0x80. > >> > > >> > This was the same value in disk->drive also. > >> > >> Hi, > >> > >> Interesting, perhaps %dx is changed somewhere. Please try the > >> following patch, it dumps the value of %dx just before jumping to the > >> boot sector. > >> > >> -- > >> Bean > > > > The patch works and now Windows is booting perfectly fine from Grub2. > > > > I will go through the
Re: Windows,grub and grub2
Hi, - Original Message > From: Bean <[EMAIL PROTECTED]> > To: The development of GRUB 2 > Sent: Tuesday, 23 September, 2008 7:20:49 PM > Subject: Re: Windows,grub and grub2 > > On Tue, Sep 23, 2008 at 4:23 PM, Viswesh S wrote: > > > > > > > > > > - Original Message > >> From: Bean > >> To: The development of GRUB 2 > >> Sent: Monday, 22 September, 2008 9:10:26 AM > >> Subject: Re: Windows,grub and grub2 > >> > >> On Tue, Sep 9, 2008 at 2:00 PM, Viswesh S wrote: > >> > Below is the dump of screen output while chainloading the ntfsnew file. > >> > *** > >> > DI=CFF0 SI=07EE BP=1FF0 SP=1FE8 BX= DX= CX= AX= > >> > CS= SS= DS= ES= FG=0246 IP=7C57 > >> > > >> > DI=7FF0 SI=07EE BP=1FF0 SP=7BF4 BX=55AA DX= CX= AX=0100 CX=07C0 > >> > DS=07C0 ES= FG=0007 IP=0082 > >> > ** > >> > Could you please let me know the way to disassemble the binary file > >> > without > >> > any header.The way in which you decoded the boot record. > >> > > >> > Also one more thing to let you know is that, > >> > > >> > with the grub-1.96 ( without the chainloader patch of disk->dev->read() > >> > ) , > >> > with windows2003 in partition 1 and linux in partition 3, when we > chainload, > >> > if we look at the partition table passed to another bootloader ie > >> > location > >> > 0x7be - we can see that it is junk, but the surprising point is that, in > >> > this case as I have mentioned in my first mail, windows boots up from > >> > grub2.So it is that the partition table is not required for the > >> > chainloader > >> > thing and just the boot record is sufficient > >> > >> Hi, > >> > >> Oh, sorry for another long delay. I disassemble the file with ida, > >> which is an amazing tool. I don't know if there is open source > >> alternative, please let me know if you find one. > >> > >> The output from ida is in masm format, I modify it a bit so that it > >> can be compiled using nasm. Please note that nasm doesn't generate the > >> same binary file as original one, but you can get an idea what it > >> does. > >> > >> From the output, the program fails at the second int 13 call, int > >> 13/ah = 48h. Although I notice that DL=0, which is not supposed to > >> happen. Perhaps you can add a grub_printf in grub_chainloader_boot to > >> show the value of boot drive: > >> > >> static grub_err_t > >> grub_chainloader_boot (void) > >> { > >> grub_printf ("boot_drive=%d\n", boot_drive); > >> grub_chainloader_real_boot (boot_drive, boot_part_addr); > >> > >> /* Never reach here. */ > >> return GRUB_ERR_NONE; > >> } > >> > >> -- > >> Bean > >> > >> > > > > Hi, > > > > The value of boot drive is 0x80. > > > > This was the same value in disk->drive also. > > Hi, > > Interesting, perhaps %dx is changed somewhere. Please try the > following patch, it dumps the value of %dx just before jumping to the > boot sector. > > -- > Bean The patch works and now Windows is booting perfectly fine from Grub2. I will go through the assembly and try to understand what modifications you have done.So there is a problem in Grub2 code, which needs to be fixed ? Till this point, I was chainloading grub from Grub2 and then chainloading Windows2008 from it. Thanks for the consistent help till this point and for the future also. Viswesh Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/ ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel
Re: Windows,grub and grub2
- Original Message > From: Bean <[EMAIL PROTECTED]> > To: The development of GRUB 2 > Sent: Monday, 22 September, 2008 9:10:26 AM > Subject: Re: Windows,grub and grub2 > > On Tue, Sep 9, 2008 at 2:00 PM, Viswesh S wrote: > > Below is the dump of screen output while chainloading the ntfsnew file. > > *** > > DI=CFF0 SI=07EE BP=1FF0 SP=1FE8 BX= DX= CX= AX= > > CS= SS= DS= ES= FG=0246 IP=7C57 > > > > DI=7FF0 SI=07EE BP=1FF0 SP=7BF4 BX=55AA DX= CX= AX=0100 CX=07C0 > > DS=07C0 ES= FG=0007 IP=0082 > > ** > > Could you please let me know the way to disassemble the binary file without > > any header.The way in which you decoded the boot record. > > > > Also one more thing to let you know is that, > > > > with the grub-1.96 ( without the chainloader patch of disk->dev->read() ) , > > with windows2003 in partition 1 and linux in partition 3, when we chainload, > > if we look at the partition table passed to another bootloader ie location > > 0x7be - we can see that it is junk, but the surprising point is that, in > > this case as I have mentioned in my first mail, windows boots up from > > grub2.So it is that the partition table is not required for the chainloader > > thing and just the boot record is sufficient > > Hi, > > Oh, sorry for another long delay. I disassemble the file with ida, > which is an amazing tool. I don't know if there is open source > alternative, please let me know if you find one. > > The output from ida is in masm format, I modify it a bit so that it > can be compiled using nasm. Please note that nasm doesn't generate the > same binary file as original one, but you can get an idea what it > does. > > From the output, the program fails at the second int 13 call, int > 13/ah = 48h. Although I notice that DL=0, which is not supposed to > happen. Perhaps you can add a grub_printf in grub_chainloader_boot to > show the value of boot drive: > > static grub_err_t > grub_chainloader_boot (void) > { > grub_printf ("boot_drive=%d\n", boot_drive); > grub_chainloader_real_boot (boot_drive, boot_part_addr); > > /* Never reach here. */ > return GRUB_ERR_NONE; > } > > -- > Bean > > Hi, The value of boot drive is 0x80. This was the same value in disk->drive also. Viswesh Be the first one to try the new Messenger 9 Beta! Go to http://in.messenger.yahoo.com/win/ ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel
Re: Windows,grub and grub2
- Original Message From: Bean <[EMAIL PROTECTED]> To: The development of GRUB 2 Sent: Thursday, 4 September, 2008 11:07:46 PM Subject: Re: Windows,grub and grub2 On Tue, Sep 2, 2008 at 1:01 AM, Viswesh S <[EMAIL PROTECTED]> wrote: > > > - Original Message > From: Bean <[EMAIL PROTECTED]> > To: The development of GRUB 2 > Sent: Monday, 1 September, 2008 9:05:48 PM > Subject: Re: Windows,grub and grub2 > > On Mon, Sep 1, 2008 at 11:27 PM, Viswesh S <[EMAIL PROTECTED]> wrote: >> >> > > Hi, > > Perhaps you can upload the boot sector file ? I can dissemble it to > see where the error is printed. > > -- > Bean > Hi, > > > I was just trying out a way to disassemble it, as objdump didnt give it to > me.I think I am not giving the right option,I suppose for binary.Let me know > how to disassemble the binary. > > > > I have attached the boot record. >Hi, > >I'm sorry for the delay, I'm a little busy in the last few days. > >I have disassemble the boot sector, there are three places where the >error could occur, please chain load the file in the attachment and >write down the screen output: > >chainloader /ntfsnew >boot > >-- >Bean Hi, Below is the dump of screen output while chainloading the ntfsnew file. *** DI=CFF0 SI=07EE BP=1FF0 SP=1FE8 BX= DX= CX= AX= CS= SS= DS= ES= FG=0246 IP=7C57 DI=7FF0 SI=07EE BP=1FF0 SP=7BF4 BX=55AA DX= CX= AX=0100 CX=07C0 DS=07C0 ES= FG=0007 IP=0082 ** Could you please let me know the way to disassemble the binary file without any header.The way in which you decoded the boot record. Also one more thing to let you know is that, with the grub-1.96 ( without the chainloader patch of disk->dev->read() ) , with windows2003 in partition 1 and linux in partition 3, when we chainload, if we look at the partition table passed to another bootloader ie location 0x7be - we can see that it is junk, but the surprising point is that, in this case as I have mentioned in my first mail, windows boots up from grub2.So it is that the partition table is not required for the chainloader thing and just the boot record is sufficient Viswesh Add more friends to your messenger and enjoy! Go to http://in.messenger.yahoo.com/invite/___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel
Re: Windows,grub and grub2
- Original Message From: Bean <[EMAIL PROTECTED]> To: The development of GRUB 2 Sent: Monday, 1 September, 2008 9:05:48 PM Subject: Re: Windows,grub and grub2 On Mon, Sep 1, 2008 at 11:27 PM, Viswesh S <[EMAIL PROTECTED]> wrote: > > Hi, Perhaps you can upload the boot sector file ? I can dissemble it to see where the error is printed. -- Bean Hi, I was just trying out a way to disassemble it, as objdump didnt give it to me.I think I am not giving the right option,I suppose for binary.Let me know how to disassemble the binary. I have attached the boot record. Viswesh ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/ëRNTFS ø ? ÿ ? ëíá ÞN ö èv{·{´ú3Àм |ûhÀhf Ë f> NTFSu´A»ªUÍr ûUªu÷Á uéÒ ìh ´H ôÍÄXrá; uÛ£ Á. Z3Û¹ [EMAIL PROTECTED] fSfSfUh¸faÍéjf`f¡ f fhfPSh h ´B ôÍfY[ZfYfY fÿ Âÿ u¼faà øè ûè ëþ´ð¬<