Installing GhostBSD 18.10 RC3 on a Mac Mini 2010

Questions about the installation of FreeBSD
Post Reply
rgeorgia
Posts: 11
Joined: Tue Apr 10, 2018 2:35 pm
Has thanked: 0
Been thanked: 2 times

Installing GhostBSD 18.10 RC3 on a Mac Mini 2010

Post by rgeorgia » Tue Oct 30, 2018 10:10 pm

The initial attempt to bring up the “live” desktop failed. Once X failed I was dropped to a shell prompt. I did X -configure, changed the driver from nv to scfb and moved the new xorg.conf to /etc/X11/xorg.conf. I typed “exit” at the prompt and was greeted with GhostBSD desktop.

I completed the install and rebooted, but again X failed. I changed nv to scfb in xorg.conf and X worked; however, it is extremely sluggish. Feels like running Win98 on a 386DX machine.

The network interface failed as well. The built in wifi was not detected so I added a USB rtwn0 wifi adapter. That worked… sort of. I used Erics network card manager (netcardmgr) and it allowed me to configure the wifi; however, on a reboot the wifi was not working. I unplugged the USB wifi and replugged and restarted the network. That gave me wifi.

The wired NIC failed as well. The NIC is seen as bge0. I added if_bge_load=YES to loader.conf and rebooted. Still fails. I added it to the rc.conf, but that made no difference.

Installed latest nvidia driver and changed from scfb to nvidia in xorg.conf. The rc.conf has kldload_nvidia="nvidia-modeset nvidia" in the first line. Did not make a difference. The only working driver is scfb.

Disclaimer: I am not a BSD guru and I don't play one on TV, but I am open to any and all questions, suggestions, comments and yes... criticisms.

NevilleGoddard
Developer
Posts: 478
Joined: Thu Dec 22, 2016 10:30 pm
Location: Japan
Has thanked: 9 times
Been thanked: 10 times

Re: Installing GhostBSD 18.10 RC3 on a Mac Mini 2010

Post by NevilleGoddard » Wed Oct 31, 2018 9:33 am

Hi.
About the nvidia driver - did you run nvidia-xconfig and reboot?

rgeorgia
Posts: 11
Joined: Tue Apr 10, 2018 2:35 pm
Has thanked: 0
Been thanked: 2 times

Re: Installing GhostBSD 18.10 RC3 on a Mac Mini 2010

Post by rgeorgia » Wed Oct 31, 2018 11:43 am

I just ran nvidia-xconfig. It changed my xorg.conf to use the nvidia driver. Reboot. X never came up, it hung right after telling me that bge0 was not responding. I changed the driver back to scfb and things are "sluggishly" working.

Any ideas on getting bge0 to work?

sudo dmesg | grep bge
module_register: cannot register pci/bge from kernel; already loaded from if_bge.ko
Module pci/bge failed to register: 17
module_register: cannot register bge/miibus from kernel; already loaded from if_bge.ko
Module bge/miibus failed to register: 17
bge0: <Broadcom BCM57765 A0, ASIC rev. 0x57785000> mem 0xd3100000-0xd310ffff,0xd3110000-0xd311ffff at device 0.0 on pci4
bge0: CHIP ID 0x57785000; ASIC REV 0x57785; CHIP REV 0x577850; PCI-E
miibus0: <MII bus> on bge0
bge0: Using defaults for TSO: 65518/35/2048
bge0: Ethernet address: c4:2c:03:02:a6:8a
bge0: link state changed to DOWN
bge0: link state changed to UP
bge0: watchdog timeout -- resetting
bge0: link state changed to DOWN
bge0: link state changed to UP
bge0: link state changed to DOWN
bge0: link state changed to UP
bge0: link state changed to DOWN
bge0: link state changed to UP

rgeorgia
Posts: 11
Joined: Tue Apr 10, 2018 2:35 pm
Has thanked: 0
Been thanked: 2 times

Re: Installing GhostBSD 18.10 RC3 on a Mac Mini 2010

Post by rgeorgia » Wed Oct 31, 2018 11:44 am

Also, sshd is set at rc-status of manual. Maybe set to default or ask if user want sshd on startup?

rc-status
Runlevel: default
dbus [ started 00:16:38 (0) ]
cupsd [ started 00:16:37 (0) ]
moused [ started ]
xconfig [ started ]
hald [ started ]
webcamd [ started ]
devfs [ started ]
netmount [ started ]
local [ started ]
slim [ started ]
Dynamic Runlevel: hotplugged
dhcpcd.wlan0 [ started ]
dhcpcd.bge0 [ inactive ]
moused.ums0 [ started ]
moused.ums1 [ started ]
Dynamic Runlevel: needed/wanted
tmp [ started ]
cleartmp [ started ]
var [ started ]
ldconfig [ started ]
cleanvar [ started ]
Dynamic Runlevel: manual
bluetooth.ubt0 [ started ]
bluetooth [ started ]
sshd [ started ]
wpa_supplicant.wlan0 [ started ]

rgeorgia
Posts: 11
Joined: Tue Apr 10, 2018 2:35 pm
Has thanked: 0
Been thanked: 2 times

Re: Installing GhostBSD 18.10 RC3 on a Mac Mini 2010

Post by rgeorgia » Wed Oct 31, 2018 4:15 pm

I added this to my loader.conf file
hw.pci.enable_msi="0"
Found that solution here: https://forums.freebsd.org/threads/inst ... del.31423/

Interesting. I
googled
FreeBSD install on Mac Mini 2010... imagine that?

The graphics still respond only to scfb as driver. nvidia still barfs when trying to start X.

From Xorg.0.log

[ 107.560] (II) LoadModule: "nvidia"
[ 107.562] (WW) Warning, couldn't open module nvidia
[ 107.562] (II) UnloadModule: "nvidia"
[ 107.562] (II) Unloading nvidia
[ 107.562] (EE) Failed to load module "nvidia" (module does not exist, 0)
[ 107.562] (II) LoadModule: "vmmouse"
[ 107.562] (II) Loading /usr/local/lib/xorg/modules/input/vmmouse_drv.so
[ 107.562] (II) Module vmmouse: vendor="X.Org Foundation"
[ 107.562] compiled for 1.18.4, module version = 13.1.0
[ 107.562] Module class: X.Org XInput Driver
[ 107.562] ABI class: X.Org XInput driver, version 22.1
[ 107.562] (II) VMWARE(0): VMMOUSE module was loaded
[ 107.563] (II) LoadModule: "kbd"
[ 107.563] (II) Loading /usr/local/lib/xorg/modules/input/kbd_drv.so
[ 107.563] (II) Module kbd: vendor="X.Org Foundation"
[ 107.563] compiled for 1.18.4, module version = 1.9.0
[ 107.563] Module class: X.Org XInput Driver
[ 107.563] ABI class: X.Org XInput driver, version 22.1
[ 107.563] (EE) No drivers available.
[ 107.563] (EE)
Fatal server error:
[ 107.563] (EE) no screens found(EE)
[ 107.563] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 107.564] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 107.564] (EE)
[ 107.564] (EE) Server terminated with error (1). Closing log file.

rgeorgia
Posts: 11
Joined: Tue Apr 10, 2018 2:35 pm
Has thanked: 0
Been thanked: 2 times

Re: Installing GhostBSD 18.10 RC3 on a Mac Mini 2010

Post by rgeorgia » Wed Oct 31, 2018 4:17 pm

How would I know which driver to use?
rgeorgia@minighost ~> pkg search nvidia
nvidia-driver-390.87 NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-driver-304-304.137_1 NVidia graphics card binary drivers for hardware OpenGL rendering
nvidia-driver-340-340.107_1 NVidia graphics card binary drivers for hardware OpenGL rendering

rgeorgia
Posts: 11
Joined: Tue Apr 10, 2018 2:35 pm
Has thanked: 0
Been thanked: 2 times

Re: Installing GhostBSD 18.10 RC3 on a Mac Mini 2010

Post by rgeorgia » Wed Oct 31, 2018 4:52 pm

rgeorgia@minighost ~> pciconf -lv | grep -A 4 -i vga
vgapci0@pci0:5:0:0: class=0x030000 card=0x00c0106b chip=0x08a410de rev=0xa2 hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'MCP89 [GeForce 320M]'
class = display
subclass = VGA

rgeorgia
Posts: 11
Joined: Tue Apr 10, 2018 2:35 pm
Has thanked: 0
Been thanked: 2 times

Re: Installing GhostBSD 18.10 RC3 on a Mac Mini 2010

Post by rgeorgia » Wed Oct 31, 2018 9:33 pm

I installed all the nvidia-drivers (one at a time of course)
nvidia-driver-390 produces no X but gives me a login prompt
nvidia-driver-340 and nvidia-driver-304 starts X but I get only a blank screen but the system is locked up. Could not login from a remote machine either. Had to power cycle.

NevilleGoddard
Developer
Posts: 478
Joined: Thu Dec 22, 2016 10:30 pm
Location: Japan
Has thanked: 9 times
Been thanked: 10 times

Re: Installing GhostBSD 18.10 RC3 on a Mac Mini 2010

Post by NevilleGoddard » Wed Oct 31, 2018 11:34 pm

Did you try disabling nvidia-modeset with the old driver?

rgeorgia
Posts: 11
Joined: Tue Apr 10, 2018 2:35 pm
Has thanked: 0
Been thanked: 2 times

Re: Installing GhostBSD 18.10 RC3 on a Mac Mini 2010

Post by rgeorgia » Thu Nov 01, 2018 10:10 am

removed nvidia-modeset from rc.conf. New rc.conf looks like
#kldload_nvidia="nvidia-modeset nvidia"
kldload_nvidia="nvidia"
root_rw_mount="NO"
sendmail_enable="NONE"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
devfs_system_ruleset="devfsrules_common"
kld_list="linux linux64"
rc_interactive="YES"
#ntpd_enable="YES"
#ntpd_sync_on_start="YES"
keymap="us.iso"
hostname="minighost"
zfs_enable="YES"
ifconfig_bge0="DHCP"
wlans_rtwn0="wlan0"
ifconfig_wlan0="WPA DHCP"

==========================
nvidia-driver-390 produces no X but gives me a login prompt. removed 390 and installed 340.
nvidia-driver-340: starts X but I get only a blank screen but the system is locked up. Could not login from a remote machine either. Had to power cycle.
nvidia-driver-304: starts X but I get only a blank screen but the system is locked up. Could not login from a remote machine either. Had to power cycle.

Post Reply