[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #10728] [PATCH] FreeBSD Boot Patch
From: |
Robert Millan |
Subject: |
[bug #10728] [PATCH] FreeBSD Boot Patch |
Date: |
Mon, 24 Apr 2006 20:18:15 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.0.1) Gecko/20060313 Debian/1.5.dfsg+1.5.0.1-4 Firefox/1.5.0.1 |
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/