Toshiba Satellite Z30-B-10W - FreeBSD - 2015 archive

back to main FreeBSD page for this machine.

2015 archive.

2015-12-28: ada0p2 - pkg - installed Xfce 4.12 via packages. From /var/log/messages:

Dec 28 16:27:55 kg-z30b pkg: libiconv-1.14_9 installed
Dec 28 16:27:55 kg-z30b pkg: pcre-8.37_4 installed
Dec 28 16:27:55 kg-z30b pkg: mkfontscale-1.1.2 installed
Dec 28 16:27:56 kg-z30b pkg: glib-2.44.1_2 installed
Dec 28 16:27:56 kg-z30b pkg: mkfontdir-1.0.7 installed
Dec 28 16:27:56 kg-z30b pkg: png-1.6.20 installed
Dec 28 16:27:56 kg-z30b pkg: xcb-util-renderutil-0.3.9_1 installed
Dec 28 16:27:56 kg-z30b pkg: xmlcatmgr-2.2_2 installed
Dec 28 16:27:56 kg-z30b pkg: gmp-5.1.3_2 installed
Dec 28 16:27:56 kg-z30b pkg: ca_root_nss-3.20.1 installed
Dec 28 16:27:56 kg-z30b pkg: libtasn1-4.7 installed
Dec 28 16:27:56 kg-z30b pkg: encodings-1.0.4_3,1 installed
Dec 28 16:27:58 kg-z30b pkg: font-misc-meltho-1.0.3_3 installed
Dec 28 16:28:00 kg-z30b pkg: font-bh-ttf-1.0.3_3 installed
Dec 28 16:28:05 kg-z30b pkg: font-misc-ethiopic-1.0.3_3 installed
Dec 28 16:28:08 kg-z30b pkg: dejavu-2.35 installed
Dec 28 16:28:08 kg-z30b pkg: cairo-1.14.6,2 installed
Dec 28 16:28:10 kg-z30b pkg: icu-55.1 installed
Dec 28 16:28:10 kg-z30b pkg: graphite2-1.3.3 installed
Dec 28 16:28:10 kg-z30b pkg: jpeg-turbo-1.4.2 installed
Dec 28 16:28:10 kg-z30b pkg: jbigkit-2.1_1 installed
Dec 28 16:28:10 kg-z30b pkg: iso8879-1986_3 installed
Dec 28 16:28:10 kg-z30b pkg: xmlcharent-0.3_2 installed
Dec 28 16:28:10 kg-z30b pkg: libgpg-error-1.20_1 installed
Dec 28 16:28:10 kg-z30b pkg: nettle-2.7.1 installed
Dec 28 16:28:10 kg-z30b pkg: p11-kit-0.23.2 installed
Dec 28 16:28:10 kg-z30b pkg: trousers-tddl-0.3.10_7 installed
Dec 28 16:28:10 kg-z30b pkg: libidn-1.31 installed
Dec 28 16:28:10 kg-z30b pkg: gnome_subr-1.0 installed
Dec 28 16:28:10 kg-z30b pkg: xorg-fonts-truetype-7.7_1 installed
Dec 28 16:28:10 kg-z30b pkg: harfbuzz-1.1.2 installed
Dec 28 16:28:10 kg-z30b pkg: compositeproto-0.4.2 installed
Dec 28 16:28:10 kg-z30b pkg: jasper-1.900.1_15 installed
Dec 28 16:28:11 kg-z30b pkg: tiff-4.0.6 installed
Dec 28 16:28:11 kg-z30b pkg: nspr-4.11 installed
Dec 28 16:28:11 kg-z30b pkg: recordproto-1.14.2 installed
Dec 28 16:28:11 kg-z30b pkg: sdocbook-xml-1.1_1,2 installed
Dec 28 16:28:11 kg-z30b pkg: docbook-sgml-4.5_1 installed
Dec 28 16:28:11 kg-z30b pkg: docbook-xml-5.0_3 installed
Dec 28 16:28:11 kg-z30b pkg: atk-2.16.0 installed
Dec 28 16:28:11 kg-z30b pkg: hicolor-icon-theme-0.15 installed
Dec 28 16:28:11 kg-z30b pkg: libgcrypt-1.6.4_3 installed
Dec 28 16:28:11 kg-z30b pkg: gnutls-3.3.17.1 installed
Dec 28 16:28:11 kg-z30b pkg: mDNSResponder-576.30.4 installed
Dec 28 16:28:11 kg-z30b pkg: dbus-1.8.20 installed
Dec 28 16:28:11 kg-z30b pkg: python2-2_3 installed
Dec 28 16:28:11 kg-z30b pkg: pango-1.36.8_2 installed
Dec 28 16:28:11 kg-z30b pkg: libXcursor-1.1.14_3 installed
Dec 28 16:28:11 kg-z30b pkg: libXcomposite-0.4.4_3,1 installed
Dec 28 16:28:11 kg-z30b pkg: gdk-pixbuf2-2.32.1 installed
Dec 28 16:28:12 kg-z30b pkg: shared-mime-info-1.5 installed
Dec 28 16:28:12 kg-z30b pkg: spidermonkey170-17.0.0_1 installed
Dec 28 16:28:12 kg-z30b pkg: libXScrnSaver-1.2.2_3 installed
Dec 28 16:28:12 kg-z30b pkg: libXtst-1.2.2_3 installed
Dec 28 16:28:12 kg-z30b pkg: docbook-1.5 installed
Dec 28 16:28:12 kg-z30b pkg: cups-client-2.0.3_2 installed
Dec 28 16:28:12 kg-z30b pkg: gtk-update-icon-cache-2.24.29 installed
Dec 28 16:28:12 kg-z30b pkg: python-2.7_2,2 installed
Dec 28 16:28:12 kg-z30b pkg: polkit-0.113_1 installed
Dec 28 16:28:12 kg-z30b pkg: libIDL-0.8.14_2 installed
Dec 28 16:28:13 kg-z30b pkg: lcms2-2.7_2 installed
Dec 28 16:28:14 kg-z30b pkg: argyllcms-1.7.0_1 installed
Dec 28 16:28:14 kg-z30b pkg: sqlite3-3.9.2 installed
Dec 28 16:28:14 kg-z30b pkg: at-spi2-core-2.16.0 installed
Dec 28 16:28:14 kg-z30b pkg: libxslt-1.1.28_8 installed
Dec 28 16:28:14 kg-z30b pkg: py27-setuptools27-19.1.1 installed
Dec 28 16:28:14 kg-z30b pkg: bash-4.3.42_1 installed
Dec 28 16:28:14 kg-z30b pkg: docbook-xsl-1.76.1_2 installed
Dec 28 16:28:14 kg-z30b pkg: getopt-1.1.6 installed
Dec 28 16:28:17 kg-z30b pkg: cantarell-fonts-0.0.16 installed
Dec 28 16:28:18 kg-z30b pkg: gtk2-2.24.29 installed
Dec 28 16:28:18 kg-z30b pkg: dbus-glib-0.104 installed
Dec 28 16:28:18 kg-z30b pkg: dconf-0.24.0_1 installed
Dec 28 16:28:18 kg-z30b pkg: ORBit2-2.14.19_1 installed
Dec 28 16:28:18 kg-z30b pkg: libxfce4util-4.12.1 installed
Dec 28 16:28:18 kg-z30b pkg: colord-1.2.11 installed
Dec 28 16:28:18 kg-z30b pkg: at-spi2-atk-2.16.0 installed
Dec 28 16:28:19 kg-z30b pkg: adwaita-icon-theme-3.16.2.2 installed
Dec 28 16:28:19 kg-z30b pkg: py27-libxml2-2.9.3 installed
Dec 28 16:28:19 kg-z30b pkg: rarian-0.8.1_4 installed
Dec 28 16:28:19 kg-z30b pkg: libproxy-0.4.6 installed
Dec 28 16:28:20 kg-z30b pkg: gsettings-desktop-schemas-3.16.1 installed
Dec 28 16:28:20 kg-z30b pkg: gobject-introspection-1.44.0 installed
Dec 28 16:28:20 kg-z30b pkg: gconf2-3.2.6_4 installed
Dec 28 16:28:20 kg-z30b pkg: xfce4-conf-4.12.0 installed
Dec 28 16:28:21 kg-z30b pkg: gtk3-3.16.7 installed
Dec 28 16:28:21 kg-z30b pkg: startup-notification-0.12_4 installed
Dec 28 16:28:21 kg-z30b pkg: openjpeg15-1.5.2_1 installed
Dec 28 16:28:21 kg-z30b pkg: poppler-data-0.4.7 installed
Dec 28 16:28:21 kg-z30b pkg: policykit-0.9_10 installed
Dec 28 16:28:21 kg-z30b pkg: libvolume_id-0.81.1 installed
Dec 28 16:28:21 kg-z30b pkg: consolekit-0.4.5_4 installed
Dec 28 16:28:21 kg-z30b pkg: gnome-doc-utils-0.20.10_4 installed
Dec 28 16:28:21 kg-z30b pkg: glib-networking-2.44.0 installed
Dec 28 16:28:21 kg-z30b pkg: libcddb-1.3.2_4 installed
Dec 28 16:28:21 kg-z30b pkg: talloc-2.1.5 installed
Dec 28 16:28:21 kg-z30b pkg: gdbm-1.11_2 installed
Dec 28 16:28:22 kg-z30b pkg: libdaemon-0.14_1 installed
Dec 28 16:28:22 kg-z30b pkg: desktop-file-utils-0.22_3 installed
Dec 28 16:28:22 kg-z30b pkg: libnotify-0.7.6_1 installed
Dec 28 16:28:22 kg-z30b pkg: libxfce4menu-4.12.1_1 installed
Dec 28 16:28:22 kg-z30b pkg: libXres-1.0.7_3 installed
Dec 28 16:28:22 kg-z30b pkg: libexif-0.6.21_4 installed
Dec 28 16:28:22 kg-z30b pkg: p5-URI-1.69 installed
Dec 28 16:28:22 kg-z30b pkg: orc-0.4.24_1 installed
Dec 28 16:28:22 kg-z30b pkg: gstreamer1-1.6.1 installed
Dec 28 16:28:22 kg-z30b pkg: iso-codes-3.63 installed
Dec 28 16:28:23 kg-z30b pkg: poppler-0.34.0 installed
Dec 28 16:28:23 kg-z30b pkg: libgsf-1.14.34 installed
Dec 28 16:28:23 kg-z30b pkg: libcroco-0.6.8_2 installed
Dec 28 16:28:23 kg-z30b pkg: libgd-2.1.0_7,1 installed
Dec 28 16:28:23 kg-z30b pkg: libltdl-2.4.6 installed
Dec 28 16:28:23 kg-z30b pkg: lzo2-2.09 installed
Dec 28 16:28:23 kg-z30b pkg: hal-0.5.14_30 installed
Dec 28 16:28:23 kg-z30b pkg: policykit-gnome-0.9.2_7 installed
Dec 28 16:28:23 kg-z30b pkg: libgnome-keyring-3.12.0_2 installed
Dec 28 16:28:23 kg-z30b pkg: libsoup-2.50.0 installed
Dec 28 16:28:23 kg-z30b pkg: libcdio-0.92_1 installed
Dec 28 16:28:23 kg-z30b pkg: tevent-0.9.26 installed
Dec 28 16:28:23 kg-z30b pkg: tdb-1.3.8,1 installed
Dec 28 16:28:23 kg-z30b pkg: avahi-app-0.6.31_5 installed
Dec 28 16:28:23 kg-z30b pkg: libwnck-2.30.7 installed
Dec 28 16:28:23 kg-z30b pkg: garcon-0.4.0_1 installed
Dec 28 16:28:24 kg-z30b pkg: libexo-0.10.7 installed
Dec 28 16:28:24 kg-z30b pkg: gstreamer1-plugins-1.6.1 installed
Dec 28 16:28:24 kg-z30b pkg: poppler-glib-0.34.0 installed
Dec 28 16:28:24 kg-z30b pkg: librsvg2-2.40.12 installed
Dec 28 16:28:24 kg-z30b pkg: libgphoto2-2.5.9 installed
Dec 28 16:28:24 kg-z30b pkg: libarchive-3.1.2_4,1 installed
Dec 28 16:28:24 kg-z30b pkg: gnome-mount-0.8_12 installed
Dec 28 16:28:24 kg-z30b pkg: fusefs-libs-2.9.4 installed
Dec 28 16:28:24 kg-z30b pkg: libsoup-gnome-2.50.0 installed
Dec 28 16:28:24 kg-z30b pkg: libcdio-paranoia-10.2+0.90+1_1 installed
Dec 28 16:28:25 kg-z30b pkg: samba36-libsmbclient-3.6.25_2 installed
Dec 28 16:28:25 kg-z30b pkg: xfce4-tumbler-0.1.31_1 installed
Dec 28 16:28:25 kg-z30b pkg: xfce4-panel-4.12.0_1 installed
Dec 28 16:28:25 kg-z30b pkg: gvfs-1.24.2 installed
Dec 28 16:28:25 kg-z30b pkg: gnome-pty-helper-0.40.2 installed
Dec 28 16:28:25 kg-z30b pkg: gtksourceview2-2.10.5_4 installed
Dec 28 16:28:25 kg-z30b pkg: Thunar-1.6.10_1 installed
Dec 28 16:28:25 kg-z30b pkg: vte-0.28.2_2 installed
Dec 28 16:28:25 kg-z30b pkg: popt-1.16_1 installed
Dec 28 16:28:25 kg-z30b pkg: libical-1.0.1 installed
Dec 28 16:28:25 kg-z30b pkg: libxklavier-5.3_1,1 installed
Dec 28 16:28:25 kg-z30b pkg: upower-0.99.3 installed
Dec 28 16:28:25 kg-z30b pkg: iceauth-1.0.7 installed
Dec 28 16:28:25 kg-z30b pkg: gtk-xfce-engine-3.2.0 installed
Dec 28 16:28:25 kg-z30b pkg: mousepad-0.4.0_2 installed
Dec 28 16:28:25 kg-z30b pkg: xfce4-notifyd-0.2.4_1 installed
Dec 28 16:28:26 kg-z30b pkg: xfce4-desktop-4.12.3 installed
Dec 28 16:28:26 kg-z30b pkg: xfce4-terminal-0.6.3_2 installed
Dec 28 16:28:26 kg-z30b pkg: orage-4.12.1_1 installed
Dec 28 16:28:26 kg-z30b pkg: xfce4-settings-4.12.0_1 installed
Dec 28 16:28:26 kg-z30b pkg: xfce4-session-4.12.1_2 installed
Dec 28 16:28:26 kg-z30b pkg: xfce4-appfinder-4.12.0 installed
Dec 28 16:28:26 kg-z30b pkg: xfce4-wm-4.12.3 installed
Dec 28 16:28:26 kg-z30b pkg: xfce-4.12_1 installed

ok.

2015-12-28: ada0p2 - installed xrandr. From /var/log/messages:

Dec 28 16:15:26 kg-z30b pkg-static: libXrandr-1.5.0 installed
Dec 28 16:15:31 kg-z30b pkg-static: xrandr-1.4.3 installed

ok.

2015-12-28: ada0p2 - Xorg - testing the xf86-video-scfb driver. It works. From /var/log/Xorg.0.log:

[   696.639]
X.Org X Server 1.17.4
Release Date: 2015-10-28
[   696.639] X Protocol Version 11, Revision 0
[   696.640] Build Operating System: FreeBSD 10.1-RELEASE-p25 amd64
[   696.640] Current Operating System: FreeBSD kg-z30b.kg4.no 10.2-STABLE FreeBSD 10.2-STABLE #0 r292123: Sat Dec 12 00:58:41 CET 2015     root@kg-z30b.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64
[   696.640] Build Date: 20 December 2015  03:44:50AM

[   696.641] (==) Using config file: "/usr/local/etc/X11/xorg.conf"
[   696.641] (==) No Layout section.  Using the first Screen section.
[   696.641] (==) No screen section available. Using defaults.
[   696.641] (**) |-->Screen "Default Screen Section" (0)
[   696.641] (**) |   |-->Monitor "<default monitor>"
[   696.642] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[   696.642] (**) |   |-->Device "Card0"
[   696.642] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[   696.642] (==) Automatically adding devices
[   696.642] (==) Automatically enabling devices
[   696.642] (==) Not automatically adding GPU devices

[   696.643] (--) PCI:*(0:0:2:0) 8086:1616:1179:0005 rev 9, Mem @ 0xf0000000/16777216, 0xe0000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/65536

[   696.652] (==) AIGLX enabled
[   696.652] (II) LoadModule: "scfb"
[   696.653] (II) Loading /usr/local/lib/xorg/modules/drivers/scfb_drv.so
[   696.653] (II) Module scfb: vendor="X.Org Foundation"
[   696.653]    compiled for 1.17.4, module version = 0.0.4
[   696.653]    ABI class: X.Org Video Driver, version 19.0
[   696.653] (II) scfb: driver for wsdisplay framebuffer: scfb
[   696.656] (--) Using syscons driver with X support (version 0.x)
[   696.656] (--) using VT number 9

[   696.659] (WW) Falling back to old probe method for scfb
[   696.659] scfb trace: probe start
[   696.659] (II) scfb(0): using default device
[   696.660] scfb trace: probe done
[   696.660] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[   696.660] scfb: PreInit 0
[   696.660] (II) scfb(0): Using: depth (32),   width (1920),    height (1080)
[   696.660] (II) scfb(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[   696.660] (==) scfb(0): Depth 24, (==) framebuffer bpp 32
[   696.660] (==) scfb(0): RGB weight 888
[   696.660] (==) scfb(0): Default visual is TrueColor
[   696.660] (==) scfb(0): Using gamma correction (1.0, 1.0, 1.0)
[   696.660] (II) scfb(0): Vidmem: 8100k
[   696.660] (==) scfb(0): DPI set to (96, 96)
[   696.660] (**) scfb(0): Using "Shadow Framebuffer"
[   696.660] (II) Loading sub module "shadow"
[   696.660] (II) LoadModule: "shadow"
[   696.660] (II) Loading /usr/local/lib/xorg/modules/libshadow.so
[   696.660] (II) Module shadow: vendor="X.Org Foundation"
[   696.660]    compiled for 1.17.4, module version = 1.1.0
[   696.660]    ABI class: X.Org ANSI C Emulation, version 0.4
[   696.660] (II) Loading sub module "fb"
[   696.660] (II) LoadModule: "fb"
[   696.660] (II) Loading /usr/local/lib/xorg/modules/libfb.so
[   696.661] (II) Module fb: vendor="X.Org Foundation"
[   696.661]    compiled for 1.17.4, module version = 1.0.0
[   696.661]    ABI class: X.Org ANSI C Emulation, version 0.4
[   696.661] scfb: PreInit done
[   696.661] (--) Depth 24 pixmap format is 32 bpp
[   696.661] scfb: ScfbScreenInit 0
[   696.661]    bitsPerPixel=32, depth=24, defaultVisual=TrueColor
        mask: ff0000,ff00,ff, offset: 16,8,0
[   696.661] mmap returns: addr 0x805e00000 len 0x7e9000, fd 5, off 0
[   696.661] scfb: ScfbSave 0
[   696.661] scfb: ScfbSave done
[   696.663] (==) scfb(0): Backing store enabled
[   696.663] scfb: ScfbScreenInit done
[   696.663] (==) RandR enabled
[   696.664] (II) AIGLX: Screen 0 is not DRI2 capable
[   696.664] (EE) AIGLX: reverting to software rendering
[   696.760] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[   696.761] (II) AIGLX: Loaded and initialized swrast
[   696.761] (II) GLX: Initialized DRISWRAST GL provider for screen 0

[   696.839] scfb: SaveScreen 0
[   696.839] scfb: SaveScreen done

very cool.

2015-12-28: ada0p2 - I installed the xf86-video-scfb video driver. From /var/log/messages:

Dec 28 16:06:07 kg-z30b pkg-static: randrproto-1.5.0 installed
Dec 28 16:06:09 kg-z30b pkg-static: xf86driproto-2.1.1 installed
Dec 28 16:06:11 kg-z30b pkg-static: glproto-1.4.17 installed
Dec 28 16:06:13 kg-z30b pkg-static: resourceproto-1.2.0 installed
Dec 28 16:06:16 kg-z30b pkg-static: scrnsaverproto-1.2.2 installed
Dec 28 16:06:18 kg-z30b pkg-static: presentproto-1.0 installed
Dec 28 16:06:23 kg-z30b pkg-static: xf86-video-scfb-0.0.4_3 installed

I then set up a Xorg config file for it:

root@kg-z30b# cd /usr/local/etc/X11
root@kg-z30b# cp xorg.conf_vesa xorg.conf_scfb

and modified it. Contents:

root@kg-z30b# more xorg.conf_scfb
# hand crafted xorg.conf

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

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "AccelMethod"               # <str>
        #Option     "Backlight"                 # <str>
        #Option     "DRI"                       # <str>
        #Option     "ColorKey"                  # <i>
        #Option     "VideoKey"                  # <i>
        #Option     "Tiling"                    # [<bool>]
        #Option     "LinearFramebuffer"         # [<bool>]
        #Option     "SwapbuffersWait"           # [<bool>]
        #Option     "TripleBuffer"              # [<bool>]
        #Option     "XvPreferOverlay"           # [<bool>]
        #Option     "HotPlug"                   # [<bool>]
        #Option     "ReprobeOutputs"            # [<bool>]
        #Option     "XvMC"                      # [<bool>]
        #Option     "ZaphodHeads"               # <str>
        #Option     "TearFree"                  # [<bool>]
        #Option     "PerCrtcPixmaps"            # [<bool>]
        #Option     "FallbackDebug"             # [<bool>]
        #Option     "DebugFlushBatches"         # [<bool>]
        #Option     "DebugFlushCaches"          # [<bool>]
        #Option     "DebugWait"                 # [<bool>]
        #Option     "BufferCache"               # [<bool>]
        Identifier  "Card0"
        Driver      "scfb"
        BusID       "PCI:0:2:0"
EndSection
#---[ e o f ]---

Now to try it.

2015-12-28: ada0p2 - rEFInd boots FreeBSD without trouble too. Nice.

2015-12-26: ada0p2 - efi partition, examine. gpart says it is 100 M:

root@kg-z30b# gpart show -p ada0
=>       34  488397101    ada0  GPT  (233G)
         34          6          - free -  (3.0K)
         40     204800  ada0p1  efi  (100M)
     204840  125829120  ada0p2  freebsd-ufs  (60G)
  126033960    8388608  ada0p3  freebsd-swap  (4.0G)
  134422568       2008          - free -  (1.0M)
  134424576    1024000  ada0p4  linux-data  (500M)
  135448576  142225408  ada0p5  linux-lvm  (68G)
  277673984  210723151          - free -  (100G)
(ignore p4 and p5, failed attempt to install Fedora 23)

but disktype says that it is a FAT12 filesystem:

root@kg-z30b# disktype /dev/ada0p1

--- /dev/ada0p1
Character device, size 100 MiB (104857600 bytes)
FAT12 file system (hints score 5 of 5)
  Volume size 766 KiB (784384 bytes, 1532 clusters of 512 bytes)
  Volume name "NO_NAME"

and less than 1 M in size - of course this creates trouble.

root@kg-z30b# mount -t msdosfs /dev/ada0p1 /mnt
root@kg-z30b# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada0p2     58G    8.9G     45G    17%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ada0p1    767K    134K    634K    17%    /mnt

msdosfs agrees with disktype. Ok, let me recreate a filesystem on it, and copy back stuff. According to uefi(8) boot1.efi and the bootloader on the efi partition should be the same:

root@kg-z30b# ls -l /mnt/efi/boot/BOOTx64.efi
-rwxr-xr-x  1 root  wheel  65536 Apr 26  2014 /mnt/efi/boot/BOOTx64.efi
root@kg-z30b# ls -l /boot/boot1.efi
-r-xr-xr-x  1 root  wheel  33811 Dec 12 01:13 /boot/boot1.efi

why are they different in size and time?

root@kg-z30b# file /mnt/efi/boot/BOOTx64.efi
/mnt/efi/boot/BOOTx64.efi: PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows
root@kg-z30b# file /boot/boot1.efi
/boot/boot1.efi: PE32+ executable (EFI application) x86-64 (stripped to external PDB), for MS Windows

same file type. Anyway, store a copy:

root@kg-z30b# cp -pv /mnt/efi/boot/BOOTx64.efi ~/store/
/mnt/efi/boot/BOOTx64.efi -> /root/store/BOOTx64.efi

unmount and recreate filesystem:

root@kg-z30b# umount /mnt
root@kg-z30b# newfs_msdos -F 16 -m 0xf8 /dev/ada0p1
newfs_msdos: trim 50 sectors to adjust to a multiple of 63
/dev/ada0p1: 204608 sectors in 12788 FAT16 clusters (8192 bytes/cluster)
BytesPerSec=512 SecPerClust=16 ResSectors=1 FATs=2 RootDirEnts=512 Media=0xf8 FATsecs=50 SecPerTrack=63 Heads=16 HiddenSecs=0 HugeSectors=204750
now, what does disktype think about it?
root@kg-z30b# disktype /dev/ada0p1

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

better now.

root@kg-z30b# mount -t msdosfs /dev/ada0p1 /mnt
root@kg-z30b# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada0p2     58G    8.9G     45G    17%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ada0p1    100M     16K    100M     0%    /mnt

looks ok. Create directories:

root@kg-z30b# mkdir /mnt/EFI
root@kg-z30b# mkdir /mnt/EFI/FreeBSD
root@kg-z30b# mkdir /mnt/EFI/boot

copy files:

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

verify:

root@kg-z30b# ls -l /mnt/EFI/boot /mnt/EFI/FreeBSD
/mnt/EFI/FreeBSD:
total 40
-rwxr-xr-x  1 root  wheel  33811 Dec 12 01:13 BOOTx64.efi

/mnt/EFI/boot:
total 40
-rwxr-xr-x  1 root  wheel  33811 Dec 12 01:13 BOOTx64.efi

looks ok. Will it boot? Yes it worked. Nice!

2015-12-26: ada0p2 - I'm going to modify the efi partition.

root@kg-z30b# umount /mnt
root@kg-z30b# mount -t msdosfs -o -longnames /dev/ada0p1 /mnt

before

root@kg-z30b# ll /mnt/efi
total 17
drwxr-xr-x  1 root  wheel    512 Apr 26  2014 ./
drwxr-xr-x  1 root  wheel  16384 Jan  1  1980 ../
drwxr-xr-x  1 root  wheel    512 Apr 26  2014 boot/

modify

root@kg-z30b# mkdir /mnt/efi/FreeBSD

after

root@kg-z30b# ll /mnt/efi
total 18
drwxr-xr-x  1 root  wheel    512 Apr 26  2014 ./
drwxr-xr-x  1 root  wheel  16384 Jan  1  1980 ../
drwxr-xr-x  1 root  wheel    512 Dec 26 14:35 FreeBSD/
drwxr-xr-x  1 root  wheel    512 Apr 26  2014 boot/

And then copy a file:

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

verify:

root@kg-z30b# ll /mnt/efi/FreeBSD/
total 65
drwxr-xr-x  1 root  wheel    512 Dec 26 14:35 ./
drwxr-xr-x  1 root  wheel    512 Apr 26  2014 ../
-rwxr-xr-x  1 root  wheel  65536 Apr 26  2014 BOOTx64.efi*

ok, now I have a backup at least, before starting to install Fedora.

2015-12-26: ada0p2 - let me check out the (u)efi partition. Partition layout is:

root@kg-z30b# gpart show -p ada0
=>       34  488397101    ada0  GPT  (233G)
         34          6          - free -  (3.0K)
         40     204800  ada0p1  efi  (100M)
     204840  125829120  ada0p2  freebsd-ufs  (60G)
  126033960    8388608  ada0p3  freebsd-swap  (4.0G)
  134422568  353974567          - free -  (169G)

and what does disktype say about the efi partition?

root@kg-z30b# disktype /dev/ada0p1

--- /dev/ada0p1
Character device, size 100 MiB (104857600 bytes)
FAT12 file system (hints score 5 of 5)
  Volume size 766 KiB (784384 bytes, 1532 clusters of 512 bytes)
  Volume name "NO_NAME"

it says FAT. mount it:

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

How much space is used?

root@kg-z30b# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada0p2     58G    8.9G     45G    17%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ada0p1    767K     66K    701K     9%    /mnt

not much. What's on it?

root@kg-z30b# ll /mnt
total 21
drwxr-xr-x   1 root  wheel  16384 Jan  1  1980 ./
drwxr-xr-x  18 root  wheel   1024 Dec 22 21:48 ../
drwxr-xr-x   1 root  wheel    512 Apr 26  2014 efi/
root@kg-z30b# ll /mnt/efi
total 17
drwxr-xr-x  1 root  wheel    512 Apr 26  2014 ./
drwxr-xr-x  1 root  wheel  16384 Jan  1  1980 ../
drwxr-xr-x  1 root  wheel    512 Apr 26  2014 boot/
root@kg-z30b# ll /mnt/efi/boot
total 65
drwxr-xr-x  1 root  wheel    512 Apr 26  2014 ./
drwxr-xr-x  1 root  wheel    512 Apr 26  2014 ../
-rwxr-xr-x  1 root  wheel  65536 Apr 26  2014 BOOTx64.efi*

ok, that is only the default loader.

2015-12-22: ada0p2 - ports - get a ports tree onto the machine: portsnap fetch; portsnap extract.

2015-12-22: ada0p2 - testing Xorg - does it work from packages? I run 'startx' as my user. First try without a xorg.conf file - Xorg tries to load vesa instead of intel, and fails. Relevant output from /var/log/Xorg.0.log

[  1387.037] (--) PCI:*(0:0:2:0) 8086:1616:1179:0005 rev 9, Mem @ 0xf0000000/16777216, 0xe0000000/268435456, I/O @ 0x00003000/64, BIOS @ 0x????????/65536
[  1387.037] (==) Using default built-in configuration (30 lines)
[  1387.037] (==) --- Start of built-in configuration ---
[  1387.037]    Section "Device"
[  1387.037]            Identifier      "Builtin Default intel Device 0"
[  1387.037]            Driver  "intel"
[  1387.037]    EndSection
[  1387.037]    Section "Screen"
[  1387.037]            Identifier      "Builtin Default intel Screen 0"
[  1387.037]            Device  "Builtin Default intel Device 0"
[  1387.037]    EndSection
[  1387.037]    Section "Device"
[  1387.037]            Identifier      "Builtin Default fbdev Device 0"
[  1387.037]            Driver  "fbdev"
[  1387.037]    EndSection
[  1387.037]    Section "Screen"
[  1387.037]            Identifier      "Builtin Default fbdev Screen 0"
[  1387.037]            Device  "Builtin Default fbdev Device 0"
[  1387.037]    EndSection
[  1387.037]    Section "Device"
[  1387.037]            Identifier      "Builtin Default vesa Device 0"
[  1387.037]            Driver  "vesa"
[  1387.037]    EndSection
[  1387.037]    Section "Screen"
[  1387.037]            Identifier      "Builtin Default vesa Screen 0"
[  1387.037]            Device  "Builtin Default vesa Device 0"
[  1387.037]    EndSection
[  1387.037]    Section "ServerLayout"
[  1387.037]            Identifier      "Builtin Default Layout"
[  1387.037]            Screen  "Builtin Default intel Screen 0"
[  1387.037]            Screen  "Builtin Default fbdev Screen 0"
[  1387.037]            Screen  "Builtin Default vesa Screen 0"
[  1387.037]    EndSection
[  1387.037] (==) --- End of built-in configuration ---
[  1387.037] (==) ServerLayout "Builtin Default Layout"
[  1387.037] (**) |-->Screen "Builtin Default intel Screen 0" (0)
[  1387.037] (**) |   |-->Monitor "<default monitor>"
[  1387.037] (**) |   |-->Device "Builtin Default intel Device 0"
[  1387.037] (==) No monitor specified for screen "Builtin Default intel Screen 0".
        Using a default monitor configuration.
[  1387.037] (**) |-->Screen "Builtin Default fbdev Screen 0" (1)
[  1387.037] (**) |   |-->Monitor "<default monitor>"
[  1387.037] (**) |   |-->Device "Builtin Default fbdev Device 0"
[  1387.037] (==) No monitor specified for screen "Builtin Default fbdev Screen 0".
        Using a default monitor configuration.
[  1387.037] (**) |-->Screen "Builtin Default vesa Screen 0" (2)
[  1387.037] (**) |   |-->Monitor "<default monitor>"
[  1387.037] (**) |   |-->Device "Builtin Default vesa Device 0"
[  1387.037] (==) No monitor specified for screen "Builtin Default vesa Screen 0".
        Using a default monitor configuration.
[  1387.037] (==) Automatically adding devices
[  1387.037] (==) Automatically enabling devices
[  1387.037] (==) Not automatically adding GPU devices

[  1387.037] (II) The server relies on devd to provide the list of input devices.
        If no devices become available, reconfigure devd or disable AutoAddDevices.

[  1387.040] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so
[  1387.040] (II) Module vesa: vendor="X.Org Foundation"
[  1387.040]    compiled for 1.17.4, module version = 2.3.4
[  1387.040]    Module class: X.Org Video Driver
[  1387.040]    ABI class: X.Org Video Driver, version 19.0
[  1387.040] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43, HD Graphics,
        HD Graphics 2000, HD Graphics 3000, HD Graphics 2500,
        HD Graphics 4000, HD Graphics P4000, HD Graphics 4600,
        HD Graphics 5000, HD Graphics P4600/P4700, Iris(TM) Graphics 5100,
        HD Graphics 4400, HD Graphics 4200, Iris(TM) Pro Graphics 5200
[  1387.040] (II) VESA: driver for VESA chipsets: vesa
[  1387.040] (--) Using syscons driver with X support (version 0.x)
[  1387.040] (--) using VT number 9

[  1387.133] (II) VESA(0): initializing int10
[  1387.134] (EE) VESA(0): No V_BIOS found
[  1387.134] (II) UnloadModule: "vesa"
[  1387.134] (II) UnloadSubModule: "int10"
[  1387.134] (II) Unloading int10
[  1387.134] (II) UnloadSubModule: "vbe"
[  1387.134] (II) Unloading vbe
[  1387.134] (EE) Screen(s) found, but none have a usable configuration.
[  1387.134] (EE)
Fatal server error:
[  1387.134] (EE) no screens found(EE)

ok, let me try to set up a xorg.conf file. First I ran Xorg -configure as root, it gave me a starting point (xorg.conf.new).

root@kg-z30b# ls -l /usr/local/etc/X11/xorg.conf
lrwxr-xr-x  1 root  wheel  15 Dec 22 22:33 /usr/local/etc/X11/xorg.conf -> xorg.conf_intel
root@kg-z30b# ls -l /usr/local/etc/X11/xorg.conf_intel
-rw-r--r--  1 root  wheel  1669 Dec 22 22:32 /usr/local/etc/X11/xorg.conf_intel

contents:

root@kg-z30b# more /usr/local/etc/X11/xorg.conf
# hand crafted xorg.conf

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "AccelMethod"               # <str>
        #Option     "Backlight"                 # <str>
        #Option     "DRI"                       # <str>
        #Option     "ColorKey"                  # <i>
        #Option     "VideoKey"                  # <i>
        #Option     "Tiling"                    # [<bool>]
        #Option     "LinearFramebuffer"         # [<bool>]
        #Option     "SwapbuffersWait"           # [<bool>]
        #Option     "TripleBuffer"              # [<bool>]
        #Option     "XvPreferOverlay"           # [<bool>]
        #Option     "HotPlug"                   # [<bool>]
        #Option     "ReprobeOutputs"            # [<bool>]
        #Option     "XvMC"                      # [<bool>]
        #Option     "ZaphodHeads"               # <str>
        #Option     "TearFree"                  # [<bool>]
        #Option     "PerCrtcPixmaps"            # [<bool>]
        #Option     "FallbackDebug"             # [<bool>]
        #Option     "DebugFlushBatches"         # [<bool>]
        #Option     "DebugFlushCaches"          # [<bool>]
        #Option     "DebugWait"                 # [<bool>]
        #Option     "BufferCache"               # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        #BusID       "PCI:0:2:0"
EndSection
#---[ e o f ]---

testing that too fails. From /var/log/Xorg.0.log:

[  2884.385] (II) LoadModule: "intel"
[  2884.386] (II) Loading /usr/local/lib/xorg/modules/drivers/intel_drv.so
[  2884.386] (II) Module intel: vendor="X.Org Foundation"
[  2884.386]    compiled for 1.17.4, module version = 2.21.15
[  2884.386]    Module class: X.Org Video Driver
[  2884.386]    ABI class: X.Org Video Driver, version 19.0
[  2884.386] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43, HD Graphics,
        HD Graphics 2000, HD Graphics 3000, HD Graphics 2500,
        HD Graphics 4000, HD Graphics P4000, HD Graphics 4600,
        HD Graphics 5000, HD Graphics P4600/P4700, Iris(TM) Graphics 5100,
        HD Graphics 4400, HD Graphics 4200, Iris(TM) Pro Graphics 5200
[  2884.386] (--) Using syscons driver with X support (version 0.x)
[  2884.386] (--) using VT number 9

[  2884.391] (EE) No devices detected.
[  2884.391] (EE)
Fatal server error:
[  2884.391] (EE) no screens found(EE)
[  2884.391] (EE)

Ok. It seems Intel HD Graphics 5500 is too new for this.

Let me try vesa once more:

root@kg-z30b# ll /usr/local/etc/X11/xorg.conf
lrwxr-xr-x  1 root  wheel  14 Dec 22 22:55 /usr/local/etc/X11/xorg.conf@ -> xorg.conf_vesa
root@kg-z30b# ll /usr/local/etc/X11/xorg.conf_vesa
-rw-r--r--  1 root  wheel  1805 Dec 22 22:55 /usr/local/etc/X11/xorg.conf_vesa

contents

root@kg-z30b# more /usr/local/etc/X11/xorg.conf_vesa
# hand crafted xorg.conf

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

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "NoAccel"                   # [<bool>]
        #Option     "AccelMethod"               # <str>
        #Option     "Backlight"                 # <str>
        #Option     "DRI"                       # <str>
        #Option     "ColorKey"                  # <i>
        #Option     "VideoKey"                  # <i>
        #Option     "Tiling"                    # [<bool>]
        #Option     "LinearFramebuffer"         # [<bool>]
        #Option     "SwapbuffersWait"           # [<bool>]
        #Option     "TripleBuffer"              # [<bool>]
        #Option     "XvPreferOverlay"           # [<bool>]
        #Option     "HotPlug"                   # [<bool>]
        #Option     "ReprobeOutputs"            # [<bool>]
        #Option     "XvMC"                      # [<bool>]
        #Option     "ZaphodHeads"               # <str>
        #Option     "TearFree"                  # [<bool>]
        #Option     "PerCrtcPixmaps"            # [<bool>]
        #Option     "FallbackDebug"             # [<bool>]
        #Option     "DebugFlushBatches"         # [<bool>]
        #Option     "DebugFlushCaches"          # [<bool>]
        #Option     "DebugWait"                 # [<bool>]
        #Option     "BufferCache"               # [<bool>]
        Identifier  "Card0"
        Driver      "vesa"
        BusID       "PCI:0:2:0"
EndSection
#---[ e o f ]---

No, doesn't work. Relevant output from /var/log/Xorg.0.log:

[  4053.458] (II) LoadModule: "vesa"

[  4053.458] (II) VESA: driver for VESA chipsets: vesa
[  4053.458] (--) Using syscons driver with X support (version 0.x)
[  4053.458] (--) using VT number 9

[  4053.462] (II) VESA(0): initializing int10
[  4053.462] (EE) VESA(0): No V_BIOS found

[  4053.463] (EE) Screen(s) found, but none have a usable configuration.
[  4053.463] (EE)
Fatal server error:
[  4053.463] (EE) no screens found(EE)

Unfortunately, there isn't any newer intel driver in the ports tree:

root@kg-z30b# pkg info *intel*
xf86-video-intel-2.21.15_9

does something else while waiting.

2015-12-22: ada0p2 - pkg - after bootstrapping pkg, I install a few packages:

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

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

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

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

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

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

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

#!/usr/local/bin/perl

or

#!/usr/bin/env perl

The first one will only work if you have a /usr/local/bin/perl,
the second will work as long as perl is in PATH.

some utilities needed

root@kg-z30b# pkg install xclock xterm twm
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 7 package(s) will be affected (of 0 checked):

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

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

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

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

I also need the Xorg intel video driver:

root@kg-z30b# pkg install xf86-video-intel
Updating FreeBSD repository catalogue...
FreeBSD repository is up-to-date.
All repositories are up-to-date.
The following 2 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
    xf86-video-intel: 2.21.15_9
    xcb-util: 0.4.0_1,1

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

Proceed with this action? [y/N]: y
Fetching xf86-video-intel-2.21.15_9.txz: 100%  467 KiB 477.8kB/s    00:01   
Fetching xcb-util-0.4.0_1,1.txz: 100%   12 KiB  12.3kB/s    00:01   
Checking integrity... done (0 conflicting)
[1/2] Installing xcb-util-0.4.0_1,1...
[1/2] Extracting xcb-util-0.4.0_1,1: 100%
[2/2] Installing xf86-video-intel-2.21.15_9...
[2/2] Extracting xf86-video-intel-2.21.15_9: 100%

ok.

2015-12-13: ada0p2 - wireless network setup: in /etc/rc.conf, I commented out em0:

#ifconfig_em0="DHCP"

and added lines for run0:

wlans_run0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"

I created /etc/wpa_supplicant.conf with entries for my network:

root@kg-z30b# ll /etc/wp*
-rw-------  1 root  wheel  41 Dec 13 22:29 /etc/wpa_supplicant.conf

after a reboot, the wireless network adapter works:

tingo@kg-z30b$ ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ether b0:b2:dc:60:38:9f
    inet 10.1.150.55 netmask 0xffff0000 broadcast 10.1.255.255
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    media: IEEE 802.11 Wireless Ethernet OFDM/9Mbps mode 11g
    status: associated
    ssid kg5 channel 7 (2442 MHz 11g) bssid e0:cb:4e:86:81:0b
    country US authmode WPA2/802.11i privacy ON deftxkey UNDEF
    TKIP 2:128-bit txpower 0 bmiss 7 scanvalid 60 protmode CTS wme
    roaming MANUAL

cool.

2015-12-13: ada0p2 - trying a different usb network adapter: Zyxel NWD2105. From /var/log/messages:

Dec 13 20:47:45 kg-z30b kernel: ugen0.2: <Ralink> at usbus0
Dec 13 20:47:45 kg-z30b devd: Executing 'kldload -n if_run'
Dec 13 20:47:45 kg-z30b devd: Executing 'kldload -n if_run'
Dec 13 20:47:45 kg-z30b devd: Executing 'logger Unknown USB device: vendor 0x04f2 product 0xb3b2 bus uhub0'
Dec 13 20:47:45 kg-z30b root: Unknown USB device: vendor 0x04f2 product 0xb3b2 bus uhub0
Dec 13 20:47:45 kg-z30b devd: Executing 'logger Unknown USB device: vendor 0x04f2 product 0xb3b2 bus uhub0'
Dec 13 20:47:45 kg-z30b root: Unknown USB device: vendor 0x04f2 product 0xb3b2 bus uhub0

Hmm, if_run doesn't work. usbconfig device descriptor:

root@kg-z30b# usbconfig -d ugen0.2 dump_device_desc
ugen0.2: <802.11 n WLAN Ralink> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (450mA)

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x0000  <Probed by interface class>
  bDeviceSubClass = 0x0000
  bDeviceProtocol = 0x0000
  bMaxPacketSize0 = 0x0040
  idVendor = 0x0586
  idProduct = 0x341e
  bcdDevice = 0x0101
  iManufacturer = 0x0001  <Ralink>
  iProduct = 0x0002  <802.11 n WLAN>
  iSerialNumber = 0x0003  <1.0>
  bNumConfigurations = 0x0001

According to bug 188046 which was closed in 2014, this should already haven been fixed. Check:

root@kg-z30b# grep NWD2105 /usr/src/sys/dev/usb/usbdevs
product ZYXEL RT3070        0x341e    NWD2105

ok, first part is ok.

root@kg-z30b# grep ZYXEL /usr/src/sys/dev/usb/wlan/if_run.c | grep RT3070
root@kg-z30b# grep ZYXEL /usr/src/sys/dev/usb/wlan/if_run.c
    RUN_DEV(ZYXEL,        RT2870_1),
    RUN_DEV(ZYXEL,        RT2870_2),
    RUN_DEV_EJECT(ZYXEL,    NWD2705),

but the second part of the patch is missing. Fix it, then recompile:

root@kg-z30b# cd /usr/src/sys/modules/usb/run
root@kg-z30b# make
Warning: Object directory not changed from original /usr/src/sys/modules/usb/run
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
x86 -> /usr/src/sys/x86/include
:> opt_bus.h
:> opt_usb.h
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/usb/usb_if.m -h
awk -f @/tools/usbdevs2h.awk @/dev/usb/usbdevs -h
cc -O2 -pipe  -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments  -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -Wno-error-unused-function   -c /usr/src/sys/modules/usb/run/../../../dev/usb/wlan/if_run.c -o if_run.o
ld  -d -warn-common -r -d -o if_run.ko if_run.o
:> export_syms
awk -f /usr/src/sys/modules/usb/run/../../../conf/kmod_syms.awk if_run.ko  export_syms | xargs -J% objcopy % if_run.ko
objcopy --strip-debug if_run.ko

try it:

root@kg-z30b# kldunload if_run
root@kg-z30b# kldload -v ./if_run.ko
Loaded ./if_run.ko, id=9

and now /var/log/messages say:

Dec 13 21:45:09 kg-z30b kernel: run0: <1.0> on usbus0
Dec 13 21:45:09 kg-z30b kernel: run0: MAC/BBP RT3070 (rev 0x0201), RF RT3020 (MIMO 1T1R), address b0:b2:dc:60:38:9f
Dec 13 21:45:09 kg-z30b devd: Executing '/etc/pccard_ether run0 start'
Dec 13 21:45:09 kg-z30b devd: Executing '/etc/pccard_ether run0 start'

cool. ifconfig output

root@kg-z30b# ifconfig run0
run0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 2290
    ether b0:b2:dc:60:38:9f
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    media: IEEE 802.11 Wireless Ethernet autoselect (autoselect)
    status: no carrier

Next, testing it. But first copy it in place:

root@kg-z30b# cp -v ./if_run.ko /boot/kernel/
./if_run.ko -> /boot/kernel/if_run.ko

good.

2015-12-13: ada0p2 - trying out a usb network adapter: the On Networks N300MA, 802.11bgn, based on Realtek RTL8192CU chipset. When plugged in this shows up in /var/log/messages:

Dec 13 19:44:31 kg-z30b kernel: ugen0.5: <vendor 0x0846> at usbus0
Dec 13 19:44:31 kg-z30b devd: Executing 'logger Unknown USB device: vendor 0x0846 product 0xf001 bus uhub0'
Dec 13 19:44:31 kg-z30b root: Unknown USB device: vendor 0x0846 product 0xf001 bus uhub0
but it doesn't seem like urtwn supports this.

usbconfig output

root@kg-z30b# usbconfig -d ugen0.2
ugen0.2: <product 0xf001 vendor 0x0846> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)

device descriptor

root@kg-z30b# usbconfig -d ugen0.2 dump_device_desc
ugen0.2: <product 0xf001 vendor 0x0846> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x0000  <Probed by interface class>
  bDeviceSubClass = 0x0000
  bDeviceProtocol = 0x0000
  bMaxPacketSize0 = 0x0040
  idVendor = 0x0846
  idProduct = 0xf001
  bcdDevice = 0x0200
  iManufacturer = 0x0001  <Realtek>
  iProduct = 0x0002  <NETGEAR WNA3100M>
  iSerialNumber = 0x0003  <00e04c000001>
  bNumConfigurations = 0x0001

current config descriptor

root@kg-z30b# usbconfig -d ugen0.2 dump_curr_config_desc
ugen0.2: <product 0xf001 vendor 0x0846> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)


 Configuration index 0

    bLength = 0x0009
    bDescriptorType = 0x0002
    wTotalLength = 0x002e
    bNumInterfaces = 0x0001
    bConfigurationValue = 0x0001
    iConfiguration = 0x0000  <no string>
    bmAttributes = 0x0080
    bMaxPower = 0x00fa

    Interface 0
      bLength = 0x0009
      bDescriptorType = 0x0004
      bInterfaceNumber = 0x0000
      bAlternateSetting = 0x0000
      bNumEndpoints = 0x0004
      bInterfaceClass = 0x00ff  <Vendor specific>
      bInterfaceSubClass = 0x00ff
      bInterfaceProtocol = 0x00ff
      iInterface = 0x0000  <no string>

     Endpoint 0
        bLength = 0x0007
        bDescriptorType = 0x0005
        bEndpointAddress = 0x0081  <IN>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200
        bInterval = 0x0000
        bRefresh = 0x0000
        bSynchAddress = 0x0000

     Endpoint 1
        bLength = 0x0007
        bDescriptorType = 0x0005
        bEndpointAddress = 0x0002  <OUT>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200
        bInterval = 0x0000
        bRefresh = 0x0000
        bSynchAddress = 0x0000

     Endpoint 2
        bLength = 0x0007
        bDescriptorType = 0x0005
        bEndpointAddress = 0x0003  <OUT>
        bmAttributes = 0x0002  <BULK>
        wMaxPacketSize = 0x0200
        bInterval = 0x0000
        bRefresh = 0x0000
        bSynchAddress = 0x0000

     Endpoint 3
        bLength = 0x0007
        bDescriptorType = 0x0005
        bEndpointAddress = 0x0084  <IN>
        bmAttributes = 0x0003  <INTERRUPT>
        wMaxPacketSize = 0x0040
        bInterval = 0x0001
        bRefresh = 0x0000
        bSynchAddress = 0x0000

hmm,

2015-12-12: ada0p2 - try to check out source for iwm driver only from head:

tingo@kg-z30b$ mkdir work
tingo@kg-z30b$ cd work
tingo@kg-z30b$ svnlite checkout https://svn.freebsd.org/base/head/sys/dev/iwm
Error validating server certificate for 'https://svn.freebsd.org:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: svn.freebsd.org
 - Valid: from Jun 22 00:00:00 2015 GMT until Jun 22 23:59:59 2016 GMT
 - Issuer: Gandi, Paris, Paris, FR
 - Fingerprint: E9:37:73:80:B5:32:1B:93:92:94:98:17:59:F0:FA:A2:5F:1E:DE:B9
(R)eject, accept (t)emporarily or accept (p)ermanently? p
A    iwm/if_iwm.c
A    iwm/if_iwmvar.h
A    iwm/if_iwm_mac_ctxt.c
A    iwm/if_iwm_phy_ctxt.c
A    iwm/if_iwm_power.c
A    iwm/if_iwm_scan.c
A    iwm/if_iwm_binding.c
A    iwm/if_iwm_pcie_trans.c
A    iwm/if_iwm_phy_db.c
A    iwm/if_iwm_time_event.c
A    iwm/if_iwm_util.c
A    iwm/if_iwm_binding.h
A    iwm/if_iwm_debug.h
A    iwm/if_iwm_mac_ctxt.h
A    iwm/if_iwm_pcie_trans.h
A    iwm/if_iwm_phy_ctxt.h
A    iwm/if_iwm_phy_db.h
A    iwm/if_iwm_power.h
A    iwm/if_iwm_scan.h
A    iwm/if_iwm_time_event.h
A    iwm/if_iwm_util.h
A    iwm/if_iwmreg.h
Checked out revision 292127.

that worked out nicely. I'll also need the makefile.

tingo@kg-z30b$ mkdir modules
tingo@kg-z30b$ cd modules
tingo@kg-z30b$ svnlite checkout https://svn.freebsd.org/base/head/sys/modules/iwm
A    iwm/Makefile
Checked out revision 292127.

and firmware

tingo@kg-z30b$ svnlite checkout https://svn.freebsd.org/base/head/sys/modules/iwmfw
A    iwmfw/iwm3160fw
A    iwmfw/iwm7260fw
A    iwmfw/iwm7265fw
A    iwmfw/Makefile.inc
A    iwmfw/Makefile
A    iwmfw/iwm3160fw/Makefile
A    iwmfw/iwm7260fw/Makefile
A    iwmfw/iwm7265fw/Makefile
Checked out revision 292127.

actual firmware files too

tingo@kg-z30b$ pwd
/usr/home/tingo/work
tingo@kg-z30b$ mkdir -p contrib/dev
tingo@kg-z30b$ cd contrib/dev
tingo@kg-z30b$ svnlite checkout https://svn.freebsd.org/base/head/sys/contrib/dev/iwm
A    iwm/LICENSE
A    iwm/iwm-3160-9.fw.uu
A    iwm/iwm-7260-9.fw.uu
A    iwm/iwm-7265-9.fw.uu
Checked out revision 292127.

now - does it build?

First copy the source to the right place:

root@kg-z30b# cd /usr/src/sys/contrib
root@kg-z30b# cd dev
root@kg-z30b# cp -Rv /home/tingo/work/contrib/dev/iwm .
/home/tingo/work/contrib/dev/iwm -> ./iwm
/home/tingo/work/contrib/dev/iwm/.svn -> ./iwm/.svn
/home/tingo/work/contrib/dev/iwm/.svn/pristine -> ./iwm/.svn/pristine
/home/tingo/work/contrib/dev/iwm/.svn/pristine/5b -> ./iwm/.svn/pristine/5b
/home/tingo/work/contrib/dev/iwm/.svn/pristine/5b/5b01e5b30b1d831bf98025797b65965aee93ef7b.svn-base -> ./iwm/.svn/pristine/5b/5b01e5b30b1d831bf98025797b65965aee93ef7b.svn-base
/home/tingo/work/contrib/dev/iwm/.svn/pristine/0f -> ./iwm/.svn/pristine/0f
/home/tingo/work/contrib/dev/iwm/.svn/pristine/0f/0f0b16984b4b7f7eeee352d43466c944d1a3d8d1.svn-base -> ./iwm/.svn/pristine/0f/0f0b16984b4b7f7eeee352d43466c944d1a3d8d1.svn-base
/home/tingo/work/contrib/dev/iwm/.svn/pristine/9c -> ./iwm/.svn/pristine/9c
/home/tingo/work/contrib/dev/iwm/.svn/pristine/9c/9c78195fed366a6b3187b9e7940a3eb7462e9a27.svn-base -> ./iwm/.svn/pristine/9c/9c78195fed366a6b3187b9e7940a3eb7462e9a27.svn-base
/home/tingo/work/contrib/dev/iwm/.svn/pristine/7d -> ./iwm/.svn/pristine/7d
/home/tingo/work/contrib/dev/iwm/.svn/pristine/7d/7d58636954eac6f55639772c36340854db6ef3b2.svn-base -> ./iwm/.svn/pristine/7d/7d58636954eac6f55639772c36340854db6ef3b2.svn-base
/home/tingo/work/contrib/dev/iwm/.svn/tmp -> ./iwm/.svn/tmp
/home/tingo/work/contrib/dev/iwm/.svn/wc.db -> ./iwm/.svn/wc.db
/home/tingo/work/contrib/dev/iwm/.svn/entries -> ./iwm/.svn/entries
/home/tingo/work/contrib/dev/iwm/.svn/format -> ./iwm/.svn/format
/home/tingo/work/contrib/dev/iwm/LICENSE -> ./iwm/LICENSE
/home/tingo/work/contrib/dev/iwm/iwm-3160-9.fw.uu -> ./iwm/iwm-3160-9.fw.uu
/home/tingo/work/contrib/dev/iwm/iwm-7260-9.fw.uu -> ./iwm/iwm-7260-9.fw.uu
/home/tingo/work/contrib/dev/iwm/iwm-7265-9.fw.uu -> ./iwm/iwm-7265-9.fw.uu

and module files

root@kg-z30b# cd /usr/src/sys/modules
root@kg-z30b# cp -Rv /home/tingo/work/modules/iwm .
/home/tingo/work/modules/iwm -> ./iwm
/home/tingo/work/modules/iwm/.svn -> ./iwm/.svn
/home/tingo/work/modules/iwm/.svn/pristine -> ./iwm/.svn/pristine
/home/tingo/work/modules/iwm/.svn/pristine/5c -> ./iwm/.svn/pristine/5c
/home/tingo/work/modules/iwm/.svn/pristine/5c/5c678376c9306074f13aa05a760c3ee8859b7345.svn-base -> ./iwm/.svn/pristine/5c/5c678376c9306074f13aa05a760c3ee8859b7345.svn-base
/home/tingo/work/modules/iwm/.svn/tmp -> ./iwm/.svn/tmp
/home/tingo/work/modules/iwm/.svn/wc.db -> ./iwm/.svn/wc.db
/home/tingo/work/modules/iwm/.svn/entries -> ./iwm/.svn/entries
/home/tingo/work/modules/iwm/.svn/format -> ./iwm/.svn/format
/home/tingo/work/modules/iwm/Makefile -> ./iwm/Makefile
root@kg-z30b# cp -Rv /home/tingo/work/modules/iwmfw .
/home/tingo/work/modules/iwmfw -> ./iwmfw
/home/tingo/work/modules/iwmfw/.svn -> ./iwmfw/.svn
/home/tingo/work/modules/iwmfw/.svn/pristine -> ./iwmfw/.svn/pristine
/home/tingo/work/modules/iwmfw/.svn/pristine/7c -> ./iwmfw/.svn/pristine/7c
/home/tingo/work/modules/iwmfw/.svn/pristine/7c/7c326cdd59ec316263aa83bbe5fc9e592db69edd.svn-base -> ./iwmfw/.svn/pristine/7c/7c326cdd59ec316263aa83bbe5fc9e592db69edd.svn-base
/home/tingo/work/modules/iwmfw/.svn/pristine/7c/7cdd416d00fbbd71ceddb6152051679625ace75b.svn-base -> ./iwmfw/.svn/pristine/7c/7cdd416d00fbbd71ceddb6152051679625ace75b.svn-base
/home/tingo/work/modules/iwmfw/.svn/pristine/fd -> ./iwmfw/.svn/pristine/fd
/home/tingo/work/modules/iwmfw/.svn/pristine/fd/fdb62d897526779662f6109d50f487858cebb193.svn-base -> ./iwmfw/.svn/pristine/fd/fdb62d897526779662f6109d50f487858cebb193.svn-base
/home/tingo/work/modules/iwmfw/.svn/pristine/5e -> ./iwmfw/.svn/pristine/5e
/home/tingo/work/modules/iwmfw/.svn/pristine/5e/5ee292e71fdbe86aa1d48fa42f2b0c3a11c83308.svn-base -> ./iwmfw/.svn/pristine/5e/5ee292e71fdbe86aa1d48fa42f2b0c3a11c83308.svn-base
/home/tingo/work/modules/iwmfw/.svn/pristine/b2 -> ./iwmfw/.svn/pristine/b2
/home/tingo/work/modules/iwmfw/.svn/pristine/b2/b2c59303bf845d70d0c6d3b5af2ca8e746ec7f0a.svn-base -> ./iwmfw/.svn/pristine/b2/b2c59303bf845d70d0c6d3b5af2ca8e746ec7f0a.svn-base
/home/tingo/work/modules/iwmfw/.svn/tmp -> ./iwmfw/.svn/tmp
/home/tingo/work/modules/iwmfw/.svn/wc.db -> ./iwmfw/.svn/wc.db
/home/tingo/work/modules/iwmfw/.svn/entries -> ./iwmfw/.svn/entries
/home/tingo/work/modules/iwmfw/.svn/format -> ./iwmfw/.svn/format
/home/tingo/work/modules/iwmfw/iwm3160fw -> ./iwmfw/iwm3160fw
/home/tingo/work/modules/iwmfw/iwm3160fw/Makefile -> ./iwmfw/iwm3160fw/Makefile
/home/tingo/work/modules/iwmfw/iwm7260fw -> ./iwmfw/iwm7260fw
/home/tingo/work/modules/iwmfw/iwm7260fw/Makefile -> ./iwmfw/iwm7260fw/Makefile
/home/tingo/work/modules/iwmfw/iwm7265fw -> ./iwmfw/iwm7265fw
/home/tingo/work/modules/iwmfw/iwm7265fw/Makefile -> ./iwmfw/iwm7265fw/Makefile
/home/tingo/work/modules/iwmfw/Makefile.inc -> ./iwmfw/Makefile.inc
/home/tingo/work/modules/iwmfw/Makefile -> ./iwmfw/Makefile

finally, source

root@kg-z30b# cd /usr/src/sys/dev
root@kg-z30b# cp -Rv /home/tingo/work/iwm .
/home/tingo/work/iwm -> ./iwm
/home/tingo/work/iwm/.svn -> ./iwm/.svn
/home/tingo/work/iwm/.svn/pristine -> ./iwm/.svn/pristine
/home/tingo/work/iwm/.svn/pristine/d7 -> ./iwm/.svn/pristine/d7
/home/tingo/work/iwm/.svn/pristine/d7/d7f8e611bc99684a0660082dc12e63c892cd02ca.svn-base -> ./iwm/.svn/pristine/d7/d7f8e611bc99684a0660082dc12e63c892cd02ca.svn-base
/home/tingo/work/iwm/.svn/pristine/32 -> ./iwm/.svn/pristine/32
/home/tingo/work/iwm/.svn/pristine/32/32b5e1772ce2a64a9e48c53180c25480be489665.svn-base -> ./iwm/.svn/pristine/32/32b5e1772ce2a64a9e48c53180c25480be489665.svn-base
/home/tingo/work/iwm/.svn/pristine/d1 -> ./iwm/.svn/pristine/d1
/home/tingo/work/iwm/.svn/pristine/d1/d150e56d9f6e0ba5aa0d5775c3d2be42a6aae98d.svn-base -> ./iwm/.svn/pristine/d1/d150e56d9f6e0ba5aa0d5775c3d2be42a6aae98d.svn-base
/home/tingo/work/iwm/.svn/pristine/bf -> ./iwm/.svn/pristine/bf
/home/tingo/work/iwm/.svn/pristine/bf/bfb84297f9b0572dcae690a0153dd8476deeb897.svn-base -> ./iwm/.svn/pristine/bf/bfb84297f9b0572dcae690a0153dd8476deeb897.svn-base
/home/tingo/work/iwm/.svn/pristine/bf/bf38fac6c56a1ba1e69cd0165ad1150ea4d2c599.svn-base -> ./iwm/.svn/pristine/bf/bf38fac6c56a1ba1e69cd0165ad1150ea4d2c599.svn-base
/home/tingo/work/iwm/.svn/pristine/ea -> ./iwm/.svn/pristine/ea
/home/tingo/work/iwm/.svn/pristine/ea/ea9c624044d5b9060207ab8a60cbccff011533b2.svn-base -> ./iwm/.svn/pristine/ea/ea9c624044d5b9060207ab8a60cbccff011533b2.svn-base
/home/tingo/work/iwm/.svn/pristine/e6 -> ./iwm/.svn/pristine/e6
/home/tingo/work/iwm/.svn/pristine/e6/e643f0c0e2ba07fa00cd805f65e9c52dbbef16da.svn-base -> ./iwm/.svn/pristine/e6/e643f0c0e2ba07fa00cd805f65e9c52dbbef16da.svn-base
/home/tingo/work/iwm/.svn/pristine/c4 -> ./iwm/.svn/pristine/c4
/home/tingo/work/iwm/.svn/pristine/c4/c4440588070666743ac2d4d623000b3ca6555c43.svn-base -> ./iwm/.svn/pristine/c4/c4440588070666743ac2d4d623000b3ca6555c43.svn-base
/home/tingo/work/iwm/.svn/pristine/9f -> ./iwm/.svn/pristine/9f
/home/tingo/work/iwm/.svn/pristine/9f/9f61feaaf813782a2226d1be5b3c594caed954d6.svn-base -> ./iwm/.svn/pristine/9f/9f61feaaf813782a2226d1be5b3c594caed954d6.svn-base
/home/tingo/work/iwm/.svn/pristine/a9 -> ./iwm/.svn/pristine/a9
/home/tingo/work/iwm/.svn/pristine/a9/a915b0c49c9e67a01dfa225995d0cba5b7490dea.svn-base -> ./iwm/.svn/pristine/a9/a915b0c49c9e67a01dfa225995d0cba5b7490dea.svn-base
/home/tingo/work/iwm/.svn/pristine/c2 -> ./iwm/.svn/pristine/c2
/home/tingo/work/iwm/.svn/pristine/c2/c24bbd7da55543879046dbf9e0295442414f218c.svn-base -> ./iwm/.svn/pristine/c2/c24bbd7da55543879046dbf9e0295442414f218c.svn-base
/home/tingo/work/iwm/.svn/pristine/cf -> ./iwm/.svn/pristine/cf
/home/tingo/work/iwm/.svn/pristine/cf/cf206b6e1e0c3ff526fc73121bf8be809192ca82.svn-base -> ./iwm/.svn/pristine/cf/cf206b6e1e0c3ff526fc73121bf8be809192ca82.svn-base
/home/tingo/work/iwm/.svn/pristine/ed -> ./iwm/.svn/pristine/ed
/home/tingo/work/iwm/.svn/pristine/ed/ed48aec3dc9a532d7e226a8d761851018a139b5f.svn-base -> ./iwm/.svn/pristine/ed/ed48aec3dc9a532d7e226a8d761851018a139b5f.svn-base
/home/tingo/work/iwm/.svn/pristine/5d -> ./iwm/.svn/pristine/5d
/home/tingo/work/iwm/.svn/pristine/5d/5d1c01cf8302f2f9c1bfd3e1f3b41cfa76aba061.svn-base -> ./iwm/.svn/pristine/5d/5d1c01cf8302f2f9c1bfd3e1f3b41cfa76aba061.svn-base
/home/tingo/work/iwm/.svn/pristine/e0 -> ./iwm/.svn/pristine/e0
/home/tingo/work/iwm/.svn/pristine/e0/e0f19e98de604d763362ef3433f8ba44261a7978.svn-base -> ./iwm/.svn/pristine/e0/e0f19e98de604d763362ef3433f8ba44261a7978.svn-base
/home/tingo/work/iwm/.svn/pristine/fa -> ./iwm/.svn/pristine/fa
/home/tingo/work/iwm/.svn/pristine/fa/fab118b1ad48e4ef20b1f9c3521040d06a9525c4.svn-base -> ./iwm/.svn/pristine/fa/fab118b1ad48e4ef20b1f9c3521040d06a9525c4.svn-base
/home/tingo/work/iwm/.svn/pristine/fa/fa4071b90b0d19a696733a89cd229f36efee47d5.svn-base -> ./iwm/.svn/pristine/fa/fa4071b90b0d19a696733a89cd229f36efee47d5.svn-base
/home/tingo/work/iwm/.svn/pristine/0d -> ./iwm/.svn/pristine/0d
/home/tingo/work/iwm/.svn/pristine/0d/0da1a2d86967330f82f8a0d7f1e05e900bea622e.svn-base -> ./iwm/.svn/pristine/0d/0da1a2d86967330f82f8a0d7f1e05e900bea622e.svn-base
/home/tingo/work/iwm/.svn/pristine/7e -> ./iwm/.svn/pristine/7e
/home/tingo/work/iwm/.svn/pristine/7e/7eec45ca4bb53fd66a24474177b50cd7a3d117e1.svn-base -> ./iwm/.svn/pristine/7e/7eec45ca4bb53fd66a24474177b50cd7a3d117e1.svn-base
/home/tingo/work/iwm/.svn/pristine/d8 -> ./iwm/.svn/pristine/d8
/home/tingo/work/iwm/.svn/pristine/d8/d8ddbf5fd1aec7df7554c81cb5523c6f631479a3.svn-base -> ./iwm/.svn/pristine/d8/d8ddbf5fd1aec7df7554c81cb5523c6f631479a3.svn-base
/home/tingo/work/iwm/.svn/pristine/87 -> ./iwm/.svn/pristine/87
/home/tingo/work/iwm/.svn/pristine/87/87b4147d7e11fd51a81203724b215ce4f7e903e3.svn-base -> ./iwm/.svn/pristine/87/87b4147d7e11fd51a81203724b215ce4f7e903e3.svn-base
/home/tingo/work/iwm/.svn/pristine/fc -> ./iwm/.svn/pristine/fc
/home/tingo/work/iwm/.svn/pristine/fc/fcad818de35f507141f626c26b66145d07ebfcc5.svn-base -> ./iwm/.svn/pristine/fc/fcad818de35f507141f626c26b66145d07ebfcc5.svn-base
/home/tingo/work/iwm/.svn/tmp -> ./iwm/.svn/tmp
/home/tingo/work/iwm/.svn/wc.db -> ./iwm/.svn/wc.db
/home/tingo/work/iwm/.svn/entries -> ./iwm/.svn/entries
/home/tingo/work/iwm/.svn/format -> ./iwm/.svn/format
/home/tingo/work/iwm/if_iwm.c -> ./iwm/if_iwm.c
/home/tingo/work/iwm/if_iwmvar.h -> ./iwm/if_iwmvar.h
/home/tingo/work/iwm/if_iwm_mac_ctxt.c -> ./iwm/if_iwm_mac_ctxt.c
/home/tingo/work/iwm/if_iwm_phy_ctxt.c -> ./iwm/if_iwm_phy_ctxt.c
/home/tingo/work/iwm/if_iwm_power.c -> ./iwm/if_iwm_power.c
/home/tingo/work/iwm/if_iwm_scan.c -> ./iwm/if_iwm_scan.c
/home/tingo/work/iwm/if_iwm_binding.c -> ./iwm/if_iwm_binding.c
/home/tingo/work/iwm/if_iwm_pcie_trans.c -> ./iwm/if_iwm_pcie_trans.c
/home/tingo/work/iwm/if_iwm_phy_db.c -> ./iwm/if_iwm_phy_db.c
/home/tingo/work/iwm/if_iwm_time_event.c -> ./iwm/if_iwm_time_event.c
/home/tingo/work/iwm/if_iwm_util.c -> ./iwm/if_iwm_util.c
/home/tingo/work/iwm/if_iwm_binding.h -> ./iwm/if_iwm_binding.h
/home/tingo/work/iwm/if_iwm_debug.h -> ./iwm/if_iwm_debug.h
/home/tingo/work/iwm/if_iwm_mac_ctxt.h -> ./iwm/if_iwm_mac_ctxt.h
/home/tingo/work/iwm/if_iwm_pcie_trans.h -> ./iwm/if_iwm_pcie_trans.h
/home/tingo/work/iwm/if_iwm_phy_ctxt.h -> ./iwm/if_iwm_phy_ctxt.h
/home/tingo/work/iwm/if_iwm_phy_db.h -> ./iwm/if_iwm_phy_db.h
/home/tingo/work/iwm/if_iwm_power.h -> ./iwm/if_iwm_power.h
/home/tingo/work/iwm/if_iwm_scan.h -> ./iwm/if_iwm_scan.h
/home/tingo/work/iwm/if_iwm_time_event.h -> ./iwm/if_iwm_time_event.h
/home/tingo/work/iwm/if_iwm_util.h -> ./iwm/if_iwm_util.h
/home/tingo/work/iwm/if_iwmreg.h -> ./iwm/if_iwmreg.h

ok. Try to build.

root@kg-z30b# cd /usr/src/sys/modules

firmware first:

root@kg-z30b# cd iwmfw
root@kg-z30b# make
===> iwm3160fw (all)
Warning: Object directory not changed from original /usr/src/sys/modules/iwmfw/iwm3160fw
uudecode -p /usr/src/sys/modules/iwmfw/iwm3160fw/../../../contrib/dev/iwm/iwm-3160-9.fw.uu > iwm-3160-9.fw
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
x86 -> /usr/src/sys/x86/include
iwm-3160-9.fw iwm-3160-9.fw
awk -f @/tools/fw_stub.awk iwm-3160-9.fw:iwm3160fw -miwm3160fw -ciwm3160fw.c 
cc -O2 -pipe  -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments  -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -Wno-error-unused-function   -c iwm3160fw.c -o iwm3160fw.o
ld  -d -warn-common -r -d -o iwm3160fw.ko iwm-3160-9.fw.fwo iwm3160fw.o
:> export_syms
awk -f /usr/src/sys/modules/iwmfw/iwm3160fw/../../../conf/kmod_syms.awk iwm3160fw.ko  export_syms | xargs -J% objcopy % iwm3160fw.ko
objcopy --strip-debug iwm3160fw.ko
===> iwm7260fw (all)
Warning: Object directory not changed from original /usr/src/sys/modules/iwmfw/iwm7260fw
uudecode -p /usr/src/sys/modules/iwmfw/iwm7260fw/../../../contrib/dev/iwm/iwm-7260-9.fw.uu > iwm-7260-9.fw
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
x86 -> /usr/src/sys/x86/include
iwm-7260-9.fw iwm-7260-9.fw
awk -f @/tools/fw_stub.awk iwm-7260-9.fw:iwm7260fw -miwm7260fw -ciwm7260fw.c 
cc -O2 -pipe  -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments  -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -Wno-error-unused-function   -c iwm7260fw.c -o iwm7260fw.o
ld  -d -warn-common -r -d -o iwm7260fw.ko iwm-7260-9.fw.fwo iwm7260fw.o
:> export_syms
awk -f /usr/src/sys/modules/iwmfw/iwm7260fw/../../../conf/kmod_syms.awk iwm7260fw.ko  export_syms | xargs -J% objcopy % iwm7260fw.ko
objcopy --strip-debug iwm7260fw.ko
===> iwm7265fw (all)
Warning: Object directory not changed from original /usr/src/sys/modules/iwmfw/iwm7265fw
uudecode -p /usr/src/sys/modules/iwmfw/iwm7265fw/../../../contrib/dev/iwm/iwm-7265-9.fw.uu > iwm-7265-9.fw
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
x86 -> /usr/src/sys/x86/include
iwm-7265-9.fw iwm-7265-9.fw
awk -f @/tools/fw_stub.awk iwm-7265-9.fw:iwm7265fw -miwm7265fw -ciwm7265fw.c 
cc -O2 -pipe  -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments  -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -Wno-error-unused-function   -c iwm7265fw.c -o iwm7265fw.o
ld  -d -warn-common -r -d -o iwm7265fw.ko iwm-7265-9.fw.fwo iwm7265fw.o
:> export_syms
awk -f /usr/src/sys/modules/iwmfw/iwm7265fw/../../../conf/kmod_syms.awk iwm7265fw.ko  export_syms | xargs -J% objcopy % iwm7265fw.ko
objcopy --strip-debug iwm7265fw.ko

worked nicely.

Next the module:

root@kg-z30b# cd ../iwm
root@kg-z30b# make
Warning: Object directory not changed from original /usr/src/sys/modules/iwm
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
x86 -> /usr/src/sys/x86/include
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
:> opt_wlan.h
cc -O2 -pipe  -DIWM_DEBUG -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -fno-common  -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer  -mno-aes -mno-avx -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -Qunused-arguments  -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-option  -Wno-error-tautological-compare -Wno-error-empty-body  -Wno-error-parentheses-equality -Wno-error-unused-function   -c /usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c -o if_iwm.o
In file included from /usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:152:
@/dev/iwm/if_iwmvar.h:385:16: error: field has incomplete type 'struct mbufq'
        struct mbufq            sc_snd;
                                ^
@/dev/iwm/if_iwmvar.h:385:9: note: forward declaration of 'struct mbufq'
        struct mbufq            sc_snd;
               ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:2084:33: error: no member named 'ic_macaddr' in 'struct ieee80211com'
                IEEE80211_ADDR_COPY(sc->sc_ic.ic_macaddr, sc->sc_nvm.hw_addr);
                                    ~~~~~~~~~ ^
@/net80211/ieee80211_var.h:511:45: note: expanded from macro 'IEEE80211_ADDR_COPY'
#define IEEE80211_ADDR_COPY(dst,src)    memcpy(dst,src,IEEE80211_ADDR_LEN)
                                               ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:2348:17: error: use of undeclared identifier 'IEEE80211_R_IEEE'
        rxs.r_flags |= IEEE80211_R_IEEE | IEEE80211_R_FREQ;
                       ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:2348:36: error: use of undeclared identifier 'IEEE80211_R_FREQ'
        rxs.r_flags |= IEEE80211_R_IEEE | IEEE80211_R_FREQ;
                                          ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:2350:6: error: no member named 'c_ieee' in
      'struct ieee80211_rx_stats'
        rxs.c_ieee = le16toh(phy_info->channel);
        ~~~ ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:2352:7: error: no member named 'c_freq' in
      'struct ieee80211_rx_stats'
                rxs.c_freq = ieee80211_ieee2mhz(rxs.c_ieee, IEEE80211_CHAN_2GHZ);
                ~~~ ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:2352:39: error: no member named 'c_ieee' in
      'struct ieee80211_rx_stats'
                rxs.c_freq = ieee80211_ieee2mhz(rxs.c_ieee, IEEE80211_CHAN_2GHZ);
                                                ~~~ ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:2354:7: error: no member named 'c_freq' in
      'struct ieee80211_rx_stats'
                rxs.c_freq = ieee80211_ieee2mhz(rxs.c_ieee, IEEE80211_CHAN_5GHZ);
                ~~~ ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:2354:39: error: no member named 'c_ieee' in
      'struct ieee80211_rx_stats'
                rxs.c_freq = ieee80211_ieee2mhz(rxs.c_ieee, IEEE80211_CHAN_5GHZ);
                                                ~~~ ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:2365:35: error: no member named 'c_freq' in
      'struct ieee80211_rx_stats'
                tap->wr_chan_freq = htole16(rxs.c_freq);
                                            ~~~ ^
@/sys/endian.h:71:32: note: expanded from macro 'htole16'
#define htole16(x)      ((uint16_t)(x))
                                    ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:2871:29: error: no member named 'ic_softc' in 'struct ieee80211com'
        struct iwm_softc *sc = ic->ic_softc;
                               ~~  ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:3482:29: error: no member named 'ic_softc' in 'struct ieee80211com'
        struct iwm_softc *sc = ic->ic_softc;
                               ~~  ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:3504:29: error: no member named 'ic_softc' in 'struct ieee80211com'
        struct iwm_softc *sc = ic->ic_softc;
                               ~~  ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:3778:11: error: no member named 'ic_softc' in 'struct ieee80211com'
        sc = ic->ic_softc;
             ~~  ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:3785:10: error: implicit declaration of function 'mbufq_enqueue' is
      invalid in C99 [-Werror,-Wimplicit-function-declaration]
        error = mbufq_enqueue(&sc->sc_snd, m);
                ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:3807:8: error: implicit declaration of function 'mbufq_dequeue' is
      invalid in C99 [-Werror,-Wimplicit-function-declaration]
                (m = mbufq_dequeue(&sc->sc_snd)) != NULL) {
                     ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:3807:8: note: did you mean 'mbufq_enqueue'?
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:3785:10: note: 'mbufq_enqueue' declared here
        error = mbufq_enqueue(&sc->sc_snd, m);
                ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:3845:30: error: no member named 'ic_oerrors' in 'struct ieee80211com'
                        counter_u64_add(sc->sc_ic.ic_oerrors, 1);
                                        ~~~~~~~~~ ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:3855:29: error: no member named 'ic_softc' in 'struct ieee80211com'
        struct iwm_softc *sc = ic->ic_softc;
                               ~~  ^
/usr/src/sys/modules/iwm/../../dev/iwm/if_iwm.c:4600:2: error: implicit declaration of function 'mbufq_init' is
      invalid in C99 [-Werror,-Wimplicit-function-declaration]
        mbufq_init(&sc->sc_snd, ifqmaxlen);
        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
*** Error code 1

Stop.
make: stopped in /usr/src/sys/modules/iwm

well, it didn't work. Too many changes.

2015-12-12: ada0p2 - after a reboot, the machine now runs latest FreeBSD 10.2-stable. dmesg output: [normal], [verbose].

root@kg-z30b# freebsd-version -ku
10.2-STABLE
10.2-STABLE
root@kg-z30b# uname -a
FreeBSD kg-z30b.kg4.no 10.2-STABLE FreeBSD 10.2-STABLE #0 r292123: Sat Dec 12 00:58:41 CET 2015     root@kg-z30b.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

nice.

2015-12-12: ada0p2 - continue "make world": build and install kernel

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

I run the rest of the steps multiuser too.

mergemaster -p

root@kg-z30b# mergemaster -p

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



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

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

installworld

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

delete old stuff

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

run mergemaster

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


*** You installed a new aliases file, so make sure that you run
    '/usr/bin/newaliases' to rebuild your aliases database

    Would you like to run it now? y or n [n] y
    Running /usr/bin/newaliases

/etc/mail/aliases: 29 aliases, longest 10 bytes, 297 bytes total

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

    Would you like to run it now? y or n [n] y
    Running /usr/bin/cap_mkdb /etc/login.conf


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

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


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

only a reboot remains.

2015-12-11: ada0p2 - build and install latest FreeBSD 10.2-stable via "make world": build world

root@kg-z30b# cd /usr/src
root@kg-z30b# make -j5 buildworld
[...]
--- buildworld_epilogue ---
--------------------------------------------------------------
>>> World build completed on Sat Dec 12 00:44:46 CET 2015
--------------------------------------------------------------

ok.

2015-12-11: ada0p2 - I update the source to latest stable/10 via svnlite:

root@kg-z30b# svnlite checkout https://svn.FreeBSD.org/base/stable/10 /usr/src
Error validating server certificate for 'https://svn.freebsd.org:443':
 - The certificate is not issued by a trusted authority. Use the
   fingerprint to validate the certificate manually!
Certificate information:
 - Hostname: svn.freebsd.org
 - Valid: from Jun 22 00:00:00 2015 GMT until Jun 22 23:59:59 2016 GMT
 - Issuer: Gandi, Paris, Paris, FR
 - Fingerprint: E9:37:73:80:B5:32:1B:93:92:94:98:17:59:F0:FA:A2:5F:1E:DE:B9
(R)eject, accept (t)emporarily or accept (p)ermanently? p
[...]
A    /usr/src/COPYRIGHT
 U   /usr/src
Checked out revision 292123.

only one "false start" too. Nice.

2015-12-11: ada0p2 - I installed FreeBSD 10.2-release onto a blank 250 GB SSD (Samsung EVO 850 mSATA). I selected guided partitioning and adjusted a bit. The disk currently looks like this:

root@kg-z30b# gpart show -p ada0
=>       34  488397101    ada0  GPT  (233G)
         34          6          - free -  (3.0K)
         40     204800  ada0p1  efi  (100M)
     204840  125829120  ada0p2  freebsd-ufs  (60G)
  126033960    8388608  ada0p3  freebsd-swap  (4.0G)
  134422568  353974567          - free -  (169G)

large efi in case of more operating systems. dmesg output: [normal], [verbose].

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

battery info:

root@kg-z30b# acpiconf -i 0
Design capacity:    51504 mWh
Last full capacity:    51489 mWh
Technology:        secondary (rechargeable)
Design voltage:        14800 mV
Capacity (warn):    1036 mWh
Capacity (low):        0 mWh
Low/warn granularity:    14 mWh
Warn/full granularity:    14 mWh
Model number:        G71C000G7310
Serial number:        0
Type:            Li-ION 
OEM info:       
State:            charging
Remaining capacity:    99%
Remaining time:        unknown
Present rate:        9886 mW
Present voltage:    14800 mV

pci info:

root@kg-z30b# pciconf -lv
hostb0@pci0:0:0:0:    class=0x060000 card=0x00011179 chip=0x16048086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:0:2:0:    class=0x030000 card=0x00051179 chip=0x16168086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = display
    subclass   = VGA
hdac0@pci0:0:3:0:    class=0x040300 card=0x00011179 chip=0x160c8086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = multimedia
    subclass   = HDA
xhci0@pci0:0:20:0:    class=0x0c0330 card=0x00011179 chip=0x9cb18086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = serial bus
    subclass   = USB
none0@pci0:0:22:0:    class=0x078000 card=0x00011179 chip=0x9cba8086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = simple comms
em0@pci0:0:25:0:    class=0x020000 card=0x00011179 chip=0x15a38086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = network
    subclass   = ethernet
hdac1@pci0:0:27:0:    class=0x040300 card=0x00011179 chip=0x9ca08086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = multimedia
    subclass   = HDA
pcib1@pci0:0:28:0:    class=0x060400 card=0x00011179 chip=0x9c9a8086 rev=0xe3 hdr=0x01
    vendor     = 'Intel Corporation'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:28:2:    class=0x060400 card=0x00011179 chip=0x9c948086 rev=0xe3 hdr=0x01
    vendor     = 'Intel Corporation'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:    class=0x060100 card=0x00011179 chip=0x9cc38086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = bridge
    subclass   = PCI-ISA
ahci0@pci0:0:31:2:    class=0x010601 card=0x00011179 chip=0x9c838086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = mass storage
    subclass   = SATA
none1@pci0:1:0:0:    class=0xff0000 card=0x00011179 chip=0x522710ec rev=0x01 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
none2@pci0:2:0:0:    class=0x028000 card=0x81708086 chip=0x08b38086 rev=0xcb hdr=0x00
    vendor     = 'Intel Corporation'
    class      = network

none0 is management network interface?

none1 is the card reader?

none2 is the wireless

I'm currently connected via wired - em0:

root@kg-z30b# ifconfig em0
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=4019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO>
    ether b8:6b:23:44:6c:ba
    inet 10.1.161.23 netmask 0xffff0000 broadcast 10.1.255.255
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
    media: Ethernet autoselect (1000baseT <full-duplex>)
    status: active

usb info

root@kg-z30b# usbconfig
ugen0.1: <XHCI root HUB 0x8086> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.2: <2.4GHz 2way RF Receiver vendor 0x1bcf> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (46mA)
ugen0.3: <USB2.0 Hub vendor 0x05e3> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
ugen0.4: <TOSHIBA Web Camera - FHD Chicony Electronics Co.,Ltd.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)

ugen0.2 is a mouse receiver for a wireless mouse. This machine has Bluetooth too, I'm not sure where that is.

2015-12-08: ok, wireless seems to be Intel Wireless 3160, which is supported by the iwn driver in -current. I wonder if it is MFC'ed to 10-stable?

2015-12-08: booted FreeBSD 10.2-release off a usb stick (the uefi image). dmesg output: [normal]. I had to turn off Secure Boot in the BIOS before FreeBSD would boot. The wired network card is detected (em0), the wireless one is not.

pciconf -lv output:

hostb0@pci0:0:0:0:    class=0x060000 card=0x00011179 chip=0x16048086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = bridge
    subclass   = HOST-PCI
vgapci0@pci0:0:2:0:    class=0x030000 card=0x00051179 chip=0x16168086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = display
    subclass   = VGA
hdac0@pci0:0:3:0:    class=0x040300 card=0x00011179 chip=0x160c8086 rev=0x09 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = multimedia
    subclass   = HDA
xhci0@pci0:0:20:0:    class=0x0c0330 card=0x00011179 chip=0x9cb18086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = serial bus
    subclass   = USB
none0@pci0:0:22:0:    class=0x078000 card=0x00011179 chip=0x9cba8086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = simple comms
em0@pci0:0:25:0:    class=0x020000 card=0x00011179 chip=0x15a38086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = network
    subclass   = ethernet
hdac1@pci0:0:27:0:    class=0x040300 card=0x00011179 chip=0x9ca08086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = multimedia
    subclass   = HDA
pcib1@pci0:0:28:0:    class=0x060400 card=0x00011179 chip=0x9c9a8086 rev=0xe3 hdr=0x01
    vendor     = 'Intel Corporation'
    class      = bridge
    subclass   = PCI-PCI
pcib2@pci0:0:28:2:    class=0x060400 card=0x00011179 chip=0x9c948086 rev=0xe3 hdr=0x01
    vendor     = 'Intel Corporation'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:    class=0x060100 card=0x00011179 chip=0x9cc38086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = bridge
    subclass   = PCI-ISA
ahci0@pci0:0:31:2:    class=0x010601 card=0x00011179 chip=0x9c838086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    class      = mass storage
    subclass   = SATA
none1@pci0:1:0:0:    class=0xff0000 card=0x00011179 chip=0x522710ec rev=0x01 hdr=0x00
    vendor     = 'Realtek Semiconductor Co., Ltd.'
none2@pci0:2:0:0:    class=0x028000 card=0x81708086 chip=0x08b38086 rev=0xcb hdr=0x00
    vendor     = 'Intel Corporation'
    class      = network

usbconfig output

ugen0.1: <XHCI root HUB 0x8086> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.2: <DataTraveler 2.0 Kingston> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (200mA)
ugen0.3: <2.4GHz 2way RF Receiver vendor 0x1bcf> at usbus0, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON (46mA)
ugen0.4: <USB2.0 Hub vendor 0x05e3> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (100mA)
ugen0.5: <TOSHIBA Web Camera - FHD Chicony Electronics Co.,Ltd.> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)

Funny, the touchpad (GlidePoint) doesn't seem to be usb connected

acpiconf -i 0 output:

Design capacity:    51504 mWh
Last full capacity:    51504 mWh
Technology:        secondary (rechargeable)
Design voltage:        14800 mV
Capacity (warn):    1036 mWh
Capacity (low):        0 mWh
Low/warn granularity:    14 mWh
Warn/full granularity:    14 mWh
Model number:        G71C000G7310
Serial number:        0
Type:            Li-ION 
OEM info:       
State:            discharging
Remaining capacity:    83%
Remaining time:        3:40
Present rate:        11632 mW
Present voltage:    14800 mV

good.