Gigabyte F2A85XM-HD3 - FreeBSD

Hardware info on main page.

This machine runs the amd64 version of FreeBSD.

The first sata hard drive (ad4) is sliced up as follows:

 slice 1 - 116 GB - a FreeBSD install - RELENG_7 - currently 7.4-stable
 slice 2 - 116 GB - a FreeBSD install - RELENG_8 - currently 8.4-stable
 slice 3 - 112 GB - NetBSD (currently 6.1.2)
 slice 4 - 121 GB - Xubuntu (currently 10.04.4)

Because of Xubuntu, grub is used as the main bootloader.

The second sata drive (ada1) is sliced up like this:

root@kg-v2# gpart show -p ada1
=>        34  1953525101    ada1  GPT  (931G)
          34           6          - free -  (3.0k)
          40         128  ada1p1  freebsd-boot  (64k)                boot partition
         168   251658240  ada1p2  freebsd-ufs  (120G)          RELENG_9, FreeBSD 9.2-release
   251658408     8388608  ada1p3  freebsd-swap  (4.0G)    swap
   260047016   251658240  ada1p4  freebsd-ufs  (120G)     FreeBSD 10.4-release
   511705256   251658240  ada1p5  freebsd-ufs  (120G)     FreeBSD 11.2-release
   763363496  1190161639          - free -  (568G)

keys: F12 - boot menu,

kvm switch: (used to be) port 1

Local links

home automation, OSCam, TellStick Duo,

Work log

2018-07-23: ada1p5 - and now hwstat works

root@kg-v2# hwstat
                    Current                Unit
[Coretemp]
    CPU0:                6.2                C
    CPU1:                6.2                C

ok

2018-07-23: ada1p5 - but perhaps amdtemp works?

root@kg-v2# kldload amdtemp
root@kg-v2# kldstat
Id Refs Address            Size     Name
 1    8 0xffffffff80200000 2036810  kernel
 2    1 0xffffffff82421000 2328     ums.ko
 3    1 0xffffffff82424000 11a0     amdtemp.ko
 4    1 0xffffffff82426000 628      amdsmn.ko

from /var/log/messages

Jul 23 22:31:26 kg-v2 kernel: amdtemp0: <AMD CPU On-Die Thermal Sensors> on hostb4

sysctl

root@kg-v2# sysctl dev.amdtemp
dev.amdtemp.0.core0.sensor0: 5.6C
dev.amdtemp.0.sensor_offset: 0
dev.amdtemp.0.%parent: hostb4
dev.amdtemp.0.%pnpinfo:
dev.amdtemp.0.%location:
dev.amdtemp.0.%driver: amdtemp
dev.amdtemp.0.%desc: AMD CPU On-Die Thermal Sensors
dev.amdtemp.%parent:

and

root@kg-v2# sysctl dev.cpu.0.temperature
dev.cpu.0.temperature: 5.7C
root@kg-v2# sysctl dev.cpu.1.temperature
dev.cpu.1.temperature: 5.6C

nice. Temperatures seem a bit low.

2018-07-23: ada1p5 - hwstat - does it work?

root@kg-v2# hwstat -v
hwstat 0.5
root@kg-v2# hwstat -h
usage: hwstat [-hvdcf]
    -h        Show this page
    -v        Show hwstat version
    -d        Display all info and non-working devices
    -f        Display temperature in Fahrenheit
    -k        Display the temperature in Kelvins
root@kg-v2# hwstat
                    Current                Unit
[Coretemp]
    CPU0:                Cannot get temperature
    CPU1:                Cannot get temperature

no. debug info

root@kg-v2# hwstat -d
                    Current                Unit
[Coretemp]
    CPU0:                Cannot get temperature
    CPU1:                Cannot get temperature

[ACPI Thermal]
    No ACPI Thermal Zone Support.

[ACPI Battery (sysctl)]
    No ACPI Battery support.

[ACPI Battery (/dev/acpi)]
    No ACPI Battery support.

ok.

2018-07-23: ada1p5 - pkg - install hwstat

Jul 23 22:25:20 kg-v2 pkg: hwstat-0.5.1 installed

files

root@kg-v2# pkg info -l hwstat
hwstat-0.5.1:
    /usr/local/bin/hwstat
    /usr/local/man/man1/hwstat.1.gz
    /usr/local/share/licenses/hwstat-0.5.1/BSD2CLAUSE
    /usr/local/share/licenses/hwstat-0.5.1/LICENSE
    /usr/local/share/licenses/hwstat-0.5.1/catalog.mk

ok.

2018-07-15: ada1p5 - pkg - install more packages

Jul 15 16:44:07 kg-v2 pkg: gstreamer-0.10.36_6 installed
Jul 15 16:44:07 kg-v2 pkg: gstreamer-plugins-0.10.36_8,3 installed
Jul 15 16:44:07 kg-v2 pkg: fontcacheproto-0.1.3 installed
Jul 15 16:44:07 kg-v2 pkg: unique-1.1.6_7 installed
Jul 15 16:44:08 kg-v2 pkg: gstreamer-plugins-good-0.10.31_3,3 installed
Jul 15 16:44:08 kg-v2 pkg: libXfontcache-1.0.5_3 installed
Jul 15 16:44:08 kg-v2 pkg: xrandr-1.5.0 installed
Jul 15 16:44:08 kg-v2 pkg: xfce4-cpugraph-plugin-1.0.5_4 installed
Jul 15 16:44:08 kg-v2 pkg: xfce4-datetime-plugin-0.7.0 installed
Jul 15 16:44:08 kg-v2 pkg: xfce4-mixer-4.11.0_3 installed
Jul 15 16:44:08 kg-v2 pkg: xfce4-netload-plugin-1.3.1 installed
Jul 15 16:44:08 kg-v2 pkg: xfce4-systemload-plugin-1.2.1 installed
Jul 15 16:44:08 kg-v2 pkg: xset-1.2.4 installed
Jul 15 16:44:44 kg-v2 pkg: smartmontools-6.6_1 installed

ok.

2018-07-15: ada1p5 - pkg - install xfce messages

Message from dejavu-2.37:

Make sure that the freetype module is loaded.  If it is not, add the following
line to the "Modules" section of your X Windows configuration file:

    Load "freetype"

Add the following line to the "Files" section of X Windows configuration file:

    FontPath "/usr/local/share/fonts/dejavu/"

Note: your X Windows configuration file is typically /etc/X11/XF86Config
if you are using XFree86, and /etc/X11/xorg.conf if you are using X.Org.
Message from xmlcatmgr-2.2_2:

The following catalogs are installed:

 1) /usr/local/share/sgml/catalog

   The top level catalog for SGML stuff.  It is not changed
   by any ports/packages except textproc/xmlcatmgr.

 2) /usr/local/share/sgml/catalog.ports

   This catalog is for handling SGML stuff installed under
   /usr/local/share/sgml.  It is changed by ports/packages.

 3) /usr/local/share/xml/catalog

   The top level catalog for XML stuff.  It is not changed
   by any ports/packages except textproc/xmlcatmgr.

 4) /usr/local/share/xml/catalog.ports

   This catalog is for handling XML stuff installed under
   /usr/local/share/xml.  It is changed by ports/packages.
Message from python36-3.6.6:

===========================================================================

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

py36-gdbm       databases/py-gdbm@py36
py36-sqlite3    databases/py-sqlite3@py36
py36-tkinter    x11-toolkits/py-tkinter@py36

===========================================================================
Message from trousers-0.3.14_2:

To run tcsd automatically, add the following line to /etc/rc.conf:

tcsd_enable="YES"

You might want to edit /usr/local/etc/tcsd.conf to reflect your setup.

If you want to use tcsd with software TPM emulator, use the following
configuration in /etc/rc.conf:

tcsd_enable="YES"
tcsd_mode="emulator"
tpmd_enable="YES"

To use TPM, add your_account to '_tss' group like following:

# pw groupmod _tss -m your_account
Message from py36-setuptools-39.2.0:

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

  Only /usr/local/bin/easy_install-3.6 script has been installed
  since Python 3.6 is not the default Python version.

*******************************************************************
Message from openldap-client-2.4.46:

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

The OpenLDAP client package has been successfully installed.

Edit
  /usr/local/etc/openldap/ldap.conf
to change the system-wide client defaults.

Try `man ldap.conf' and visit the OpenLDAP FAQ-O-Matic at
  http://www.OpenLDAP.org/faq/index.cgi?file=3
for more information.

************************************************************
Message from libinotify-20180201:

============================================================================

Libinotify functionality on FreeBSD is missing support for

  - detecting a file being moved into or out of a directory within the
    same filesystem
  - certain modifications to a symbolic link (rather than the
    file it points to.)

in addition to the known limitations on all platforms using kqueue(2)
where various open and close notifications are unimplemented.

This means the following regression tests will fail:

Directory notifications:
   IN_MOVED_FROM
   IN_MOVED_TO

Open/close notifications:
   IN_OPEN
   IN_CLOSE_NOWRITE
   IN_CLOSE_WRITE

Symbolic Link notifications:
   IN_DONT_FOLLOW
   IN_ATTRIB
   IN_MOVE_SELF
   IN_DELETE_SELF

Kernel patches to address the missing directory and symbolic link
notifications are available from:

https://github.com/libinotify-kqueue/libinotify-kqueue/tree/master/patches

=============================================================================
You might want to consider increasing the kern.maxfiles tunable if you plan
to use this library for applications that need to monitor activity of a lot
of files.

If the default on your system is too low, add the following line to
/boot/loader.conf, then reboot the system:

    kern.maxfiles="25000"
=============================================================================
Message from gamin-0.1.10_9:

===============================================================================

Gamin will only provide realtime notification of changes for at most n files,
where n is the minimum value between (kern.maxfiles * 0.7) and
(kern.maxfilesperproc - 200). Beyond that limit, files will be polled.

If you often open several large folders with Nautilus, you might want to
increase the kern.maxfiles tunable (you do not need to set
kern.maxfilesperproc, since it is computed at boot time from kern.maxfiles).

For a typical desktop, add the following line to /boot/loader.conf, then
reboot the system:

    kern.maxfiles="25000"

The behavior of gamin can be controlled via the various gaminrc files.
See http://www.gnome.org/~veillard/gamin/config.html on how to create
these files.  In particular, if you find gam_server is taking up too much
CPU time polling for changes, something like the following may help
in one of the gaminrc files:

# reduce polling frequency to once per 10 seconds
# for UFS file systems in order to lower CPU load
fsset ufs poll 10

===============================================================================

===>   NOTICE:

The gamin port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port
Message from fusefs-libs-2.9.7:

Install the fuse kernel module to use this port.

===>   NOTICE:

The fusefs-libs port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://www.freebsd.org/doc/en/articles/contributing/ports-contributing.html#maintain-port
Message from samba46-4.6.15_1:

===============================================================================

How to start: http://wiki.samba.org/index.php/Samba4/HOWTO

* Your configuration is: /usr/local/etc/smb4.conf

* All the relevant databases are under: /var/db/samba4

* All the logs are under: /var/log/samba4

* Provisioning script is: /usr/local/bin/samba-tool

For additional documentation check: http://wiki.samba.org/index.php/Samba4

Bug reports should go to the: https://bugzilla.samba.org/

===============================================================================
Message from xfce4-tumbler-0.2.1_1:

To override the default configuration, you must copy the rc-file:

    mkdir ~/.config/tumbler
    cp /usr/local/etc/xdg/tumbler/tumbler.rc ~/.config/tumbler

The COVER plugin requires manual configuration.

For more information see http://docs.xfce.org/xfce/thunar/tumbler
Message from xfce4-terminal-0.8.7.4_1:

Some options could need manual change to ~/.config/xfce4/terminal/terminalrc:

To reduce the height of tabs, add the hidden 'MiscSlimTabs' option:

MiscSlimTabs=TRUE

By default this option is not defined.

If you have configured a custom color cursor you will also need to add:

ColorCursorUseDefault=FALSE

to have such configuration still working, otherwise reconfigure the color
in the GUI.

Keep in mind, when you change an option in Preferences window, this file
is overwritten.
Message from xfce4-session-4.12.1_4:

To be able to shutdown or reboot your system, you'll have to add .rules
files in /usr/local/etc/polkit-1/rules.d directory. Which looks
like this (replace PUTYOURGROUPHERE by your group):

polkit.addRule(function (action, subject) {
  if ((action.id == "org.freedesktop.consolekit.system.restart" ||
      action.id == "org.freedesktop.consolekit.system.stop")
      && subject.isInGroup("PUTYOURGROUPHERE")) {
    return polkit.Result.YES;
  }
});

For those who have working suspend/resume:

polkit.addRule(function (action, subject) {
  if (action.id == "org.freedesktop.consolekit.system.suspend"
      && subject.isInGroup("PUTYOURGROUPHERE")) {
    return polkit.Result.YES;
  }
});

packages

Jul 15 16:28:04 kg-v2 pkg: pcre-8.42 installed
Jul 15 16:28:04 kg-v2 pkg: libiconv-1.14_11 installed
Jul 15 16:28:04 kg-v2 pkg: mkfontscale-1.1.3 installed
Jul 15 16:28:04 kg-v2 pkg: xcb-util-0.4.0_2,1 installed
Jul 15 16:28:04 kg-v2 pkg: glib-2.50.3_4,1 installed
Jul 15 16:28:04 kg-v2 pkg: mkfontdir-1.0.7 installed
Jul 15 16:28:04 kg-v2 pkg: xcb-util-renderutil-0.3.9_1 installed
Jul 15 16:28:04 kg-v2 pkg: glproto-1.4.17 installed
Jul 15 16:28:04 kg-v2 pkg: dri2proto-2.8 installed
Jul 15 16:28:05 kg-v2 pkg: png-1.6.34 installed
Jul 15 16:28:05 kg-v2 pkg: gmp-6.1.2 installed
Jul 15 16:28:07 kg-v2 pkg: font-misc-meltho-1.0.3_3 installed
Jul 15 16:28:11 kg-v2 pkg: font-misc-ethiopic-1.0.3_3 installed
Jul 15 16:28:13 kg-v2 pkg: font-bh-ttf-1.0.3_3 installed
Jul 15 16:28:13 kg-v2 pkg: encodings-1.0.4_4,1 installed
Jul 15 16:28:16 kg-v2 pkg: dejavu-2.37 installed
Jul 15 16:28:16 kg-v2 pkg: graphite2-1.3.11 installed
Jul 15 16:28:16 kg-v2 pkg: cairo-1.14.8_1,2 installed
Jul 15 16:28:16 kg-v2 pkg: tpm-emulator-0.7.4_2 installed
Jul 15 16:28:16 kg-v2 pkg: libtasn1-4.13 installed
Jul 15 16:28:16 kg-v2 pkg: libunistring-0.9.10 installed
Jul 15 16:28:16 kg-v2 pkg: jpeg-turbo-1.5.3 installed
Jul 15 16:28:16 kg-v2 pkg: jbigkit-2.1_1 installed
Jul 15 16:28:16 kg-v2 pkg: xmlcatmgr-2.2_2 installed
Jul 15 16:28:23 kg-v2 pkg: python36-3.6.6 installed
Jul 15 16:28:23 kg-v2 pkg: xorg-fonts-truetype-7.7_1 installed
Jul 15 16:28:23 kg-v2 pkg: harfbuzz-1.8.3 installed
Jul 15 16:28:23 kg-v2 pkg: fribidi-0.19.7 installed
Jul 15 16:28:23 kg-v2 pkg: randrproto-1.5.0 installed
Jul 15 16:28:23 kg-v2 pkg: xineramaproto-1.2.1 installed
Jul 15 16:28:23 kg-v2 pkg: compositeproto-0.4.2 installed
Jul 15 16:28:23 kg-v2 pkg: trousers-0.3.14_2 installed
Jul 15 16:28:23 kg-v2 pkg: p11-kit-0.23.12 installed
Jul 15 16:28:23 kg-v2 pkg: nettle-3.4 installed
Jul 15 16:28:23 kg-v2 pkg: libidn2-2.0.5 installed
Jul 15 16:28:24 kg-v2 pkg: dbus-1.10.16_1 installed
Jul 15 16:28:24 kg-v2 pkg: shared-mime-info-1.8 installed
Jul 15 16:28:25 kg-v2 pkg: tiff-4.0.9_1 installed
Jul 15 16:28:25 kg-v2 pkg: jasper-1.900.1_17 installed
Jul 15 16:28:25 kg-v2 pkg: nspr-4.19 installed
Jul 15 16:28:26 kg-v2 pkg: icu-62.1_1,1 installed
Jul 15 16:28:26 kg-v2 pkg: scrnsaverproto-1.2.2 installed
Jul 15 16:28:26 kg-v2 pkg: recordproto-1.14.2 installed
Jul 15 16:28:26 kg-v2 pkg: libgpg-error-1.31 installed
Jul 15 16:28:26 kg-v2 pkg: xmlcharent-0.3_2 installed
Jul 15 16:28:26 kg-v2 pkg: iso8879-1986_3 installed
Jul 15 16:28:28 kg-v2 pkg: cantarell-fonts-0.0.25 installed
Jul 15 16:28:29 kg-v2 pkg: py36-setuptools-39.2.0 installed
Jul 15 16:28:29 kg-v2 pkg: pango-1.42.0 installed
Jul 15 16:28:29 kg-v2 pkg: libXrandr-1.5.1 installed
Jul 15 16:28:29 kg-v2 pkg: libXinerama-1.1.4,1 installed
Jul 15 16:28:29 kg-v2 pkg: libXcursor-1.1.15 installed
Jul 15 16:28:29 kg-v2 pkg: libXcomposite-0.4.4_3,1 installed
Jul 15 16:28:30 kg-v2 pkg: gnutls-3.5.18 installed
Jul 15 16:28:30 kg-v2 pkg: gnome_subr-1.0 installed
Jul 15 16:28:30 kg-v2 pkg: libdaemon-0.14_1 installed
Jul 15 16:28:30 kg-v2 pkg: gobject-introspection-1.50.0_1,1 installed
Jul 15 16:28:30 kg-v2 pkg: dbus-glib-0.108 installed
Jul 15 16:28:31 kg-v2 pkg: gdbm-1.13_1 installed
Jul 15 16:28:31 kg-v2 pkg: hicolor-icon-theme-0.15 installed
Jul 15 16:28:32 kg-v2 pkg: gdk-pixbuf2-2.36.11 installed
Jul 15 16:28:32 kg-v2 pkg: atk-2.24.0 installed
Jul 15 16:28:33 kg-v2 pkg: spidermonkey52-52.8.0_1 installed
Jul 15 16:28:33 kg-v2 pkg: libXScrnSaver-1.2.3 installed
Jul 15 16:28:33 kg-v2 pkg: libXtst-1.2.3 installed
Jul 15 16:28:33 kg-v2 pkg: libgcrypt-1.8.3 installed
Jul 15 16:28:33 kg-v2 pkg: sdocbook-xml-1.1_2,2 installed
Jul 15 16:28:33 kg-v2 pkg: docbook-xml-5.0_3 installed
Jul 15 16:28:33 kg-v2 pkg: docbook-sgml-4.5_1 installed
Jul 15 16:28:33 kg-v2 pkg: libproxy-0.4.15 installed
Jul 15 16:28:33 kg-v2 pkg: gsettings-desktop-schemas-3.18.1 installed
Jul 15 16:28:34 kg-v2 pkg: gstreamer1-1.12.3 installed
Jul 15 16:28:34 kg-v2 pkg: iso-codes-3.76 installed
Jul 15 16:28:34 kg-v2 pkg: orc-0.4.25 installed
Jul 15 16:28:34 kg-v2 pkg: py36-cairo-1.14.1 installed
Jul 15 16:28:34 kg-v2 pkg: pygobject3-common-3.18.2 installed
Jul 15 16:28:35 kg-v2 pkg: libpaper-1.1.24.4 installed
Jul 15 16:28:35 kg-v2 pkg: avahi-app-0.6.31_6 installed
Jul 15 16:28:35 kg-v2 pkg: gtk-update-icon-cache-2.24.32 installed
Jul 15 16:28:35 kg-v2 pkg: libcroco-0.6.12 installed
Jul 15 16:28:35 kg-v2 pkg: libgsf-1.14.41 installed
Jul 15 16:28:35 kg-v2 pkg: polkit-0.114 installed
Jul 15 16:28:36 kg-v2 pkg: lcms2-2.9 installed
Jul 15 16:28:37 kg-v2 pkg: argyllcms-1.9.2_2 installed
Jul 15 16:28:37 kg-v2 pkg: sqlite3-3.24.0_1 installed
Jul 15 16:28:37 kg-v2 pkg: at-spi2-core-2.24.0 installed
Jul 15 16:28:37 kg-v2 pkg: docbook-1.5 installed
Jul 15 16:28:37 kg-v2 pkg: glib-networking-2.50.0_1 installed
Jul 15 16:28:38 kg-v2 pkg: gstreamer1-plugins-1.12.3 installed
Jul 15 16:28:38 kg-v2 pkg: py36-gobject3-3.18.2 installed
Jul 15 16:28:39 kg-v2 pkg: cups-2.2.8_1 installed
Jul 15 16:28:41 kg-v2 pkg: adwaita-icon-theme-3.22.0 installed
Jul 15 16:28:42 kg-v2 pkg: librsvg2-2.40.20 installed
Jul 15 16:28:42 kg-v2 pkg: colord-1.2.12 installed
Jul 15 16:28:42 kg-v2 pkg: at-spi2-atk-2.24.0 installed
Jul 15 16:28:42 kg-v2 pkg: libxslt-1.1.32 installed
Jul 15 16:28:44 kg-v2 pkg: docbook-xsl-1.76.1,1 installed
Jul 15 16:28:44 kg-v2 pkg: bash-4.4.23 installed
Jul 15 16:28:44 kg-v2 pkg: getopt-1.1.6 installed
Jul 15 16:28:45 kg-v2 pkg: py27-setuptools-39.2.0 installed
Jul 15 16:28:45 kg-v2 pkg: libIDL-0.8.14_3 installed
Jul 15 16:28:45 kg-v2 pkg: hunspell-1.6.2 installed
Jul 15 16:28:45 kg-v2 pkg: libsoup-2.54.1 installed
Jul 15 16:28:45 kg-v2 pkg: json-glib-1.2.8 installed
Jul 15 16:28:46 kg-v2 pkg: gstreamer1-plugins-bad-1.12.3_2 installed
Jul 15 16:28:46 kg-v2 pkg: giflib-5.1.4 installed
Jul 15 16:28:46 kg-v2 pkg: libGLU-9.0.0_3 installed
Jul 15 16:28:46 kg-v2 pkg: graphene-1.6.0_2 installed
Jul 15 16:28:46 kg-v2 pkg: brotli-1.0.5,1 installed
Jul 15 16:28:46 kg-v2 pkg: libxfce4util-4.12.1 installed
Jul 15 16:28:47 kg-v2 pkg: gtk2-2.24.32 installed
Jul 15 16:28:49 kg-v2 pkg: gtk3-3.22.29 installed
Jul 15 16:28:49 kg-v2 pkg: libnotify-0.7.7_1 installed
Jul 15 16:28:49 kg-v2 pkg: rarian-0.8.1_4 installed
Jul 15 16:28:49 kg-v2 pkg: py27-libxml2-2.9.7 installed
Jul 15 16:28:50 kg-v2 pkg: gettext-tools-0.19.8.1 installed
Jul 15 16:28:50 kg-v2 pkg: dconf-0.26.1 installed
Jul 15 16:28:50 kg-v2 pkg: ORBit2-2.14.19_2 installed
Jul 15 16:28:50 kg-v2 pkg: libsecret-0.18.6 installed
Jul 15 16:28:50 kg-v2 pkg: talloc-2.1.13 installed
Jul 15 16:28:50 kg-v2 pkg: hyphen-2.8.8 installed
Jul 15 16:28:50 kg-v2 pkg: enchant2-2.2.3 installed
Jul 15 16:28:50 kg-v2 pkg: harfbuzz-icu-1.8.3_2 installed
Jul 15 16:28:50 kg-v2 pkg: geoclue-2.4.3 installed
Jul 15 16:28:51 kg-v2 pkg: webp-1.0.0 installed
Jul 15 16:28:51 kg-v2 pkg: gstreamer1-plugins-gl-1.12.3 installed
Jul 15 16:28:51 kg-v2 pkg: woff2-1.0.2_1 installed
Jul 15 16:28:51 kg-v2 pkg: vala-0.36.13_1,1 installed
Jul 15 16:28:51 kg-v2 pkg: libsoup-gnome-2.54.1 installed
Jul 15 16:28:51 kg-v2 pkg: libnghttp2-1.32.0 installed
Jul 15 16:28:52 kg-v2 pkg: xfce4-conf-4.12.1 installed
Jul 15 16:28:52 kg-v2 pkg: startup-notification-0.12_4 installed
Jul 15 16:28:52 kg-v2 pkg: consolekit2-1.2.0 installed
Jul 15 16:28:52 kg-v2 pkg: desktop-file-utils-0.23 installed
Jul 15 16:28:52 kg-v2 pkg: libcddb-1.3.2_4 installed
Jul 15 16:28:52 kg-v2 pkg: policykit-0.9_10 installed
Jul 15 16:28:52 kg-v2 pkg: dmidecode-3.1_1 installed
Jul 15 16:28:52 kg-v2 pkg: libvolume_id-0.81.1 installed
Jul 15 16:28:53 kg-v2 pkg: gnome-doc-utils-0.20.10_5 installed
Jul 15 16:28:53 kg-v2 pkg: gconf2-3.2.6_5 installed
Jul 15 16:28:54 kg-v2 pkg: openldap-client-2.4.46 installed
Jul 15 16:28:54 kg-v2 pkg: tevent-0.9.36 installed
Jul 15 16:28:54 kg-v2 pkg: popt-1.16_2 installed
Jul 15 16:28:54 kg-v2 pkg: tdb-1.3.15_2,1 installed
Jul 15 16:28:54 kg-v2 pkg: lzo2-2.10_1 installed
Jul 15 16:28:54 kg-v2 pkg: liblz4-1.8.2,1 installed
Jul 15 16:28:56 kg-v2 pkg: webkit2-gtk3-2.20.3_1 installed
Jul 15 16:28:56 kg-v2 pkg: telepathy-glib-0.24.1_1 installed
Jul 15 16:28:57 kg-v2 pkg: rest-0.7.93 installed
Jul 15 16:28:57 kg-v2 pkg: curl-7.60.0 installed
Jul 15 16:28:58 kg-v2 pkg: nss-3.38 installed
Jul 15 16:28:58 kg-v2 pkg: poppler-data-0.4.9 installed
Jul 15 16:28:58 kg-v2 pkg: openjpeg-2.3.0 installed
Jul 15 16:28:58 kg-v2 pkg: libxfce4menu-4.12.1_1 installed
Jul 15 16:28:58 kg-v2 pkg: libXres-1.2.0 installed
Jul 15 16:28:59 kg-v2 pkg: p5-URI-1.74 installed
Jul 15 16:28:59 kg-v2 pkg: libexif-0.6.21_4 installed
Jul 15 16:28:59 kg-v2 pkg: libcdio-2.0.0 installed
Jul 15 16:28:59 kg-v2 pkg: hal-0.5.14_33 installed
Jul 15 16:28:59 kg-v2 pkg: policykit-gnome-0.9.2_8 installed
Jul 15 16:29:00 kg-v2 pkg: libgnome-keyring-3.12.0_2 installed
Jul 15 16:29:01 kg-v2 pkg: gcr-3.18.0 installed
Jul 15 16:29:01 kg-v2 pkg: libsunacl-1.0.1 installed
Jul 15 16:29:02 kg-v2 pkg: py27-dnspython-1.15.0 installed
Jul 15 16:29:02 kg-v2 pkg: py27-iso8601-0.1.11 installed
Jul 15 16:29:02 kg-v2 pkg: libinotify-20180201 installed
Jul 15 16:29:02 kg-v2 pkg: gamin-0.1.10_9 installed
Jul 15 16:29:02 kg-v2 pkg: ldb-1.1.29_1 installed
Jul 15 16:29:02 kg-v2 pkg: libarchive-3.3.2,1 installed
Jul 15 16:29:02 kg-v2 pkg: gnome-online-accounts-3.24.1_2 installed
Jul 15 16:29:02 kg-v2 pkg: libgd-2.2.4_1,1 installed
Jul 15 16:29:02 kg-v2 pkg: libltdl-2.4.6 installed
Jul 15 16:29:02 kg-v2 pkg: liboauth-1.0.3_3 installed
Jul 15 16:29:03 kg-v2 pkg: poppler-0.57.0_1 installed
Jul 15 16:29:03 kg-v2 pkg: libwnck-2.30.7_1 installed
Jul 15 16:29:03 kg-v2 pkg: libexo-0.12.2 installed
Jul 15 16:29:04 kg-v2 pkg: garcon-0.6.1 installed
Jul 15 16:29:04 kg-v2 pkg: libcdio-paranoia-10.2+0.94+1_1 installed
Jul 15 16:29:04 kg-v2 pkg: gnome-mount-0.8_13 installed
Jul 15 16:29:04 kg-v2 pkg: fusefs-libs-2.9.7 installed
Jul 15 16:29:06 kg-v2 pkg: samba46-4.6.15_1 installed
Jul 15 16:29:06 kg-v2 pkg: libgphoto2-2.5.16 installed
Jul 15 16:29:07 kg-v2 pkg: libgdata-0.17.8 installed
Jul 15 16:29:07 kg-v2 pkg: poppler-glib-0.57.0_1 installed
Jul 15 16:29:07 kg-v2 pkg: pcre2-10.21_1 installed
Jul 15 16:29:08 kg-v2 pkg: xfce4-panel-4.12.2 installed
Jul 15 16:29:08 kg-v2 pkg: gvfs-1.26.3_9 installed
Jul 15 16:29:08 kg-v2 pkg: xfce4-tumbler-0.2.1_1 installed
Jul 15 16:29:09 kg-v2 pkg: vte3-0.50.3 installed
Jul 15 16:29:09 kg-v2 pkg: iceauth-1.0.8 installed
Jul 15 16:29:09 kg-v2 pkg: upower-0.99.4 installed
Jul 15 16:29:09 kg-v2 pkg: Thunar-1.6.15 installed
Jul 15 16:29:09 kg-v2 pkg: libxklavier-5.3_1,1 installed
Jul 15 16:29:10 kg-v2 pkg: gtksourceview3-3.24.8 installed
Jul 15 16:29:10 kg-v2 pkg: libical-2.0.0_5 installed
Jul 15 16:29:10 kg-v2 pkg: xfce4-terminal-0.8.7.4_1 installed
Jul 15 16:29:11 kg-v2 pkg: xfce4-wm-4.12.4 installed
Jul 15 16:29:11 kg-v2 pkg: xfce4-session-4.12.1_4 installed
Jul 15 16:29:11 kg-v2 pkg: xfce4-desktop-4.12.4 installed
Jul 15 16:29:11 kg-v2 pkg: gtk-xfce-engine-3.2.0 installed
Jul 15 16:29:12 kg-v2 pkg: xfce4-settings-4.12.4 installed
Jul 15 16:29:12 kg-v2 pkg: xfce4-appfinder-4.12.0 installed
Jul 15 16:29:12 kg-v2 pkg: mousepad-0.4.1 installed
Jul 15 16:29:12 kg-v2 pkg: xfce4-notifyd-0.4.2 installed
Jul 15 16:29:13 kg-v2 pkg: orage-4.12.1_7 installed
Jul 15 16:29:13 kg-v2 pkg: xfce-4.12_1 installed

ok

2018-07-15: ada1p5 - Xorg - testing, Xorg (via startx) works. From /var/log/Xorg.0.log:

[ 60525.688] (--) NV: Found NVIDIA GeForce 8500 GT at 01@00:00:0

[ 60525.851] (II) NV(0): Output VGA2 connected
[ 60525.851] (II) NV(0): Using exact sizes for initial modes
[ 60525.851] (II) NV(0): Output VGA2 using initial mode 1920x1080 +0+0

ok

2018-07-15: ada1p5 - Xorg - create a file for keyboard layout

root@kg-v2# more /usr/local/etc/X11/xorg.conf.d/keyboard-no.conf
Section "InputClass"
        Identifier "keyboard defaults"
        MatchIsKeyboard "on"
        Option      "XkbLayout" "no"
EndSection

ok

2018-07-15: ada1p5 - pkg - install xf86-video-nv

Jul 15 16:06:36 kg-v2 pkg: xf86-video-nv-2.1.21_1 installed

ok.

2018-07-15: ada1p5 - pkg - install twm, xclock, xterm

Jul 15 16:04:09 kg-v2 pkg: renderproto-0.11.1 installed
Jul 15 16:04:09 kg-v2 pkg: printproto-1.0.5 installed
Jul 15 16:04:09 kg-v2 pkg: libXrender-0.9.10 installed
Jul 15 16:04:10 kg-v2 pkg: libXpm-3.5.12 installed
Jul 15 16:04:10 kg-v2 pkg: libXp-1.0.3,1 installed
Jul 15 16:04:12 kg-v2 pkg: fontconfig-2.12.6,1 installed
Jul 15 16:04:12 kg-v2 pkg: libXaw-1.0.13,2 installed
Jul 15 16:04:12 kg-v2 pkg: libXft-2.3.2_1 installed
Jul 15 16:04:12 kg-v2 pkg: twm-1.0.10 installed
Jul 15 16:04:12 kg-v2 pkg: xclock-1.0.7_2 installed
Jul 15 16:04:12 kg-v2 pkg: xterm-333 installed

ok

2018-07-15: ada1p5 - pkg - install xorg-minimal

Jul 15 15:58:46 kg-v2 pkg: xproto-7.0.31 installed
Jul 15 15:58:46 kg-v2 pkg: libXdmcp-1.1.2 installed
Jul 15 15:58:46 kg-v2 pkg: libXau-1.0.8_3 installed
Jul 15 15:58:46 kg-v2 pkg: libxml2-2.9.7 installed
Jul 15 15:58:46 kg-v2 pkg: libpthread-stubs-0.4 installed
Jul 15 15:58:48 kg-v2 pkg: libxcb-1.13 installed
Jul 15 15:58:48 kg-v2 pkg: kbproto-1.0.7 installed
Jul 15 15:58:48 kg-v2 pkg: libX11-1.6.5,1 installed
Jul 15 15:58:48 kg-v2 pkg: xextproto-7.3.0 installed
Jul 15 15:58:48 kg-v2 pkg: fixesproto-5.0 installed
Jul 15 15:58:48 kg-v2 pkg: pciids-20180428 installed
Jul 15 15:58:48 kg-v2 pkg: indexinfo-0.3.1 installed
Jul 15 15:58:49 kg-v2 pkg: libXext-1.3.3_1,1 installed
Jul 15 15:58:49 kg-v2 pkg: xf86vidmodeproto-2.3.1 installed
Jul 15 15:58:49 kg-v2 pkg: libXfixes-5.0.3 installed
Jul 15 15:58:49 kg-v2 pkg: damageproto-1.2.1 installed
Jul 15 15:58:49 kg-v2 pkg: libpciaccess-0.13.5 installed
Jul 15 15:58:49 kg-v2 pkg: videoproto-2.3.3 installed
Jul 15 15:58:49 kg-v2 pkg: readline-7.0.3_1 installed
Jul 15 15:58:49 kg-v2 pkg: libffi-3.2.1_2 installed
Jul 15 15:58:49 kg-v2 pkg: gettext-runtime-0.19.8.1_1 installed
Jul 15 15:58:49 kg-v2 pkg: libICE-1.0.9_1,1 installed
Jul 15 15:58:49 kg-v2 pkg: libxshmfence-1.2_2 installed
Jul 15 15:58:49 kg-v2 pkg: libXxf86vm-1.1.4_1 installed
Jul 15 15:58:49 kg-v2 pkg: libXdamage-1.1.4_3 installed
Jul 15 15:58:49 kg-v2 pkg: expat-2.2.5 installed
Jul 15 15:58:49 kg-v2 pkg: libdrm-2.4.92,1 installed
Jul 15 15:58:49 kg-v2 pkg: libunwind-20170615 installed
Jul 15 15:58:49 kg-v2 pkg: libXv-1.0.11,1 installed
Jul 15 15:58:53 kg-v2 pkg: python27-2.7.15 installed
Jul 15 15:58:58 kg-v2 pkg: perl5-5.26.2 installed
Jul 15 15:58:58 kg-v2 pkg: libedit-3.1.20170329_2,1 installed
Jul 15 15:58:58 kg-v2 pkg: libSM-1.2.2_3,1 installed
Jul 15 15:58:58 kg-v2 pkg: libxkbfile-1.0.9 installed
Jul 15 15:58:58 kg-v2 pkg: libfontenc-1.1.3_1 installed
Jul 15 15:58:58 kg-v2 pkg: fontsproto-2.1.3,1 installed
Jul 15 15:58:58 kg-v2 pkg: freetype2-2.9.1 installed
Jul 15 15:58:58 kg-v2 pkg: mesa-libs-18.1.3 installed
Jul 15 15:58:58 kg-v2 pkg: libXvMC-1.0.10 installed
Jul 15 15:59:16 kg-v2 pkg: llvm60-6.0.1_1 installed
Jul 15 15:59:16 kg-v2 pkg: libXt-1.1.5,1 installed
Jul 15 15:59:16 kg-v2 pkg: xkeyboard-config-2.24 installed
Jul 15 15:59:16 kg-v2 pkg: xkbcomp-1.4.2 installed
Jul 15 15:59:16 kg-v2 pkg: pixman-0.34.0 installed
Jul 15 15:59:17 kg-v2 pkg: libXfont-1.5.4,2 installed
Jul 15 15:59:17 kg-v2 pkg: font-util-1.3.1 installed
Jul 15 15:59:17 kg-v2 pkg: mesa-dri-18.1.3 installed
Jul 15 15:59:17 kg-v2 pkg: libepoxy-1.4.3 installed
Jul 15 15:59:17 kg-v2 pkg: inputproto-2.3.2 installed
Jul 15 15:59:17 kg-v2 pkg: libXmu-1.1.2_3,1 installed
Jul 15 15:59:18 kg-v2 pkg: xorg-server-1.18.4_8,1 installed
Jul 15 15:59:18 kg-v2 pkg: libXi-1.7.9,1 installed
Jul 15 15:59:18 kg-v2 pkg: xinit-1.4.0,1 installed
Jul 15 15:59:18 kg-v2 pkg: xauth-1.0.10 installed
Jul 15 15:59:18 kg-v2 pkg: xf86-video-vesa-2.4.0 installed
Jul 15 15:59:18 kg-v2 pkg: xf86-input-mouse-1.9.3 installed
Jul 15 15:59:18 kg-v2 pkg: xf86-input-keyboard-1.9.0_1 installed
Jul 15 15:59:18 kg-v2 pkg: xorg-minimal-7.5.2_2 installed

ok

2018-07-15: ada1p5 - pkg - install ca_root_nss

Jul 15 15:55:08 kg-v2 pkg-static: pkg-1.10.5_1 installed
Jul 15 15:56:54 kg-v2 pkg: ca_root_nss-3.38 installed

ok

2018-07-15: ada1p5 - pkg - install pkg

root@kg-v2# pkg install 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:11:amd64/latest, please wait...
Installing pkg-1.10.5_1...
Extracting pkg-1.10.5_1: 100%
Updating FreeBSD repository catalogue...
pkg: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
Fetching meta.txz: 100%    940 B   0.9kB/s    00:01   
Fetching packagesite.txz: 100%    6 MiB   3.3MB/s    00:02   
Processing entries: 100%
FreeBSD repository update completed. 32249 packages processed.
All repositories are up to date.
Updating database digests format: 100%
Checking integrity... done (0 conflicting)
The most recent version of packages are already installed

ok.

2018-07-15: ada1p5 - freebsd-update fetch

root@kg-v2# freebsd-update fetch
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 3 mirrors found.
Fetching public key from update5.freebsd.org... done.
Fetching metadata signature for 11.2-RELEASE from update5.freebsd.org... done.
Fetching metadata index... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
No updates needed to update system to 11.2-RELEASE-p0.

ok, good to go.

2018-07-14: ada1p5 - I installed FreeBSD 11.2-release on ada1p5:

root@kg-v2:~ # uname -a
FreeBSD kg-v2.kg4.no 11.2-RELEASE FreeBSD 11.2-RELEASE #0 r335510: Fri Jun 22 04:32:14 UTC 2018     root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

info

root@kg-v2:~ # date;temp;fans;swapinfo -h;echo " ";tvlm;echo " ";tvls;echo " ";df -h;echo " ";uptime;echo " ";ps ax | grep -v grep | grep ddc;ps ax | grep -v grep | grep smartd;ps ax | grep -v grep | grep natd
Sat Jul 14 23:24:03 CEST 2018
temp: Command not found.
fans: Command not found.
Device          1K-blocks     Used    Avail Capacity
/dev/ada1p3       4194304       0B     4.0G     0%

tvlm: Command not found.

tvls: Command not found.

Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada1p5    116G    755M    106G     1%    /
devfs          1.0K    1.0K      0B   100%    /dev

11:24PM  up 1 min, 2 users, load averages: 0.28, 0.10, 0.03

ada1 now looks like this

root@kg-v2:~ # gpart show -p ada1
=>        34  1953525101    ada1  GPT  (932G)
          34           6          - free -  (3.0K)
          40         128  ada1p1  freebsd-boot  (64K)
         168   251658240  ada1p2  freebsd-ufs  (120G)
   251658408     8388608  ada1p3  freebsd-swap  (4.0G)
   260047016   251658240  ada1p4  freebsd-ufs  (120G)
   511705256   251658240  ada1p5  freebsd-ufs  (120G)
   763363496  1190161639          - free -  (568G)

set the bootme flag so we always end up in ada1p5

root@kg-v2:~ # gpart set -a bootme -i 5 ada1
bootme set on ada1p5

verify

root@kg-v2:~ # gpart show -p ada1
=>        34  1953525101    ada1  GPT  (932G)
          34           6          - free -  (3.0K)
          40         128  ada1p1  freebsd-boot  (64K)
         168   251658240  ada1p2  freebsd-ufs  (120G)
   251658408     8388608  ada1p3  freebsd-swap  (4.0G)
   260047016   251658240  ada1p4  freebsd-ufs  (120G)
   511705256   251658240  ada1p5  freebsd-ufs  [bootme]  (120G)
   763363496  1190161639          - free -  (568G)

good

2018-07-14: ada1p4 - I installed FreeBSD 10.4-release:

root@kg-v2:~ # uname -a
FreeBSD kg-v2.kg4.no 10.4-RELEASE FreeBSD 10.4-RELEASE #0 r324094: Fri Sep 29 01:45:44 UTC 2017     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

info

root@kg-v2:~ # date;temp;fans;swapinfo -h;echo " ";tvlm;echo " ";tvls;echo " ";df -h;echo " ";uptime;echo " ";ps ax | grep -v grep | grep ddc;ps ax | grep -v grep | grep smartd;ps ax | grep -v grep | grep natd
Sat Jul 14 22:37:34 CEST 2018
temp: Command not found.
fans: Command not found.
Device          1K-blocks     Used    Avail Capacity
/dev/ada1p3       4194304       0B     4.0G     0%

tvlm: Command not found.

tvls: Command not found.

Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada1p4    116G    960M    106G     1%    /
devfs          1.0K    1.0K      0B   100%    /dev

10:37PM  up 2 mins, 2 users, load averages: 0.82, 0.62, 0.27

by setting the bootonce flag, I can control which partition will be booted next

root@kg-v2:~ # gpart show -p ada1
=>        34  1953525101    ada1  GPT  (932G)
          34           6          - free -  (3.0K)
          40         128  ada1p1  freebsd-boot  (64K)
         168   251658240  ada1p2  freebsd-ufs  (120G)
   251658408     8388608  ada1p3  freebsd-swap  (4.0G)
   260047016   251658240  ada1p4  freebsd-ufs  (120G)
   511705256  1441819879          - free -  (688G)

set it

root@kg-v2:~ # gpart set -a bootonce -i 4 ada1
bootonce set on ada1p4

verify

root@kg-v2:~ # gpart show -p ada1
=>        34  1953525101    ada1  GPT  (932G)
          34           6          - free -  (3.0K)
          40         128  ada1p1  freebsd-boot  (64K)
         168   251658240  ada1p2  freebsd-ufs  (120G)
   251658408     8388608  ada1p3  freebsd-swap  (4.0G)
   260047016   251658240  ada1p4  freebsd-ufs  [bootonce,bootme]  (120G)
   511705256  1441819879          - free -  (688G)

ok.

2018-07-14: ada1p2 - after cleaning, I booted up in FreeBSD 9.2-release:

tingo@kg-v2$ uname -a
FreeBSD kg-v2.kg4.no 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

not much to say. info

root@kg-v2# date;temp;swapinfo -h;echo " ";tvlm;echo " ";tvls;echo " ";df -h;echo " ";uptime;echo " ";ps ax | grep -v grep | grep ddc;ps ax | grep -v grep | grep smartd;ps ax | grep -v grep | grep natd
Sat Jul 14 21:49:58 CEST 2018
CPU: sysctl: unknown oid 'dev.aibs.0.temp.0'
MB:  sysctl: unknown oid 'dev.aibs.0.temp.1'
Device          1K-blocks     Used    Avail Capacity
/dev/ada1p3       4194304       0B     4.0G     0%

Jul 14 21:46:40 kg-v2 kernel: ugen4.2: <CHESEN> at usbus4
Jul 14 21:46:40 kg-v2 kernel: ukbd0: <CHESEN PS2 to USB Converter, class 0/0, rev 1.10/0.10, addr 2> on usbus4
Jul 14 21:46:40 kg-v2 kernel: kbd2 at ukbd0
Jul 14 21:46:40 kg-v2 kernel: ums0: <CHESEN PS2 to USB Converter, class 0/0, rev 1.10/0.10, addr 2> on usbus4
Jul 14 21:46:40 kg-v2 kernel: ums0: 5 buttons and [XYZ] coordinates ID=1
Jul 14 21:46:40 kg-v2 ntpd[1108]: ntpd 4.2.4p5-a (1)
Jul 14 21:46:40 kg-v2 kernel: .
Jul 14 21:46:45 kg-v2 login: ROOT LOGIN (root) ON ttyv0
Jul 14 21:46:48 kg-v2 ntpd[1109]: time reset +0.443813 s
Jul 14 21:49:55 kg-v2 su: tingo to root on /dev/pts/0

Nov 18 21:36:10 kg-v2 newsyslog[985]: logfile first created

Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada1p2    116G    2.7G    104G     3%    /
devfs          1.0k    1.0k      0B   100%    /dev

 9:49PM  up 3 mins, 2 users, load averages: 0.11, 0.38, 0.21

ok.

2018-07-14: ad4s2a - some stats before I shutdown the machine for cleaning

root@kg-v2# date;temp;swapinfo -h;echo " ";tvlm;echo " ";tvls;echo " ";df -h;echo " ";uptime;echo " ";ps ax | grep -v grep | grep ddc;ps ax | grep -v grep | grep smartd;ps ax | grep -v grep | grep natd;ps ax| grep -v grep | grep oscam
Sat Jul 14 20:48:27 CEST 2018
CPU: sysctl: unknown oid 'dev.aibs.0.temp.0'
MB:  sysctl: unknown oid 'dev.aibs.0.temp.1'
Device          1K-blocks     Used    Avail Capacity
/dev/ad4s1b       4194304       0B     4.0G     0%

Jun 24 10:24:00 kg-v2 ntpd[4206]: time reset -4717.666365 s
Jun 24 10:39:13 kg-v2 ntpd[4206]: time reset -4717.656154 s
Jun 24 10:54:43 kg-v2 ntpd[4206]: time reset -4717.645930 s
Jun 24 11:10:24 kg-v2 ntpd[4206]: time reset -4717.635711 s
Jun 24 11:25:56 kg-v2 ntpd[4206]: time reset -4717.625510 s
Jun 24 12:53:17 kg-v2 kernel: pid 48273 (oscam-1.20-unstable), uid 0: exited on signal 3 (core dumped)
Jun 24 11:41:26 kg-v2 ntpd[4206]: time reset -4717.615825 s
Jun 24 11:57:13 kg-v2 smartd[816]: System clock time adjusted to the past. Resetting next wakeup time.
Jul  8 12:49:20 kg-v2 su: tingo to root on /dev/pts/0
Jul 14 20:47:50 kg-v2 su: tingo to root on /dev/pts/1

Jan  1 17:37:55 kg-v2 newsyslog[673]: logfile first created

Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s2a    495M    377M     79M    83%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s2e    495M     72M    383M    16%    /tmp
/dev/ad4s2f    102G     78G     16G    83%    /usr
/dev/ad4s2d    8.6G    1.0G    6.9G    13%    /var
procfs         4.0k    4.0k      0B   100%    /proc
linprocfs      4.0k    4.0k      0B   100%    /usr/compat/linux/proc
fdescfs        1.0k    1.0k      0B   100%    /dev/fd

 8:48PM  up 271 days,  6:23, 2 users, load averages: 0.04, 0.01, 0.00

  816  ??  I      0:01.76 /usr/local/sbin/smartd -c /usr/local/etc/smartd.conf -p /var/run/smartd.pid

ok. Still running 8.4-stable

root@kg-v2# uname -a
FreeBSD kg-v2.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #8 r288306: Sun Sep 27 13:35:38 CEST 2015     root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

disk ad4

root@kg-v2# gpart show -p ad4
=>       63  976773105    ad4  MBR  (465G)
         63  245360682  ad4s1  freebsd  [active]  (117G)
  245360745  243256230  ad4s2  freebsd  (116G)
  488616975  239223915  ad4s3  !169  (114G)
  727840890  248927175  ad4s4  ebr  (118G)
  976768065       5103         - free -  (2.5M)

disk ad6

root@kg-v2# gpart show -p ad6
=>        34  1953525101    ad6  GPT  (931G)
          34           6         - free -  (3.0k)
          40         128  ad6p1  freebsd-boot  (64k)
         168   251658240  ad6p2  freebsd-ufs  (120G)
   251658408     8388608  ad6p3  freebsd-swap  (4.0G)
   260047016  1693478119         - free -  (807G)

plenty of space for new installs.

2017-08-29: ad4s2a - not sure why the machine rebooted. File systems were dirty, but no crash dumps or other hints in log files.

Aug 29 17:20:25 kg-v2 fsck: /dev/ad4s2e: 270 files, 37105 used, 216710 free (46 frags, 27083 blocks, 0.0% fragmentation)
Aug 29 17:29:51 kg-v2 fsck: /dev/ad4s2f: 1015578 files, 41030856 used, 12863220 free (206164 frags, 1582132 blocks, 0.4% fragmentation)
Aug 29 17:30:24 kg-v2 fsck: /dev/ad4s2d: 34423 files, 525406 used, 3969881 free (18009 frags, 493984 blocks, 0.4% fragmentation)

ok.

2017-08-29: ad4s1a - the machine had rebooted, and because of the grub bootloader setup, it ended up in FreeBSD 7.4-stable.

2017-07-26: ad4s2a - the time is way off. at about 00:12 it prints

root@kg-v2# date
Wed Jul 26 03:10:27 CEST 2017

and ntpq says

root@kg-v2# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*kg-omni1.kg4.no 193.228.143.22   3 u    -   64    1    0.186  -106527   0.007

time to kill oscam, restart ntpd and start oscam again. kill it

root@kg-v2# pkill -QUIT oscam

stop ntpd

root@kg-v2# service ntpd stop
Stopping ntpd.

run ntpdate some times to get synced start ntpd again

root@kg-v2# service ntpd start
Starting ntpd.

check with ntpq

root@kg-v2# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*kg-omni1.kg4.no 193.228.143.22   3 u   45   64    1    0.191   -0.011   0.006

looks much better. Finally start oscam and verify that it is running

root@kg-v2# pgrep -lf oscam
59245 ./2016/oscam-svn/Distribution/oscam-1.20-unstable_svn11211-amd64-undermydesk-freebsd-libusb-pcsc -c /home/tingo/work/dvb
59244 ./2016/oscam-svn/Distribution/oscam-1.20-unstable_svn11211-amd64-undermydesk-freebsd-libusb-pcsc -c /home/tingo/work/dvb

ok.

2017-03-11: ad4s2a - tonight I had to restart oscam, because it suddenly would not decrypt any channels.

2017-02-23: ad4s2a - testing it8718fd. Compiled and installed ok.

root@kg-v2# ./it8718fd -v
Found an ITE IT8718F (id 0x8728, version 0x01) at special address port 0x2e

System 48C
CPU 248C
Northbridge 52C

16 bit fan counters inactive; rpm readings unreliable
CPU 2922 rpm
System 0 rpm
Northbridge 0 rpm

Vcore     1.92
VDDR     1.95
+3.3     2.62
+5     4.54
+12     10.09
-12     -11.31
-5     -4.97
VSB     3.66
Vbat     2.19

System 48C
CPU 248C
Northbridge 51C

16 bit fan counters inactive; rpm readings unreliable
CPU 2922 rpm
System 0 rpm
Northbridge 0 rpm

Vcore     1.92
VDDR     1.95
+3.3     2.62
+5     4.54
+12     10.09
-12     -11.31
-5     -4.97
VSB     3.66
Vbat     2.19

^C

the CPU temperature seems incorrect.

2016-11-12: ad4s2a - time off again:

Nov 12 04:02:57 kg-v2 ntpd[774]: time correction of -1200 seconds exceeds sanity limit (1000); set clock manually to the correct UTC time.

will ntpdate on its own fix it?

root@kg-v2# ntpdate 10.1.10.1
12 Nov 19:45:27 ntpdate[64862]: step time server 10.1.10.1 offset -1199.859396 sec
root@kg-v2# ntpdate 10.1.10.1
12 Nov 19:45:29 ntpdate[64863]: step time server 10.1.10.1 offset -1199.848885 sec
root@kg-v2# ntpdate 10.1.10.1
12 Nov 19:45:30 ntpdate[64864]: step time server 10.1.10.1 offset -1199.837799 sec

nope. kill oscam

root@kg-v2# pkill -QUIT oscam

set time

root@kg-v2# ntpdate 10.1.10.1
12 Nov 19:47:40 ntpdate[64871]: step time server 10.1.10.1 offset -1199.804768 sec
root@kg-v2# ntpdate 10.1.10.1
12 Nov 19:47:41 ntpdate[64872]: adjust time server 10.1.10.1 offset 0.000007 sec
root@kg-v2# ntpdate 10.1.10.1
12 Nov 19:47:43 ntpdate[64873]: adjust time server 10.1.10.1 offset -0.000003 sec

start ntpd

root@kg-v2# service ntpd start
Starting ntpd.

check

root@kg-v2# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*kg-omni1.kg4.no 91.189.182.32    3 u   15   64    3    0.188    0.006   0.002

and start oscam again. Back to normal.

2016-08-25: uptime status:

root@kg-v2# date;uptime
Thu Aug 25 23:00:46 CEST 2016
11:00PM  up 333 days, 14:10, 3 users, load averages: 0.00, 0.00, 0.00

ok.

2016-05-02: ad4s2a - time was off again:

May  1 13:00:37 kg-v2 ntpd[49625]: time correction of -1200 seconds exceeds sanity limit (1000); set clock manually to the correct UTC time.

after fixing it via the "normal" procedure:

May  2 09:59:16 kg-v2 kernel: pid 49628 (oscam-1.20-unstable), uid 0: exited on signal 3 (core dumped)
May  2 09:19:44 kg-v2 ntpd[80466]: ntpd 4.2.4p5-a (1)
May  2 09:42:37 kg-v2 smartd[813]: System clock time adjusted to the past. Resetting next wakeup time.

ok.

2016-04-02: ad4s2a - time is off again:

Apr  2 16:17:23 kg-v2 ntpd[88820]: time correction of -1200 seconds exceeds sanity limit (1000); set clock manually to the correct UTC time.

kill oscam, set time with ntpdate, start ntpd, start oscam.

2016-03-29: ad4s2a - time is off again:

Mar 28 21:09:11 kg-v2 ntpd[76508]: time correction of -1200 seconds exceeds sanity limit (1000); set clock manually to the correct UTC time.

kill oscam:

root@kg-v2# pkill -QUIT oscam

use ntpdate to set time:

root@kg-v2# ntpdate 10.1.10.1
29 Mar 16:35:36 ntpdate[88811]: step time server 10.1.10.1 offset -1199.858099 sec
root@kg-v2# ntpdate 10.1.10.1
29 Mar 16:35:37 ntpdate[88812]: adjust time server 10.1.10.1 offset 0.000007 sec

start ntpd again

root@kg-v2# service ntpd start
Starting ntpd.

and then I started oscam:

root@kg-v2# pgrep -lf oscam
88822 ./2016/oscam-svn/Distribution/oscam-1.20-unstable_svn11211-amd64-undermydesk-freebsd-libusb-pcsc -c /home/tingo/work/dvb
88821 ./2016/oscam-svn/Distribution/oscam-1.20-unstable_svn11211-amd64-undermydesk-freebsd-libusb-pcsc -c /home/tingo/work/dvb

check with ntpq:

root@kg-v2# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*kg-omni1.kg4.no 81.175.5.182     2 u   58   64    3    0.185   -0.016   0.042

until next time.

2016-03-16: ad4s2a - time was off again:

Mar 16 14:32:55 kg-v2 ntpd[80115]: time correction of -1200 seconds exceeds sanity limit (1000); set clock manually to the correct UTC time.

killed oscam (pkill -QUIT oscam), set time with ntpdate, started ntpd and started oscam again.

Mar 16 21:01:30 kg-v2 kernel: pid 73039 (oscam-1.20-unstable), uid 0: exited on signal 3 (core dumped)
Mar 16 20:41:53 kg-v2 ntpd[14670]: ntpd 4.2.4p5-a (1)

ok.

root@kg-v2# pgrep -lf oscam
14703 ./2016/oscam-svn/Distribution/oscam-1.20-unstable_svn11211-amd64-undermydesk-freebsd-libusb-pcsc -c /home/tingo/work/dvb
14702 ./2016/oscam-svn/Distribution/oscam-1.20-unstable_svn11211-amd64-undermydesk-freebsd-libusb-pcsc -c /home/tingo/work/dvb

that's all.

2016-03-09: ad4s2a - I noticed time was off again:

Mar  9 03:23:08 kg-v2 ntpd[93324]: time correction of -1200 seconds exceeds sanity limit (1000); set clock manually to the correct UTC time.

so I killed oscam, set the time with ntpdate, started ntpd aghain and then started oscam again.

Mar  9 17:35:26 kg-v2 kernel: pid 93355 (oscam-1.20-unstable), uid 0: exited on signal 3 (core dumped)
Mar  9 17:15:58 kg-v2 ntpd[80114]: ntpd 4.2.4p5-a (1)

I really should upgrade to a newer version of oscam soon, one that doesn't try to control time. Anyway, oscam is up again:

root@kg-v2# pgrep -lf oscam
80237 ./2015/oscam-svn/Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd-libusb-pcsc -c /home/tingo/work/dvb
80236 ./2015/oscam-svn/Distribution/oscam-1.20-unstable_svn10679-amd64-undermydesk-freebsd-libusb-pcsc -c /home/tingo/work/dvb

ok.

2015-11-17: ad4s2a - interesting log entry in /var/log/messages:

Nov 16 09:49:41 kg-v2 ntpd[770]: time correction of -1200 seconds exceeds sanity limit (1000); set clock manually to the correct UTC time.

so I try to fix it with ntpdate:

root@kg-v2# service ntpd status
ntpd is not running.
root@kg-v2# ntpdate 10.1.10.1
17 Nov 16:52:11 ntpdate[29735]: step time server 10.1.10.1 offset -1199.914583 sec
root@kg-v2# ntpdate 10.1.10.1
17 Nov 16:52:12 ntpdate[29736]: step time server 10.1.10.1 offset -1199.903577 sec
root@kg-v2# ntpdate 10.1.10.1
17 Nov 16:52:13 ntpdate[29737]: step time server 10.1.10.1 offset -1199.892568 sec
root@kg-v2# ntpdate 10.1.10.1
17 Nov 16:52:15 ntpdate[29738]: step time server 10.1.10.1 offset -1199.881563 sec
root@kg-v2# ntpdate 10.1.10.1
17 Nov 16:52:15 ntpdate[29739]: step time server 10.1.10.1 offset -1199.870556 sec
root@kg-v2# ntpdate 10.1.10.1
17 Nov 16:52:16 ntpdate[29740]: step time server 10.1.10.1 offset -1199.859548 sec
root@kg-v2# ntpdate 10.1.10.1
17 Nov 17:12:17 ntpdate[29741]: step time server 10.1.10.1 offset -1199.848539 sec
root@kg-v2# ntpdate 10.1.10.1
17 Nov 16:52:18 ntpdate[29742]: step time server 10.1.10.1 offset -1199.837536 sec
root@kg-v2# ntpdate 10.1.10.1
17 Nov 16:52:18 ntpdate[29743]: step time server 10.1.10.1 offset -1199.826529 sec
root@kg-v2# ntpdate 10.1.10.1
17 Nov 16:52:20 ntpdate[29744]: step time server 10.1.10.1 offset -1199.815526 sec
root@kg-v2#

then start the ntp service again

root@kg-v2# service ntpd start
Starting ntpd.
root@kg-v2# service ntpd status
ntpd is running as pid 29752.

and now /var/log/messages show:

Nov 17 17:12:33 kg-v2 ntpd[29751]: ntpd 4.2.4p5-a (1)
Nov 17 16:52:43 kg-v2 ntpd[29752]: time reset -1199.804533 s

and ntpq says:

root@kg-v2# date;ntpq -p
Tue Nov 17 17:19:09 CET 2015
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 kg-omni1.kg4.no 139.112.153.36   3 u   17   64   77    0.213  -119979   0.170

perhaps the BIOS battery is shot? We'll see. Later, I see this in /var/log/messages:

Nov 17 19:11:41 kg-v2 ntpd[29752]: time reset -1199.715197 s
Nov 17 19:27:17 kg-v2 ntpd[29752]: time reset -1199.704936 s
Nov 17 19:42:42 kg-v2 ntpd[29752]: time reset -1199.694763 s
Nov 17 19:58:42 kg-v2 ntpd[29752]: time reset -1199.692586 s

(lots more) and ntpq says:

root@kg-v2# date;ntpq -p
Tue Nov 17 20:31:20 CET 2015
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*kg-omni1.kg4.no 188.126.88.9     3 u   28   64  377    0.213  -119968   0.260

Hmm,

2015-11-14: ad4s2a - change to new firewall noted in /var/log/messages: Nov 14 13:48:26 kg-v2 kernel: arp: 10.1.10.1 moved from 00:10:4b:e3:38:8b to 80:ee:73:60:61:0c on re0 nothing more.

2015-09-27: ad4s2a - the machine now runs latest FreeBSD 8.4-stable. dmesg output: normal, verbose.

root@kg-v2# uname -a
FreeBSD kg-v2.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #8 r288306: Sun Sep 27 13:35:38 CEST 2015     root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

and ntpd now says:

Sep 27 13:51:00 kg-v2 ntpd[769]: ntpd 4.2.4p5-a (1)
Sep 27 13:51:14 kg-v2 ntpd[770]: time reset +0.525864 s

ntpq

root@kg-v2# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 kg-omni1.kg4.no 85.252.162.7     3 u   57   64   77    0.566   -0.189   0.136

looks more reasonable. we'll see if that holds.

2015-09-27: ad4s2a - upgrade to latest FreeBSD 8.4-stable via make world.

root@kg-v2# pwd
/usr/src
root@kg-v2# make -j4 buildworld
[...]
--------------------------------------------------------------
>>> World build completed on Sun Sep 27 13:20:53 CEST 2015
--------------------------------------------------------------

kernel

root@kg-v2# 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

I do the rest of it in multiuser too.

root@kg-v2# 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 world

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

delete old stuff

root@kg-v2# make delete-old
>>> Removing old files (only deletes safe to delete libs)
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
>>> Old directories removed
To remove old libraries run 'make delete-old-libs'.
root@kg-v2# 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-v2# 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
[...]
*** 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/pkg/FreeBSD.conf


*** You chose the automatic upgrade option for files that you did
    not alter on your system.  The following were upgraded for you:
      /COPYRIGHT
      /etc/mail/freebsd.cf
      /etc/mail/freebsd.mc
      /etc/mail/freebsd.submit.cf
      /etc/mail/freebsd.submit.mc
      /etc/mail/helpfile
      /etc/mail/sendmail.cf
      /etc/mail/submit.cf
      /etc/mtree/BSD.root.dist
      /etc/mtree/BSD.usr.dist
      /etc/newsyslog.conf
      /etc/periodic/security/800.loginfail
      /etc/rc.d/jail
      /var/named/etc/namedb/named.root


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

then only a reboot remains.

2015-09-27: ad4s2a - remove the acroread port (and companion):

root@kg-v2# pkg_delete acroread9-9.5.5 acroreadwrapper-0.0.20130208

ok.

2015-09-27: ad4s2a - FreeBSD on this machine was last updated in 2013:

root@kg-v2# uname -a
FreeBSD kg-v2.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #7 r256430: Sun Oct 13 19:43:35 CEST 2013     root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

let me update the source (via svn).

root@kg-v2# cd /usr/src
root@kg-v2# svn up
Updating '.':
[...]
U    crypto/openssl/engines/e_atalla.c
 U   crypto/openssl
 U   .
Updated to revision 288306.

verify

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

ok.

2015-09-27: ad4s2a - hard drive health:

root@kg-v2# smartctl -H /dev/ad4
smartctl 6.1 2013-03-16 r3800 [FreeBSD 8.4-STABLE amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

root@kg-v2# smartctl -H /dev/ad6
smartctl 6.1 2013-03-16 r3800 [FreeBSD 8.4-STABLE amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

and hard drive info:

root@kg-v2# smartctl -i /dev/ad4
smartctl 6.1 2013-03-16 r3800 [FreeBSD 8.4-STABLE amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     SAMSUNG SpinPoint T166
Device Model:     SAMSUNG HD501LJ
Serial Number:    S0MUJ1CQ988036
LU WWN Device Id: 5 0000f0 01b988036
Firmware Version: CR100-13
User Capacity:    500,107,862,016 bytes [500 GB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS T13/1699-D revision 3b
SATA Version is:  SATA 2.5, 3.0 Gb/s
Local Time is:    Sun Sep 27 11:59:56 2015 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

root@kg-v2# smartctl -i /dev/ad6
smartctl 6.1 2013-03-16 r3800 [FreeBSD 8.4-STABLE amd64] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     WDC WD10EZEX-00RKKA0
Serial Number:    WD-WCC1S3592831
LU WWN Device Id: 5 0014ee 25dbab19c
Firmware Version: 80.00A80
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sun Sep 27 12:00:07 2015 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

nothing more.

2015-09-27: ad4s2a - after a restart (complete power off) I check ntp again:

Sep 27 11:21:04 kg-v2 ntpd[770]: time reset -1198.970671 s

it doesn't look good. I changed /etc/ntp.conf:

root@kg-v2# more /etc/ntp.conf
server  10.1.10.1 iburst

restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

# The following settings allow unrestricted access from the localhost
restrict 127.0.0.1
restrict -6 ::1
restrict 127.127.1.0

I added 'iburst' and the other lines. The I restarted ntpd. From /var/log/messages:

Sep 27 11:53:05 kg-v2 ntpd[770]: ntpd exiting on signal 15
Sep 27 11:53:05 kg-v2 ntpd[1240]: ntpd 4.2.4p5-a (1)
Sep 27 11:33:15 kg-v2 ntpd[1241]: time reset -1198.959919 s

and ntpq:

root@kg-v2# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 kg-omni1.kg4.no 85.252.162.7     3 u   33   64   17    0.323  -119894   0.059

odd. A bit later:

root@kg-v2# date
Sun Sep 27 12:07:58 CEST 2015
root@kg-v2# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*kg-omni1.kg4.no 78.156.103.10    3 u   15   64  377    0.403  -119894   0.358
root@kg-v2# date;ntpq -p
Sun Sep 27 12:09:06 CEST 2015
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 kg-omni1.kg4.no 78.156.103.10    3 u    1   64    1    0.308  -119893   0.017

it looks like ntpd is having trouble.

2015-09-27: ad4s2a - prepare for restart. Partition layouts etc: first drive

root@kg-v2# gpart show -p ad4
=>       63  976773105    ad4  MBR  (465G)
         63  245360682  ad4s1  freebsd  [active]  (117G)
  245360745  243256230  ad4s2  freebsd  (116G)
  488616975  239223915  ad4s3  !169  (114G)
  727840890  248927175  ad4s4  ebr  (118G)
  976768065       5103         - free -  (2.5M)

second drive

root@kg-v2# gpart show -p ad6
=>        34  1953525101    ad6  GPT  (931G)
          34           6         - free -  (3.0k)
          40         128  ad6p1  freebsd-boot  (64k)
         168   251658240  ad6p2  freebsd-ufs  (120G)
   251658408     8388608  ad6p3  freebsd-swap  (4.0G)
   260047016  1693478119         - free -  (807G)

uptime

root@kg-v2# uptime
11:30AM  up 223 days, 17:53, 3 users, load averages: 0.00, 0.00, 0.00

that's all.

2015-09-27: ad4s2a - I set the clock with ntpdate, then restarted ntpd. From /var/log/messages:

Sep 27 03:05:41 kg-v2 ntpd[16209]: ntpd 4.2.4p5-a (1)
Sep 27 02:49:59 kg-v2 ntpd[16210]: time reset -1199.634622 s
Sep 27 03:05:22 kg-v2 ntpd[16210]: time reset -1199.623535 s
Sep 27 03:21:04 kg-v2 ntpd[16210]: time reset -1199.613159 s
Sep 27 03:36:20 kg-v2 ntpd[16210]: time reset -1199.602707 s
Sep 27 03:51:23 kg-v2 ntpd[16210]: time reset -1199.591514 s
Sep 27 04:06:47 kg-v2 ntpd[16210]: time reset -1199.581462 s
Sep 27 04:22:09 kg-v2 ntpd[16210]: time reset -1199.570486 s
Sep 27 04:37:54 kg-v2 ntpd[16210]: time reset -1199.559731 s
Sep 27 04:53:26 kg-v2 ntpd[16210]: time reset -1199.548946 s
Sep 27 05:08:59 kg-v2 ntpd[16210]: time reset -1199.537958 s
Sep 27 05:24:43 kg-v2 ntpd[16210]: time reset -1199.526939 s
Sep 27 05:40:11 kg-v2 ntpd[16210]: time reset -1199.515689 s
Sep 27 05:55:44 kg-v2 ntpd[16210]: time reset -1199.503551 s
Sep 27 06:11:40 kg-v2 ntpd[16210]: time reset -1199.490778 s
Sep 27 06:26:45 kg-v2 ntpd[16210]: time reset -1199.481053 s
Sep 27 06:41:56 kg-v2 ntpd[16210]: time reset -1199.468671 s
Sep 27 06:57:17 kg-v2 ntpd[16210]: time reset -1199.458954 s
Sep 27 07:12:56 kg-v2 ntpd[16210]: time reset -1199.445965 s
Sep 27 07:28:55 kg-v2 ntpd[16210]: time reset -1199.432951 s
Sep 27 07:44:58 kg-v2 ntpd[16210]: time reset -1199.420226 s
Sep 27 08:00:18 kg-v2 ntpd[16210]: time reset -1199.409409 s
Sep 27 08:15:20 kg-v2 ntpd[16210]: time reset -1199.397959 s
Sep 27 08:30:32 kg-v2 ntpd[16210]: time reset -1199.386245 s
Sep 27 08:46:03 kg-v2 ntpd[16210]: time reset -1199.375134 s
Sep 27 09:01:45 kg-v2 ntpd[16210]: time reset -1199.363822 s
Sep 27 09:16:55 kg-v2 ntpd[16210]: time reset -1199.352777 s
Sep 27 09:32:40 kg-v2 ntpd[16210]: time reset -1199.341745 s
Sep 27 09:48:28 kg-v2 ntpd[16210]: time reset -1199.330811 s
Sep 27 10:03:36 kg-v2 ntpd[16210]: time reset -1199.326024 s
Sep 27 10:19:29 kg-v2 ntpd[16210]: time reset -1199.322957 s
Sep 27 10:34:51 kg-v2 ntpd[16210]: time reset -1199.311929 s

check with ntpq:

root@kg-v2# ntpq -p
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 kg-omni1.kg4.no 85.252.162.7     3 u   36   64    1    0.331  -119929   0.002

no, not synced.

2015-09-25: ad4s2a - problems with ntp or the hardware clock or the battery?

Sep 25 09:46:24 kg-v2 ntpd[780]: time correction of -1200 seconds exceeds sanity limit (1000); set clock manually to the correct UTC time.

2014-05-03: ad4s2a - crochet needs a few things to work. try it:

tingo@kg-v2$ cd crochet-freebsd/
tingo@kg-v2$ sh crochet.sh -b RaspberryPi
Starting at Sat May 3 12:43:11 CEST 2014
Board: RaspberryPi
Source version is: r256430
Building FreeBSD version: 8.4
Image name is:
    /usr/home/tingo/work/crochet-freebsd/work/FreeBSD-armv6-8.4-RPI-B-r256430.img
Didn't find /usr/src/sys/arm/conf/RPI-B

You can obtain a suitable FreeBSD source tree with the folowing commands:

 $ svn co https://svn0.us-west.freebsd.org/base/head /usr/src

Set $FREEBSD_SRC in the -c <config file> if you have the sources in a different directory.
Run this script again after you have the sources installed.

OK, it's not going to work for FreeBSD 8.4. Try a different board:

tingo@kg-v2$ sh crochet.sh -b Soekris
Starting at Sat May 3 13:00:16 CEST 2014
Board: Soekris
Source version is: r256430
Building FreeBSD version: 8.4
Copying build config SOEKRIS8 to source tree
cp: /usr/src/sys/i386/conf/SOEKRIS: Permission denied
tingo@kg-v2$ ll /usr/src/sys/i386/conf/SOEKRIS
-rw-r--r--  1 root  users  - 12934 May  3 12:40 /usr/src/sys/i386/conf/SOEKRIS

funny.

tingo@kg-v2$ sh crochet.sh -b Alix
Starting at Sat May 3 13:18:30 CEST 2014
Board: Alix
Source version is: r256430
Building FreeBSD version: 8.4
Copying build config ALIX8 to source tree
cp: /usr/home/tingo/work/crochet-freebsd/board/Alix/conf/ALIX8: No such file or directory

aha - a pattern emerges.

tingo@kg-v2$ sh crochet.sh -b BeagleBone
Starting at Sat May 3 13:19:43 CEST 2014
Board: BeagleBone
Source version is: r256430
Building FreeBSD version: 8.4
Image name is:
    /usr/home/tingo/work/crochet-freebsd/work/FreeBSD-armv6-8.4-BEAGLEBONE-r256430.img
Didn't find /usr/src/sys/arm/conf/BEAGLEBONE

You can obtain a suitable FreeBSD source tree with the folowing commands:

 $ svn co https://svn0.us-west.freebsd.org/base/head /usr/src

Set $FREEBSD_SRC in the -c <config file> if you have the sources in a different directory.
Run this script again after you have the sources installed.

ARM needs newer sources. Try another

tingo@kg-v2$ sh crochet.sh -b GenericI386
Starting at Sat May 3 13:21:07 CEST 2014
Board: GenericI386
Source version is: r256430
Building FreeBSD version: 8.4
Image name is:
    /usr/home/tingo/work/crochet-freebsd/work/FreeBSD-i386-8.4-GENERIC-r256430.img
Building FreeBSD version: 8.4
Object files are at: /usr/home/tingo/work/crochet-freebsd/work/obj/i386/usr/src
Found suitable FreeBSD source tree in:
    /usr/src
Building FreeBSD i386 world at Sat May 3 13:21:07 CEST 2014
    (Logging to /usr/home/tingo/work/crochet-freebsd/work/_.buildworld.i386.log)
[... it will take a while to run...]
Building FreeBSD i386-GENERIC kernel at Sat May 3 14:04:02 CEST 2014
    (Logging to /usr/home/tingo/work/crochet-freebsd/work/_.buildkernel.i386-GENERIC.log)
Creating a 600MB raw disk image in:
    /usr/home/tingo/work/crochet-freebsd/work/FreeBSD-i386-8.4-GENERIC-r256430.img
mdconfig: open(/dev/mdctl): Permission denied

It didn't take that long.

2014-05-03: ad4s2a - getting crochet-freebsd:

tingo@kg-v2$ pwd
/usr/home/tingo/work
tingo@kg-v2$ git clone git://github.com/kientzle/crochet-freebsd.git
Cloning into 'crochet-freebsd'...
remote: Reusing existing pack: 3558, done.
remote: Counting objects: 9, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 3567 (delta 1), reused 2 (delta 1)
Receiving objects: 100% (3567/3567), 6.28 MiB | 593.00 KiB/s, done.
Resolving deltas: 100% (1628/1628), done.
Checking connectivity... done

done.

2014-04-02: building telldus-core:

tingo@kg-v2$ pwd
/home/tingo/work/telldus-core-2.1.1
tingo@kg-v2$ cmake .
-- The C compiler identification is GNU 4.2.1
-- The CXX compiler identification is GNU 4.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/CC
-- Check for working CXX compiler: /usr/bin/CC -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE 
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.28")
-- checking for one of the modules 'libftdi'
-- Configuring done
-- Generating done
-- Build files have been written to: /home/tingo/work/telldus-core-2.1.1
tingo@kg-v2$ make
Scanning dependencies of target TelldusCommon
[  2%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Event.cpp.o
[  4%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Message.cpp.o
[  6%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Mutex.cpp.o
[  8%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Strings.cpp.o
[ 10%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Thread.cpp.o
[ 12%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Event_unix.cpp.o
[ 14%] Building CXX object common/CMakeFiles/TelldusCommon.dir/EventHandler_unix.cpp.o
[ 16%] Building CXX object common/CMakeFiles/TelldusCommon.dir/Socket_unix.cpp.o
Linking CXX static library libTelldusCommon.a
[ 16%] Built target TelldusCommon
Scanning dependencies of target telldusd
[ 18%] Building CXX object service/CMakeFiles/telldusd.dir/ClientCommunicationHandler.cpp.o
[ 20%] Building CXX object service/CMakeFiles/telldusd.dir/Controller.cpp.o
/home/tingo/work/telldus-core-2.1.1/service/Controller.cpp:35:2: warning: no newline at end of file
[ 22%] Building CXX object service/CMakeFiles/telldusd.dir/ControllerManager.cpp.o
[ 24%] Building CXX object service/CMakeFiles/telldusd.dir/ControllerMessage.cpp.o
[ 26%] Building CXX object service/CMakeFiles/telldusd.dir/Device.cpp.o
[ 28%] Building CXX object service/CMakeFiles/telldusd.dir/DeviceManager.cpp.o
[ 30%] Building CXX object service/CMakeFiles/telldusd.dir/Log.cpp.o
[ 32%] Building CXX object service/CMakeFiles/telldusd.dir/Sensor.cpp.o
[ 34%] Building CXX object service/CMakeFiles/telldusd.dir/Settings.cpp.o
[ 36%] Building CXX object service/CMakeFiles/telldusd.dir/TelldusMain.cpp.o
[ 38%] Building CXX object service/CMakeFiles/telldusd.dir/TellStick.cpp.o
[ 40%] Building CXX object service/CMakeFiles/telldusd.dir/Timer.cpp.o
[ 42%] Building CXX object service/CMakeFiles/telldusd.dir/EventUpdateManager.cpp.o
[ 44%] Building CXX object service/CMakeFiles/telldusd.dir/ConnectionListener_unix.cpp.o
[ 46%] Building CXX object service/CMakeFiles/telldusd.dir/main_unix.cpp.o
[ 48%] Building CXX object service/CMakeFiles/telldusd.dir/SettingsConfuse.cpp.o
[ 50%] Building CXX object service/CMakeFiles/telldusd.dir/TellStick_libftdi.cpp.o
[ 52%] Building CXX object service/CMakeFiles/telldusd.dir/Protocol.cpp.o
[ 54%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolBrateck.cpp.o
[ 56%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolComen.cpp.o
[ 58%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolEverflourish.cpp.o
/home/tingo/work/telldus-core-2.1.1/service/ProtocolEverflourish.cpp:131:2: warning: no newline at end of file
[ 60%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolFineoffset.cpp.o
[ 62%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolFuhaote.cpp.o
[ 64%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolGroup.cpp.o
[ 66%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolHasta.cpp.o
/home/tingo/work/telldus-core-2.1.1/service/ProtocolHasta.cpp:66:2: warning: no newline at end of file
[ 68%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolIkea.cpp.o
[ 70%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolMandolyn.cpp.o
[ 72%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolNexa.cpp.o
[ 74%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolOregon.cpp.o
[ 76%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolRisingSun.cpp.o
[ 78%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolSartano.cpp.o
[ 80%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolScene.cpp.o
[ 82%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolSilvanChip.cpp.o
[ 84%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolUpm.cpp.o
[ 86%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolWaveman.cpp.o
[ 88%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolX10.cpp.o
[ 90%] Building CXX object service/CMakeFiles/telldusd.dir/ProtocolYidong.cpp.o
Linking CXX executable telldusd
[ 90%] Built target telldusd
Scanning dependencies of target telldus-core
[ 92%] Building CXX object client/CMakeFiles/telldus-core.dir/CallbackDispatcher.cpp.o
[ 94%] Building CXX object client/CMakeFiles/telldus-core.dir/Client.cpp.o
[ 96%] Building CXX object client/CMakeFiles/telldus-core.dir/telldus-core.cpp.o
Linking CXX shared library libtelldus-core.so
Copying OS X content client/Headers/telldus-core.h
[ 96%] Built target telldus-core
Scanning dependencies of target tdtool
[ 98%] Building CXX object tdtool/CMakeFiles/tdtool.dir/main.cpp.o
Linking CXX executable tdtool
[ 98%] Built target tdtool
Scanning dependencies of target tdadmin
[100%] Building CXX object tdadmin/CMakeFiles/tdadmin.dir/main.cpp.o
Linking CXX executable tdadmin
[100%] Built target tdadmin

Ok, it builds ok at least.

2014-04-02: telldus-core 2.1.1 prerequisites: argp-standalone, libconfuse, libftdi,

root@kg-v2# portinstall -R libftdi
[output snipped]
===>   Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===>   Registering installation for libftdi-0.20
===>  Cleaning for swig-2.0.9
===>  Cleaning for automake-1.14
===>  Cleaning for libftdi-0.20
root@kg-v2# portinstall -R libconfuse
[output snipped]
===>   Running ldconfig
/sbin/ldconfig -m /usr/local/lib
===>   Registering installation for libconfuse-2.7
===>  Cleaning for libconfuse-2.7
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 1107 packages found (-0 +1) . done]

not sure if argp-standalone is needed, trying without.

2013-12-15: prepare to copy an image to a CF card - prepare: insert card, power off and on the usb card reader:

root@kg-v2# usbconfig -d ugen1.2 power_off
root@kg-v2# usbconfig -d ugen1.2 power_on

verify that the card is detected:

Dec 16 00:05:03 kg-v2 kernel: umass0: at uhub1, port 1, addr 2 (disconnected)
Dec 16 00:05:03 kg-v2 kernel: (da0:umass-sim0:0:0:0): lost device - 0 outstanding, 0 refs
Dec 16 00:05:03 kg-v2 kernel: (da0:umass-sim0:0:0:0): removing device entry
Dec 16 00:05:03 kg-v2 kernel: (da1:umass-sim0:0:0:1): lost device - 0 outstanding, 0 refs
Dec 16 00:05:03 kg-v2 kernel: (da1:umass-sim0:0:0:1): removing device entry
Dec 16 00:05:03 kg-v2 kernel: (da2:umass-sim0:0:0:2): lost device - 0 outstanding, 0 refs
Dec 16 00:05:03 kg-v2 kernel: (da2:umass-sim0:0:0:2): removing device entry

all I get is these messages in /var/log/messages. Oh well, I will try on the v7 machine.

2013-12-13: ad4s2a - testing another CF card, this time a SanDisk 128MB: from /var/log/messages:

Dec 13 21:15:17 kg-v2 kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
Dec 13 21:15:17 kg-v2 kernel: da0: <Generic 2.0 Reader    -0 1.00> Removable Direct Access SCSI-0 device
Dec 13 21:15:17 kg-v2 kernel: da0: 40.000MB/s transfers
Dec 13 21:15:17 kg-v2 kernel: da0: 122MB (250880 512 byte sectors: 64H 32S/T 122C)
Dec 13 21:15:17 kg-v2 kernel: da0: quirks=0x2<NO_6_BYTE>

disktype info:

root@kg-v2# disktype /dev/da0

--- /dev/da0
Character device, size 122.5 MiB (128450560 bytes)
DOS/MBR partition map
Partition 1: 122.4 MiB (128303104 bytes, 250592 sectors from 32, bootable)
  Type 0x06 (FAT16)
  Windows / MS-DOS boot loader
  FAT16 file system (hints score 5 of 5)
    Volume size 122.1 MiB (128034816 bytes, 62517 clusters of 2 KiB)
    Volume name "Flytter "

Interesting. Is there files on it?

root@kg-v2# mount -t msdosfs /dev/da0s1 /mnt
root@kg-v2# df -h /mnt
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/da0s1    122M     14k    122M     0%    /mnt
root@kg-v2# ls -l /mnt/*
-rwxr-xr-x  1 root  wheel  4146 Mar 22  2005 /mnt/unpack.log

/mnt/Test2:
total 2
-rwxr-xr-x  1 root  wheel  1283 Nov 15  2003 dv5000_fw.txt

Ok, nothing interesting.

root@kg-v2# umount /mnt

done.

2013-11-20: ad4s2a - testing the usb card reader again.

root@kg-v2# uname -a
FreeBSD kg-v2.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #7 r256430: Sun Oct 13 19:43:35 CEST 2013     root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

Ok, it works if I use power_off / power on after inserting a card:

root@kg-v2# usbconfig -d ugen1.2
ugen1.2: <USB 2.0 Reader Generic> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
root@kg-v2# usbconfig -d ugen1.2 power_off
root@kg-v2# usbconfig -d ugen1.2 power_on

SD card, from /var/log/messages:

Nov 20 19:56:46 kg-v2 kernel: da1 at umass-sim0 bus 0 scbus0 target 0 lun 1
Nov 20 19:56:46 kg-v2 kernel: da1: <Generic 2.0 Reader    -1 1.00> Removable Direct Access SCSI-0 device
Nov 20 19:56:46 kg-v2 kernel: da1: 40.000MB/s transfers
Nov 20 19:56:46 kg-v2 kernel: da1: 3823MB (7829504 512 byte sectors: 255H 63S/T 487C)
Nov 20 19:56:46 kg-v2 kernel: da1: quirks=0x2<NO_6_BYTE>

CF card, from /var/log/messages:

Nov 20 20:02:47 kg-v2 kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
Nov 20 20:02:47 kg-v2 kernel: da0: <Generic 2.0 Reader    -0 1.00> Removable Direct Access SCSI-0 device
Nov 20 20:02:47 kg-v2 kernel: da0: 40.000MB/s transfers
Nov 20 20:02:47 kg-v2 kernel: da0: 3811MB (7806960 512 byte sectors: 255H 63S/T 485C)
Nov 20 20:02:47 kg-v2 kernel: da0: quirks=0x2<NO_6_BYTE>

I don't know why it didn't work before.

2013-11-19: ada1p2 - put a ports tree on the machine via portsnap fetch; portsnap extract.

2013-11-19: ada1p2 - testing the usb card reader. Plugging in a card doesn't do anything, but powering off then on with a card in the reader works:

root@kg-v2# usbconfig -d ugen3.2
ugen3.2: <USB 2.0 Reader Generic> at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
root@kg-v2# usbconfig -d ugen3.2 power_off
root@kg-v2# usbconfig -d ugen3.2 power_on

after that, I get this in /var/log/messages: for a SD card:

Nov 19 22:07:12 kg-v2 kernel: da1 at umass-sim0 bus 0 scbus2 target 0 lun 1
Nov 19 22:07:12 kg-v2 kernel: da1: <Generic 2.0 Reader    -1 1.00> Removable Direct Access SCSI-0 device
Nov 19 22:07:12 kg-v2 kernel: da1: 40.000MB/s transfers
Nov 19 22:07:12 kg-v2 kernel: da1: 3823MB (7829504 512 byte sectors: 255H 63S/T 487C)
Nov 19 22:07:12 kg-v2 kernel: da1: quirks=0x2<NO_6_BYTE>

for a CF card

Nov 19 22:14:41 kg-v2 kernel: da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
Nov 19 22:14:41 kg-v2 kernel: da0: <Generic 2.0 Reader    -0 1.00> Removable Direct Access SCSI-0 device
Nov 19 22:14:41 kg-v2 kernel: da0: 40.000MB/s transfers
Nov 19 22:14:41 kg-v2 kernel: da0: 3811MB (7806960 512 byte sectors: 255H 63S/T 485C)
Nov 19 22:14:41 kg-v2 kernel: da0: quirks=0x2<NO_6_BYTE>

that was all.

2013-11-18: ada1p2 - FreeBSD 9.2-release installed (from the memstick image). dmesg output: normal, verbose.

tingo@kg-v2$ uname -a
FreeBSD kg-v2.kg4.no 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

disk info:

tingo@kg-v2$ gpart show -p ada1
=>        34  1953525101    ada1  GPT  (931G)
          34           6          - free -  (3.0k)
          40         128  ada1p1  freebsd-boot  (64k)
         168   251658240  ada1p2  freebsd-ufs  (120G)
   251658408     8388608  ada1p3  freebsd-swap  (4.0G)
   260047016  1693478119          - free -  (807G)
tingo@kg-v2$ swapinfo -h;df -h
Device          1K-blocks     Used    Avail Capacity
/dev/ada1p3       4194304       0B     4.0G     0%
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada1p2    116G    1.5G    105G     1%    /
devfs          1.0k    1.0k      0B   100%    /dev

Other disks:

tingo@kg-v2$ gpart show -p ada0
=>       63  976773105    ada0  MBR  (465G)
         63  245360682  ada0s1  freebsd  [active]  (117G)
  245360745  243256230  ada0s2  freebsd  (116G)
  488616975  239223915  ada0s3  !169  (114G)
  727840890  248927175  ada0s4  ebr  (118G)
  976768065       5103          - free -  (2.5M)

pci info:

root@kg-v2# pciconf -lv
hostb0@pci0:0:0:0:    class=0x060000 card=0x14101022 chip=0x14101022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    class      = bridge
    subclass   = HOST-PCI
none0@pci0:0:0:2:    class=0x080600 card=0x14191022 chip=0x14191022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    class      = base peripheral
pcib1@pci0:0:2:0:    class=0x060400 card=0x12341022 chip=0x14121022 rev=0x00 hdr=0x01
    vendor     = 'Advanced Micro Devices [AMD]'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:4:0:    class=0x060400 card=0x12341022 chip=0x14141022 rev=0x00 hdr=0x01
    vendor     = 'Advanced Micro Devices [AMD]'
    class      = bridge
    subclass   = PCI-PCI
xhci0@pci0:0:16:0:    class=0x0c0330 card=0x50041458 chip=0x78121022 rev=0x03 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Hudson USB XHCI Controller'
    class      = serial bus
    subclass   = USB
xhci1@pci0:0:16:1:    class=0x0c0330 card=0x50041458 chip=0x78121022 rev=0x03 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Hudson USB XHCI Controller'
    class      = serial bus
    subclass   = USB
ahci0@pci0:0:17:0:    class=0x010601 card=0xb0021458 chip=0x78011022 rev=0x40 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Hudson SATA Controller [AHCI mode]'
    class      = mass storage
    subclass   = SATA
ohci0@pci0:0:18:0:    class=0x0c0310 card=0x50041458 chip=0x78071022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Hudson USB OHCI Controller'
    class      = serial bus
    subclass   = USB
ehci0@pci0:0:18:2:    class=0x0c0320 card=0x50041458 chip=0x78081022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Hudson USB EHCI Controller'
    class      = serial bus
    subclass   = USB
ohci1@pci0:0:19:0:    class=0x0c0310 card=0x50041458 chip=0x78071022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Hudson USB OHCI Controller'
    class      = serial bus
    subclass   = USB
ehci1@pci0:0:19:2:    class=0x0c0320 card=0x50041458 chip=0x78081022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Hudson USB EHCI Controller'
    class      = serial bus
    subclass   = USB
none1@pci0:0:20:0:    class=0x0c0500 card=0x780b1022 chip=0x780b1022 rev=0x14 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Hudson SMBus Controller'
    class      = serial bus
    subclass   = SMBus
hdac0@pci0:0:20:2:    class=0x040300 card=0xa0021458 chip=0x780d1022 rev=0x01 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Hudson Azalia Controller'
    class      = multimedia
    subclass   = HDA
isab0@pci0:0:20:3:    class=0x060100 card=0x780e1022 chip=0x780e1022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Hudson LPC Bridge'
    class      = bridge
    subclass   = PCI-ISA
pcib3@pci0:0:20:4:    class=0x060401 card=0x00000000 chip=0x780f1022 rev=0x40 hdr=0x01
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Hudson PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
ohci2@pci0:0:20:5:    class=0x0c0310 card=0x50041458 chip=0x78091022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    device     = 'Hudson USB OHCI Controller'
    class      = serial bus
    subclass   = USB
hostb1@pci0:0:24:0:    class=0x060000 card=0x00000000 chip=0x14001022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb2@pci0:0:24:1:    class=0x060000 card=0x00000000 chip=0x14011022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb3@pci0:0:24:2:    class=0x060000 card=0x00000000 chip=0x14021022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb4@pci0:0:24:3:    class=0x060000 card=0x00000000 chip=0x14031022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb5@pci0:0:24:4:    class=0x060000 card=0x00000000 chip=0x14041022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb6@pci0:0:24:5:    class=0x060000 card=0x00000000 chip=0x14051022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices [AMD]'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:1:0:0:    class=0x030000 card=0x824e1043 chip=0x042110de rev=0xa1 hdr=0x00
    vendor     = 'nVidia Corporation'
    device     = 'G86 [GeForce 8500 GT]'
    class      = display
    subclass   = VGA
re0@pci0:2:0:0:    class=0x020000 card=0xe0001458 chip=0x816810ec rev=0x06 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8111/8168B PCI Express Gigabit Ethernet controller'
    class      = network
    subclass   = ethernet

All for now.

2013-11-16: ad4s2a - for the usb card reader that isn't working, I did a verbose boot, the only thing I see in dmesg output is this:

usb_alloc_device: Failure selecting configuration index 0:USB_ERR_TIMEOUT, port 1, addr 2 (ignored)
ugen1.2: <Generic> at usbus1

and it corresponds to the reader:

root@kg-v2# usbconfig -d ugen1.2
ugen1.2: <USB 2.0 Reader Generic> at usbus1, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON

More info - device description:

root@kg-v2# usbconfig -d ugen1.2 dump_device_desc
ugen1.2: <USB 2.0 Reader Generic> at usbus1, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x0000
  bDeviceSubClass = 0x0000
  bDeviceProtocol = 0x0000
  bMaxPacketSize0 = 0x0040
  idVendor = 0x0bda
  idProduct = 0x0111
  bcdDevice = 0x1122
  iManufacturer = 0x0001  <Generic>
  iProduct = 0x0002  <USB 2.0 Reader>
  iSerialNumber = 0x0003  <retrieving string failed>
  bNumConfigurations = 0x0001

config

root@kg-v2# usbconfig -d ugen1.2 dump_curr_config_desc
ugen1.2: <USB 2.0 Reader Generic> at usbus1, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON

That doesn't look right.

2013-11-16: ad4s2a - the new hard drive shows up as ad6:

root@kg-v2# atacontrol list
ATA channel 2:
    Master:  ad4 <SAMSUNG HD501LJ/CR100-13> SATA revision 2.x
    Slave:       no device present
ATA channel 3:
    Master:  ad6 <WDC WD10EZEX-00RKKA0/80.00A80> SATA revision 2.x
    Slave:       no device present

that's it.

2013-11-15: ad4s2a - somehow the ethernet address for interface re0 had been corrupted, showing all ff's. But simply doing an ifconfig re0 ether 94:de:80:be:0b:a4 as root seems to have solved it. Nice!

2013-11-03: ad4s1a - can I still get the built-in card reader working by powering off then on?

root@kg-v2# uname -a
FreeBSD kg-v2.kg4.no 7.4-STABLE FreeBSD 7.4-STABLE #7: Sun Oct 13 22:22:00 CEST 2013     root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

the reader

root@kg-v2# usbdevs -vf /dev/usb1 -a 2
Controller /dev/usb1:
addr 2: high speed, power 500 mA, config 1, USB 2.0 Reader(0x0111), Generic(0x0bda), rev 11.22

power off, check power on, check Hmm, I don't have a utility to turn off / on usb devices in FreeBSD 7.4 - no 'usbconfig'. So much for that idea. does it work?

2013-11-03: ad4s2a - can I still get the built-in card reader working by powering off then on?

root@kg-v2# uname -a
FreeBSD kg-v2.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #7 r256430: Sun Oct 13 19:43:35 CEST 2013     root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

the reader:

root@kg-v2# usbconfig -u 1 -a 2
ugen1.2: <USB 2.0 Reader Generic> at usbus1, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON

power off and check

root@kg-v2# usbconfig -u 1 -a 2 power_off
root@kg-v2# usbconfig -u 1 -a 2
ugen1.2: <USB 2.0 Reader Generic> at usbus1, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=OFF

then power on and check

root@kg-v2# usbconfig -u 1 -a 2 power_on
root@kg-v2# usbconfig -u 1 -a 2
ugen1.2: <USB 2.0 Reader Generic> at usbus1, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON

does it work? Nope, nothing in /var/log/messages, and nothing in /dev/da* either:

root@kg-v2# ls /dev/da*
ls: /dev/da*: No such file or directory

Better check if it works under 7.4 too.

2013-10-13: ad4s1a - updated to FreeBSD 7.4-stable via make world. dmesg output: normal, verbose. Now the network interface (re0) works.

tingo@kg-v2$ uname -a
FreeBSD kg-v2.kg4.no 7.4-STABLE FreeBSD 7.4-STABLE #7: Sun Oct 13 22:22:00 CEST 2013     root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

disk layout:

tingo@kg-v2$ df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s1a    495M    290M    165M    64%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad4s1e    495M    121M    334M    27%    /tmp
/dev/ad4s1f     99G     46G     45G    51%    /usr
/dev/ad4s1d    8.6G    177M    7.7G     2%    /var
linprocfs      4.0K    4.0K      0B   100%    /usr/compat/linux/proc

that's it.

2013-10-13: ad4s2a - I mounted the usr partition (ad4s1f) from the 7.2 install:

root@kg-v2# mount /dev/ad4s1f /mnt
cleaned out /usr/src
root@kg-v2# cd /mnt/src
root@kg-v2# l
./                 Makefile.inc1      bin/               gnu/               rescue/            usr.bin/
../                Makefile.orig      cddl/              include/           sbin/              usr.sbin/
COPYRIGHT          Makefile.rej       contrib/           kerberos5/         secure/
LOCKS              ObsoleteFiles.inc  crypto/            lib/               share/
MAINTAINERS        README             etc/               libexec/           sys/
Makefile           UPDATING           games/             release/           tools/
root@kg-v2# rm -rf *

then I proceeded to update the source via svn:

root@kg-v2# svn checkout svn://svn.FreeBSD.org/base/stable/7 /mnt/src
[...]
A    /mnt/src/rescue
A    /mnt/src/rescue/Makefile
A    /mnt/src/rescue/README
A    /mnt/src/rescue/librescue
A    /mnt/src/rescue/librescue/Makefile
A    /mnt/src/rescue/rescue
A    /mnt/src/rescue/rescue/Makefile
 U   /mnt/src
Checked out revision 256431.

verify version

root@kg-v2# egrep "^BRANCH|^REVISION" /mnt/src/sys/conf/newvers.sh
REVISION="7.4"
BRANCH="STABLE"

Good.

2013-10-13: ad4s1a - I booted this slice and found out that it is running FreeBSD 7.2-stable. dmesg output: normal, verbose. The version is too old to support the network card (re0). From /var/log/messages:

re0: <RealTek 8168/8168B/8168C/8168CP/8168D/8168DP/8111B/8111C/8111CP/8111DP PCIe Gigabit Ethernet> port 0xd000-0xd0ff mem 0xd0004000-0xd0004fff,0xd0000000-0xd0003fff irq 16 at device 0.0 on pci2
re0: Using 1 MSI messages
re0: Chip rev. 0x2c800000
re0: MAC rev. 0x00000000
re0: Unknown H/W revision: 0x2c800000
device_attach: re0 attach returned 6

so that's it. Time to upgrade.

2013-10-13: ad4s2a - read /usr/src/UPDATING, then I updated via make world. Now it runs FreeBSD 8.4-stable. dmesg output: normal, verbose.

tingo@kg-v2$ uname -a
FreeBSD kg-v2.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #7 r256430: Sun Oct 13 19:43:35 CEST 2013     root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

disk usage:

root@kg-v2# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s2a    495M    369M     87M    81%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s2e    495M     72M    384M    16%    /tmp
/dev/ad4s2f    102G     83G     10G    89%    /usr
/dev/ad4s2d    8.6G      1G    6.9G    13%    /var
procfs         4.0k    4.0k      0B   100%    /proc
linprocfs      4.0k    4.0k      0B   100%    /usr/compat/linux/proc
fdescfs        1.0k    1.0k      0B   100%    /dev/fd

pciconf output

root@kg-v2# pciconf -lv
hostb0@pci0:0:0:0:    class=0x060000 card=0x14101022 chip=0x14101022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
none0@pci0:0:0:2:    class=0x080600 card=0x14191022 chip=0x14191022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = base peripheral
pcib1@pci0:0:2:0:    class=0x060400 card=0x12341022 chip=0x14121022 rev=0x00 hdr=0x01
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:4:0:    class=0x060400 card=0x12341022 chip=0x14141022 rev=0x00 hdr=0x01
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = PCI-PCI
none1@pci0:0:16:0:    class=0x0c0330 card=0x50041458 chip=0x78121022 rev=0x03 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = USB
none2@pci0:0:16:1:    class=0x0c0330 card=0x50041458 chip=0x78121022 rev=0x03 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = USB
atapci0@pci0:0:17:0:    class=0x010601 card=0xb0021458 chip=0x78011022 rev=0x40 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = mass storage
    subclass   = SATA
ohci0@pci0:0:18:0:    class=0x0c0310 card=0x50041458 chip=0x78071022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = USB
ehci0@pci0:0:18:2:    class=0x0c0320 card=0x50041458 chip=0x78081022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = USB
ohci1@pci0:0:19:0:    class=0x0c0310 card=0x50041458 chip=0x78071022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = USB
ehci1@pci0:0:19:2:    class=0x0c0320 card=0x50041458 chip=0x78081022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = USB
none3@pci0:0:20:0:    class=0x0c0500 card=0x780b1022 chip=0x780b1022 rev=0x14 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = SMBus
hdac0@pci0:0:20:2:    class=0x040300 card=0xa0021458 chip=0x780d1022 rev=0x01 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = multimedia
    subclass   = HDA
isab0@pci0:0:20:3:    class=0x060100 card=0x780e1022 chip=0x780e1022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = PCI-ISA
pcib3@pci0:0:20:4:    class=0x060401 card=0x00000000 chip=0x780f1022 rev=0x40 hdr=0x01
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = PCI-PCI
ohci2@pci0:0:20:5:    class=0x0c0310 card=0x50041458 chip=0x78091022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = USB
hostb1@pci0:0:24:0:    class=0x060000 card=0x00000000 chip=0x14001022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb2@pci0:0:24:1:    class=0x060000 card=0x00000000 chip=0x14011022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb3@pci0:0:24:2:    class=0x060000 card=0x00000000 chip=0x14021022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb4@pci0:0:24:3:    class=0x060000 card=0x00000000 chip=0x14031022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb5@pci0:0:24:4:    class=0x060000 card=0x00000000 chip=0x14041022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb6@pci0:0:24:5:    class=0x060000 card=0x00000000 chip=0x14051022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:1:0:0:    class=0x030000 card=0x824e1043 chip=0x042110de rev=0xa1 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'NVIDIA GeForce 8500 GT (G86)'
    class      = display
    subclass   = VGA
re0@pci0:2:0:0:    class=0x020000 card=0xe0001458 chip=0x816810ec rev=0x06 hdr=0x00
    vendor     = 'Realtek Semiconductor'
    device     = 'Gigabit Ethernet NIC(NDIS 6.0) (RTL8168/8111/8111c)'
    class      = network
    subclass   = ethernet

That's it.

2013-10-13: ad4s2a - check version:

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

No, damn it! Ok, remove and do over:

root@kg-v2# cd /usr/src
root@kg-v2# rm -rf *
root@kg-v2# rm -rf .svn
root@kg-v2# svn checkout svn://svn.FreeBSD.org/base/stable/8 /usr/src
[...]
A    /usr/src/gnu/usr.bin/groff/man
A    /usr/src/gnu/usr.bin/groff/man/Makefile
A    /usr/src/gnu/usr.bin/groff/Makefile
A    /usr/src/gnu/Makefile.inc
 U   /usr/src
Checked out revision 256430.

Check version again:

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

Finally.

2013-10-13: ad4s2a - I upgraded source via svn:

root@kg-v2# svn checkout svn://svn.FreeBSD.org/base/stable/8 /usr/src
[...]
   A /usr/src/include/stdlib.h
   A /usr/src/include/stdio.h
   A /usr/src/include/utime.h
   A /usr/src/include/pthread_np.h
 U   /usr/src
Checked out revision 256430.
Tree conflict on '/usr/src/bin'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: h

  (p)  - resolve the conflict later  [postpone]
  (r)  - accept current working copy state
  (q)  - postpone all remaining conflicts
  (h)  - show this help (also '?')
Words in square brackets are the corresponding --accept option arguments.

Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/bin'
Tree conflict on '/usr/src/cddl'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/cddl'
Tree conflict on '/usr/src/contrib'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/contrib'
Tree conflict on '/usr/src/crypto'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/crypto'
Tree conflict on '/usr/src/etc'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/etc'
Tree conflict on '/usr/src/games'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/games'
Tree conflict on '/usr/src/gnu'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/gnu'
Tree conflict on '/usr/src/include'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/include'
Tree conflict on '/usr/src/kerberos5'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/kerberos5'
Tree conflict on '/usr/src/lib'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/lib'
Tree conflict on '/usr/src/libexec'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/libexec'
Tree conflict on '/usr/src/release'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/release'
Tree conflict on '/usr/src/rescue'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/rescue'
Tree conflict on '/usr/src/sbin'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/sbin'
Tree conflict on '/usr/src/secure'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/secure'
Tree conflict on '/usr/src/share'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/share'
Tree conflict on '/usr/src/sys'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/sys'
Tree conflict on '/usr/src/tools'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/tools'
Tree conflict on '/usr/src/usr.bin'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/usr.bin'
Tree conflict on '/usr/src/usr.sbin'
   > local dir unversioned, incoming dir add upon update
Select: (p) postpone, (r) resolved, (q) quit resolution, (h) help: r
Resolved conflicted state of '/usr/src/usr.sbin'

Hope I selected the right solution here.

2013-09-24: ad4s2a - first boot of v2 with new motherboard. dmesg output: normal, verbose.

root@kg-v2# uname -a
FreeBSD kg-v2.kg4.no 8.3-STABLE FreeBSD 8.3-STABLE #6: Fri Apr 27 23:50:55 CEST 2012     root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

More info. gpart output:

root@kg-v2# gpart show -p ad4
=>       63  976773105    ad4  MBR  (465G)
         63  245360682  ad4s1  freebsd  [active]  (117G)
  245360745  243256230  ad4s2  freebsd  (116G)
  488616975  239223915  ad4s3  !169  (114G)
  727840890  248927175  ad4s4  ebr  (118G)
  976768065       5103         - free -  (2.5M)

slice 1 and 2:

root@kg-v2# gpart show ad4s1
=>        0  245360682  ad4s1  BSD  (117G)
          0    1048576      1  freebsd-ufs  (512M)
    1048576    8388608      2  freebsd-swap  (4.0G)
    9437184   18575360      4  freebsd-ufs  (8.9G)
   28012544    1048576      5  freebsd-ufs  (512M)
   29061120  216299560      6  freebsd-ufs  (103G)
  245360680          2         - free -  (1.0k)

root@kg-v2# gpart show ad4s2
=>        0  243256230  ad4s2  BSD  (116G)
          0    1048576      1  freebsd-ufs  (512M)
    1048576   18573312      4  freebsd-ufs  (8.9G)
   19621888    1048576      5  freebsd-ufs  (512M)
   20670464  222585764      6  freebsd-ufs  (106G)
  243256228          2         - free -  (1.0k)

slice 3:

root@kg-v2# gpart show ad4s3
gpart: No such geom: ad4s3.

slice 4:

root@kg-v2# gpart show -p ad4s4
=>        0  248927175  ad4s4  EBR  (118G)
          0  238725900  ad4s5  linux-data  (113G)
  238725900   10201275  ad4s6  linux-swap  (4.9G)

pciconf output

root@kg-v2# pciconf -lv
hostb0@pci0:0:0:0:    class=0x060000 card=0x14101022 chip=0x14101022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
none0@pci0:0:0:2:    class=0x080600 card=0x14191022 chip=0x14191022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = base peripheral
pcib1@pci0:0:2:0:    class=0x060400 card=0x12341022 chip=0x14121022 rev=0x00 hdr=0x01
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:4:0:    class=0x060400 card=0x12341022 chip=0x14141022 rev=0x00 hdr=0x01
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = PCI-PCI
none1@pci0:0:16:0:    class=0x0c0330 card=0x50041458 chip=0x78121022 rev=0x03 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = USB
none2@pci0:0:16:1:    class=0x0c0330 card=0x50041458 chip=0x78121022 rev=0x03 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = USB
atapci0@pci0:0:17:0:    class=0x010601 card=0xb0021458 chip=0x78011022 rev=0x40 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = mass storage
    subclass   = SATA
ohci0@pci0:0:18:0:    class=0x0c0310 card=0x50041458 chip=0x78071022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = USB
ehci0@pci0:0:18:2:    class=0x0c0320 card=0x50041458 chip=0x78081022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = USB
ohci1@pci0:0:19:0:    class=0x0c0310 card=0x50041458 chip=0x78071022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = USB
ehci1@pci0:0:19:2:    class=0x0c0320 card=0x50041458 chip=0x78081022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = USB
none3@pci0:0:20:0:    class=0x0c0500 card=0x780b1022 chip=0x780b1022 rev=0x14 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = SMBus
hdac0@pci0:0:20:2:    class=0x040300 card=0xa0021458 chip=0x780d1022 rev=0x01 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = multimedia
    subclass   = HDA
isab0@pci0:0:20:3:    class=0x060100 card=0x780e1022 chip=0x780e1022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = PCI-ISA
pcib3@pci0:0:20:4:    class=0x060401 card=0x00000000 chip=0x780f1022 rev=0x40 hdr=0x01
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = PCI-PCI
ohci2@pci0:0:20:5:    class=0x0c0310 card=0x50041458 chip=0x78091022 rev=0x11 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = serial bus
    subclass   = USB
hostb1@pci0:0:24:0:    class=0x060000 card=0x00000000 chip=0x14001022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb2@pci0:0:24:1:    class=0x060000 card=0x00000000 chip=0x14011022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb3@pci0:0:24:2:    class=0x060000 card=0x00000000 chip=0x14021022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb4@pci0:0:24:3:    class=0x060000 card=0x00000000 chip=0x14031022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb5@pci0:0:24:4:    class=0x060000 card=0x00000000 chip=0x14041022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
hostb6@pci0:0:24:5:    class=0x060000 card=0x00000000 chip=0x14051022 rev=0x00 hdr=0x00
    vendor     = 'Advanced Micro Devices (AMD)'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:1:0:0:    class=0x030000 card=0x824e1043 chip=0x042110de rev=0xa1 hdr=0x00
    vendor     = 'NVIDIA Corporation'
    device     = 'NVIDIA GeForce 8500 GT (G86)'
    class      = display
    subclass   = VGA
re0@pci0:2:0:0:    class=0x020000 card=0xe0001458 chip=0x816810ec rev=0x06 hdr=0x00
    vendor     = 'Realtek Semiconductor'
    device     = 'Gigabit Ethernet NIC(NDIS 6.0) (RTL8168/8111/8111c)'
    class      = network
    subclass   = ethernet

df output

root@kg-v2# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad4s2a    495M    359M     96M    79%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad4s2e    495M     72M    384M    16%    /tmp
/dev/ad4s2f    102G     92G    2.0G    98%    /usr
/dev/ad4s2d    8.6G      1G    6.9G    13%    /var
procfs         4.0k    4.0k      0B   100%    /proc
linprocfs      4.0k    4.0k      0B   100%    /usr/compat/linux/proc
fdescfs        1.0k    1.0k      0B   100%    /dev/fd

All for now.