Benutzer-Werkzeuge

Webseiten-Werkzeuge


freebsd:upgrade

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

freebsd:upgrade [2018/12/14 18:26]
127.0.0.1 Externe Bearbeitung
freebsd:upgrade [2018/12/16 10:47]
Zeile 1: Zeile 1:
-====== Update FreeBSD ====== 
-===== With freebsd-update ===== 
- 
-If you get the error message: 
-<​code>​ 
-Looking up update.FreeBSD.org mirrors... 5 mirrors found. 
-Fetching public key from update2.freebsd.org... failed. 
-Fetching public key from update5.freebsd.org... failed. 
-Fetching public key from update4.freebsd.org... failed. 
-Fetching public key from update3.freebsd.org... failed. 
-Fetching public key from update6.freebsd.org... failed. 
-No mirrors remaining, giving up. 
-</​code>​ 
-Execute the following: 
-<​code>​ 
-setenv UNAME_r "​9.2-RELEASE"​ 
-freebsd-update fetch 
-freebsd-update install 
-reboot 
-</​code>​ 
- 
-===== Upgrade to FreeBSD Version 10 ===== 
-Make a backup of folder etc: 
-<code console> 
-cd / 
-tar cjvf etc.tar.bz2 etc 
-</​code>​ 
-Upgrade will be done using freebsd-update. 
-At first we make a beadm snapshot, so we can rollback in case something bad happened: 
-<code console> 
-beadm create 20181214_freebsd12 
-beadm activate 20181214_freebsd12 
-reboot 
-</​code>​ 
-Now we start with the upgrade: 
-<code console> 
-freebsd-update -r 10.1-RELEASE upgrade 
-freebsd-update -r 10.2-RELEASE upgrade 
-freebsd-update -r 10.3-RELEASE upgrade 
-# : > /​usr/​bin/​bspatch (only required if your update to FreeBSD 11, make sure you execute it before you start with the upgrade) 
-freebsd-update upgrade -r 11.0-RELEASE 
-freebsd-update upgrade -r 11.1-RELEASE 
-freebsd-update upgrade -r 11.2-RELEASE 
-freebsd-update upgrade -r 12.0-RELEASE 
-freebsd-update install 
-# nextboot -k GENERIC 
-reboot 
-freebsd-update install 
-# check that config files in etc are correct! 
-reboot 
-# Make sure you point pkg repo definition to correct FreeBSD version 
-pkg-static upgrade 
-freebsd-update install 
-reboot 
-</​code>​ 
- 
-===== Check automatically for Patches ===== 
-Add to /​etc/​crontab:​ 
-<​code>​ 
-0       ​3 ​      ​* ​      ​* ​      ​* ​      root /​usr/​sbin/​freebsd-update cron 
-</​code>​ 
- 
-===== Custom Kernel ===== 
-Make sure you install your custom kernel not as kernel. You have been warned! freebsd-update will overwrite it, even if you have /​boot/​GERNERIC in place! 
- 
-Add the following line: 
-<code yaml /​boot/​loader.conf>​ 
-kernel="​kernel.custom"​ 
-</​code>​ 
- 
-Get the new realtek card working used with intel skylake apply the following patch: 
-<code patch> 
---- /​usr/​src/​sys/​dev/​re/​if_re.c.orig ​   2015-12-05 13:​55:​25.692456174 +0000 
-+++ /​usr/​src/​sys/​dev/​re/​if_re.c 2015-12-07 10:​54:​35.952128971 +0000 
-@@ -181,7 +181,7 @@ 
-        { RT_VENDORID,​ RT_DEVICEID_8101E,​ 0, 
-            "​RealTek 810xE PCIe 10/​100baseTX"​ }, 
-        { RT_VENDORID,​ RT_DEVICEID_8168,​ 0, 
--           "​RealTek 8168/8111 B/​C/​CP/​D/​DP/​E/​F/​G PCIe Gigabit Ethernet"​ }, 
-+           "​RealTek 8168/8111 B/​C/​CP/​D/​DP/​E/​F/​G/​H PCIe Gigabit Ethernet"​ }, 
-        { RT_VENDORID,​ RT_DEVICEID_8169,​ 0, 
-            "​RealTek 8169/​8169S/​8169SB(L)/​8110S/​8110SB(L) Gigabit Ethernet"​ }, 
-        { RT_VENDORID,​ RT_DEVICEID_8169SC,​ 0, 
-@@ -237,6 +237,7 @@ 
-        { RL_HWREV_8168F,​ RL_8169, "​8168F/​8111F",​ RL_JUMBO_MTU_9K},​ 
-        { RL_HWREV_8168G,​ RL_8169, "​8168G/​8111G",​ RL_JUMBO_MTU_9K},​ 
-        { RL_HWREV_8168GU,​ RL_8169, "​8168GU/​8111GU",​ RL_JUMBO_MTU_9K},​ 
-+       { RL_HWREV_8168H,​ RL_8169, "​8168H/​8111H",​ RL_JUMBO_MTU_9K},​ 
-        { RL_HWREV_8411,​ RL_8169, "​8411",​ RL_JUMBO_MTU_9K},​ 
-        { RL_HWREV_8411B,​ RL_8169, "​8411B",​ RL_JUMBO_MTU_9K},​ 
-        { 0, 0, NULL, 0 } 
-@@ -1483,6 +1484,7 @@ 
-                break; 
-        case RL_HWREV_8168EP:​ 
-        case RL_HWREV_8168G:​ 
-+       case RL_HWREV_8168H:​ 
-        case RL_HWREV_8411B:​ 
-                sc->​rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PAR | 
-                    RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP | 
- 
---- /​usr/​src/​sys/​pci/​if_rlreg.h.orig ​   2015-12-05 14:​11:​15.773204293 +0000 
-+++ /​usr/​src/​sys/​pci/​if_rlreg.h 2015-12-05 15:​29:​56.277653413 +0000 
-@@ -195,6 +195,7 @@ 
- #​define ​       RL_HWREV_8168G ​         0x4C000000 
- #​define ​       RL_HWREV_8168EP ​        ​0x50000000 
- #​define ​       RL_HWREV_8168GU ​        ​0x50800000 
-+#​define ​       RL_HWREV_8168H ​         0x54000000 
- #​define ​       RL_HWREV_8411B ​         0x5C800000 
- #​define ​       RL_HWREV_8139 ​          ​0x60000000 
- #​define ​       RL_HWREV_8139A ​         0x70000000 
-</​code>​ 
- 
-To update the custom kernel: 
-<code console> 
-cd /usr/src 
-make kernel-toolchain 
-make KERNCONF=IDEFIX INSTKERNNAME=kernel.custom -DNO_CLEAN kernel 
-</​code>​ 
-===== Source Update ===== 
-<​code>​ 
-mv /usr/src /​usr/​src.old 
-svnlite co https://​svn0.eu.freebsd.org/​base/​stable/​10 /usr/src 
-</​code>​ 
- 
  
freebsd/upgrade.txt · Zuletzt geändert: 2018/12/16 10:47 (Externe Bearbeitung)