Follow-up Comment #3, bug #10728 (project grub):

Here's my current patch.  Usage:

  kernel /boot/kernel/kernel
  loadenv /boot/device.hints

Note: kernel MUST be compiled with acpi builtin ("device acpi" in config
file).  Theoricaly, you should be able to load it as a module
(/boot/kernel/acpi.ko), but this requires FreeBSD.hint.acpi.0.* variables to
contain correct data.

I've added code to fetch hint.acpi values from BIOS memory space
(stage2/biosacpi.c), but for some reason it gets the wrong stuff.  Correct
variables are sort of like:

  hint.acpi.0.oem=PTLTD
  hint.acpi.0.revision=1
  hint.acpi.0.rsdt=<address in hex>

It still needs a lot of cleanup.  In particular, the function and variable
names (added in the former patch) are very cryptic and difficult to figure
out what they do (grub_fstenv, grub_nxtenv and that lot of two-letter
variables).  The code to parse device.hints (grub_loadenv), which I added, is
quite dirty as well.

    _______________________________________________________

Additional Item Attachment:

File name: kfreebsd.diff                  Size:29 KB
new patch with (incomplete) support for 5.x
<http://savannah.gnu.org/bugs/download.php?file_id=9830>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10728>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-grub mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-grub

Reply via email to