Re: What is this grub_disk_read doing in the i386 linux loader?

2018-04-26 Thread Daniel Kiper
On Wed, Apr 25, 2018 at 12:45:15PM -0700, Andrew Jeddeloh wrote: > > As Michael said, "0x0202 + byte value at offset 0x0201" is your friend. > > I think Michael's message got lost; I think he replied to just you? I > didn't receive it and I don't see it in the archives. > > > AIUI it is. Please loo

Re: What is this grub_disk_read doing in the i386 linux loader?

2018-04-25 Thread Michael Chang
On Wed, Apr 25, 2018 at 12:45:15PM -0700, Andrew Jeddeloh wrote: > > As Michael said, "0x0202 + byte value at offset 0x0201" is your friend. > > I think Michael's message got lost; I think he replied to just you? I > didn't receive it and I don't see it in the archives. Yes, it got lost. I don't

Re: What is this grub_disk_read doing in the i386 linux loader?

2018-04-25 Thread Andrew Jeddeloh
> As Michael said, "0x0202 + byte value at offset 0x0201" is your friend. I think Michael's message got lost; I think he replied to just you? I didn't receive it and I don't see it in the archives. > AIUI it is. Please look above. I don't know what you're refering to here by "above". > This is

Re: What is this grub_disk_read doing in the i386 linux loader?

2018-04-25 Thread Daniel Kiper
On Tue, Apr 24, 2018 at 04:08:57PM -0700, Andrew Jeddeloh wrote: > Thanks for the reply. > > I'm not sure I follow. Looking over the 32 bit boot spec, it looks > like the process is: > > 1) zero out linux_params > - grub does this > 2) copy the linux boot params (from 0x1f1) into linux params > -

Re: What is this grub_disk_read doing in the i386 linux loader?

2018-04-24 Thread Andrew Jeddeloh
Thanks for the reply. I'm not sure I follow. Looking over the 32 bit boot spec, it looks like the process is: 1) zero out linux_params - grub does this 2) copy the linux boot params (from 0x1f1) into linux params - grub does this by reading from 0x0 until the end of lh, then copying lh+0x1f1 ti

Re: What is this grub_disk_read doing in the i386 linux loader?

2018-04-24 Thread Daniel Kiper
On Thu, Apr 19, 2018 at 03:22:55PM -0700, Andrew Jeddeloh wrote: > While solving a bug in the coreos fork of grub I came across this disk > read in the i386 linux loader [1]. It looks like its reading whatever > is after the boot param header in the kernel file (defined by the > linux x86 boot prot

What is this grub_disk_read doing in the i386 linux loader?

2018-04-19 Thread Andrew Jeddeloh
While solving a bug in the coreos fork of grub I came across this disk read in the i386 linux loader [1]. It looks like its reading whatever is after the boot param header in the kernel file (defined by the linux x86 boot protocol [2]) into the rest of the `linux_params` struct. In practice this me

What is this grub_disk_read doing in the i386 linux loader

2018-04-19 Thread Andrew Jeddeloh
While solving a bug in the coreos fork of grub I came across this disk read in the i386 linux loader [1]. It looks like its reading whatever is after the boot param header in the kernel file (defined by the linux x86 boot protocol [2]) into the rest of the `linux_params` struct. In practice this me