help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grub2


From: Chopper
Subject: grub2
Date: Fri, 11 Sep 2015 21:25:04 +0800

Hi all,
I have a few questions about diskboot.S.
Here is the last few lines of this file:

/* fill the first data listing with the default */
blocklist_default_start:
/* this is the sector start parameter, in logical sectors from
  the start of the disk, sector 0 */
.long 2, 0
blocklist_default_len:
/* this is the number of sectors to read.  grub-mkimage
  will fill this up */
.word 0
blocklist_default_seg:
/* this is the segment of the starting address to load the data into */
.word (GRUB_BOOT_MACHINE_KERNEL_SEG + 0x20)

firstlist: /* this label has to be after the list data!!! */

Question:
1.I want to know how the value of blocklist_default_len  is filled.
2.Is blocklist_default_len equal to the size of kernel.img?   
3.Is it passible to get the size of kernel.img and use it as one of some parameters to hash kernel.img in diskboot.S?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]