Asus V7-P7H55E - FreeBSD - 2017 archive

Back to main FreeBSD page for this machine.

2017 archive

2017-12-18: ada1p4 - Xorg also works nicely. From /var/log/messages

Dec 18 17:22:35 kg-v7 kernel: info: [drm] Initialized drm 1.1.0 20060810
Dec 18 17:22:35 kg-v7 kernel: drmn0: <Intel IronLake> on vgapci0
Dec 18 17:22:35 kg-v7 kernel: info: [drm] MTRR allocation failed.  Graphics performance may suffer.
Dec 18 17:22:35 kg-v7 kernel: intel_iicbb0 on drmn0

Dec 18 17:22:35 kg-v7 kernel: info: [drm] MSI enabled 1 message(s)
Dec 18 17:22:35 kg-v7 kernel: info: [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
Dec 18 17:22:35 kg-v7 kernel: info: [drm] Driver supports precise vblank timestamp query.
Dec 18 17:22:35 kg-v7 kernel: intel_sdvo_ddc_proxy921920 on drmn0
Dec 18 17:22:35 kg-v7 kernel: intel_sdvo_ddc_proxy921920: detached
Dec 18 17:22:35 kg-v7 kernel: drm_iic_dp_aux0 on drmn0
Dec 18 17:22:35 kg-v7 kernel: drm_iic_dp_aux1 on drmn0
Dec 18 17:22:35 kg-v7 kernel: drm_iic_dp_aux2 on drmn0
Dec 18 17:22:35 kg-v7 kernel: drmn0: taking over the fictitious range 0xe0000000-0xf0000000
Dec 18 17:22:35 kg-v7 kernel: info: [drm] Connector VGA-1: get mode from tunables:
Dec 18 17:22:35 kg-v7 kernel: info: [drm]   - kern.vt.fb.modes.VGA-1
Dec 18 17:22:35 kg-v7 kernel: info: [drm]   - kern.vt.fb.default_mode
Dec 18 17:22:35 kg-v7 kernel: info: [drm] Connector HDMI-A-1: get mode from tunables:
Dec 18 17:22:35 kg-v7 kernel: info: [drm]   - kern.vt.fb.modes.HDMI-A-1
Dec 18 17:22:35 kg-v7 kernel: info: [drm]   - kern.vt.fb.default_mode
Dec 18 17:22:35 kg-v7 kernel: info: [drm] Connector DP-1: get mode from tunables:
Dec 18 17:22:35 kg-v7 kernel: info: [drm]   - kern.vt.fb.modes.DP-1
Dec 18 17:22:35 kg-v7 kernel: info: [drm]   - kern.vt.fb.default_mode
Dec 18 17:22:35 kg-v7 kernel: info: [drm] Connector HDMI-A-2: get mode from tunables:
Dec 18 17:22:35 kg-v7 kernel: info: [drm]   - kern.vt.fb.modes.HDMI-A-2
Dec 18 17:22:35 kg-v7 kernel: info: [drm]   - kern.vt.fb.default_mode
Dec 18 17:22:35 kg-v7 kernel: info: [drm] Connector HDMI-A-3: get mode from tunables:
Dec 18 17:22:35 kg-v7 kernel: info: [drm]   - kern.vt.fb.modes.HDMI-A-3
Dec 18 17:22:35 kg-v7 kernel: info: [drm]   - kern.vt.fb.default_mode
Dec 18 17:22:35 kg-v7 kernel: info: [drm] Connector DP-2: get mode from tunables:
Dec 18 17:22:35 kg-v7 kernel: info: [drm]   - kern.vt.fb.modes.DP-2
Dec 18 17:22:35 kg-v7 kernel: info: [drm]   - kern.vt.fb.default_mode
Dec 18 17:22:35 kg-v7 kernel: info: [drm] Connector DP-3: get mode from tunables:
Dec 18 17:22:35 kg-v7 kernel: info: [drm]   - kern.vt.fb.modes.DP-3
Dec 18 17:22:35 kg-v7 kernel: info: [drm]   - kern.vt.fb.default_mode
Dec 18 17:22:35 kg-v7 kernel: fbd0 on drmn0
Dec 18 17:22:35 kg-v7 kernel: VT: Replacing driver "vga" with new "fb".
Dec 18 17:22:35 kg-v7 kernel: info: [drm] Initialized i915 1.6.0 20080730 for drmn0 on minor 0

good.

2017-12-18: ada1p4 - after a reboot, the machine now runs FreeBSD 11.1-stable. dmesg: normal, verbose.

tingo@kg-v7$ freebsd-version -ku
11.1-STABLE
11.1-STABLE
tingo@kg-v7$ uname -a
FreeBSD kg-v7.kg4.no 11.1-STABLE FreeBSD 11.1-STABLE #0 r326918: Mon Dec 18 01:54:52 CET 2017     root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

ok.

2017-12-18: ada1p4 - continue build of latest FreeBSD 11.1-stable via 'make world' procedure make kernel

root@kg-v7# make kernel
[..]
kldxref /boot/kernel

mergemaster PRE

root@kg-v7# mergemaster -p
*** Creating the temporary root environment in /var/tmp/temproot
 *** /var/tmp/temproot ready for use
 *** Creating and populating directory structure in /var/tmp/temproot



*** Beginning comparison

 *** Temp ./etc/group and installed have the same Id, deleting
 *** Temp ./etc/master.passwd and installed have the same Id, deleting

*** Comparison complete

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

install world

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

delete old stuff

root@kg-v7# make delete-old
>>> Removing old files (only deletes safe to delete libs)
remove /usr/share/man/man1/fdformat.1.gz? y
remove /usr/include/sys/ksyms.h? y
remove /usr/share/man/man2/cap_rights_get.2.gz? y
remove /usr/include/pcap-int.h? y
remove /usr/include/c++/v1/__undef___deallocate? y
remove /usr/include/c++/v1/tr1/__undef___deallocate? y
remove /usr/tests/usr.bin/col/col? y
remove /usr/tests/usr.bin/ident/ident? y
remove /usr/tests/usr.bin/mkimg/mkimg? y
remove /usr/tests/usr.bin/sdiff/sdiff? y
remove /usr/tests/usr.bin/soelim/soelim? y
remove /usr/tests/usr.sbin/pw/pw_config? y
remove /usr/tests/usr.sbin/pw/pw_etcdir? y
remove /usr/tests/usr.sbin/pw/pw_lock? y
remove /usr/tests/usr.sbin/pw/pw_groupadd? y
remove /usr/tests/usr.sbin/pw/pw_groupdel? y
remove /usr/tests/usr.sbin/pw/pw_groupmod? y
remove /usr/tests/usr.sbin/pw/pw_useradd? y
remove /usr/tests/usr.sbin/pw/pw_userdel? y
remove /usr/tests/usr.sbin/pw/pw_usermod? y
remove /usr/tests/usr.sbin/pw/pw_usernext? y
remove /usr/tests/usr.bin/timeout/timeout? y
remove /usr/tests/sys/geom/class/gate/1_test? y
remove /usr/tests/sys/geom/class/gate/2_test? y
remove /usr/tests/sys/geom/class/gate/3_test? y
remove /usr/tests/sys/geom/class/gate/conf.sh? y
remove /usr/tests/lib/libarchive/test_acl_pax.tar.uu? y
remove /usr/include/netinet/ip_ipsec.h? y
remove /usr/include/netinet6/ip6_ipsec.h? y
remove /usr/lib/libbsnmptools.a? y
remove /usr/lib/libbsnmptools_p.a? y
remove /usr/tests/sys/geom/class/nop/1_test? y
remove /usr/tests/sys/geom/class/nop/2_test? y
remove /usr/tests/sys/geom/class/nop/conf.sh? y
remove /usr/lib/clang/3.8.0/include/sanitizer/allocator_interface.h? y
remove /usr/lib/clang/3.8.0/include/sanitizer/asan_interface.h? y
remove /usr/lib/clang/3.8.0/include/sanitizer/common_interface_defs.h? y
remove /usr/lib/clang/3.8.0/include/sanitizer/coverage_interface.h? y
remove /usr/lib/clang/3.8.0/include/sanitizer/dfsan_interface.h? y
remove /usr/lib/clang/3.8.0/include/sanitizer/linux_syscall_hooks.h? y
remove /usr/lib/clang/3.8.0/include/sanitizer/lsan_interface.h? y
remove /usr/lib/clang/3.8.0/include/sanitizer/msan_interface.h? y
remove /usr/lib/clang/3.8.0/include/sanitizer/tsan_interface_atomic.h? y
remove /usr/lib/clang/3.8.0/include/__clang_cuda_runtime_wrapper.h? y
remove /usr/lib/clang/3.8.0/include/__stddef_max_align_t.h? y
remove /usr/lib/clang/3.8.0/include/__wmmintrin_aes.h? y
remove /usr/lib/clang/3.8.0/include/__wmmintrin_pclmul.h? y
remove /usr/lib/clang/3.8.0/include/adxintrin.h? y
remove /usr/lib/clang/3.8.0/include/altivec.h? y
remove /usr/lib/clang/3.8.0/include/ammintrin.h? y
remove /usr/lib/clang/3.8.0/include/arm_acle.h? y
remove /usr/lib/clang/3.8.0/include/arm_neon.h? y
remove /usr/lib/clang/3.8.0/include/avx2intrin.h? y
remove /usr/lib/clang/3.8.0/include/avx512bwintrin.h? y
remove /usr/lib/clang/3.8.0/include/avx512cdintrin.h? y
remove /usr/lib/clang/3.8.0/include/avx512dqintrin.h? y
remove /usr/lib/clang/3.8.0/include/avx512erintrin.h? y
remove /usr/lib/clang/3.8.0/include/avx512fintrin.h? y
remove /usr/lib/clang/3.8.0/include/avx512vlbwintrin.h? y
remove /usr/lib/clang/3.8.0/include/avx512vldqintrin.h? y
remove /usr/lib/clang/3.8.0/include/avx512vlintrin.h? y
remove /usr/lib/clang/3.8.0/include/avxintrin.h? y
remove /usr/lib/clang/3.8.0/include/bmi2intrin.h? y
remove /usr/lib/clang/3.8.0/include/bmiintrin.h? y
remove /usr/lib/clang/3.8.0/include/cpuid.h? y
remove /usr/lib/clang/3.8.0/include/cuda_builtin_vars.h? y
remove /usr/lib/clang/3.8.0/include/emmintrin.h? y
remove /usr/lib/clang/3.8.0/include/f16cintrin.h? y
remove /usr/lib/clang/3.8.0/include/fma4intrin.h? y
remove /usr/lib/clang/3.8.0/include/fmaintrin.h? y
remove /usr/lib/clang/3.8.0/include/fxsrintrin.h? y
remove /usr/lib/clang/3.8.0/include/htmintrin.h? y
remove /usr/lib/clang/3.8.0/include/htmxlintrin.h? y
remove /usr/lib/clang/3.8.0/include/ia32intrin.h? y
remove /usr/lib/clang/3.8.0/include/immintrin.h? y
remove /usr/lib/clang/3.8.0/include/lzcntintrin.h? y
remove /usr/lib/clang/3.8.0/include/mm3dnow.h? y
remove /usr/lib/clang/3.8.0/include/mm_malloc.h? y
remove /usr/lib/clang/3.8.0/include/mmintrin.h? y
remove /usr/lib/clang/3.8.0/include/module.modulemap? y
remove /usr/lib/clang/3.8.0/include/nmmintrin.h? y
remove /usr/lib/clang/3.8.0/include/pkuintrin.h? y
remove /usr/lib/clang/3.8.0/include/pmmintrin.h? y
remove /usr/lib/clang/3.8.0/include/popcntintrin.h? y
remove /usr/lib/clang/3.8.0/include/prfchwintrin.h? y
remove /usr/lib/clang/3.8.0/include/rdseedintrin.h? y
remove /usr/lib/clang/3.8.0/include/rtmintrin.h? y
remove /usr/lib/clang/3.8.0/include/s390intrin.h? y
remove /usr/lib/clang/3.8.0/include/shaintrin.h? y
remove /usr/lib/clang/3.8.0/include/smmintrin.h? y
remove /usr/lib/clang/3.8.0/include/tbmintrin.h? y
remove /usr/lib/clang/3.8.0/include/tmmintrin.h? y
remove /usr/lib/clang/3.8.0/include/vadefs.h? y
remove /usr/lib/clang/3.8.0/include/vecintrin.h? y
remove /usr/lib/clang/3.8.0/include/wmmintrin.h? y
remove /usr/lib/clang/3.8.0/include/x86intrin.h? y
remove /usr/lib/clang/3.8.0/include/xmmintrin.h? y
remove /usr/lib/clang/3.8.0/include/xopintrin.h? y
remove /usr/lib/clang/3.8.0/include/xsavecintrin.h? y
remove /usr/lib/clang/3.8.0/include/xsaveintrin.h? y
remove /usr/lib/clang/3.8.0/include/xsaveoptintrin.h? y
remove /usr/lib/clang/3.8.0/include/xsavesintrin.h? y
remove /usr/lib/clang/3.8.0/include/xtestintrin.h? y
remove /usr/lib/clang/3.8.0/lib/freebsd/libclang_rt.asan-preinit-x86_64.a? y
remove /usr/lib/clang/3.8.0/lib/freebsd/libclang_rt.asan-x86_64.a? y
remove /usr/lib/clang/3.8.0/lib/freebsd/libclang_rt.asan-x86_64.so? y
remove /usr/lib/debug/usr/lib/clang/3.8.0/lib/freebsd/libclang_rt.asan-x86_64.so.debug? y
remove /usr/lib/clang/3.8.0/lib/freebsd/libclang_rt.asan_cxx-x86_64.a? y
remove /usr/lib/clang/3.8.0/lib/freebsd/libclang_rt.profile-x86_64.a? y
remove /usr/lib/clang/3.8.0/lib/freebsd/libclang_rt.safestack-x86_64.a? y
remove /usr/lib/clang/3.8.0/lib/freebsd/libclang_rt.ubsan_standalone-x86_64.a? y
remove /usr/lib/clang/3.8.0/lib/freebsd/libclang_rt.ubsan_standalone_cxx-x86_64.a? y
remove /usr/share/man/man4/hv_ata_pci_disengage.4.gz? y
remove /usr/tests/sys/kqueue/kqtest? y
remove /usr/lib/debug/usr/tests/sys/kqueue/kqtest.debug? y
remove /usr/tests/sys/kqueue/kqueue_test? y
remove /usr/share/info/as.info.gz? y
remove /usr/share/info/dir? y
remove /usr/tests/bin/chown/Kyuafile? y
remove /usr/tests/bin/chown/chown-f_test? y
>>> Old files removed
>>> Removing old directories
/usr/tests/bin/chown
/usr/lib/debug/usr/tests/bin/chown
/usr/share/info
/usr/lib32/private
/usr/lib/debug/usr/lib32/private
/usr/lib/private
/usr/lib/debug/usr/lib/private
/usr/lib/clang/3.8.0/lib/freebsd
/usr/lib/debug/usr/lib/clang/3.8.0/lib/freebsd
/usr/lib/clang/3.8.0/lib
/usr/lib/debug/usr/lib/clang/3.8.0/lib
/usr/lib/clang/3.8.0/include/sanitizer
/usr/lib/clang/3.8.0/include
/usr/lib/clang/3.8.0
/usr/lib/debug/usr/lib/clang/3.8.0
/usr/lib/debug/usr/games
>>> Old directories removed
To remove old libraries run 'make delete-old-libs'.
root@kg-v7# 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.
remove /usr/lib/libbsnmptools.so.0? y
remove /usr/lib/debug/usr/lib/libbsnmptools.so.0.debug? y
remove /usr/lib/libbsnmptools.so? y
>>> Old libraries removed

mergemaster

root@kg-v7# mergemaster -iUP
[..]
*** You chose the automatic install option for files that did not
    exist on your system.  The following were installed for you:
      /etc/periodic/daily/410.status-mfi
      /etc/rc.d/zfsbe
*** You chose the automatic upgrade option for files that you did
    not alter on your system.  The following were upgraded for you:
      /COPYRIGHT
      /etc/auto_master
      /etc/autofs/special_media
      /etc/defaults/periodic.conf
      /etc/defaults/rc.conf
      /etc/devd.conf
      /etc/devd/hyperv.conf
      /etc/devd/zfs.conf
      /etc/mtree/BSD.debug.dist
      /etc/mtree/BSD.include.dist
      /etc/mtree/BSD.root.dist
      /etc/mtree/BSD.tests.dist
      /etc/mtree/BSD.usr.dist
      /etc/mtree/BSD.var.dist
      /etc/network.subr
      /etc/ntp/leap-seconds
      /etc/pccard_ether
      /etc/periodic/daily/200.backup-passwd
      /etc/periodic/daily/450.status-security
      /etc/periodic/daily/480.leapfile-ntpd
      /etc/periodic/daily/999.local
      /etc/periodic/monthly/450.status-security
      /etc/periodic/monthly/999.local
      /etc/periodic/security/100.chksetuid
      /etc/periodic/security/110.neggrpperm
      /etc/periodic/security/security.functions
      /etc/periodic/weekly/450.status-security
      /etc/periodic/weekly/999.local
      /etc/rc
      /etc/rc.d/ipfw
      /etc/rc.d/ipsec
      /etc/rc.d/jail
      /etc/rc.d/ntpd
      /etc/rc.d/ntpdate
      /etc/rc.d/random
      /etc/rc.d/routing
      /etc/rc.d/swaplate
      /etc/rc.d/zfs
      /etc/rc.subr
      /etc/snmpd.config
      /etc/ssh/moduli
      /etc/ssh/ssh_config
      /etc/ssh/sshd_config
      /etc/syslog.conf
      /root/.login
*** Reinstalling Europe/Oslo as /etc/localtime

only a reboot remains.

2017-12-17: ada1p4 - build latest FreeBSD 11.1-stable via 'make world' procedure build world

root@kg-v7# make -j4 buildworld
[..]
--------------------------------------------------------------
>>> World build completed on Mon Dec 18 00:56:31 CET 2017
--------------------------------------------------------------

wow, that took some time.

2017-12-17: ada1p4 - update FreeBSD source update

root@kg-v7# svn up
Updating '.':
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 Nov  3 20:20:29 2017 GMT until Feb  1 20:20:29 2018 GMT
 - Issuer: Let's Encrypt Authority X3, Let's Encrypt, US
 - Fingerprint: 9A:7F:29:D4:4C:91:F7:A1:70:D2:EE:93:7A:01:EC:69:43:59:35:2D
(R)eject, accept (t)emporarily or accept (p)ermanently? p
[..]
 U   .
Updated to revision 326918.

verify what we got

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

before update it looked like this

root@kg-v7# svn info
Path: .
Working Copy Root Path: /usr/src
URL: https://svn.freebsd.org/base/stable/11
Relative URL: ^/stable/11
Repository Root: https://svn.freebsd.org/base
Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Revision: 307729
Node Kind: directory
Schedule: normal
Last Changed Author: des
Last Changed Rev: 307729
Last Changed Date: 2016-10-21 16:28:35 +0200 (Fri, 21 Oct 2016)

ok.

2017-09-26: ada1p4 - write a microSD card for a Cubieboard (cubieboard-1). I plug a 16 GB Kingston (class 10) into the reader. The card

Sep 26 19:17:46 kg-v7 kernel: da0 at umass-sim0 bus 0 scbus7 target 0 lun 0
Sep 26 19:17:46 kg-v7 kernel: da0: <Generic SD Card Reader 1.00> Removable Direct Access SCSI device
Sep 26 19:17:46 kg-v7 kernel: da0: Serial Number 058F63626476
Sep 26 19:17:46 kg-v7 kernel: da0: 40.000MB/s transfers
Sep 26 19:17:46 kg-v7 kernel: da0: 14988MB (30695424 512 byte sectors)
Sep 26 19:17:46 kg-v7 kernel: da0: quirks=0x2<NO_6_BYTE>

the image

tingo@kg-v7$ ll -h dl/A*C*
-rw-r--r--  1 tingo  users  -  1.3G Sep 26 19:14 dl/Armbian_5.31_Cubieboard_Debian_jessie_next_4.11.6.img

write it

tingo@kg-v7$ sudo dd if=./dl/Armbian_5.31_Cubieboard_Debian_jessie_next_4.11.6.img of=/dev/da0 bs=4M
320+1 records in
320+1 records out
1345323008 bytes transferred in 127.122990 secs (10582846 bytes/sec)

gpart

tingo@kg-v7$ gpart show -p da0
=>      63  30695361    da0  MBR  (15G)
        63      1985         - free -  (993K)
      2048   2625536  da0s1  linux-data  (1.3G)
   2627584  28067840         - free -  (13G)

ok.

2017-09-18: ada1p4 - write a microSD card for a BananaPi using the integrated reader. I plug a 8 GB Transcend (class 4) SD card into the reader. From /var/log/messages

Sep 18 19:43:01 kg-v7 kernel: da0 at umass-sim0 bus 0 scbus7 target 0 lun 0
Sep 18 19:43:01 kg-v7 kernel: da0: <Generic SD Card Reader 1.00> Removable Direct Access SCSI device
Sep 18 19:43:01 kg-v7 kernel: da0: Serial Number 058F63626476
Sep 18 19:43:01 kg-v7 kernel: da0: 40.000MB/s transfers
Sep 18 19:43:01 kg-v7 kernel: da0: 7580MB (15523840 512 byte sectors)
Sep 18 19:43:01 kg-v7 kernel: da0: quirks=0x2<NO_6_BYTE>

the image (same as yesterday)

tingo@kg-v7$ ls -lh dl/Arm*
-rw-r--r--  1 tingo  users   1.3G Sep 17 22:20 dl/Armbian_5.31_Bananapi_Debian_jessie_next_4.11.5.img

write it

tingo@kg-v7$ sudo dd if=./dl/Armbian_5.31_Bananapi_Debian_jessie_next_4.11.5.img of=/dev/da0 bs=4M
320+1 records in
320+1 records out
1345323008 bytes transferred in 231.792707 secs (5803992 bytes/sec)

gpart

tingo@kg-v7$ gpart show -p da0
=>      63  15523777    da0  MBR  (7.4G)
        63      1985         - free -  (993K)
      2048   2625536  da0s1  linux-data  (1.3G)
   2627584  12896256         - free -  (6.1G)

ok.

2017-09-17: ada1p4 - write a microSD card for a BananaPi using the integrated reader. I plug a 4 GB Lexar SD card into the reader. From /var/log/messages

Sep 17 22:15:22 kg-v7 kernel: umass0:  SCSI over Bulk-Only; quirks = 0x4001
Sep 17 22:15:22 kg-v7 kernel: umass0:7:0: Attached to scbus7
Sep 17 22:15:23 kg-v7 kernel: da0 at umass-sim0 bus 0 scbus7 target 0 lun 0
Sep 17 22:15:23 kg-v7 kernel: da0: <Generic SD Card Reader 1.00> Removable Direct Access SCSI device
Sep 17 22:15:23 kg-v7 kernel: da0: Serial Number 058F63626476
Sep 17 22:15:23 kg-v7 kernel: da0: 40.000MB/s transfers
Sep 17 22:15:23 kg-v7 kernel: da0: 3823MB (7829504 512 byte sectors)
Sep 17 22:15:23 kg-v7 kernel: da0: quirks=0x2<NO_6_BYTE>

the image

tingo@kg-v7$ ls -lh *img
-rw-r--r--  1 tingo  users   1.3G Sep 17 22:20 Armbian_5.31_Bananapi_Debian_jessie_next_4.11.5.img

write it

tingo@kg-v7$ sudo dd if=./Armbian_5.31_Bananapi_Debian_jessie_next_4.11.5.img of=/dev/da0 bs=4M
320+1 records in
320+1 records out
1345323008 bytes transferred in 178.838063 secs (7522577 bytes/sec)

gpart thinks

tingo@kg-v7$ gpart show -p da0
=>     63  7829441    da0  MBR  (3.7G)
       63     1985         - free -  (993K)
     2048  2625536  da0s1  linux-data  (1.3G)
  2627584  5201920         - free -  (2.5G)

disktype thinks

tingo@kg-v7$ disktype /dev/da0

--- /dev/da0
Character device, size 3.733 GiB (4008706048 bytes)
DOS/MBR partition map
Partition 1: 1.252 GiB (1344274432 bytes, 2625536 sectors from 2048)
  Type 0x83 (Linux)
  Ext3 file system
    UUID EFC26029-0A66-4786-813D-239E174B9669 (DCE, v4)
    Last mounted at "/testingrepo/output/cache/mount-next-bananapi-jessie-no"
    Volume size 1.250 GiB (1342177280 bytes, 327680 blocks of 4 KiB)

ok.

2017-05-28: ada1p4 - write a microSD card for a RPi3 using the integrated reader. I plug a 8 GB Kingston microSD card in the micro-to-SD adapter, and plug that into the reader. From /var/log/messages

May 28 00:25:50 kg-v7 kernel: da0 at umass-sim0 bus 0 scbus7 target 0 lun 0
May 28 00:25:50 kg-v7 kernel: da0: <Generic SD Card Reader 1.00> Removable Direct Access SCSI device
May 28 00:25:50 kg-v7 kernel: da0: Serial Number 058F63626476
May 28 00:25:50 kg-v7 kernel: da0: 40.000MB/s transfers
May 28 00:25:50 kg-v7 kernel: da0: 7600MB (15564800 512 byte sectors)
May 28 00:25:50 kg-v7 kernel: da0: quirks=0x2<NO_6_BYTE>

the image

tingo@kg-v7$ ll -h *img
-rw-r--r--  1 tingo  users  -  7.4G May 28 00:35 CocoPi3-May2017-Edition.img

write it

tingo@kg-v7$ sudo dd if=./CocoPi3-May2017-Edition.img of=/dev/da0 bs=1M
7580+0 records in
7580+0 records out
7948206080 bytes transferred in 774.889260 secs (10257215 bytes/sec)

gpart says

tingo@kg-v7$ gpart show -p da0
=>      63  15564737    da0  MBR  (7.4G)
        63      8129         - free -  (4.0M)
      8192    129024  da0s1  !12  (63M)
    137216  15386624  da0s2  linux-data  (7.3G)
  15523840     40960         - free -  (20M)

disktype says

tingo@kg-v7$ disktype /dev/da0

--- /dev/da0
Character device, size 7.422 GiB (7969177600 bytes)
DOS/MBR partition map
Partition 1: 63 MiB (66060288 bytes, 129024 sectors from 8192)
  Type 0x0C (Win95 FAT32 (LBA))
  FAT16 file system (hints score 5 of 5)
    Volume size 62.95 MiB (66002944 bytes, 8057 clusters of 8 KiB)
    Volume name "boot"
Partition 2: 7.337 GiB (7877951488 bytes, 15386624 sectors from 137216)
  Type 0x83 (Linux)
  Ext3 file system
    UUID 6AF6C502-65A2-40CE-B9E3-1CB9D4FC5273 (DCE, v4)
    Last mounted at "/mnt/clone"
    Volume size 7.337 GiB (7877951488 bytes, 1923328 blocks of 4 KiB)

looks ok.

2017-05-16: ada1p4 - try to write a (possible defective) SDcard on the integrated card reader. The card shows up in /var/log/messages

May 16 19:38:04 kg-v7 kernel: da0 at umass-sim0 bus 0 scbus7 target 0 lun 0
May 16 19:38:04 kg-v7 kernel: da0: <Generic SD Card Reader 1.00> Removable Direct Access SCSI device
May 16 19:38:04 kg-v7 kernel: da0: Serial Number 058F63626476
May 16 19:38:04 kg-v7 kernel: da0: 40.000MB/s transfers
May 16 19:38:04 kg-v7 kernel: da0: 3823MB (7829504 512 byte sectors)
May 16 19:38:04 kg-v7 kernel: da0: quirks=0x2<NO_6_BYTE>

image

tingo@kg-v7$ ls -lh *img
-rw-r--r--  1 tingo  users   1.8G Apr 21  2016 bananian-1604.img

write it

tingo@kg-v7$ sudo dd if=./bananian-1604.img of=/dev/da0 bs=4M
dd: /dev/da0: Invalid argument
452+1 records in
452+0 records out
1895825408 bytes transferred in 268.250285 secs (7067375 bytes/sec)

strange about that "invalid argument" message. gpart says

tingo@kg-v7$ gpart show -p da0
=>     63  7829441    da0  MBR  (3.7G)
       63     1985         - free -  (993K)
     2048    40960  da0s1  linux-data  (20M)
    43008  3667929  da0s2  linux-data  (1.7G)
  3710937  4118567         - free -  (2.0G)

disktype says

tingo@kg-v7$ disktype /dev/da0

--- /dev/da0
Character device, size 3.733 GiB (4008706048 bytes)
DOS/MBR partition map
Partition 1: 20 MiB (20971520 bytes, 40960 sectors from 2048)
  Type 0x83 (Linux)
  FAT16 file system (hints score 5 of 5)
    Volume size 19.94 MiB (20912128 bytes, 10211 clusters of 2 KiB)
Partition 2: 1.749 GiB (1877979648 bytes, 3667929 sectors from 43008)
  Type 0x83 (Linux)
  Ext2 file system
    Volume name "root"
    UUID A1AB4975-DD32-4D7C-B905-AE9274165E0D (DCE, v4)
    Last mounted at "/mnt"
    Volume size 1.749 GiB (1877979136 bytes, 458491 blocks of 4 KiB)

ok, now let me try the image.