Re: Loading boot image retrieved from CD-ROM

2007-06-24 Thread Vesa Jääskeläinen
Alex Roman wrote: > Hello, > > As you may recall, I'm working on the Google Summer of Code project to > enable GRUB2 to boot off CDs. > > I can now read boot images from CDs using int 13h BIOS calls :) And > I've confirmed I'm actually reading the ISOLINUX image because I can > perform some manua

Re: Loading boot image retrieved from CD-ROM

2007-06-23 Thread Bean
On Sun, Jun 24, 2007 at 01:00:13AM -0400, Alex Roman wrote: > On 24/06/07, Bean <[EMAIL PROTECTED]> wrote: > >Maybe the image overwrites code in statrt.S after it's copied to 0x7c00. To > >verify, you can print the address of function like grub_eltorito_boot, > >grub_gate_a20 and prot_to_real, see

Re: Loading boot image retrieved from CD-ROM

2007-06-23 Thread Alex Roman
On 24/06/07, Bean <[EMAIL PROTECTED]> wrote: Maybe the image overwrites code in statrt.S after it's copied to 0x7c00. To verify, you can print the address of function like grub_eltorito_boot, grub_gate_a20 and prot_to_real, see if they're within range of 0x7c00 to 0x7c00 + image length. I don't

Re: Loading boot image retrieved from CD-ROM

2007-06-23 Thread Alex Roman
On 24/06/07, Alex Roman <[EMAIL PROTECTED]> wrote: FUNCTION(grub_eltorito_boot) /* set up to pass boot drive */ popl%edx /* address in %ebx */ popl%ebx /* count in %ecx */ popl%ecx Oops.. these got a bit inverted, should pop in the order ecx, edx, e

Re: Loading boot image retrieved from CD-ROM

2007-06-23 Thread Bean
On Sun, Jun 24, 2007 at 12:31:14AM -0400, Alex Roman wrote: > Hello, > > As you may recall, I'm working on the Google Summer of Code project to > enable GRUB2 to boot off CDs. > > I can now read boot images from CDs using int 13h BIOS calls :) And > I've confirmed I'm actually reading the ISOLINU