Acer Aspire X1470 - FreeBSD - 2016 archive

back to main FreeBSD page for this machine.

2016 archive.

2016-08-25: uptime status:

root@kg-vm2# date;uptime
Thu Aug 25 23:09:29 CEST 2016
11:09PM  up 132 days, 15 mins, 2 users, load averages: 0.05, 0.03, 0.00

ok.

2016-06-05: ada0p4 - ntp - try to fetch an updated ntpd.leapseconds.list file. messages in /var/log/messages

Jun  1 01:54:53 kg-vm2 ntpd[576]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): will expire in less than one day
Jun  1 22:54:53 kg-vm2 ntpd[576]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): expired less than 1 day ago
Jun  2 22:54:53 kg-vm2 ntpd[576]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): expired less than 2 days ago
Jun  3 22:54:53 kg-vm2 ntpd[576]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): expired less than 3 days ago
Jun  4 22:54:53 kg-vm2 ntpd[576]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): expired less than 4 days ago

try to fetch

root@kg-vm2# service ntpd fetch
Certificate verification failed for /C=US/ST=Arizona/L=Scottsdale/O=Starfield Technologies, Inc./CN=Starfield Root Certificate Authority - G2
34380987144:error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_clnt.c:1185:
fetch: https://www.ietf.org/timezones/data/leap-seconds.list: Authentication error

certificates are missing, install

root@kg-vm2# pkg install ca_root_nss
Updating FreeBSD repository catalogue...
Fetching meta.txz: 100%    944 B   0.9kB/s    00:01   
Fetching packagesite.txz: 100%    5 MiB   2.9MB/s    00:02   
Processing entries: 100%
FreeBSD repository update completed. 25308 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.6.2 -> 1.8.3

The process will require 116 KiB more space.
2 MiB to be downloaded.

Proceed with this action? [y/N]: y
Fetching pkg-1.8.3.txz: 100%    2 MiB   2.6MB/s    00:01   
Checking integrity... done (0 conflicting)
[1/1] Upgrading pkg from 1.6.2 to 1.8.3...
[1/1] Extracting pkg-1.8.3: 100%
Updating FreeBSD repository catalogue...
Repo "FreeBSD" upgrade schema 2012 to 2013: Add vital field
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:
    ca_root_nss: 3.22.2

324 KiB to be downloaded.

Proceed with this action? [y/N]: y
Fetching ca_root_nss-3.22.2.txz: 100%  324 KiB 331.4kB/s    00:01   
Checking integrity... done (0 conflicting)
[1/1] Installing ca_root_nss-3.22.2...
[1/1] Extracting ca_root_nss-3.22.2: 100%
Message from ca_root_nss-3.22.2:
********************************* WARNING *********************************

FreeBSD does not, and can not warrant that the certification authorities
whose certificates are included in this package have in any way been
audited for trustworthiness or RFC 3647 compliance.

Assessment and verification of trust is the complete responsibility of the
system administrator.

*********************************** NOTE **********************************

This package installs symlinks to support root certificates discovery by
default for software that uses OpenSSL.

This enables SSL Certificate Verification by client software without manual
intervention.

If you prefer to do this manually, replace the following symlinks with
either an empty file or your site-local certificate bundle.

  * /etc/ssl/cert.pem
  * /usr/local/etc/ssl/cert.pem
  * /usr/local/openssl/cert.pem

***************************************************************************

fetch again

root@kg-vm2# service ntpd fetch
root@kg-vm2#

no indication if it did work.

2016-04-15: ada0p4 - uefi - that didn't work well. The problem seems to be that it reads loader.efi from ada0p2 (the first UFS partition), and that one is old. Let me try to update it:

root@kg-vm2# mount /dev/ada0p2 /mnt

what has it:

root@kg-vm2# ll /mnt/boot/l*efi
-r-xr-xr-x  1 root  wheel  306899 Apr  3  2015 /mnt/boot/loader.efi*

the newest one is

root@kg-vm2# ll /boot/l*efi
-r-xr-xr-x  1 root  wheel  399374 Apr 15 21:34 /boot/loader.efi*

copy that one

root@kg-vm2# cp -pv /boot/loader.efi /mnt/boot/
/boot/loader.efi -> /mnt/boot/loader.efi

unmount and try a reboot. Nope - that didn't help either. Now it just hangs after printing EFI variables. Crap.

2016-04-15: ada0p4 - uefi - update boot1.efi on the ESP partition: mount ESP

root@kg-vm2# mount -t msdosfs /dev/ada0p1 /mnt

list current

root@kg-vm2# ll /mnt/efi/boot
total 65
drwxr-xr-x  1 root  wheel    512 Apr 26  2014 ./
drwxr-xr-x  1 root  wheel    512 Apr 26  2014 ../
-rwxr-xr-x  1 root  wheel  65536 Apr 26  2014 BOOTx64.efi*
```sh
the new one is
```sh
root@kg-vm2# ll /boot/boot1.efi
-r-xr-xr-x  1 root  wheel  74833 Apr 15 21:34 /boot/boot1.efi*

copy it:

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

verify

root@kg-vm2# ll /mnt/efi/boot
total 75
drwxr-xr-x  1 root  wheel    512 Apr 26  2014 ./
drwxr-xr-x  1 root  wheel    512 Apr 26  2014 ../
-rwxr-xr-x  1 root  wheel  74833 Apr 15 21:34 BOOTx64.efi*

unmount, and try a reboot.

2016-04-15: ada0p4 - reboot, now it runs 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 #1 r298075: Fri Apr 15 20:38:12 CEST 2016     root@kg-vm2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

ok.

2016-04-15: ada0p4 - upgrade to FreeBSD 10.3-stable via "make buildworld" procedure.

root@kg-vm2# pwd
/usr/src

make world

root@kg-vm2# make -j5 buildworld
[...]
--------------------------------------------------------------
>>> World build completed on Fri Apr 15 20:23:53 CEST 2016
--------------------------------------------------------------

kernel

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

mergemaster pre 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/sbin/unbound-control-setup? 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
[...]
*** 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/locate.rc
      /etc/mtree/BSD.var.dist
      /etc/netstart
      /etc/ntp.conf
      /etc/periodic/daily/400.status-disks
      /etc/periodic/daily/800.scrub-zfs
      /etc/periodic/security/security.functions
      /etc/rc.d/NETWORKING
      /etc/rc.d/abi
      /etc/rc.d/jail
      /etc/rc.d/local_unbound
      /etc/rc.d/netwait
      /etc/rc.d/ntpd
      /etc/rc.d/othermta
      /etc/rc.shutdown
      /etc/security/audit_class
      /etc/security/audit_control
      /etc/security/audit_event
      /etc/security/audit_user
      /etc/security/audit_warn
      /etc/ssh/moduli
      /etc/ssh/ssh_config
      /etc/ssh/sshd_config


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

and done.

2016-04-15: ada0p4 - upgrade source to latest stable/10 via svnlite.

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

check what we got

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

ok.

2016-04-15: ada0p4 - boot via UEFI failed, with a "Dictionary full" or something message. Booted via usb stick / escape to loader instead.

2016-01-09: for my next trick I booted from the FreeBSD 10.2-release (uefi) image (via F12), and cleared the ada0 drive, destroyed the geom, and installed from scratch. It still doesn't boot directly, but via F12 - two entries shows up for the SSD, if I select the second entry it boots. Finally! The temporary disk looks like this:

root@jalla:~ # 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  121938535          - free -  (58G)

cool. I guess that the filesystem created has '-j' on it too?

root@jalla:~ # dumpfs -m /
# newfs command for / (/dev/ada0p2)
newfs -O 2 -U -a 4 -b 32768 -d 32768 -e 4096 -f 4096 -g 16384 -h 64 -i 8192 -j -k 6408 -m 8 -o time -s 119537664 /dev/ada0p2 

indeed. Well, it doesn't matter. Create a partition:

root@jalla:~ # gpart add -t freebsd-ufs ada0
ada0p4 added

it now looks like this:

root@jalla:~ # 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  (58G)
  250069640          7          - free -  (3.5K)

ok. Add a filesystem:

root@jalla:~ # newfs -Uj /dev/ada0p4
/dev/ada0p4: 59540.3MB (121938528 sectors) block size 32768, fragment size 4096
 using 96 cylinder groups of 626.09MB, 20035 blks, 80256 inodes.
 with soft updates
super-block backups (for fsck_ffs -b #) at:
 192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112, 11540352, 12822592, 14104832,
 15387072, 16669312, 17951552, 19233792, 20516032, 21798272, 23080512, 24362752, 25644992, 26927232,
 28209472, 29491712, 30773952, 32056192, 33338432, 34620672, 35902912, 37185152, 38467392, 39749632,
 41031872, 42314112, 43596352, 44878592, 46160832, 47443072, 48725312, 50007552, 51289792, 52572032,
 53854272, 55136512, 56418752, 57700992, 58983232, 60265472, 61547712, 62829952, 64112192, 65394432,
 66676672, 67958912, 69241152, 70523392, 71805632, 73087872, 74370112, 75652352, 76934592, 78216832,
 79499072, 80781312, 82063552, 83345792, 84628032, 85910272, 87192512, 88474752, 89756992, 91039232,
 92321472, 93603712, 94885952, 96168192, 97450432, 98732672, 100014912, 101297152, 102579392, 103861632,
 105143872, 106426112, 107708352, 108990592, 110272832, 111555072, 112837312, 114119552, 115401792,
 116684032, 117966272, 119248512, 120530752, 121812992
Using inode 4 in cg 0 for 33554432 byte journal
newfs: soft updates journaling set

verify:

root@jalla:~ # dumpfs -m /dev/ada0p4
# newfs command for /dev/ada0p4 (/dev/ada0p4)
newfs -O 2 -U -a 4 -b 32768 -d 32768 -e 4096 -f 4096 -g 16384 -h 64 -i 8192 -j -k 6408 -m 8 -o time -s 121938528 /dev/ada0p4 

mount it:

root@jalla:~ # mount /dev/ada0p4 /mnt

mount the backup drive:

root@jalla:~ # mount /dev/da1p1 /media

do the restore:

root@jalla:~ # cd /mnt
root@jalla:/mnt # restore -rf /media/backups/ada0p4-10.2-backup.dump.img
warning: ./.snap: File exists
./.sujournal: cannot create file: Operation not permitted

a quick check:

root@jalla:/mnt # ls
.cshrc COPYRIGHT etc mnt sbin
.profile bin home proc sys
.rnd boot lib rescue tmp
.snap dev libexec restoresymtable usr
.sujournal entropy media root var

looks like it worked. Set bootonce and try to boot it:

root@jalla:~ # gpart set -a bootonce -i 4 ada0
bootonce set on ada0p4

ok. Well, it boots, but always from ada0p2. It doesn't matter if I set currdev=part3 in the loader either. Hmm.

2016-01-09: ada0p2 - one last look at the old ada0 partitioning:

root@kg-vm2# gpart show -p ada0
=>       34  250069613    ada0  GPT  (119G)
         34        128  ada0p1  freebsd-boot  (64k)
        162  119537664  ada0p2  freebsd-ufs  (57G)
  119537826    8388608  ada0p3  freebsd-swap  (4.0G)
  127926434          6          - free -  (3.0k)
  127926440  121634810  ada0p4  freebsd-ufs  (58G)
  249561250     204800  ada0p5  efi  [bootme]  (100M)
  249766050     303597          - free -  (148M)

that's it.

2016-01-09: ada0p2 - backup ada0p4 with dump. mount the backup drive:

root@kg-vm2# mount /dev/da2p1 /mnt

do the dump:

root@kg-vm2# dump -C16 -0af /mnt/backups/ada0p4-10.2-backup.dump.img /dev/ada0p4
  DUMP: Date of this level 0 dump: Sat Jan  9 23:01:46 2016
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/ada0p4 to /mnt/backups/ada0p4-10.2-backup.dump.img
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 7225019 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: DUMP: 7230916 tape blocks on 1 volume
  DUMP: finished in 101 seconds, throughput 71593 KBytes/sec
  DUMP: Closing /mnt/backups/ada0p4-10.2-backup.dump.img
  DUMP: DUMP IS DONE

check size of dumpfiles:

root@kg-vm2# ls -lh /mnt/backups
total 17357408
-rw-r--r--  1 root  wheel   9.7G Jan  9 22:18 ada0p2-9.3-backup.dump.img
-rw-r--r--  1 root  wheel   6.9G Jan  9 23:03 ada0p4-10.2-backup.dump.img

looks good.

2016-01-09: ada0p4 - backup partitions p2 and p4 First make a backup directory:

root@kg-vm2# mkdir /mnt/backups

then proceed to dump ada0p2 (9.3) first since it is unmounted:

root@kg-vm2# dump -C16 -0af /mnt/backups/ada0p2-9.3-backup.dump.img /dev/ada0p2
  DUMP: Date of this level 0 dump: Sat Jan  9 22:15:35 2016
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/ada0p2 to /mnt/backups/ada0p2-9.3-backup.dump.img
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 10115412 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: DUMP: 10122130 tape blocks on 1 volume
  DUMP: finished in 179 seconds, throughput 56548 KBytes/sec
  DUMP: Closing /mnt/backups/ada0p2-9.3-backup.dump.img
  DUMP: DUMP IS DONE

How big is the dumpfile?

root@kg-vm2# ls -lh /mnt/backups
total 10124672
-rw-r--r--  1 root  wheel   9.7G Jan  9 22:18 ada0p2-9.3-backup.dump.img

Wow, less than 10 G. Next dump ada0p4 (live):

root@kg-vm2# dump -C16 -0aLf /mnt/backups/ada0p4-10.2-backup.dump.img /
mksnap_ffs: Cannot create snapshot //.snap/dump_snapshot: /: Snapshots are not yet supported when running with journaled soft updates: Operation not supported
dump: Cannot create //.snap/dump_snapshot: No such file or directory

ok?

root@kg-vm2# dumpfs -m /
# newfs command for / (/dev/ada0p4)
newfs -O 2 -U -a 4 -b 32768 -d 32768 -e 4096 -f 4096 -g 16384 -h 64 -i 8192 -j -k 6408 -m 8 -o time -s 121634808 /dev/ada0p4 

ok, so it was created with soft updates journaling (-j). How about the 9.3 filesystem?

root@kg-vm2# dumpfs -m /dev/ada0p2
# newfs command for /dev/ada0p2 (/dev/ada0p2)
newfs -O 2 -U -a 4 -b 32768 -d 32768 -e 4096 -f 4096 -g 16384 -h 64 -i 16384 -k 0 -m 8 -o time -s 119537664 /dev/ada0p2 

no soft updates journaling. Anyway, let me try to dump ada0p4 when running from ada0p2 then.

2016-01-09: ada0p4 - I m going to rebuild the SSD, in the hope that I can get it to boot from F12 at least. First a backup of p2 and p4 partitions. I connect a new external usb 3.0 drive to one of the usb 3.0 ports on the back of the machine. From /var/log/messages:

Jan  9 17:46:54 kg-vm2 kernel: ugen0.2: <vendor 0x04e8> at usbus0
Jan  9 17:46:54 kg-vm2 kernel: umass2: <vendor 0x04e8 product 0x61b6, class 0/0, rev 3.00/13.06, addr 1> on usbus0
Jan  9 17:46:54 kg-vm2 kernel: umass2:  SCSI over Bulk-Only; quirks = 0x8100
Jan  9 17:46:54 kg-vm2 kernel: umass2:8:2:-1: Attached to scbus8
Jan  9 17:46:59 kg-vm2 kernel: (probe0:umass-sim2:2:0:0): INQUIRY. CDB: 12 00 00 00 24 00 
Jan  9 17:46:59 kg-vm2 kernel: (probe0:umass-sim2:2:0:0): CAM status: CCB request completed with an error
Jan  9 17:46:59 kg-vm2 kernel: (probe0:umass-sim2:2:0:0): Retrying command
Jan  9 17:47:04 kg-vm2 kernel: (probe0:umass-sim2:2:0:0): INQUIRY. CDB: 12 00 00 00 24 00 
Jan  9 17:47:04 kg-vm2 kernel: (probe0:umass-sim2:2:0:0): CAM status: CCB request completed with an error
Jan  9 17:47:04 kg-vm2 kernel: (probe0:umass-sim2:2:0:0): Retrying command
Jan  9 17:47:05 kg-vm2 kernel: da2 at umass-sim2 bus 2 scbus8 target 0 lun 0
Jan  9 17:47:05 kg-vm2 kernel: da2: <Samsung M3 Portable 1306> Fixed Direct Access SPC-4 SCSI device
Jan  9 17:47:05 kg-vm2 kernel: da2: Serial Number DE177DF60A00007F
Jan  9 17:47:05 kg-vm2 kernel: da2: 400.000MB/s transfers
Jan  9 17:47:05 kg-vm2 kernel: da2: 953869MB (1953525168 512 byte sectors)
Jan  9 17:47:05 kg-vm2 kernel: da2: quirks=0x2<NO_6_BYTE>

and usbconfig output:

root@kg-vm2# usbconfig
ugen0.1: <XHCI root HUB 0x1022> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen1.1: <XHCI root HUB 0x1022> at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen2.1: <OHCI root HUB AMD> at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen3.1: <EHCI root HUB AMD> at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen4.1: <OHCI root HUB AMD> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen5.1: <EHCI root HUB AMD> at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen6.1: <OHCI root HUB AMD> at usbus6, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen3.2: <USB2.0-CRW Generic> at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
ugen4.2: <DataTraveler 2.0 Kingston> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
ugen0.2: <product 0x61b6 vendor 0x04e8> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (2mA)

the drive is ugen0.2:

root@kg-vm2# usbconfig -d ugen0.2
ugen0.2: <product 0x61b6 vendor 0x04e8> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (2mA)

it is connected to the correct controller (usbus0) and it has SUPER speed. Great. Check out the drive:

root@kg-vm2# gpart show -p da2
=>        63  1953525105    da2  MBR  (932G)
          63           1         - free -  (512B)
          64  1953520001  da2s1  ntfs  [active]  (932G)
  1953520065        5103         - free -  (2.5M)

Hmm, let me change that. First destroy the existing setup:

root@kg-vm2# gpart destroy da2
gpart: Device busy
root@kg-vm2# gpart delete -i 1 da2
da2s1 deleted
root@kg-vm2# gpart destroy da2
da2 destroyed

then create GPT partitioning:

root@kg-vm2# gpart create -s GPT da2
da2 created

it looks like this:

root@kg-vm2# gpart show -p da2
=>        34  1953525101  da2  GPT  (932G)
          34  1953525101       - free -  (932G)

add a freebsd-ufs partition:

root@kg-vm2# gpart add -t freebsd-ufs da2
da2p1 added

now:

root@kg-vm2# gpart show -p da2
=>        34  1953525101    da2  GPT  (932G)
          34           6         - free -  (3.0K)
          40  1953525088  da2p1  freebsd-ufs  (932G)
  1953525128           7         - free -  (3.5K)

ok. Add a filesystem:

root@kg-vm2# newfs -U /dev/da2p1
/dev/da2p1: 953869.7MB (1953525088 sectors) block size 32768, fragment size 4096
 using 1524 cylinder groups of 626.09MB, 20035 blks, 80256 inodes.
 with soft updates
super-block backups (for fsck_ffs -b #) at:
 192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, 8975872, 10258112, 11540352, 12822592, 14104832,
 15387072, 16669312, 17951552, 19233792, 20516032, 21798272, 23080512, 24362752, 25644992, 26927232,
 28209472, 29491712, 30773952, 32056192, 33338432, 34620672, 35902912, 37185152, 38467392, 39749632,
 41031872, 42314112, 43596352, 44878592, 46160832, 47443072, 48725312, 50007552, 51289792, 52572032,
 53854272, 55136512, 56418752, 57700992, 58983232, 60265472, 61547712, 62829952, 64112192, 65394432,
 66676672, 67958912, 69241152, 70523392, 71805632, 73087872, 74370112, 75652352, 76934592, 78216832,
 79499072, 80781312, 82063552, 83345792, 84628032, 85910272, 87192512, 88474752, 89756992, 91039232,
 92321472, 93603712, 94885952, 96168192, 97450432, 98732672, 100014912, 101297152, 102579392, 103861632,
[...]
 1916948992, 1918231232, 1919513472, 1920795712, 1922077952, 1923360192, 1924642432, 1925924672, 1927206912,
 1928489152, 1929771392, 1931053632, 1932335872, 1933618112, 1934900352, 1936182592, 1937464832, 1938747072,
 1940029312, 1941311552, 1942593792, 1943876032, 1945158272, 1946440512, 1947722752, 1949004992, 1950287232,
 1951569472, 1952851712

ok. Mount it at /mnt:

root@kg-vm2# mount /dev/da2p1 /mnt

how does it look?

root@kg-vm2# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada0p4     56G    7.2G     45G    14%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/da2p1     902G    8.0K    830G     0%    /mnt

830 G space for backups - nice.

2016-01-09: booting from EFI - I took a EFI prepared SSD from another machine and installed in this. Standard boot fails, but it will boot if selected from the boot menu (F12). That's interesting.

root@kg-vm4:~ # uname -a
FreeBSD kg-vm4.kg4.no 10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

drive layout:

root@kg-vm4:~ # gpart show -p
=>       34  468862061    ada0  GPT  (224G)
         34     204800  ada0p1  efi  (100M)
     204834  115343360  ada0p2  freebsd-ufs  (55G)
  115548194    8388608  ada0p3  freebsd-swap  (4.0G)
  123936802  344925293          - free -  (164G)

ok.

2016-01-02: ada0p2 - Xorg - startx fails. From /var/log/Xorg.0.log:

[   336.054] (EE) Failed to load module "radeon" (module does not exist, 0)
[   336.054] (EE) No drivers available.

strange. I have video drivers installed. Ok, user error - I was missing the xf86-video-ati driver. After startx and exit, kldstat shows this:

root@kg-vm2# kldstat
Id Refs Address Size Name
1 34 0xffffffff80200000 162e1a8 kernel
2 1 0xffffffff81a11000 f9c blank_saver.ko
3 1 0xffffffff81a12000 101607 radeonkms_port.ko
4 1 0xffffffff81b14000 1b1f iicbb.ko
5 4 0xffffffff81b16000 1d3f iicbus.ko
6 1 0xffffffff81b18000 1cbc iic.ko
7 1 0xffffffff81b1a000 3d4c9 drm2_port.ko
8 1 0xffffffff81b58000 1920 radeonkmsfw_SUMO_pfp.ko
9 1 0xffffffff81b5a000 1d1e radeonkmsfw_SUMO_me.ko
10 1 0xffffffff81b5c000 139d radeonkmsfw_SUMO_rlc.ko

Now, can I get this fixed in /boot/loader.conf:

root@kg-vm2# more /boot/loader.conf
radeonkmsfw_SUMO_pfp_load="YES"
radeonkmsfw_SUMO_me_load="YES"
radeonkmsfw_SUMO_rlc_load="YES"
radeonkms_load="YES"

Unfortunately, booting with this gives me a black screen on the console. Relevant output from dmesg:

vgapci0: <VGA-compatible display> port 0xf000-0xf0ff mem 0xc0000000-0xcfffffff,0xfef00000-0xfef3ffff irq 18 at device 1.0 on pci0
drmn0: <BeaverCreek [Radeon HD 6530D]> on vgapci0
info: [drm] MSI enabled 1 message(s)
info: [drm] RADEON_IS_PCIE
info: [drm] initializing kernel modesetting (SUMO 0x1002:0x964A 0x1025:0x061D).
info: [drm] register mmio base: 0xFEF00000
info: [drm] register mmio size: 262144
info: [drm] radeon_atrm_get_bios: ===> Try ATRM...
info: [drm] radeon_atrm_get_bios: IGP card detected, skipping this method...
info: [drm] radeon_acpi_vfct_bios: ===> Try VFCT...
info: [drm] radeon_acpi_vfct_bios: Get "VFCT" ACPI table
info: [drm] radeon_acpi_vfct_bios: Failed to get "VFCT" table: AE_NOT_FOUND
info: [drm] igp_read_bios_from_vram: ===> Try IGP's VRAM...
info: [drm] igp_read_bios_from_vram: VRAM base address: 0xc0000000
info: [drm] igp_read_bios_from_vram: Map address: 0xfffffe00c0000000 (262144 bytes)
info: [drm] igp_read_bios_from_vram: Incorrect BIOS signature: 0x450F
info: [drm] radeon_read_bios: ===> Try PCI Expansion ROM...
info: [drm] radeon_read_bios: Map address: 0xfffffe00000c0000 (131072 bytes)
info: [drm] ATOM BIOS: Acer
drmn0: info: VRAM: 512M 0x0000000000000000 - 0x000000001FFFFFFF (512M used)
drmn0: info: GTT: 512M 0x0000000020000000 - 0x000000003FFFFFFF
info: [drm] Detected VRAM RAM=512M, BAR=256M
info: [drm] RAM width 32bits DDR
[TTM] Zone  kernel: Available graphics memory: 8091630 kiB
[TTM] Zone   dma32: Available graphics memory: 2097152 kiB
[TTM] Initializing pool allocator
info: [drm] radeon: 512M of VRAM memory ready
info: [drm] radeon: 512M of GTT memory ready.
info: [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
info: [drm] Driver supports precise vblank timestamp query.
info: [drm] radeon: irq initialized.
info: [drm] GART: num cpu pages 131072, num gpu pages 131072
info: [drm] Loading SUMO Microcode
info: [drm] PCIE GART of 512M enabled (table at 0x0000000000040000).
drmn0: info: WB enabled
drmn0: info: fence driver on ring 0 use gpu addr 0x0000000020000c00 and cpu addr 0x0xfffffe0007537c00
drmn0: info: fence driver on ring 3 use gpu addr 0x0000000020000c0c and cpu addr 0x0xfffffe0007537c0c
info: [drm] ring test on 0 succeeded in 2 usecs
info: [drm] ring test on 3 succeeded in 1 usecs
info: [drm] ib test on ring 0 succeeded in 0 usecs
info: [drm] ib test on ring 3 succeeded in 0 usecs
info: [drm] radeon_device_init: Taking over the fictitious range 0xc0000000-0xd0000000
iicbus0: <Philips I2C bus> on iicbb0 addr 0xff
iic0: <I2C generic I/O> on iicbus0
iicbus1: <Philips I2C bus> on iicbb1 addr 0xff
iic1: <I2C generic I/O> on iicbus1
iicbus2: <Philips I2C bus> on iicbb2 addr 0xff
iic2: <I2C generic I/O> on iicbus2
iicbus3: <Philips I2C bus> on iicbb3 addr 0xff
iic3: <I2C generic I/O> on iicbus3
iicbus4: <Philips I2C bus> on iicbb4 addr 0xff
iic4: <I2C generic I/O> on iicbus4
iicbus5: <Philips I2C bus> on iicbb5 addr 0xff
iic5: <I2C generic I/O> on iicbus5
iicbus6: <Philips I2C bus> on iicbb6 addr 0xff
iic6: <I2C generic I/O> on iicbus6
iicbus7: <Philips I2C bus> on iicbb7 addr 0xff
iic7: <I2C generic I/O> on iicbus7
info: [drm] Radeon Display Connectors
info: [drm] Connector 0:
info: [drm]   VGA-1
info: [drm]   HPD2
info: [drm]   DDC: 0x6440 0x6440 0x6444 0x6444 0x6448 0x6448 0x644c 0x644c
info: [drm]   Encoders:
info: [drm]     CRT1: INTERNAL_UNIPHY2
info: [drm]     CRT1: NUTMEG
info: [drm] Connector 1:
info: [drm]   HDMI-A-1
info: [drm]   HPD1
info: [drm]   DDC: 0x6430 0x6430 0x6434 0x6434 0x6438 0x6438 0x643c 0x643c
info: [drm]   Encoders:
info: [drm]     DFP1: INTERNAL_UNIPHY2
info: [drm] Internal thermal controller without fan control
info: [drm] radeon: power management initialized
info: [drm] fb mappable at 0xC0142000
info: [drm] vram apper at 0xC0000000
info: [drm] size 8294400
info: [drm] fb depth is 24
info: [drm]    pitch is 7680
info: [drm] Initialized radeon 2.29.0 20080528
vgapci0: Boot video device

changing from radeonkms_load to radeonkms_port_load in /boot/loader.conf doesn't help. Neither does adding kern.vty=vt:

root@kg-vm2# more /boot/loader.conf
radeonkmsfw_SUMO_pfp_load="YES"
radeonkmsfw_SUMO_me_load="YES"
radeonkmsfw_SUMO_rlc_load="YES"
radeonkms_port_load="YES"
kern.vty=vt

oh well. Note: the console still works - I can login and 'startx' or 'startxfce4' even if I don't see the commands I type. And the screen works in Xorg. As soon as I exit xorg, the screen is "dead"

2016-01-02: ada0p2 - pkg - I used pkg to install xorg-minimal and a few other packages. I used the same xorg.conf as on -10:

root@kg-vm2# ll /usr/local/etc/X11/xorg.conf
lrwxr-xr-x  1 root  wheel  16 Jan  2 20:26 /usr/local/etc/X11/xorg.conf@ -> xorg.conf_radeon
root@kg-vm2# more /usr/local/etc/X11/xorg.conf_radeon
# hand-crafted xorg.conf file

Section "InputClass"
        Identifier "keyboard defaults"
        MatchIsKeyboard "on"
        Option      "XkbLayout" "no"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "radeon"
EndSection
#---[ e o f ]---

The old files in /etc/X11 are disabled:

root@kg-vm2# ll /etc/X11
total 24
drwxr-xr-x   2 root  wheel   512 Jan  2 20:24 ./
drwxr-xr-x  21 root  wheel  2560 Jan  2 20:21 ../
-rw-r--r--   1 root  wheel  5098 Apr 24  2012 xorg.conf_radeon
-rw-r--r--   1 root  wheel  5096 Apr 24  2012 xorg.conf_vesa

ok.

2016-01-02: ada0p2 - pkg - install pkg:

root@kg-vm2# pkg
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/freebsd:9:x86:64/latest, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
Installing pkg-1.6.2...
Extracting pkg-1.6.2: 100%
Message from pkg-1.6.2:
If you are upgrading from the old package format, first run:

  # pkg2ng
pkg: not enough arguments
Usage: pkg [-v] [-d] [-l] [-N] [-j <jail name or id>|-c <chroot path>|-r <rootdir>] [-C <configuration file>] [-R <repo config dir>] [-o var=value] [-4|-6] <command> [<args>]

For more information on available commands and options see 'pkg help'.

then upgrade:

root@kg-vm2# pkg2ng
[...]
Converting subversion-1.7.4_1...
Installing subversion-1.7.4_1...
Analysing shared libraries, this will take a while...
Checking all packages: 100%

ok. Hmm, all ports are out of date, I'll just use pkg delete -a to remove them all amd then start from scratch.

2016-01-02: ada0p2 - ports - update the ports tree (it's from 2012) via portsnap fetch; portsnap update.

2016-01-02: ada0p2 - a reboot later, and the machine is running latest FreeBSD 9.3-stable. dmesg output: normal, verbose.

root@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.

2016-01-02: ada0p2 - build latest FreeBSD 9.3-stable via "make world":

root@kg-vm2# make -j5 buildworld
[...]
--------------------------------------------------------------
>>> World build completed on Sat Jan  2 18:09:02 CET 2016
--------------------------------------------------------------

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

yes, the rest in multiuser too.

root@kg-vm2# mergemaster -p

*** Creating the temporary root environment in /var/tmp/temproot
 *** /var/tmp/temproot ready for use
 *** Creating and populating directory structure in /var/tmp/temproot



*** Beginning comparison

 *** Temp ./etc/group and installed have the same Id, deleting
 *** Temp ./etc/master.passwd and installed have the same Id, deleting

*** Comparison complete

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

install

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/MEXT_ADD_REF.9.gz? y
remove /usr/share/man/man9/MEXTFREE.9.gz? y
remove /usr/share/man/man9/MEXT_IS_REF.9.gz? y
remove /usr/share/man/man9/MEXT_REM_REF.9.gz? y
remove /usr/share/man/man9/MFREE.9.gz? y
remove /usr/bin/sgsmsg? y
remove /usr/share/man/man9/sleepq_calc_signal_retval.9.gz? y
remove /usr/share/man/man9/sleepq_catch_signals.9.gz? y
>>> Old files removed
>>> Removing old directories
/usr/share/examples/iscsi
/usr/share/examples/netgraph/bluetooth
/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

run mergemaster

root@kg-vm2# mergemaster -iUP

*** Creating the temporary root environment in /var/tmp/temproot
 *** /var/tmp/temproot ready for use
 *** Creating and populating directory structure in /var/tmp/temproot
[...]
*** You chose the automatic install option for files that did not
    exist on your system.  The following were installed for you:
      /etc/devd/zfs.conf
      /etc/periodic/daily/510.status-world-kernel


*** 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/defaults/periodic.conf
      /etc/defaults/rc.conf
      /etc/devd.conf
      /etc/devd/usb.conf
      /etc/inetd.conf
      /etc/mail/freebsd.cf
      /etc/mail/freebsd.mc
      /etc/mail/freebsd.submit.cf
      /etc/mail/freebsd.submit.mc
      /etc/mail/sendmail.cf
      /etc/mail/submit.cf
      /etc/mtree/BSD.include.dist
      /etc/mtree/BSD.usr.dist
      /etc/network.subr
      /etc/ntp.conf
      /etc/pam.d/README
      /etc/periodic/daily/110.clean-tmps
      /etc/periodic/daily/420.status-network
      /etc/portsnap.conf
      /etc/rc.d/devd
      /etc/rc.d/fsck
      /etc/rc.d/jail
      /etc/rc.d/mdconfig
      /etc/rc.d/mdconfig2
      /etc/rc.d/syslogd
      /etc/rc.d/ugidfw
      /etc/rc.subr
      /etc/services
      /etc/ssh/moduli
      /var/named/etc/namedb/named.root


*** You installed a services file, so make sure that you run
    '/usr/sbin/services_mkdb -q -o /var/db/services.db /etc/services'
     to rebuild your services database

    Would you like to run it now? y or n [n] y
    Running /usr/sbin/services_mkdb -q -o /var/db/services.db /etc/services


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

ok.

2016-01-02: ada0p2 - update source via subversion:

root@kg-vm2# cd /usr/src
root@kg-vm2# svn up
[...]
U    rescue/rescue/Makefile
 U   rescue/rescue
 U   rescue
 U   .
Updated to revision 293048.

ok.

2016-01-02: ada0p2 - booted, this is still FreeBSD 9.3-stable:

root@kg-vm2# uname -a
FreeBSD kg-vm2 9.3-STABLE FreeBSD 9.3-STABLE #1 r270626: Tue Aug 26 00:47:59 CEST 2014     root@kg-vm2:/usr/obj/usr/src/sys/GENERIC  amd64

a bit old, time to update it.

2016-01-02: ada0p4 - Xorg - set up a minimal xorg.conf file:

root@kg-vm2# ll /usr/local/etc/X11/xorg.conf
lrwxr-xr-x  1 root  wheel  16 Jan  2 16:33 /usr/local/etc/X11/xorg.conf@ -> xorg.conf_radeon
root@kg-vm2# more /usr/local/etc/X11/xorg.conf_radeon
# hand-crafted xorg.conf file

Section "InputClass"
        Identifier "keyboard defaults"
        MatchIsKeyboard "on"
        Option      "XkbLayout" "no"
EndSection

Section "Device"
        Identifier  "Card0"
        Driver      "radeon"
EndSection
#---[ e o f ]---

only needed to get a "no" keyboard layout. Tested - it works. Info from /var/log/messages:

Jan  2 16:01:45 kg-vm2 kernel: info: [drm] Initialized drm 1.1.0 20060810
Jan  2 16:01:45 kg-vm2 kernel: drmn0: <BeaverCreek [Radeon HD 6530D]> on vgapci0
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] RADEON_IS_PCIE
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] initializing kernel modesetting (SUMO 0x1002:0x964A 0x1025:0x061D).
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] register mmio base: 0xFEF00000
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] register mmio size: 262144
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] radeon_atrm_get_bios: ===> Try ATRM...
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] radeon_atrm_get_bios: IGP card detected, skipping this method...
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] radeon_acpi_vfct_bios: ===> Try VFCT...
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] radeon_acpi_vfct_bios: Get "VFCT" ACPI table
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] radeon_acpi_vfct_bios: Failed to get "VFCT" table: AE_NOT_FOUND
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] igp_read_bios_from_vram: ===> Try IGP's VRAM...
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] igp_read_bios_from_vram: VRAM base address: 0xc0000000
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] igp_read_bios_from_vram: Map address: 0xfffff800c0000000 (262144 bytes)
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] igp_read_bios_from_vram: Incorrect BIOS signature: 0xFFFF
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] radeon_read_bios: ===> Try PCI Expansion ROM...
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] radeon_read_bios: Map address: 0xfffff800000c0000 (131072 bytes)
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] ATOM BIOS: Acer
Jan  2 16:01:45 kg-vm2 kernel: drmn0: info: VRAM: 512M 0x0000000000000000 - 0x000000001FFFFFFF (512M used)
Jan  2 16:01:45 kg-vm2 kernel: drmn0: info: GTT: 512M 0x0000000020000000 - 0x000000003FFFFFFF
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] Detected VRAM RAM=512M, BAR=256M
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] RAM width 32bits DDR
Jan  2 16:01:45 kg-vm2 kernel: [TTM] Zone  kernel: Available graphics memory: 8092014 kiB
Jan  2 16:01:45 kg-vm2 kernel: [TTM] Zone   dma32: Available graphics memory: 2097152 kiB
Jan  2 16:01:45 kg-vm2 kernel: [TTM] Initializing pool allocator
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] radeon: 512M of VRAM memory ready
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] radeon: 512M of GTT memory ready.
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] Driver supports precise vblank timestamp query.
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] MSI enabled 1 message(s)
Jan  2 16:01:45 kg-vm2 kernel: drmn0: info: radeon: using MSI.
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] radeon: irq initialized.
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] GART: num cpu pages 131072, num gpu pages 131072
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] Loading SUMO Microcode
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] PCIE GART of 512M enabled (table at 0x0000000000040000).
Jan  2 16:01:45 kg-vm2 kernel: drmn0: info: WB enabled
Jan  2 16:01:45 kg-vm2 kernel: drmn0: info: fence driver on ring 0 use gpu addr 0x0000000020000c00 and cpu addr 0x0xfffff8000f900c00
Jan  2 16:01:45 kg-vm2 kernel: drmn0: info: fence driver on ring 3 use gpu addr 0x0000000020000c0c and cpu addr 0x0xfffff8000f900c0c
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] ring test on 0 succeeded in 1 usecs
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] ring test on 3 succeeded in 1 usecs
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] ib test on ring 0 succeeded in 0 usecs
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] ib test on ring 3 succeeded in 0 usecs
Jan  2 16:01:45 kg-vm2 kernel: info: [drm] radeon_device_init: Taking over the fictitious range 0xc0000000-0xd0000000
Jan  2 16:01:45 kg-vm2 kernel: iicbus0: <Philips I2C bus> on iicbb0 addr 0xff
Jan  2 16:01:45 kg-vm2 kernel: iic0: <I2C generic I/O> on iicbus0
Jan  2 16:01:45 kg-vm2 kernel: iicbus1: <Philips I2C bus> on iicbb1 addr 0x0
Jan  2 16:01:45 kg-vm2 kernel: iic1: <I2C generic I/O> on iicbus1
Jan  2 16:01:45 kg-vm2 kernel: iicbus2: <Philips I2C bus> on iicbb2 addr 0x0
Jan  2 16:01:45 kg-vm2 kernel: iic2: <I2C generic I/O> on iicbus2
Jan  2 16:01:45 kg-vm2 kernel: iicbus3: <Philips I2C bus> on iicbb3 addr 0x0
Jan  2 16:01:45 kg-vm2 kernel: iic3: <I2C generic I/O> on iicbus3
Jan  2 16:01:46 kg-vm2 kernel: iicbus4: <Philips I2C bus> on iicbb4 addr 0x0
Jan  2 16:01:46 kg-vm2 kernel: iic4: <I2C generic I/O> on iicbus4
Jan  2 16:01:46 kg-vm2 kernel: iicbus5: <Philips I2C bus> on iicbb5 addr 0x0
Jan  2 16:01:46 kg-vm2 kernel: iic5: <I2C generic I/O> on iicbus5
Jan  2 16:01:46 kg-vm2 kernel: iicbus6: <Philips I2C bus> on iicbb6 addr 0x0
Jan  2 16:01:46 kg-vm2 kernel: iic6: <I2C generic I/O> on iicbus6
Jan  2 16:01:46 kg-vm2 kernel: iicbus7: <Philips I2C bus> on iicbb7 addr 0x0
Jan  2 16:01:46 kg-vm2 kernel: iic7: <I2C generic I/O> on iicbus7
Jan  2 16:01:46 kg-vm2 kernel: info: [drm] Radeon Display Connectors
Jan  2 16:01:46 kg-vm2 kernel: info: [drm] Connector 0:
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]   VGA-1
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]   HPD2
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]   DDC: 0x6440 0x6440 0x6444 0x6444 0x6448 0x6448 0x644c 0x644c
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]   Encoders:
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]     CRT1: INTERNAL_UNIPHY2
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]     CRT1: NUTMEG
Jan  2 16:01:46 kg-vm2 kernel: info: [drm] Connector 1:
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]   HDMI-A-1
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]   HPD1
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]   DDC: 0x6430 0x6430 0x6434 0x6434 0x6438 0x6438 0x643c 0x643c
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]   Encoders:
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]     DFP1: INTERNAL_UNIPHY2
Jan  2 16:01:46 kg-vm2 kernel: info: [drm] Internal thermal controller without fan control
Jan  2 16:01:46 kg-vm2 kernel: info: [drm] radeon: power management initialized
Jan  2 16:01:46 kg-vm2 kernel: info: [drm] Connector VGA-1: get mode from tunables:
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]   - kern.vt.fb.modes.VGA-1
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]   - kern.vt.fb.default_mode
Jan  2 16:01:46 kg-vm2 kernel: info: [drm] Connector HDMI-A-1: get mode from tunables:
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]   - kern.vt.fb.modes.HDMI-A-1
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]   - kern.vt.fb.default_mode
Jan  2 16:01:46 kg-vm2 kernel: info: [drm] fb mappable at 0xC0142000
Jan  2 16:01:46 kg-vm2 kernel: info: [drm] vram apper at 0xC0000000
Jan  2 16:01:46 kg-vm2 kernel: info: [drm] size 8294400
Jan  2 16:01:46 kg-vm2 kernel: info: [drm] fb depth is 24
Jan  2 16:01:46 kg-vm2 kernel: info: [drm]    pitch is 7680
Jan  2 16:01:46 kg-vm2 kernel: fbd0 on drmn0
Jan  2 16:01:46 kg-vm2 kernel: VT: Replacing driver "vga" with new "fb".
Jan  2 16:01:46 kg-vm2 kernel: info: [drm] Initialized radeon 2.29.0 20080528 for drmn0 on minor 0

ok.

2016-01-02: loader - updated instructions: escape to loader prompt, then

set currdev=disk1p4 (or disk1p2)
read-conf /boot/loader.conf
boot-conf

this way, you get the contents of loader.conf processed, too.

2016-01-02: ada0p4 - Xorg - after fixing kern.module_path, startx works, and Xorg starts. But when I exit it, the console is black. I need to switch to vt console.

root@kg-vm2# more /boot/loader.conf
kern.vty="vt"

and a reboot.

2016-01-02: ada0p4 - strange, kern.module_path is

root@kg-vm2# sysctl kern.module_path
kern.module_path: /boot/modules

as opposed to the usual

tingo@kg-core1$ sysctl kern.module_path
kern.module_path: /boot/kernel;/boot/modules

(on my workstation) Anyway, can I change it?

root@kg-vm2# sysctl kern.module_path=/boot/kernel;/boot/modules
kern.module_path: /boot/modules -> /boot/kernel
/boot/modules: Permission denied

yes, but I need to escape the semicolon:

root@kg-vm2# sysctl kern.module_path=/boot/kernel\;/boot/modules
kern.module_path: /boot/kernel -> /boot/kernel;/boot/modules

good.

2016-01-02: ada0p4 - pkg - install xorg-minimal

root@kg-vm2# pkg install xorg-minimal
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
Updating database digests format: 100%
The following 71 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    xorg-minimal: 7.5.2_1
    xinit: 1.3.4,1
    libX11: 1.6.3,1
    xproto: 7.0.28
    libXdmcp: 1.1.2
    libxcb: 1.11.1
    libxml2: 2.9.3
    libpthread-stubs: 0.3_6
    libXau: 1.0.8_3
    kbproto: 1.0.7
    xauth: 1.0.9_1
    libXmu: 1.1.2_3,1
    libXt: 1.1.5,1
    libSM: 1.2.2_3,1
    libICE: 1.0.9_1,1
    libXext: 1.3.3_1,1
    xextproto: 7.3.0
    xf86-input-mouse: 1.9.1_1
    xorg-server: 1.17.4,1
    font-util: 1.3.1
    libepoxy: 1.3.1
    libglesv2: 11.0.8
    libXfixes: 5.0.1_3
    fixesproto: 5.0
    expat: 2.1.0_3
    libXdamage: 1.1.4_3
    damageproto: 1.2.1
    libglapi: 11.0.8
    libdevq: 0.0.2_1
    libxshmfence: 1.2
    libXvMC: 1.0.9
    libXv: 1.0.10_3,1
    videoproto: 2.3.2
    libdrm: 2.4.65_1,1
    libpciaccess: 0.13.4
    pciids: 20151224
    libEGL: 11.0.8
    gbm: 11.0.8
    llvm36: 3.6.2_2
    python27: 2.7.11
    libffi: 3.2.1
    indexinfo: 0.2.4
    gettext-runtime: 0.19.6
    perl5: 5.20.3_8
    libedit: 3.1.20150325_1
    libXfont: 1.5.1,2
    fontsproto: 2.1.3,1
    freetype2: 2.6.2
    libfontenc: 1.1.3
    libXxf86misc: 1.0.3_3
    xf86miscproto: 0.9.3
    libXinerama: 1.1.3_3,1
    xineramaproto: 1.2.1
    libXxf86vm: 1.1.4_1
    xf86vidmodeproto: 2.3.1
    pixman: 0.32.8
    xkbcomp: 1.3.1
    libxkbfile: 1.0.9
    dri: 11.0.8,2
    libXaw: 1.0.13,2
    libXpm: 3.5.11_4
    printproto: 1.0.5
    libXp: 1.0.3,1
    libGL: 11.0.8
    dri2proto: 2.8
    xkeyboard-config: 2.16
    libxkbui: 1.0.2_4
    libXi: 1.7.6,1
    inputproto: 2.3.1
    xf86-video-vesa: 2.3.4
    xf86-input-keyboard: 1.8.1

The process will require 295 MiB more space.
55 MiB to be downloaded.

Proceed with this action? [y/N]: y
Fetching xorg-minimal-7.5.2_1.txz: 100%    572 B   0.6kB/s    00:01   
Fetching xinit-1.3.4,1.txz: 100%   14 KiB  14.5kB/s    00:01   
Fetching libX11-1.6.3,1.txz: 100%    2 MiB   1.7MB/s    00:01   
Fetching xproto-7.0.28.txz: 100%   58 KiB  59.7kB/s    00:01   
Fetching libXdmcp-1.1.2.txz: 100%   14 KiB  14.1kB/s    00:01   
Fetching libxcb-1.11.1.txz: 100%  970 KiB 993.6kB/s    00:01   
Fetching libxml2-2.9.3.txz: 100%  788 KiB 807.3kB/s    00:01   
Fetching libpthread-stubs-0.3_6.txz: 100%    3 KiB   2.9kB/s    00:01   
Fetching libXau-1.0.8_3.txz: 100%   11 KiB  11.3kB/s    00:01   
Fetching kbproto-1.0.7.txz: 100%  122 KiB 125.1kB/s    00:01   
Fetching xauth-1.0.9_1.txz: 100%   20 KiB  20.5kB/s    00:01   
Fetching libXmu-1.1.2_3,1.txz: 100%   95 KiB  97.0kB/s    00:01   
Fetching libXt-1.1.5,1.txz: 100%  450 KiB 460.7kB/s    00:01   
Fetching libSM-1.2.2_3,1.txz: 100%   22 KiB  22.8kB/s    00:01   
Fetching libICE-1.0.9_1,1.txz: 100%   90 KiB  92.4kB/s    00:01   
Fetching libXext-1.3.3_1,1.txz: 100%   90 KiB  92.6kB/s    00:01   
Fetching xextproto-7.3.0.txz: 100%   21 KiB  21.9kB/s    00:01   
Fetching xf86-input-mouse-1.9.1_1.txz: 100%   31 KiB  31.3kB/s    00:01   
Fetching xorg-server-1.17.4,1.txz: 100%    1 MiB   1.5MB/s    00:01   
Fetching font-util-1.3.1.txz: 100%   26 KiB  27.1kB/s    00:01   
Fetching libepoxy-1.3.1.txz: 100%  256 KiB 261.9kB/s    00:01   
Fetching libglesv2-11.0.8.txz: 100%   40 KiB  41.4kB/s    00:01   
Fetching libXfixes-5.0.1_3.txz: 100%   14 KiB  14.2kB/s    00:01   
Fetching fixesproto-5.0.txz: 100%   10 KiB  10.2kB/s    00:01   
Fetching expat-2.1.0_3.txz: 100%   98 KiB  99.9kB/s    00:01   
Fetching libXdamage-1.1.4_3.txz: 100%    6 KiB   6.6kB/s    00:01   
Fetching damageproto-1.2.1.txz: 100%    5 KiB   5.2kB/s    00:01   
Fetching libglapi-11.0.8.txz: 100%   48 KiB  49.0kB/s    00:01   
Fetching libdevq-0.0.2_1.txz: 100%    5 KiB   5.6kB/s    00:01   
Fetching libxshmfence-1.2.txz: 100%    5 KiB   5.5kB/s    00:01   
Fetching libXvMC-1.0.9.txz: 100%   25 KiB  25.5kB/s    00:01   
Fetching libXv-1.0.10_3,1.txz: 100%   35 KiB  36.3kB/s    00:01   
Fetching videoproto-2.3.2.txz: 100%    7 KiB   6.9kB/s    00:01   
Fetching libdrm-2.4.65_1,1.txz: 100%  178 KiB 182.5kB/s    00:01   
Fetching libpciaccess-0.13.4.txz: 100%   20 KiB  20.9kB/s    00:01   
Fetching pciids-20151224.txz: 100%  191 KiB 196.0kB/s    00:01   
Fetching libEGL-11.0.8.txz: 100%   52 KiB  53.3kB/s    00:01   
Fetching gbm-11.0.8.txz: 100%   12 KiB  12.1kB/s    00:01   
Fetching llvm36-3.6.2_2.txz: 100%   19 MiB   4.1MB/s    00:05   
Fetching python27-2.7.11.txz: 100%   10 MiB   2.7MB/s    00:04   
Fetching libffi-3.2.1.txz: 100%   35 KiB  36.2kB/s    00:01   
Fetching indexinfo-0.2.4.txz: 100%    5 KiB   5.0kB/s    00:01   
Fetching gettext-runtime-0.19.6.txz: 100%  147 KiB 150.6kB/s    00:01   
Fetching perl5-5.20.3_8.txz: 100%   13 MiB   2.0MB/s    00:07   
Fetching libedit-3.1.20150325_1.txz: 100%  121 KiB 123.6kB/s    00:01   
Fetching libXfont-1.5.1,2.txz: 100%  148 KiB 151.3kB/s    00:01   
Fetching fontsproto-2.1.3,1.txz: 100%   35 KiB  35.6kB/s    00:01   
Fetching freetype2-2.6.2.txz: 100%  476 KiB 487.6kB/s    00:01   
Fetching libfontenc-1.1.3.txz: 100%   18 KiB  17.9kB/s    00:01   
Fetching libXxf86misc-1.0.3_3.txz: 100%   10 KiB  10.0kB/s    00:01   
Fetching xf86miscproto-0.9.3.txz: 100%    3 KiB   2.8kB/s    00:01   
Fetching libXinerama-1.1.3_3,1.txz: 100%    9 KiB   9.7kB/s    00:01   
Fetching xineramaproto-1.2.1.txz: 100%    2 KiB   2.2kB/s    00:01   
Fetching libXxf86vm-1.1.4_1.txz: 100%   16 KiB  16.8kB/s    00:01   
Fetching xf86vidmodeproto-2.3.1.txz: 100%    3 KiB   3.5kB/s    00:01   
Fetching pixman-0.32.8.txz: 100%  259 KiB 265.3kB/s    00:01   
Fetching xkbcomp-1.3.1.txz: 100%   76 KiB  77.8kB/s    00:01   
Fetching libxkbfile-1.0.9.txz: 100%  102 KiB 104.1kB/s    00:01   
Fetching dri-11.0.8,2.txz: 100%    3 MiB   1.6MB/s    00:02   
Fetching libXaw-1.0.13,2.txz: 100%  447 KiB 458.1kB/s    00:01   
Fetching libXpm-3.5.11_4.txz: 100%   68 KiB  70.1kB/s    00:01   
Fetching printproto-1.0.5.txz: 100%   14 KiB  14.2kB/s    00:01   
Fetching libXp-1.0.3,1.txz: 100%   83 KiB  84.9kB/s    00:01   
Fetching libGL-11.0.8.txz: 100%  239 KiB 245.0kB/s    00:01   
Fetching dri2proto-2.8.txz: 100%    9 KiB   9.0kB/s    00:01   
Fetching xkeyboard-config-2.16.txz: 100%  599 KiB 613.4kB/s    00:01   
Fetching libxkbui-1.0.2_4.txz: 100%   10 KiB   9.9kB/s    00:01   
Fetching libXi-1.7.6,1.txz: 100%  117 KiB 119.9kB/s    00:01   
Fetching inputproto-2.3.1.txz: 100%   14 KiB  14.8kB/s    00:01   
Fetching xf86-video-vesa-2.3.4.txz: 100%   12 KiB  11.9kB/s    00:01   
Fetching xf86-input-keyboard-1.8.1.txz: 100%    9 KiB   9.2kB/s    00:01   
Checking integrity... done (0 conflicting)
[1/71] Installing xproto-7.0.28...
[1/71] Extracting xproto-7.0.28: 100%
[2/71] Installing libXdmcp-1.1.2...
[2/71] Extracting libXdmcp-1.1.2: 100%
[3/71] Installing libxml2-2.9.3...
[3/71] Extracting libxml2-2.9.3: 100%
[4/71] Installing libpthread-stubs-0.3_6...
[4/71] Extracting libpthread-stubs-0.3_6: 100%
[5/71] Installing libXau-1.0.8_3...
[5/71] Extracting libXau-1.0.8_3: 100%
[6/71] Installing libxcb-1.11.1...
[6/71] Extracting libxcb-1.11.1: 100%
[7/71] Installing kbproto-1.0.7...
[7/71] Extracting kbproto-1.0.7: 100%
[8/71] Installing libX11-1.6.3,1...
[8/71] Extracting libX11-1.6.3,1: 100%
[9/71] Installing xextproto-7.3.0...
[9/71] Extracting xextproto-7.3.0: 100%
[10/71] Installing libXext-1.3.3_1,1...
[10/71] Extracting libXext-1.3.3_1,1: 100%
[11/71] Installing fixesproto-5.0...
[11/71] Extracting fixesproto-5.0: 100%
[12/71] Installing videoproto-2.3.2...
[12/71] Extracting videoproto-2.3.2: 100%
[13/71] Installing pciids-20151224...
[13/71] Extracting pciids-20151224: 100%
[14/71] Installing libXfixes-5.0.1_3...
[14/71] Extracting libXfixes-5.0.1_3: 100%
[15/71] Installing damageproto-1.2.1...
[15/71] Extracting damageproto-1.2.1: 100%
[16/71] Installing libXv-1.0.10_3,1...
[16/71] Extracting libXv-1.0.10_3,1: 100%
[17/71] Installing libpciaccess-0.13.4...
[17/71] Extracting libpciaccess-0.13.4: 100%
[18/71] Installing indexinfo-0.2.4...
[18/71] Extracting indexinfo-0.2.4: 100%
[19/71] Installing libICE-1.0.9_1,1...
[19/71] Extracting libICE-1.0.9_1,1: 100%
[20/71] Installing expat-2.1.0_3...
[20/71] Extracting expat-2.1.0_3: 100%
[21/71] Installing libXdamage-1.1.4_3...
[21/71] Extracting libXdamage-1.1.4_3: 100%
[22/71] Installing libdevq-0.0.2_1...
[22/71] Extracting libdevq-0.0.2_1: 100%
[23/71] Installing libxshmfence-1.2...
[23/71] Extracting libxshmfence-1.2: 100%
[24/71] Installing libXvMC-1.0.9...
[24/71] Extracting libXvMC-1.0.9: 100%
[25/71] Installing libdrm-2.4.65_1,1...
[25/71] Extracting libdrm-2.4.65_1,1: 100%
[26/71] Installing libffi-3.2.1...
[26/71] Extracting libffi-3.2.1: 100%
[27/71] Installing gettext-runtime-0.19.6...
[27/71] Extracting gettext-runtime-0.19.6: 100%
[28/71] Installing libSM-1.2.2_3,1...
[28/71] Extracting libSM-1.2.2_3,1: 100%
[29/71] Installing libglapi-11.0.8...
[29/71] Extracting libglapi-11.0.8: 100%
[30/71] Installing python27-2.7.11...
[30/71] Extracting python27-2.7.11: 100%
[31/71] Installing perl5-5.20.3_8...
[31/71] Extracting perl5-5.20.3_8: 100%
[32/71] Installing libedit-3.1.20150325_1...
[32/71] Extracting libedit-3.1.20150325_1: 100%
[33/71] Installing libXt-1.1.5,1...
[33/71] Extracting libXt-1.1.5,1: 100%
[34/71] Installing gbm-11.0.8...
[34/71] Extracting gbm-11.0.8: 100%
[35/71] Installing llvm36-3.6.2_2...
[35/71] Extracting llvm36-3.6.2_2: 100%
[36/71] Installing xf86vidmodeproto-2.3.1...
[36/71] Extracting xf86vidmodeproto-2.3.1: 100%
[37/71] Installing printproto-1.0.5...
[37/71] Extracting printproto-1.0.5: 100%
[38/71] Installing libXmu-1.1.2_3,1...
[38/71] Extracting libXmu-1.1.2_3,1: 100%
[39/71] Installing libglesv2-11.0.8...
[39/71] Extracting libglesv2-11.0.8: 100%
[40/71] Installing libEGL-11.0.8...
[40/71] Extracting libEGL-11.0.8: 100%
[41/71] Installing fontsproto-2.1.3,1...
[41/71] Extracting fontsproto-2.1.3,1: 100%
[42/71] Installing freetype2-2.6.2...
[42/71] Extracting freetype2-2.6.2: 100%
[43/71] Installing libfontenc-1.1.3...
[43/71] Extracting libfontenc-1.1.3: 100%
[44/71] Installing xf86miscproto-0.9.3...
[44/71] Extracting xf86miscproto-0.9.3: 100%
[45/71] Installing xineramaproto-1.2.1...
[45/71] Extracting xineramaproto-1.2.1: 100%
[46/71] Installing libXxf86vm-1.1.4_1...
[46/71] Extracting libXxf86vm-1.1.4_1: 100%
[47/71] Installing libxkbfile-1.0.9...
[47/71] Extracting libxkbfile-1.0.9: 100%
[48/71] Installing libXpm-3.5.11_4...
[48/71] Extracting libXpm-3.5.11_4: 100%
[49/71] Installing libXp-1.0.3,1...
[49/71] Extracting libXp-1.0.3,1: 100%
[50/71] Installing dri2proto-2.8...
[50/71] Extracting dri2proto-2.8: 100%
[51/71] Installing font-util-1.3.1...
[51/71] Extracting font-util-1.3.1: 100%
[52/71] Installing libepoxy-1.3.1...
[52/71] Extracting libepoxy-1.3.1: 100%
[53/71] Installing libXfont-1.5.1,2...
[53/71] Extracting libXfont-1.5.1,2: 100%
[54/71] Installing libXxf86misc-1.0.3_3...
[54/71] Extracting libXxf86misc-1.0.3_3: 100%
[55/71] Installing libXinerama-1.1.3_3,1...
[55/71] Extracting libXinerama-1.1.3_3,1: 100%
[56/71] Installing pixman-0.32.8...
[56/71] Extracting pixman-0.32.8: 100%
[57/71] Installing xkbcomp-1.3.1...
[57/71] Extracting xkbcomp-1.3.1: 100%
[58/71] Installing dri-11.0.8,2...
[58/71] Extracting dri-11.0.8,2: 100%
[59/71] Installing libXaw-1.0.13,2...
[59/71] Extracting libXaw-1.0.13,2: 100%
[60/71] Installing libGL-11.0.8...
[60/71] Extracting libGL-11.0.8: 100%
[61/71] Installing xkeyboard-config-2.16...
[61/71] Extracting xkeyboard-config-2.16: 100%
[62/71] Installing libxkbui-1.0.2_4...
[62/71] Extracting libxkbui-1.0.2_4: 100%
[63/71] Installing inputproto-2.3.1...
[63/71] Extracting inputproto-2.3.1: 100%
[64/71] Installing xorg-server-1.17.4,1...
[64/71] Extracting xorg-server-1.17.4,1: 100%
[65/71] Installing libXi-1.7.6,1...
[65/71] Extracting libXi-1.7.6,1: 100%
[66/71] Installing xinit-1.3.4,1...
[66/71] Extracting xinit-1.3.4,1: 100%
[67/71] Installing xauth-1.0.9_1...
[67/71] Extracting xauth-1.0.9_1: 100%
[68/71] Installing xf86-input-mouse-1.9.1_1...
[68/71] Extracting xf86-input-mouse-1.9.1_1: 100%
[69/71] Installing xf86-video-vesa-2.3.4...
[69/71] Extracting xf86-video-vesa-2.3.4: 100%
[70/71] Installing xf86-input-keyboard-1.8.1...
[70/71] Extracting xf86-input-keyboard-1.8.1: 100%
[71/71] Installing xorg-minimal-7.5.2_1...
Message from python27-2.7.11:
===========================================================================

Note that some standard Python modules are provided as separate ports
as they require additional dependencies. They are available as:

bsddb           databases/py-bsddb
gdbm            databases/py-gdbm
sqlite3         databases/py-sqlite3
tkinter         x11-toolkits/py-tkinter

===========================================================================
Message from perl5-5.20.3_8:
The /usr/bin/perl symlink has been removed starting with Perl 5.20.
For shebangs, you should either use:

#!/usr/local/bin/perl

or

#!/usr/bin/env perl

The first one will only work if you have a /usr/local/bin/perl,
the second will work as long as perl is in PATH.
and a few others too:
root@kg-vm2# pkg install -y xf86-video-ati
Updating FreeBSD repository catalogue...
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:
    xf86-video-ati: 7.5.0_3

The process will require 424 KiB more space.
98 KiB to be downloaded.
Fetching xf86-video-ati-7.5.0_3.txz: 100%   98 KiB 100.0kB/s    00:01   
Checking integrity... done (0 conflicting)
[1/1] Installing xf86-video-ati-7.5.0_3...
[1/1] Extracting xf86-video-ati-7.5.0_3: 100%
root@kg-vm2# pkg install -y twm xclock xterm
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 7 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    twm: 1.0.9
    xclock: 1.0.7_1
    xterm: 321
    libXrender: 0.9.9
    renderproto: 0.11.1
    libXft: 2.3.2_1
    fontconfig: 2.11.1_1,1

The process will require 2 MiB more space.
773 KiB to be downloaded.
Fetching twm-1.0.9.txz: 100%   85 KiB  86.8kB/s    00:01   
Fetching xclock-1.0.7_1.txz: 100%   23 KiB  23.7kB/s    00:01   
Fetching xterm-321.txz: 100%  280 KiB 287.0kB/s    00:01   
Fetching libXrender-0.9.9.txz: 100%   26 KiB  26.6kB/s    00:01   
Fetching renderproto-0.11.1.txz: 100%   15 KiB  15.4kB/s    00:01   
Fetching libXft-2.3.2_1.txz: 100%   57 KiB  58.4kB/s    00:01   
Fetching fontconfig-2.11.1_1,1.txz: 100%  287 KiB 294.0kB/s    00:01   
Checking integrity... done (0 conflicting)
[1/7] Installing renderproto-0.11.1...
[1/7] Extracting renderproto-0.11.1: 100%
[2/7] Installing libXrender-0.9.9...
[2/7] Extracting libXrender-0.9.9: 100%
[3/7] Installing fontconfig-2.11.1_1,1...
[3/7] Extracting fontconfig-2.11.1_1,1: 100%
Running fc-cache to build fontconfig cache...
/usr/local/share/fonts: caching, new cache contents: 0 fonts, 1 dirs
/usr/local/share/fonts/util: caching, new cache contents: 0 fonts, 0 dirs
/usr/local/lib/X11/fonts: skipping, no such directory
/root/.local/share/fonts: skipping, no such directory
/root/.fonts: skipping, no such directory
Re-scanning /usr/local/share/fonts: caching, new cache contents: 0 fonts, 1 dirs
/var/db/fontconfig: cleaning cache directory
/root/.cache/fontconfig: not cleaning non-existent cache directory
/root/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
[4/7] Installing libXft-2.3.2_1...
[4/7] Extracting libXft-2.3.2_1: 100%
[5/7] Installing twm-1.0.9...
[5/7] Extracting twm-1.0.9: 100%
[6/7] Installing xclock-1.0.7_1...
[6/7] Extracting xclock-1.0.7_1: 100%
[7/7] Installing xterm-321...
[7/7] Extracting xterm-321: 100%
Message from xterm-321:
================================================================================
You installed xterm with wide chars support. This introduces some limitations
comparing to the plain single chars version: this version of xterm will use
UTF-8 charset for selection buffers, breaking 8-bit copy/paste support unless
you are using UTF-8 or ISO8859-1 locale. If you want 8-bit charset selections to
work as before, use "eightBitSelectTypes" XTerm resource setting.

For further information refer to the SELECT/PASTE section of xterm(1) manual
page.
================================================================================

Ok, now test Xorg.

2016-01-02: ada0p4 - pkg - install pkg on machine:

root@kg-vm2# pkg search xorg-minmal
The package management tool is not yet installed on your system.
Do you want to fetch and install it now? [y/N]: y
Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest, please wait...
Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done
Installing pkg-1.6.2...
Extracting pkg-1.6.2: 100%
Message from pkg-1.6.2:
If you are upgrading from the old package format, first run:

  # pkg2ng
pkg: Repository FreeBSD missing. 'pkg update' required

ok, do it

root@kg-vm2# pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.

re-run search

root@kg-vm2# pkg search xorg-minmal
root@kg-vm2# pkg search xorg-minimal
xorg-minimal-7.5.2_1           X.Org minimal distribution metaport

(not having spelling errors helps)

2016-01-02: ada0p4 - after a reboot, the machine now runs latest FreeBSD 10.2-stable. dmesg output: normal, verbose.

tingo@kg-vm2$ freebsd-version -ku
10.2-STABLE
10.2-STABLE
tingo@kg-vm2$ uname -a
FreeBSD kg-vm2.kg4.no 10.2-STABLE FreeBSD 10.2-STABLE #0 r293047: Sat Jan  2 10:11:26 CET 2016     root@kg-vm2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

ok.

2016-01-02: ada0p4 - build latest FreeBSD 10.2-stable via "make world":

root@kg-vm2# cd /usr/src
root@kg-vm2# make -j5 buildworld
[...]
--- buildworld_epilogue ---
--------------------------------------------------------------
>>> World build completed on Sat Jan  2 09:50:42 CET 2016
--------------------------------------------------------------

kernel

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

I run the rest of the steps multiuser too.

root@kg-vm2# mergemaster -p

*** Creating the temporary root environment in /var/tmp/temproot
 *** /var/tmp/temproot ready for use
 *** Creating and populating directory structure in /var/tmp/temproot



*** Beginning comparison
[...]
*** Comparison complete

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

install

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/include/lzma/lzma.h? y
remove /usr/share/man/man9/MEXT_ADD_REF.9.gz? y
remove /usr/share/man/man9/MEXTFREE.9.gz? y
remove /usr/share/man/man9/MEXT_IS_REF.9.gz? y
remove /usr/share/man/man9/MEXT_REM_REF.9.gz? y
remove /usr/share/man/man9/MFREE.9.gz? y
remove /usr/bin/sgsmsg? y
>>> Old files removed
>>> Removing old directories
/usr/share/examples/netgraph/bluetooth
/usr/share/examples/iscsi
/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
*** Creating the temporary root environment in /var/tmp/temproot
 *** /var/tmp/temproot ready for use
 *** Creating and populating directory structure in /var/tmp/temproot



*** Beginning comparison
[...]
*** You chose the automatic upgrade option for files that you did
    not alter on your system.  The following were upgraded for you:
      /.cshrc
      /COPYRIGHT
      /boot/device.hints
      /etc/amd.map
      /etc/apmd.conf
      /etc/auto_master
      /etc/autofs/include_ldap
      /etc/autofs/special_hosts
      /etc/autofs/special_media
      /etc/autofs/special_noauto
      /etc/autofs/special_null
      /etc/bluetooth/hcsecd.conf
      /etc/bluetooth/hosts
      /etc/bluetooth/protocols
      /etc/crontab
      /etc/csh.cshrc
      /etc/csh.login
      /etc/csh.logout
      /etc/ddb.conf
      /etc/defaults/bluetooth.device.conf
      /etc/defaults/devfs.rules
      /etc/defaults/periodic.conf
      /etc/defaults/rc.conf
      /etc/devd.conf
      /etc/devd/asus.conf
      /etc/devd/hyperv.conf
      /etc/devd/uath.conf
      /etc/devd/usb.conf
      /etc/devd/zfs.conf
      /etc/devfs.conf
      /etc/disktab
      /etc/fbtab
      /etc/freebsd-update.conf
      /etc/ftpusers
      /etc/gettytab
      /etc/gss/mech
      /etc/gss/qop
      /etc/hosts
      /etc/hosts.allow
      /etc/hosts.equiv
      /etc/hosts.lpd
      /etc/inetd.conf
      /etc/libalias.conf
      /etc/libmap.conf
      /etc/libmap32.conf
      /etc/locate.rc
      /etc/login.access
      /etc/login.conf
      /etc/mac.conf
      /etc/mail/Makefile
      /etc/mail/README
      /etc/mail/access.sample
      /etc/mail/aliases
      /etc/mail/freebsd.mc
      /etc/mail/freebsd.submit.mc
      /etc/mail/mailer.conf
      /etc/mail/mailertable.sample
      /etc/mail/virtusertable.sample
      /etc/mtree/BSD.include.dist
      /etc/mtree/BSD.root.dist
      /etc/mtree/BSD.sendmail.dist
      /etc/mtree/BSD.usr.dist
      /etc/mtree/BSD.var.dist
      /etc/netconfig
      /etc/netstart
      /etc/network.subr
      /etc/networks
      /etc/newsyslog.conf
      /etc/nscd.conf
      /etc/nsmb.conf
      /etc/nsswitch.conf
      /etc/ntp.conf
      /etc/opieaccess
      /etc/pam.d/README
      /etc/pam.d/atrun
      /etc/pam.d/cron
      /etc/pam.d/ftp
      /etc/pam.d/ftpd
      /etc/pam.d/imap
      /etc/pam.d/login
      /etc/pam.d/other
      /etc/pam.d/passwd
      /etc/pam.d/pop3
      /etc/pam.d/rsh
      /etc/pam.d/sshd
      /etc/pam.d/su
      /etc/pam.d/system
      /etc/pam.d/telnetd
      /etc/pam.d/xdm
      /etc/pccard_ether
      /etc/periodic/daily/100.clean-disks
      /etc/periodic/daily/110.clean-tmps
      /etc/periodic/daily/120.clean-preserve
      /etc/periodic/daily/130.clean-msgs
      /etc/periodic/daily/140.clean-rwho
      /etc/periodic/daily/150.clean-hoststat
      /etc/periodic/daily/200.backup-passwd
      /etc/periodic/daily/210.backup-aliases
      /etc/periodic/daily/300.calendar
      /etc/periodic/daily/310.accounting
      /etc/periodic/daily/330.news
      /etc/periodic/daily/400.status-disks
      /etc/periodic/daily/401.status-graid
      /etc/periodic/daily/404.status-zfs
      /etc/periodic/daily/406.status-gmirror
      /etc/periodic/daily/407.status-graid3
      /etc/periodic/daily/408.status-gstripe
      /etc/periodic/daily/409.status-gconcat
      /etc/periodic/daily/420.status-network
      /etc/periodic/daily/430.status-rwho
      /etc/periodic/daily/440.status-mailq
      /etc/periodic/daily/450.status-security
      /etc/periodic/daily/460.status-mail-rejects
      /etc/periodic/daily/480.status-ntpd
      /etc/periodic/daily/500.queuerun
      /etc/periodic/daily/510.status-world-kernel
      /etc/periodic/daily/800.scrub-zfs
      /etc/periodic/daily/999.local
      /etc/periodic/monthly/200.accounting
      /etc/periodic/monthly/450.status-security
      /etc/periodic/monthly/999.local
      /etc/periodic/security/100.chksetuid
      /etc/periodic/security/110.neggrpperm
      /etc/periodic/security/200.chkmounts
      /etc/periodic/security/300.chkuid0
      /etc/periodic/security/400.passwdless
      /etc/periodic/security/410.logincheck
      /etc/periodic/security/500.ipfwdenied
      /etc/periodic/security/510.ipfdenied
      /etc/periodic/security/520.pfdenied
      /etc/periodic/security/550.ipfwlimit
      /etc/periodic/security/610.ipf6denied
      /etc/periodic/security/700.kernelmsg
      /etc/periodic/security/800.loginfail
      /etc/periodic/security/900.tcpwrap
      /etc/periodic/security/security.functions
      /etc/periodic/weekly/310.locate
      /etc/periodic/weekly/320.whatis
      /etc/periodic/weekly/330.catman
      /etc/periodic/weekly/340.noid
      /etc/periodic/weekly/450.status-security
      /etc/periodic/weekly/999.local
      /etc/pf.os
      /etc/phones
      /etc/pkg/FreeBSD.conf
      /etc/portsnap.conf
      /etc/ppp/ppp.conf
      /etc/printcap
      /etc/profile
      /etc/protocols
      /etc/rc
      /etc/rc.bsdextended
      /etc/rc.d/DAEMON
      /etc/rc.d/FILESYSTEMS
      /etc/rc.d/LOGIN
      /etc/rc.d/NETWORKING
      /etc/rc.d/SERVERS
      /etc/rc.d/abi
      /etc/rc.d/accounting
      /etc/rc.d/addswap
      /etc/rc.d/adjkerntz
      /etc/rc.d/amd
      /etc/rc.d/apm
      /etc/rc.d/apmd
      /etc/rc.d/archdep
      /etc/rc.d/atm1
      /etc/rc.d/atm2
      /etc/rc.d/atm3
      /etc/rc.d/auditd
      /etc/rc.d/auditdistd
      /etc/rc.d/automount
      /etc/rc.d/automountd
      /etc/rc.d/autounmountd
      /etc/rc.d/bgfsck
      /etc/rc.d/bluetooth
      /etc/rc.d/bootparams
      /etc/rc.d/bridge
      /etc/rc.d/bsnmpd
      /etc/rc.d/bthidd
      /etc/rc.d/ccd
      /etc/rc.d/cleanvar
      /etc/rc.d/cleartmp
      /etc/rc.d/cron
      /etc/rc.d/ctld
      /etc/rc.d/ddb
      /etc/rc.d/defaultroute
      /etc/rc.d/devd
      /etc/rc.d/devfs
      /etc/rc.d/dhclient
      /etc/rc.d/dmesg
      /etc/rc.d/dumpon
      /etc/rc.d/faith
      /etc/rc.d/fsck
      /etc/rc.d/ftp-proxy
      /etc/rc.d/ftpd
      /etc/rc.d/gbde
      /etc/rc.d/geli
      /etc/rc.d/geli2
      /etc/rc.d/gptboot
      /etc/rc.d/growfs
      /etc/rc.d/gssd
      /etc/rc.d/hastd
      /etc/rc.d/hcsecd
      /etc/rc.d/hostapd
      /etc/rc.d/hostid
      /etc/rc.d/hostid_save
      /etc/rc.d/hostname
      /etc/rc.d/inetd
      /etc/rc.d/initrandom
      /etc/rc.d/ip6addrctl
      /etc/rc.d/ipfilter
      /etc/rc.d/ipfs
      /etc/rc.d/ipfw
      /etc/rc.d/ipmon
      /etc/rc.d/ipnat
      /etc/rc.d/ipropd_master
      /etc/rc.d/ipropd_slave
      /etc/rc.d/ipsec
      /etc/rc.d/ipxrouted
      /etc/rc.d/iscsictl
      /etc/rc.d/iscsid
      /etc/rc.d/jail
      /etc/rc.d/kadmind
      /etc/rc.d/kdc
      /etc/rc.d/keyserv
      /etc/rc.d/kfd
      /etc/rc.d/kld
      /etc/rc.d/kldxref
      /etc/rc.d/kpasswdd
      /etc/rc.d/ldconfig
      /etc/rc.d/local
      /etc/rc.d/local_unbound
      /etc/rc.d/localpkg
      /etc/rc.d/lockd
      /etc/rc.d/lpd
      /etc/rc.d/mdconfig
      /etc/rc.d/mdconfig2
      /etc/rc.d/mixer
      /etc/rc.d/motd
      /etc/rc.d/mountcritlocal
      /etc/rc.d/mountcritremote
      /etc/rc.d/mountd
      /etc/rc.d/mountlate
      /etc/rc.d/moused
      /etc/rc.d/mroute6d
      /etc/rc.d/mrouted
      /etc/rc.d/msgs
      /etc/rc.d/natd
      /etc/rc.d/netif
      /etc/rc.d/netoptions
      /etc/rc.d/netwait
      /etc/rc.d/newsyslog
      /etc/rc.d/nfscbd
      /etc/rc.d/nfsclient
      /etc/rc.d/nfsd
      /etc/rc.d/nfsuserd
      /etc/rc.d/nisdomain
      /etc/rc.d/nscd
      /etc/rc.d/nsswitch
      /etc/rc.d/ntpd
      /etc/rc.d/ntpdate
      /etc/rc.d/othermta
      /etc/rc.d/pf
      /etc/rc.d/pflog
      /etc/rc.d/pfsync
      /etc/rc.d/postrandom
      /etc/rc.d/power_profile
      /etc/rc.d/powerd
      /etc/rc.d/ppp
      /etc/rc.d/pppoed
      /etc/rc.d/pwcheck
      /etc/rc.d/quota
      /etc/rc.d/random
      /etc/rc.d/rarpd
      /etc/rc.d/rctl
      /etc/rc.d/resolv
      /etc/rc.d/rfcomm_pppd_server
      /etc/rc.d/root
      /etc/rc.d/route6d
      /etc/rc.d/routed
      /etc/rc.d/routing
      /etc/rc.d/rpcbind
      /etc/rc.d/rtadvd
      /etc/rc.d/rtsold
      /etc/rc.d/rwho
      /etc/rc.d/savecore
      /etc/rc.d/sdpd
      /etc/rc.d/securelevel
      /etc/rc.d/sendmail
      /etc/rc.d/serial
      /etc/rc.d/sppp
      /etc/rc.d/sshd
      /etc/rc.d/statd
      /etc/rc.d/static_arp
      /etc/rc.d/static_ndp
      /etc/rc.d/stf
      /etc/rc.d/swap
      /etc/rc.d/swaplate
      /etc/rc.d/syscons
      /etc/rc.d/sysctl
      /etc/rc.d/syslogd
      /etc/rc.d/timed
      /etc/rc.d/tmp
      /etc/rc.d/ubthidhci
      /etc/rc.d/ugidfw
      /etc/rc.d/utx
      /etc/rc.d/var
      /etc/rc.d/virecover
      /etc/rc.d/watchdogd
      /etc/rc.d/wpa_supplicant
      /etc/rc.d/ypbind
      /etc/rc.d/yppasswdd
      /etc/rc.d/ypserv
      /etc/rc.d/ypset
      /etc/rc.d/ypupdated
      /etc/rc.d/ypxfrd
      /etc/rc.d/zfs
      /etc/rc.d/zvol
      /etc/rc.firewall
      /etc/rc.initdiskless
      /etc/rc.resume
      /etc/rc.sendmail
      /etc/rc.shutdown
      /etc/rc.subr
      /etc/rc.suspend
      /etc/regdomain.xml
      /etc/remote
      /etc/rpc
      /etc/security/audit_class
      /etc/security/audit_control
      /etc/security/audit_event
      /etc/security/audit_user
      /etc/security/audit_warn
      /etc/services
      /etc/shells
      /etc/snmpd.config
      /etc/ssh/ssh_config
      /etc/ssh/sshd_config
      /etc/ssl/openssl.cnf
      /etc/sysctl.conf
      /etc/syslog.conf
      /etc/termcap.small
      /etc/ttys
      /root/.k5login
      /root/.login
*** You installed a new aliases file, so make sure that you run
    '/usr/bin/newaliases' to rebuild your aliases database

    Would you like to run it now? y or n [n]

       *** Cancelled

    Make sure to run /usr/bin/newaliases yourself

*** You installed a login.conf file, so make sure that you run
    '/usr/bin/cap_mkdb /etc/login.conf'
     to rebuild your login.conf database

    Would you like to run it now? y or n [n]

       *** Cancelled

    Make sure to run /usr/bin/cap_mkdb /etc/login.conf yourself

*** You installed a services file, so make sure that you run
    '/usr/sbin/services_mkdb -q -o /var/db/services.db /etc/services'
     to rebuild your services database

    Would you like to run it now? y or n [n]

       *** Cancelled

    Make sure to run /usr/sbin/services_mkdb -q -o /var/db/services.db /etc/services yourself

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

whoops.

root@kg-vm2# /usr/bin/newaliases
/etc/mail/aliases: 29 aliases, longest 10 bytes, 297 bytes total
root@kg-vm2# /usr/bin/cap_mkdb /etc/login.conf
root@kg-vm2# /usr/sbin/services_mkdb -q -o /var/db/services.db /etc/services

fixed.

2016-01-02: ada0p4 - get updated source (latest 10/stable onto the machine via svnlite:

root@kg-vm2# svnlite checkout https://svn.FreeBSD.org/base/stable/10 /usr/src
[...]
A    /usr/src/games/pom/pom.c
A    /usr/src/games/morse/Makefile
A    /usr/src/games/number/number.c
A    /usr/src/MAINTAINERS
 U   /usr/src
Checked out revision 293047.

ok.

2016-01-02: ada0p4 - I installed FreeBSD 10.2-release. dmesg output: normal, verbose.

root@kg-vm2:~ # uname -a
FreeBSD kg-vm2.kg4.no 10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
root@kg-vm2:~ # freebsd-version -ku
10.2-RELEASE
10.2-RELEASE

ok.