ASRock M3A UCC - FreeBSD - 2019 archive
back to main FreeBSD page for this machine.
Current storage New SSD (Kingston 120GB, ada0)
$ gpart show -p ada0 => 40 234441568 ada0 GPT (112G) 40 1024 ada0p1 freebsd-boot (512K) 1064 62914560 ada0p2 freebsd-ufs (30G) FreeBSD 12.0-release 62915624 16777216 ada0p3 freebsd-swap (8.0G) 79692840 154748768 - free - (74G)
old info: this machine is my MythTV backend, and runs the amd64 version of FreeBSD.
Currently, slice 2 is used for "production".
Note: slice 2 is currently using the external network card (xl0: <3Com 3c905B-TX Fast Etherlink XL>) because the built-in one isn't supported by FreeBSD 6.4-stable.
New hard drive: The first PATA hard drive (ad0 - WDC WD3200AAJB - 320 GB) is sliced up as follows:
slice 1 - 80 GB - FreeBSD 6.2-stable slice 2 - 80 GB - FreeBSD 6.4-stable (RELENG_6) slice 3 - 80 GB - FreeBSD 7.4-stable (RELENG_7) slice 4 - 58 GB - FreeBSD 8.2-stable (RELENG_8)
Old hard drive: The first PATA hard drive (ad0 - Samsung SP0822N - 80 GB) was sliced up as follows:
slice 1 - 18 GB - FreeBSD 6.2-stable slice 2 - 18 GB - FreeBSD 8.1-prerelease (RELENG_8) slice 3 - 18 GB - FreeBSD 7.2-stable (RELENG_7) slice 4 - xx GB -
data hard drives mirror one:
root@kg-fil# gmirror status store2 Name Status Components mirror/store2 COMPLETE ad4 ad6 root@kg-fil# dmesg | grep ad[46]: ad4: 953869MB <SAMSUNG HD103UJ 1AA01118> at ata2-master SATA300 ad6: 953869MB <SAMSUNG HD103UJ 1AA01118> at ata3-master SATA300
mirror two:
2019 archive.
2019-07-07: ada0p2 - add my user to the video group
root@kg-ucc# pw groupmod video -m tingo root@kg-ucc# pw groupshow video video:*:44:tingo
ok. Without nv driver - no change. With nv driver - no change, and the log file says
[ 4804.864] (EE) NV: The PCI device 0x10de0161 (GeForce 6200 TurboCache(TM)) at 01@00:00:0 has a kernel module claiming it. [ 4804.864] (EE) NV: This driver cannot operate until it has been unloaded. [ 4804.864] (EE) open /dev/dri/card0: No such file or directory [ 4804.864] (WW) Falling back to old probe method for modesetting [ 4804.864] (EE) open /dev/dri/card0: No such file or directory [ 4804.864] vesa: Ignoring device with a bound kernel driver [ 4804.864] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [ 4804.864] (EE) Screen 0 deleted because of no matching config section. [ 4804.864] (II) UnloadModule: "modesetting" [ 4804.864] (EE) Screen 0 deleted because of no matching config section. [ 4804.864] (II) UnloadModule: "vesa" [ 4804.864] (EE) Device(s) detected, but none match those in the config file. [ 4804.864] (EE) Fatal server error: [ 4804.864] (EE) no screens found(EE)
meh.
2019-07-07: ada0p2 - pkg - remove nv driver
Jul 7 10:42:16 kg-ucc pkg[1745]: xf86-video-nv-2.1.21_3 deinstalled
and disable the config file
root@kg-ucc# ll /usr/local/etc/X11/xorg.conf.d/ total 16 drwxr-xr-x 2 root wheel 512 Jul 7 10:43 ./ drwxr-xr-x 4 root wheel 512 Jul 7 09:59 ../ -rw-r--r-- 1 root wheel 71 Jul 7 10:34 driver-nv.conf_disabled -rw-r--r-- 1 root wheel 137 Jul 7 10:07 keyboard-no.conf
but Xorg still doesn't work. From the Xorg.0.log file
[ 3634.520] (II) LoadModule: "vesa" [ 3634.520] (II) Loading /usr/local/lib/xorg/modules/drivers/vesa_drv.so [ 3634.520] (II) Module vesa: vendor="X.Org Foundation" [ 3634.520] compiled for 1.18.4, module version = 2.4.0 [ 3634.520] Module class: X.Org Video Driver [ 3634.520] ABI class: X.Org Video Driver, version 20.0 [ 3634.520] (II) modesetting: Driver for Modesetting Kernel Drivers: kms [ 3634.520] (II) VESA: driver for VESA chipsets: vesa [ 3634.520] (--) Using syscons driver with X support (version 2.0) [ 3634.520] (--) using VT number 9 [ 3634.557] (EE) open /dev/dri/card0: No such file or directory [ 3634.557] (WW) Falling back to old probe method for modesetting [ 3634.557] (EE) open /dev/dri/card0: No such file or directory [ 3634.557] vesa: Ignoring device with a bound kernel driver [ 3634.557] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support [ 3634.557] (EE) Screen 0 deleted because of no matching config section. [ 3634.557] (II) UnloadModule: "modesetting" [ 3634.557] (EE) Screen 0 deleted because of no matching config section. [ 3634.557] (II) UnloadModule: "vesa" [ 3634.557] (EE) Device(s) detected, but none match those in the config file. [ 3634.557] (EE) Fatal server error: [ 3634.557] (EE) no screens found(EE)
hmm... maybe my user needs to be a member of the video group?
2019-07-07: ada0p2 - Xorg - create a config file for nv
root@kg-ucc# cat /usr/local/etc/X11/xorg.conf.d/driver-nv.conf Section "Device" Identifier "Card0" Driver "nv" EndSection
test startx again - nope the same problem
2019-07-07: ada0p2 - Xorg - 'startx' fails, leving this error in /var/log/Xorg.0.log
[ 1724.973] (EE) NV: The PCI device 0x10de0161 (GeForce 6200 TurboCache(TM)) at 01@00:00:0 has a kernel module claiming it. [ 1724.973] (EE) NV: This driver cannot operate until it has been unloaded.
I also see this
[ 1724.973] vesa: Ignoring device with a bound kernel driver
and
[ 1724.973] (EE) Screen 0 deleted because of no matching config section. [ 1724.973] (II) UnloadModule: "modesetting" [ 1724.973] (EE) Screen 0 deleted because of no matching config section. [ 1724.973] (II) UnloadModule: "vesa" [ 1724.973] (EE) Device(s) detected, but none match those in the config file.
maybe I need a config file
2019-07-07: ada0p2 - Xorg - create a keyboard layout file
root@kg-ucc# more /usr/local/etc/X11/xorg.conf.d/keyboard-no.conf Section "InputClass" Identifier "keyboard defaults" MatchIsKeyboard "on" Option "XkbLayout" "no" EndSection
ok
2019-07-07: ada0p2 - pkg - install Xorg and other necessary packages
Jul 7 09:58:37 kg-ucc pkg[1046]: xorgproto-2019.1 installed Jul 7 09:58:37 kg-ucc pkg[1046]: libXdmcp-1.1.3 installed Jul 7 09:58:37 kg-ucc pkg[1046]: libXau-1.0.9 installed Jul 7 09:58:37 kg-ucc pkg[1046]: libxml2-2.9.9 installed Jul 7 09:58:37 kg-ucc pkg[1046]: libpthread-stubs-0.4 installed Jul 7 09:58:38 kg-ucc pkg[1046]: libxcb-1.13.1 installed Jul 7 09:58:39 kg-ucc pkg[1046]: libX11-1.6.8,1 installed Jul 7 09:58:39 kg-ucc pkg[1046]: indexinfo-0.3.1 installed Jul 7 09:58:39 kg-ucc pkg[1046]: pciids-20190620 installed Jul 7 09:58:39 kg-ucc pkg[1046]: libXext-1.3.4,1 installed Jul 7 09:58:39 kg-ucc pkg[1046]: libXfixes-5.0.3_2 installed Jul 7 09:58:40 kg-ucc pkg[1046]: expat-2.2.6_1 installed Jul 7 09:58:40 kg-ucc pkg[1046]: libffi-3.2.1_3 installed Jul 7 09:58:40 kg-ucc pkg[1046]: libepoll-shim-0.0.20190311 installed Jul 7 09:58:40 kg-ucc pkg[1046]: libpciaccess-0.14 installed Jul 7 09:58:40 kg-ucc pkg[1046]: readline-8.0.0 installed Jul 7 09:58:40 kg-ucc pkg[1046]: gettext-runtime-0.20.1 installed Jul 7 09:58:40 kg-ucc pkg[1046]: libICE-1.0.9_3,1 installed Jul 7 09:58:40 kg-ucc pkg[1046]: libxshmfence-1.3 installed Jul 7 09:58:40 kg-ucc pkg[1046]: libXxf86vm-1.1.4_3 installed Jul 7 09:58:40 kg-ucc pkg[1046]: libXdamage-1.1.5 installed Jul 7 09:58:40 kg-ucc pkg[1046]: wayland-1.16.0_1 installed Jul 7 09:58:40 kg-ucc pkg[1046]: libdrm-2.4.98_1,1 installed Jul 7 09:58:40 kg-ucc pkg[1046]: libunwind-20170615 installed Jul 7 09:58:40 kg-ucc pkg[1046]: libXv-1.0.11_2,1 installed Jul 7 09:58:40 kg-ucc pkg[1046]: libXrender-0.9.10_2 installed Jul 7 09:58:44 kg-ucc pkg[1046]: python27-2.7.16_1 installed Jul 7 09:58:50 kg-ucc pkg[1046]: perl5-5.28.2 installed Jul 7 09:58:51 kg-ucc pkg[1046]: libedit-3.1.20190324,1 installed Jul 7 09:58:51 kg-ucc pkg[1046]: libSM-1.2.3,1 installed Jul 7 09:58:51 kg-ucc pkg[1046]: libxkbfile-1.1.0 installed Jul 7 09:58:51 kg-ucc pkg[1046]: libfontenc-1.1.4 installed Jul 7 09:58:51 kg-ucc pkg[1046]: freetype2-2.10.0 installed Jul 7 09:58:51 kg-ucc pkg[1046]: mesa-libs-18.3.2_1 installed Jul 7 09:58:51 kg-ucc pkg[1046]: libXvMC-1.0.11 installed Jul 7 09:58:51 kg-ucc pkg[1046]: libXrandr-1.5.2 installed Jul 7 09:59:12 kg-ucc pkg[1046]: llvm80-8.0.0_2 installed Jul 7 09:59:12 kg-ucc pkg[1046]: libXt-1.2.0,1 installed Jul 7 09:59:12 kg-ucc pkg[1046]: xkeyboard-config-2.27 installed Jul 7 09:59:12 kg-ucc pkg[1046]: xkbcomp-1.4.2 installed Jul 7 09:59:12 kg-ucc pkg[1046]: pixman-0.34.0_1 installed Jul 7 09:59:12 kg-ucc pkg[1046]: libXfont-1.5.4_2,2 installed Jul 7 09:59:13 kg-ucc pkg[1046]: font-util-1.3.1 installed Jul 7 09:59:13 kg-ucc pkg[1046]: mesa-dri-18.3.2_3 installed Jul 7 09:59:13 kg-ucc pkg[1046]: libepoxy-1.5.2 installed Jul 7 09:59:14 kg-ucc pkg[1046]: libXmu-1.1.3,1 installed Jul 7 09:59:14 kg-ucc pkg[1046]: xorg-server-1.18.4_11,1 installed Jul 7 09:59:14 kg-ucc pkg[1046]: libXi-1.7.10,1 installed Jul 7 09:59:14 kg-ucc pkg[1046]: xinit-1.4.1,1 installed Jul 7 09:59:14 kg-ucc pkg[1046]: xauth-1.0.10 installed Jul 7 09:59:14 kg-ucc pkg[1046]: xf86-video-vesa-2.4.0_2 installed Jul 7 09:59:14 kg-ucc pkg[1046]: xf86-input-mouse-1.9.3_2 installed Jul 7 09:59:14 kg-ucc pkg[1046]: xf86-input-keyboard-1.9.0_3 installed Jul 7 09:59:14 kg-ucc pkg[1046]: xorg-minimal-7.5.2_2 installed
install driver for nvidia cards
Jul 7 10:02:43 kg-ucc pkg[1538]: xf86-video-nv-2.1.21_3 installed
install xclock, xrandr, twm
Jul 7 10:04:25 kg-ucc pkg[1543]: libXpm-3.5.12_2 installed Jul 7 10:04:25 kg-ucc pkg[1543]: libXp-1.0.3_2,1 installed Jul 7 10:04:27 kg-ucc pkg[1543]: fontconfig-2.12.6,1 installed Jul 7 10:04:28 kg-ucc pkg[1543]: libXaw-1.0.13_2,2 installed Jul 7 10:04:28 kg-ucc pkg[1543]: libXft-2.3.2_3 installed Jul 7 10:04:28 kg-ucc pkg[1543]: xclock-1.0.8 installed Jul 7 10:04:28 kg-ucc pkg[1543]: twm-1.0.10 installed Jul 7 10:04:28 kg-ucc pkg[1543]: xrandr-1.5.0 installed
ok
2019-07-07: ada0p2 - pkg - upgrade
Jul 7 09:48:16 kg-ucc pkg[983]: pkg upgraded: 1.10.5_5 -> 1.11.1 Jul 7 09:48:57 kg-ucc pkg[1003]: libnghttp2 upgraded: 1.35.1 -> 1.39.1 Jul 7 09:48:57 kg-ucc pkg[1003]: ca_root_nss upgraded: 3.41 -> 3.44.1 Jul 7 09:48:58 kg-ucc pkg[1003]: curl upgraded: 7.62.0 -> 7.65.1
ok
2019-07-07: ada0p2 - reboot, the machine now runs FreeBSD 12.0-release-p7.
root@kg-ucc# freebsd-version -ku 12.0-RELEASE-p7 12.0-RELEASE-p7
kernel
root@kg-ucc# uname -a FreeBSD kg-ucc.kg4.no 12.0-RELEASE-p7 FreeBSD 12.0-RELEASE-p7 GENERIC amd64
ok
2019-07-07: ada0p2 - freebsd-update fetch
root@kg-ucc# freebsd-update fetch [..] The following files will be removed as part of updating to 12.0-RELEASE-p7: /usr/share/zoneinfo/Etc/UCT The following files will be added as part of updating to 12.0-RELEASE-p7: /usr/share/zoneinfo/Asia/Qostanay The following files will be updated as part of updating to 12.0-RELEASE-p7: /bin/freebsd-version [..] /usr/share/zoneinfo/Pacific/Saipan /usr/share/zoneinfo/zone.tab
install
root@kg-ucc# freebsd-update install src component not installed, skipped Installing updates... done.
ok