ASRock Fatal1ty FM2A88X+ Killer - FreeBSD

Hardware info on main page.

The first ssd (ada0, OCZ Trion 100 240 GB) is sliced up as follows

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

the second ssd (Intel 530 Series 180GB) is currently sliced up like this

root@kg-vm4:~ # gpart show -p ada1
=>       63  351651825    ada1  MBR  (168G)
         63       1985          - free -  (993K)
       2048   97654784  ada1s1  linux-data  [active]  (47G)
   97656832       2046          - free -  (1.0M)
   97658878   15622146  ada1s2  ebr  (7.4G)
  113281024  238370864          - free -  (114G)

Keys: Del / F2 - UEFI setup, F11 - boot menu,

Worklog

2017-06-03: ada0p2 - fix the filesystem on the efi partition. first, backup what's on it:

root@kg-vm4:~ # mkdir ~/backup
root@kg-vm4:~ # cp -pv /media/efi/boot/BOOTx64.efi ~/backup
/media/efi/boot/BOOTx64.efi -> /root/backup/BOOTx64.efi
root@kg-vm4:~ # cp -pv /media/efi/debian/grubx64.efi ~/backup
/media/efi/debian/grubx64.efi -> /root/backup/grubx64.efi

unmount and recreate filesystem

root@kg-vm4:~ # umount /media
root@kg-vm4:~ # newfs_msdos -F 32 /dev/ada0p1
newfs_msdos: trim 50 sectors to adjust to a multiple of 63
/dev/ada0p1: 204512 sectors in 12782 FAT32 clusters (8192 bytes/cluster)
BytesPerSec=512 SecPerClust=16 ResSectors=32 FATs=2 Media=0xf0 SecPerTrack=63 Heads=16 HiddenSecs=0 HugeSectors=204750 FATsecs=100 RootCluster=2 FSInfo=1 Backup=2

mount it and put stuff back

root@kg-vm4:~ # mount -t msdosfs /dev/ada0p1 /media
root@kg-vm4:~ # df -h /media
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada0p1    100M     24K    100M     0%    /media

looks better now

do Debian

root@kg-vm4:~ # mkdir -p /media/efi/debian
root@kg-vm4:~ # cp -pv ~/backup/grubx64.efi /media/efi/debian
/root/backup/grubx64.efi -> /media/efi/debian/grubx64.efi

do FreeBSD

root@kg-vm4:~ # mkdir -p /media/efi/boot
root@kg-vm4:~ # cp -pv ~/backup/BOOTx64.efi /media/efi/boot
/root/backup/BOOTx64.efi -> /media/efi/boot/BOOTx64.efi

also create one with a proper name

root@kg-vm4:~ # mkdir -p /media/efi/FreeBSD
root@kg-vm4:~ # cp -pv ~/backup/BOOTx64.efi /media/efi/FreeBSD
/root/backup/BOOTx64.efi -> /media/efi/FreeBSD/BOOTx64.efi

ok.

2017-06-03: ada0p2 - the filesystem on the EFI partition is too small partition

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

the esp is 100M, ok

filesystem

root@kg-vm4:~ # df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada0p2     53G    915M     48G     2%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ada0p1    767K     66K    701K     9%    /mnt

here we can see that ada0p1 is only 767K, which is a bit small.

2017-06-03: ada0p2 - still FreeBSD 10.2-release:

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

ok.

2016-01-04: ada0p2 - I installed FreeBSD 10.2-release in EFI mode by booting from the UEFI image. I changed disk layout from default (auto guided) to

efi 100M (was 800k)
/ (root)  55G
swap     4G

On reboot, the machine would not boot from the SSD, no matter what I tried in UEFI settings. However, I can go into the built in UEFI shell and execute fs0:\efi\boot\BOOTx64.efi and the boot loader starts and boots. Case doesn't matter, I can do fs0:\efi\boot\bootx64.efi also.

2016-01-04: I booted FreeBSD 10.2-release, the UEFI image, off a usb stick (Kingston DataTraveler 8 GB). Yes, it boots in UEFI mode, automatically and via boot menu (F11).

2015-10-25: I booted FreeBSD 10.2-release off a usb stick, now the network card was detected and working (it is alc0). dmesg output: normal.

2015-10-25: I booted FreeBSD 10.0-release off a usb stick, but the network card wasn't detected. dmesg output: normal.