Acer Aspire X1470 - FreeBSD - 2017 archive

back to main FreeBSD page for this machine.

2017 archive.

2017-10-21: ada0p4 - let me try to install rEFInd on the efi partition:

root@kg-vm2# df -h /mnt
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada0p1    100M    208K    100M     0%    /mnt
root@kg-vm2# pwd
/mnt/efi/refind

copy the files

root@kg-vm2# cp -v /home/tingo/dl/refind-bin-0.11.1/refind/refind_x64.efi .
/home/tingo/dl/refind-bin-0.11.1/refind/refind_x64.efi -> ./refind_x64.efi
root@kg-vm2# cp -v /home/tingo/dl/refind-bin-0.11.1/refind/refind.conf-sample refind.conf
/home/tingo/dl/refind-bin-0.11.1/refind/refind.conf-sample -> refind.conf
root@kg-vm2# cp -Rv /home/tingo/dl/refind-bin-0.11.1/refind/icons .
/home/tingo/dl/refind-bin-0.11.1/refind/icons -> ./icons
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_frugalware.png -> ./icons/os_frugalware.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/vol_internal.png -> ./icons/vol_internal.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/func_about.png -> ./icons/func_about.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_chakra.png -> ./icons/os_chakra.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_centos.png -> ./icons/os_centos.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/tool_part.png -> ./icons/tool_part.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/tool_memtest.png -> ./icons/tool_memtest.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_win8.png -> ./icons/os_win8.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_chrome.png -> ./icons/os_chrome.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_mandriva.png -> ./icons/os_mandriva.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_arch.png -> ./icons/os_arch.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_linux.png -> ./icons/os_linux.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_freebsd.png -> ./icons/os_freebsd.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_clover.png -> ./icons/os_clover.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_mac.png -> ./icons/os_mac.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/func_firmware.png -> ./icons/func_firmware.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/func_csr_rotate.png -> ./icons/func_csr_rotate.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_crunchbang.png -> ./icons/os_crunchbang.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_fedora.png -> ./icons/os_fedora.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/licenses -> ./icons/licenses
/home/tingo/dl/refind-bin-0.11.1/refind/icons/licenses/gpl-2.0.txt -> ./icons/licenses/gpl-2.0.txt
/home/tingo/dl/refind-bin-0.11.1/refind/icons/licenses/lgpl-3.0.txt -> ./icons/licenses/lgpl-3.0.txt
/home/tingo/dl/refind-bin-0.11.1/refind/icons/licenses/cc-by-sa-4.0.txt -> ./icons/licenses/cc-by-sa-4.0.txt
/home/tingo/dl/refind-bin-0.11.1/refind/icons/licenses/cc-3.0.txt -> ./icons/licenses/cc-3.0.txt
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_unknown.png -> ./icons/os_unknown.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_devuan.png -> ./icons/os_devuan.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_ubuntu.png -> ./icons/os_ubuntu.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/func_exit.png -> ./icons/func_exit.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/arrow_right.png -> ./icons/arrow_right.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/tool_netboot.png -> ./icons/tool_netboot.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/tool_rescue.png -> ./icons/tool_rescue.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_redhat.png -> ./icons/os_redhat.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/tool_windows_rescue.png -> ./icons/tool_windows_rescue.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_slackware.png -> ./icons/os_slackware.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_network.png -> ./icons/os_network.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_xenial.png -> ./icons/os_xenial.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_trusty.png -> ./icons/os_trusty.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_refind.png -> ./icons/os_refind.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_legacy.png -> ./icons/os_legacy.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_hwtest.png -> ./icons/os_hwtest.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/vol_optical.png -> ./icons/vol_optical.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/tool_apple_rescue.png -> ./icons/tool_apple_rescue.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/tool_shell.png -> ./icons/tool_shell.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/tool_fwupdate.png -> ./icons/tool_fwupdate.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/mouse.png -> ./icons/mouse.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_xubuntu.png -> ./icons/os_xubuntu.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_debian.png -> ./icons/os_debian.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_linuxmint.png -> ./icons/os_linuxmint.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_kubuntu.png -> ./icons/os_kubuntu.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/tool_mok_tool.png -> ./icons/tool_mok_tool.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_netbsd.png -> ./icons/os_netbsd.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/vol_net.png -> ./icons/vol_net.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_haiku.png -> ./icons/os_haiku.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_refit.png -> ./icons/os_refit.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/vol_external.png -> ./icons/vol_external.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/func_shutdown.png -> ./icons/func_shutdown.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/README -> ./icons/README
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_opensuse.png -> ./icons/os_opensuse.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_win.png -> ./icons/os_win.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/func_reset.png -> ./icons/func_reset.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/arrow_left.png -> ./icons/arrow_left.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_gentoo.png -> ./icons/os_gentoo.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_zesty.png -> ./icons/os_zesty.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_elementary.png -> ./icons/os_elementary.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_suse.png -> ./icons/os_suse.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_mageia.png -> ./icons/os_mageia.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_lubuntu.png -> ./icons/os_lubuntu.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/boot_win.png -> ./icons/boot_win.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/boot_linux.png -> ./icons/boot_linux.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/transparent.png -> ./icons/transparent.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/func_hidden.png -> ./icons/func_hidden.png
/home/tingo/dl/refind-bin-0.11.1/refind/icons/os_gummiboot.png -> ./icons/os_gummiboot.png
root@kg-vm2# cp -Rv /home/tingo/dl/refind-bin-0.11.1/refind/drivers_x64 .
/home/tingo/dl/refind-bin-0.11.1/refind/drivers_x64 -> ./drivers_x64
/home/tingo/dl/refind-bin-0.11.1/refind/drivers_x64/btrfs_x64.efi -> ./drivers_x64/btrfs_x64.efi
/home/tingo/dl/refind-bin-0.11.1/refind/drivers_x64/hfs_x64.efi -> ./drivers_x64/hfs_x64.efi
/home/tingo/dl/refind-bin-0.11.1/refind/drivers_x64/ext2_x64.efi -> ./drivers_x64/ext2_x64.efi
/home/tingo/dl/refind-bin-0.11.1/refind/drivers_x64/iso9660_x64.efi -> ./drivers_x64/iso9660_x64.efi
/home/tingo/dl/refind-bin-0.11.1/refind/drivers_x64/reiserfs_x64.efi -> ./drivers_x64/reiserfs_x64.efi
/home/tingo/dl/refind-bin-0.11.1/refind/drivers_x64/LICENSE_GPL.txt -> ./drivers_x64/LICENSE_GPL.txt
/home/tingo/dl/refind-bin-0.11.1/refind/drivers_x64/LICENSE.txt -> ./drivers_x64/LICENSE.txt
/home/tingo/dl/refind-bin-0.11.1/refind/drivers_x64/ntfs_x64.efi -> ./drivers_x64/ntfs_x64.efi
/home/tingo/dl/refind-bin-0.11.1/refind/drivers_x64/ext4_x64.efi -> ./drivers_x64/ext4_x64.efi
root@kg-vm2# cp -Rv /home/tingo/dl/refind-bin-0.11.1/refind/tools_x64 .
/home/tingo/dl/refind-bin-0.11.1/refind/tools_x64 -> ./tools_x64
/home/tingo/dl/refind-bin-0.11.1/refind/tools_x64/gptsync_x64.efi -> ./tools_x64/gptsync_x64.efi

now it looks like this

root@kg-vm2# l
./              drivers_x64/    refind.conf*    tools_x64/
../             icons/          refind_x64.efi*

ok

2017-10-21: ada0p4 - what does disktype think about efi partition?

root@kg-vm2# disktype /dev/ada0p1

--- /dev/ada0p1
Character device, size 100 MiB (104857600 bytes)
FAT16 file system (hints score 5 of 5)
  Volume size 99.91 MiB (104759296 bytes, 12788 clusters of 8 KiB)

ok.

2017-10-21: ada0p4 - pkg - install disktype

root@kg-vm2# pkg install disktype
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01   
Fetching packagesite.txz: 100%    6 MiB   1.5MB/s    00:04   
Processing entries: 100%
FreeBSD repository update completed. 26957 packages processed.
New version of pkg detected; it needs to be installed first.
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
    pkg: 1.9.4_1 -> 1.10.1

Number of packages to be upgraded: 1

3 MiB to be downloaded.

Proceed with this action? [y/N]: y
Fetching pkg-1.10.1.txz: 100%    3 MiB   1.3MB/s    00:02   
Checking integrity... done (0 conflicting)
[1/1] Upgrading pkg from 1.9.4_1 to 1.10.1...
[1/1] Extracting pkg-1.10.1: 100%
Updating FreeBSD repository catalogue...
Repo "FreeBSD" upgrade schema 2013 to 2014: DROP TABLE pkg_search;
FreeBSD repository is up to date.
All repositories are up to date.
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    disktype: 9

Number of packages to be installed: 1

28 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching disktype-9.txz: 100%   28 KiB  28.4kB/s    00:01   
Checking integrity... done (0 conflicting)
[1/1] Installing disktype-9...
Extracting disktype-9: 100%

ok

2017-10-21: ada0p4 - fix filesystem of efi partition backup

root@kg-vm2# mkdir ~/backup
root@kg-vm2# cp -pv /mnt/efi/boot/BOOTx64.efi ~/backup/
/mnt/efi/boot/BOOTx64.efi -> /root/backup/BOOTx64.efi

unmount and recreate filesystem

root@kg-vm2# umount /mnt
root@kg-vm2# newfs_msdos -F 32 /dev/ada0p1
newfs_msdos: trim 50 sectors to adjust to a multiple of 63
newfs_msdos: 12782 clusters too few clusters for FAT32, need 65525

hmm? Try FAT 16 then

root@kg-vm2# newfs_msdos -F 16  /dev/ada0p1
newfs_msdos: trim 50 sectors to adjust to a multiple of 63
/dev/ada0p1: 204608 sectors in 12788 FAT16 clusters (8192 bytes/cluster)
BytesPerSec=512 SecPerClust=16 ResSectors=1 FATs=2 RootDirEnts=512 Media=0xf0 FATsecs=50 SecPerTrack=63 Heads=16 HiddenSecs=0 HugeSectors=204750

that worked. Mount and see how large it got

root@kg-vm2# mount -t msdosfs /dev/ada0p1 /mnt
root@kg-vm2# df -h /mnt
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada0p1    100M     16K    100M     0%    /mnt

ok. Put stuff back

root@kg-vm2# mkdir -p /mnt/efi/boot
root@kg-vm2# cp -pv ~/backup/BOOTx64.efi /mnt/efi/boot
/root/backup/BOOTx64.efi -> /mnt/efi/boot/BOOTx64.efi

create a FreeBSD directory with a proper name

root@kg-vm2# mkdir -p /mnt/efi/FreeBSD

use the one on /boot

root@kg-vm2# cp -pv /boot/boot1.efi /mnt/efi/FreeBSD/BOOTx64.efi
/boot/boot1.efi -> /mnt/efi/FreeBSD/BOOTx64.efi

ok. It looks like this now

root@kg-vm2# ls -l /mnt/efi/*
/mnt/efi/FreeBSD:
total 80
-rwxr-xr-x  1 root  wheel  74833 Oct 21 19:38 BOOTx64.efi

/mnt/efi/boot:
total 80
-rwxr-xr-x  1 root  wheel  74833 Apr 15  2016 BOOTx64.efi

unmount

root@kg-vm2# umount /mnt

ok

2017-10-21: ada0p4 - check out the efi partition. gpart

root@kg-vm2# gpart show -p ada0
=>       34  250069613    ada0  GPT  (119G)
         34          6          - free -  (3.0K)
         40     204800  ada0p1  efi  (100M)
     204840  119537664  ada0p2  freebsd-ufs  (57G)
  119742504    8388608  ada0p3  freebsd-swap  (4.0G)
  128131112  121938528  ada0p4  freebsd-ufs  [bootonce,bootme]  (58G)
  250069640          7          - free -  (3.5K)

df

root@kg-vm2# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada0p4     56G    9.3G     42G    18%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ada0p1    767K     76K    692K    10%    /mnt

ok, looks like the filesystem is to small. It should be (almost) the same size as the partition.

2017-10-21: ada0p4 - after a reboot, the machine now runs FreeBSD-10.4.stable. dmesg: normal, verbose.

root@kg-vm2# uname -a
FreeBSD kg-vm2.kg4.no 10.4-STABLE FreeBSD 10.4-STABLE #3 r324816: Sat Oct 21 15:18:33 CEST 2017     root@kg-vm2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

ok.

2017-10-21: ada0p4 - upgrade to FreeBSD 10.4-stable via "make world" procedure buildworld

root@kg-vm2# make -j5 buildworld
[..]
--------------------------------------------------------------
>>> World build completed on Sat Oct 21 15:04:05 CEST 2017
--------------------------------------------------------------

kernel

root@kg-vm2# make kernel
[..]
kldxref /boot/kernel

mergemaster PRE

root@kg-vm2# mergemaster -p
[..]

installworld

root@kg-vm2# make installworld
[..]
install -s -o root -g wheel -m 555   ldd32 /usr/bin/ldd32

delete old stuff

root@kg-vm2# make delete-old
>>> Removing old files (only deletes safe to delete libs)
remove /usr/share/man/man2/cap_rights_get.2.gz? y
>>> Old files removed
>>> Removing old directories
/usr/share/doc/atf
/usr/share/atf
/usr/include/atf-c++
/usr/include/atf-c
>>> Old directories removed
To remove old libraries run 'make delete-old-libs'.
root@kg-vm2# make delete-old-libs
>>> Removing old libraries
Please be sure no application still uses those libraries, else you
can not start such an application. Consult UPDATING for more
information regarding how to cope with the removal/revision bump
of a specific library.
>>> Old libraries removed

mergemaster

root@kg-vm2# mergemaster -iUP
[..]
*** You chose the automatic upgrade option for files that you did
    not alter on your system.  The following were upgraded for you:
      /etc/defaults/rc.conf
      /etc/devd.conf
      /etc/devd/hyperv.conf
      /etc/devd/zfs.conf
      /etc/mtree/BSD.include.dist
      /etc/mtree/BSD.root.dist
      /etc/ntp.conf
      /etc/ntp/leap-seconds
      /etc/periodic/daily/200.backup-passwd
      /etc/periodic/daily/450.status-security
      /etc/periodic/daily/999.local
      /etc/periodic/monthly/450.status-security
      /etc/periodic/monthly/999.local
      /etc/periodic/weekly/450.status-security
      /etc/periodic/weekly/999.local
      /etc/rc.d/routing
      /etc/snmpd.config
      /etc/ssh/moduli
      /etc/ssh/ssh_config
      /etc/ssh/sshd_config
      /etc/syslog.conf
*** Reinstalling Europe/Oslo as /etc/localtime

ok, now only a reboot is needed.

2017-10-21: ada0p4 - upgrade source

root@kg-vm2# cd /usr/src
root@kg-vm2# svnlite up
[..]
Updated to revision 324816.

verify

root@kg-vm2# egrep "^BRANCH|^REVISION" /usr/src/sys/conf/newvers.sh
REVISION="10.4"
BRANCH="STABLE"

ok.

2017-02-26: ada0p4 - pkg - upgraded

Feb 26 19:29:09 kg-vm2 pkg: xproto upgraded: 7.0.28 -> 7.0.31
Feb 26 19:29:09 kg-vm2 pkg: libxml2 upgraded: 2.9.3 -> 2.9.4
Feb 26 19:29:10 kg-vm2 pkg: libxcb upgraded: 1.11.1 -> 1.12
Feb 26 19:29:10 kg-vm2 pkg: libX11 upgraded: 1.6.3,1 -> 1.6.4,1
Feb 26 19:29:10 kg-vm2 pkg: videoproto upgraded: 2.3.2 -> 2.3.3
Feb 26 19:29:10 kg-vm2 pkg: pciids upgraded: 20151224 -> 20170215
Feb 26 19:29:10 kg-vm2 pkg: libdevq upgraded: 0.0.2_1 -> 0.0.4
Feb 26 19:29:10 kg-vm2 pkg: libXv upgraded: 1.0.10_3,1 -> 1.0.11,1
Feb 26 19:29:10 kg-vm2 pkg: libXfixes upgraded: 5.0.1_3 -> 5.0.3
Feb 26 19:29:10 kg-vm2 pkg: indexinfo upgraded: 0.2.4 -> 0.2.6
Feb 26 19:29:10 kg-vm2 pkg: libdrm upgraded: 2.4.65_1,1 -> 2.4.75_1,1
Feb 26 19:29:10 kg-vm2 pkg: libXvMC upgraded: 1.0.9 -> 1.0.10
Feb 26 19:29:10 kg-vm2 pkg: gettext-runtime upgraded: 0.19.6 -> 0.19.8.1_1
Feb 26 19:29:10 kg-vm2 pkg: expat upgraded: 2.1.0_3 -> 2.2.0_1
Feb 26 19:29:13 kg-vm2 pkg: python27 upgraded: 2.7.11 -> 2.7.13_1
Feb 26 19:29:15 kg-vm2 pkg: perl5 upgraded: 5.20.3_8 -> 5.24.1
Feb 26 19:29:15 kg-vm2 pkg: libglapi upgraded: 11.0.8 -> 13.0.4
Feb 26 19:29:15 kg-vm2 pkg: libedit upgraded: 3.1.20150325_1 -> 3.1.20150325_2,1
Feb 26 19:29:18 kg-vm2 pkg: llvm36 reinstalled: 3.6.2_2 -> 3.6.2_2
Feb 26 19:29:18 kg-vm2 pkg: gbm upgraded: 11.0.8 -> 13.0.4
Feb 26 19:29:55 kg-vm2 pkg: llvm39-3.9.1_1 installed
Feb 26 19:29:55 kg-vm2 pkg: libglesv2 upgraded: 11.0.8 -> 13.0.4_1
Feb 26 19:29:55 kg-vm2 pkg: libfontenc upgraded: 1.1.3 -> 1.1.3_1
Feb 26 19:29:55 kg-vm2 pkg: libXpm upgraded: 3.5.11_4 -> 3.5.12
Feb 26 19:29:55 kg-vm2 pkg: libEGL upgraded: 11.0.8 -> 13.0.4_1
Feb 26 19:29:55 kg-vm2 pkg: freetype2 upgraded: 2.6.2 -> 2.6.3
Feb 26 19:29:56 kg-vm2 pkg: xkeyboard-config upgraded: 2.16 -> 2.20
Feb 26 19:29:56 kg-vm2 pkg: pixman upgraded: 0.32.8 -> 0.34.0
Feb 26 19:29:56 kg-vm2 pkg: libXrender upgraded: 0.9.9 -> 0.9.10
Feb 26 19:29:56 kg-vm2 pkg: libXfont upgraded: 1.5.1,2 -> 1.5.2,2
Feb 26 19:29:56 kg-vm2 pkg: libGL upgraded: 11.0.8 -> 13.0.4_1
Feb 26 19:29:56 kg-vm2 pkg: inputproto upgraded: 2.3.1 -> 2.3.2
Feb 26 19:29:58 kg-vm2 pkg: fontconfig upgraded: 2.11.1_1,1 -> 2.12.1,1
Feb 26 19:29:58 kg-vm2 pkg: dri upgraded: 11.0.8,2 -> 13.0.4,2
Feb 26 19:29:59 kg-vm2 pkg: libunwind-20121006_2 installed
Feb 26 19:29:59 kg-vm2 pkg: xorg-server upgraded: 1.17.4,1 -> 1.18.4,1
Feb 26 19:29:59 kg-vm2 pkg: libXi upgraded: 1.7.6,1 -> 1.7.9,1
Feb 26 19:29:59 kg-vm2 pkg: xterm upgraded: 321 -> 327
Feb 26 19:29:59 kg-vm2 pkg: xf86-video-vesa upgraded: 2.3.4 -> 2.3.4_1
Feb 26 19:29:59 kg-vm2 pkg: xf86-video-ati upgraded: 7.5.0_3 -> 7.8.0,1
Feb 26 19:29:59 kg-vm2 pkg: xf86-input-mouse upgraded: 1.9.1_1 -> 1.9.2_1
Feb 26 19:29:59 kg-vm2 pkg: xf86-input-keyboard upgraded: 1.8.1 -> 1.9.0_1
Feb 26 19:29:59 kg-vm2 pkg: xclock upgraded: 1.0.7_1 -> 1.0.7_2
Feb 26 19:29:59 kg-vm2 pkg: xauth upgraded: 1.0.9_1 -> 1.0.10
Feb 26 19:29:59 kg-vm2 pkg: ca_root_nss upgraded: 3.22.2 -> 3.29.1

ok.

2017-02-26: ada0p4 - pkg - check for upgrades

root@kg-vm2# pkg upgrade -n
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Checking for upgrades (43 candidates): 100%
Processing candidates (43 candidates): 100%
The following 45 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    libunwind: 20121006_2
    llvm39: 3.9.1_1

Installed packages to be UPGRADED:
    xterm: 321 -> 327
    xproto: 7.0.28 -> 7.0.31
    xorg-server: 1.17.4,1 -> 1.18.4,1
    xkeyboard-config: 2.16 -> 2.20
    xf86-video-vesa: 2.3.4 -> 2.3.4_1
    xf86-video-ati: 7.5.0_3 -> 7.8.0,1
    xf86-input-mouse: 1.9.1_1 -> 1.9.2_1
    xf86-input-keyboard: 1.8.1 -> 1.9.0_1
    xclock: 1.0.7_1 -> 1.0.7_2
    xauth: 1.0.9_1 -> 1.0.10
    videoproto: 2.3.2 -> 2.3.3
    python27: 2.7.11 -> 2.7.13_1
    pixman: 0.32.8 -> 0.34.0
    perl5: 5.20.3_8 -> 5.24.1
    pciids: 20151224 -> 20170215
    libxml2: 2.9.3 -> 2.9.4
    libxcb: 1.11.1 -> 1.12
    libglesv2: 11.0.8 -> 13.0.4_1
    libglapi: 11.0.8 -> 13.0.4
    libfontenc: 1.1.3 -> 1.1.3_1
    libedit: 3.1.20150325_1 -> 3.1.20150325_2,1
    libdrm: 2.4.65_1,1 -> 2.4.75_1,1
    libdevq: 0.0.2_1 -> 0.0.4
    libXvMC: 1.0.9 -> 1.0.10
    libXv: 1.0.10_3,1 -> 1.0.11,1
    libXrender: 0.9.9 -> 0.9.10
    libXpm: 3.5.11_4 -> 3.5.12
    libXi: 1.7.6,1 -> 1.7.9,1
    libXfont: 1.5.1,2 -> 1.5.2,2
    libXfixes: 5.0.1_3 -> 5.0.3
    libX11: 1.6.3,1 -> 1.6.4,1
    libGL: 11.0.8 -> 13.0.4_1
    libEGL: 11.0.8 -> 13.0.4_1
    inputproto: 2.3.1 -> 2.3.2
    indexinfo: 0.2.4 -> 0.2.6
    gettext-runtime: 0.19.6 -> 0.19.8.1_1
    gbm: 11.0.8 -> 13.0.4
    freetype2: 2.6.2 -> 2.6.3
    fontconfig: 2.11.1_1,1 -> 2.12.1,1
    expat: 2.1.0_3 -> 2.2.0_1
    dri: 11.0.8,2 -> 13.0.4,2
    ca_root_nss: 3.22.2 -> 3.29.1

Installed packages to be REINSTALLED:
    llvm36-3.6.2_2 (direct dependency changed: perl5)

Number of packages to be installed: 2
Number of packages to be upgraded: 42
Number of packages to be reinstalled: 1

The process will require 1 GiB more space.
317 MiB to be downloaded.

ok.

2017-02-26: ada0p4 - pkg - upgrade pkg

Feb 26 19:23:53 kg-vm2 pkg: pkg upgraded: 1.8.3 -> 1.9.4_1

ok.

2017-02-25: ada0p4 - after reboot, it now runs latest FreeBSD 10.3-stable. dmesg output: normal, verbose.

root@kg-vm2# uname -a
FreeBSD kg-vm2.kg4.no 10.3-STABLE FreeBSD 10.3-STABLE #2 r314270: Sat Feb 25 17:54:32 CET 2017     root@kg-vm2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

ok.

2017-02-25: ada0p4 - build latest FreeBSD 10.3-stable via "make buildworld" procedure.

root@kg-vm2# pwd
/usr/src

build world

root@kg-vm2# make -j5 buildworld
[...]
--- buildworld_epilogue ---
--------------------------------------------------------------
>>> World build completed on Sat Feb 25 17:39:58 CET 2017
--------------------------------------------------------------

build and install kernel

root@kg-vm2# make kernel
[...]
kldxref /boot/kernel

mergemaster PRE

root@kg-vm2# mergemaster -p
[...]
*** Comparison complete

*** /var/tmp/temproot is empty, deleting

install world

root@kg-vm2# make installworld
[...]
install -s -o root -g wheel -m 555   ldd32 /usr/bin/ldd32

delete old stuff

root@kg-vm2# make delete-old
>>> Removing old files (only deletes safe to delete libs)
remove /usr/share/man/man4/hv_ata_pci_disengage.4.gz? y
remove /usr/share/man/man9/rman_await_resource.9.gz? y
>>> Old files removed
>>> Removing old directories
/usr/share/doc/atf
/usr/share/atf
/usr/include/atf-c++
/usr/include/atf-c
>>> Old directories removed
To remove old libraries run 'make delete-old-libs'.
root@kg-vm2# make delete-old-libs
>>> Removing old libraries
Please be sure no application still uses those libraries, else you
can not start such an application. Consult UPDATING for more
information regarding how to cope with the removal/revision bump
of a specific library.
>>> Old libraries removed

run mergemaster

root@kg-vm2# mergemaster -iUP
[...]
*** You chose the automatic install option for files that did not
    exist on your system.  The following were installed for you:
      /etc/rc.d/zfsbe
*** You chose the automatic upgrade option for files that you did
    not alter on your system.  The following were upgraded for you:
      /COPYRIGHT
      /boot/device.hints
      /etc/autofs/special_hosts
      /etc/defaults/periodic.conf
      /etc/defaults/rc.conf
      /etc/devd/hyperv.conf
      /etc/devd/usb.conf
      /etc/mtree/BSD.include.dist
      /etc/mtree/BSD.var.dist
      /etc/ntp/leap-seconds
      /etc/periodic/daily/480.leapfile-ntpd
      /etc/periodic/security/100.chksetuid
      /etc/periodic/security/110.neggrpperm
      /etc/protocols
      /etc/rc.d/FILESYSTEMS
      /etc/rc.d/NETWORKING
      /etc/rc.d/SERVERS
      /etc/rc.d/dumpon
      /etc/rc.d/hostid_save
      /etc/rc.d/jail
      /etc/rc.d/kdc
      /etc/rc.d/msgs
      /etc/rc.d/netif
      /etc/rc.d/ntpd
      /etc/rc.d/routed
      /etc/rc.d/sendmail
      /etc/rc.d/swaplate
      /etc/rc.d/var
      /etc/rc.d/zfs
      /etc/rc.d/zvol
      /etc/rc.initdiskless
      /etc/snmpd.config
      /etc/ssh/ssh_config
      /etc/ssh/sshd_config
*** Reinstalling Europe/Oslo as /etc/localtime

only a reboot remains.

2017-02-25: ada0p4 - update source

root@kg-vm2# cd /usr/src
root@kg-vm2#svnlite up
[...]
 U   .
Updated to revision 314270.

check

root@kg-vm2# egrep "^BRANCH|^REVISION" /usr/src/sys/conf/newvers.sh
REVISION="10.3"
BRANCH="STABLE"

ok.

2017-02-25: ada0p4 - booted up in FreeBSD 10.3 (via usb stick, for some reason, the stupid UEFI on this won't boot from hard drive).

root@kg-vm2# uname -a
FreeBSD kg-vm2.kg4.no 10.3-STABLE FreeBSD 10.3-STABLE #1 r298075: Fri Apr 15 20:38:12 CEST 2016     root@kg-vm2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

time to upgrade.

2017-01-15: ada0p2 - after a reboot, the machine runs the latest FreeBSD 9.3-stable. dmesg output: normal, verbose.

root@kg-vm2# uname -a
FreeBSD kg-vm2 9.3-STABLE FreeBSD 9.3-STABLE #3 r312237: Sun Jan 15 22:58:22 CET 2017     root@kg-vm2:/usr/obj/usr/src/sys/GENERIC  amd64

ok.

2017-01-15: ada0p2 - build latest FreeBSD 9.3-stable, via "make world" procedure.

root@kg-vm2# pwd
/usr/src

build world

root@kg-vm2# make -j5 buildworld
[...]
--------------------------------------------------------------
>>> World build completed on Sun Jan 15 22:44:54 CET 2017
--------------------------------------------------------------

kernel

root@kg-vm2# make kernel
[...]
===> zlib (install)
install -o root -g wheel -m 555   zlib.ko /boot/kernel
install -o root -g wheel -m 555   zlib.ko.symbols /boot/kernel
kldxref /boot/kernel

mergemaster PRE

root@kg-vm2# mergemaster -p
[...]
*** Comparison complete

*** /var/tmp/temproot is empty, deleting

install world

root@kg-vm2# make installworld
[...]
install -s -o root -g wheel -m 555   ldd32 /usr/bin/ldd32

delete old stuff

root@kg-vm2# make delete-old
>>> Removing old files (only deletes safe to delete libs)
remove /usr/share/man/man9/rman_await_resource.9.gz? y
>>> Old files removed
>>> Removing old directories
/usr/include/c++/v1/experimental
/usr/include/c++/v1/ext
rmdir: /usr/include/c++/v1: Directory not empty
>>> Old directories removed
To remove old libraries run '/usr/obj/usr/src/make.amd64/make delete-old-libs'.
root@kg-vm2# make delete-old-libs
>>> Removing old libraries
Please be sure no application still uses those libraries, else you
can not start such an application. Consult UPDATING for more
information regarding how to cope with the removal/revision bump
of a specific library.
>>> Old libraries removed

mergemaster

root@kg-vm2# mergemaster -iUP
[...]
*** Comparison complete
*** Saving mtree database for future upgrades

*** /var/tmp/temproot is empty, deleting

*** You chose the automatic install option for files that did not
    exist on your system.  The following were installed for you:
      /etc/ntp/leap-seconds
      /etc/periodic/daily/480.leapfile-ntpd

*** You chose the automatic upgrade option for files that you did
    not alter on your system.  The following were upgraded for you:
      /etc/defaults/periodic.conf
      /etc/defaults/rc.conf
      /etc/devd/usb.conf
      /etc/mtree/BSD.var.dist
      /etc/ntp.conf
      /etc/periodic/daily/800.scrub-zfs
      /etc/rc.d/NETWORKING
      /etc/rc.d/hostid_save
      /etc/rc.d/netif
      /etc/rc.d/ntpd
      /etc/rc.d/routed
      /etc/ssh/ssh_config
      /etc/ssh/sshd_config
      /var/named/etc/namedb/named.root

*** Reinstalling Europe/Oslo as /etc/localtime

only a reboot remains.

2017-01-15: ada0p2 - update source

root@kg-vm2# cd /usr/src
root@kg-vm2# svn up
svn: E155036: Please see the 'svn upgrade' command
svn: E155036: The working copy at '/usr/src'
is too old (format 29) to work with client version '1.9.3 (r1718519)' (expects format 31). You need to upgrade the working copy first.

ok

root@kg-vm2# svn upgrade
Upgraded '.'

now then

root@kg-vm2# svn up
[...]
UU   UPDATING
 U   .
Updated to revision 312237.

verify

root@kg-vm2# egrep "^BRANCH|^REVISION" /usr/src/sys/conf/newvers.sh
REVISION="9.3"
BRANCH="STABLE"

ok.

2017-01-15: ada0p2 - ports install subversion-static

Jan 15 21:44:05 kg-vm2 pkg-static: pkgconf-0.9.12_1 installed
Jan 15 21:44:07 kg-vm2 pkg-static: dialog4ports-0.1.5_2 installed
Jan 15 21:44:56 kg-vm2 pkg-static: apr-1.5.2.1.5.4 installed
Jan 15 21:45:27 kg-vm2 pkg-static: m4-1.4.17_1,1 installed
Jan 15 21:45:29 kg-vm2 pkg-static: scons-2.3.0_1 installed
Jan 15 21:45:38 kg-vm2 pkg-static: serf-1.3.8_1 installed
Jan 15 21:47:30 kg-vm2 pkg-static: subversion-static-1.9.3_1 installed

ok.

2017-01-15: ada0p2 - I booted this machine. It still runs

tingo@kg-vm2$ uname -a
FreeBSD kg-vm2 9.3-STABLE FreeBSD 9.3-STABLE #2 r293048: Sat Jan  2 18:23:40 CET 2016     root@kg-vm2:/usr/obj/usr/src/sys/GENERIC  amd64

ok.