Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
misc:acpi_patch [2025/04/26 23:37] – rqm | misc:acpi_patch [2025/04/29 00:10] (current) – rqm | ||
---|---|---|---|
Line 104: | Line 104: | ||
After you reboot, the new kernel should be the one in use. It will be easy to tell whether the patch worked, because if your system boots " | After you reboot, the new kernel should be the one in use. It will be easy to tell whether the patch worked, because if your system boots " | ||
+ | |||
+ | |||
---- | ---- | ||
+ | FIXME FIXME FIXME | ||
+ | PLEASE DISREGARD BELOW FOR THE TIME BEING, IT IS A WIP AND KNOWN TO BE INCORRECT. | ||
+ | FIXME FIXME FIXME | ||
+ | ---- | ||
+ | |||
=== II. The Custom Installer Way === | === II. The Custom Installer Way === | ||
Line 129: | Line 136: | ||
'' | '' | ||
+ | ==== Upgrading your system after patching ==== | ||
+ | Should a new release come out, unless there' | ||
+ | |||
+ | On your working, normally booting system, you need to patch in place like with "The Slow Boot Way" above. | ||
+ | |||
+ | First, you need to **follow the " | ||
+ | |||
+ | When updating it will skip " | ||
+ | < | ||
+ | # cd / | ||
+ | # cvs update -C acpi.c | ||
+ | </ | ||
+ | |||
+ | This will then move your own version of '' | ||
+ | < | ||
+ | # diff acpi.c .# | ||
+ | </ | ||
+ | |||
+ | If the only two lines that differ are the ones you commented out with the above patch, just '' | ||
+ | |||
+ | === Download the upgrade === | ||
+ | Fetch the release you are upgrading to, but without rebooting and installing automatically. | ||
+ | |||
+ | On '' | ||
+ | < | ||
+ | # sysupgrade -ns | ||
+ | </ | ||
+ | |||
+ | On '' | ||
+ | < | ||
+ | # sysupgrade -n | ||
+ | </ | ||
+ | |||
+ | Sysupgrade will download the new files for the download, you will find then under ''/ | ||
+ | |||
+ | === Make and install the Ramdisk === | ||
+ | To build '' | ||
+ | < | ||
+ | $ doas -s | ||
+ | # cd / | ||
+ | # make obj | ||
+ | # make config | ||
+ | # make | ||
+ | [...eventually...] | ||
+ | ctfstrip -S -o bsd bsd.gdb | ||
+ | # install -bp / | ||
+ | </ | ||
+ | |||
+ | This will give you a " | ||
+ | |||
+ | === Make and install the patched kernel again === | ||
+ | |||
+ | Before rebooting, you need to re-compile '' | ||
+ | |||
+ | < | ||
+ | $ doas -s | ||
+ | # cd / | ||
+ | # make obj | ||
+ | # make config | ||
+ | # make | ||
+ | [...eventually...] | ||
+ | ctfstrip -S -o bsd bsd.gdb | ||
+ | # install -bp / | ||
+ | </ | ||
+ | Reboot... Done! |