Monthly Archives: March 2019

Qt Serial Port

Qt Serial Port
Qt Serial Port Examples
Qt 5.12 Qt Serial Port Command Line Reader Sync Example main.cpp Example File
Qt 5.12 Qt Serial Port Qt Serial Port Examples Command Line Enumerator Example
Qt 5.12 Qt Serial Port Qt Serial Port Examples Blocking Master Example
Qt Serial Port

$ grep -Er "emit \w*[->.]*w*readyRead"
qtbase/dist/changes-4.3.0:    * [142853] Now continues to emit readyRead() if the peer temporarily
qtbase/src/corelib/doc/snippets/code/src_corelib_io_qprocess.cpp:// QProcess will emit readyRead() once "more" starts printing
qtbase/src/corelib/io/qbuffer.cpp:    emit q->readyRead();
qtbase/src/corelib/io/qiodevice.cpp:    you should always emit readyRead() when new data has arrived (do not
qtbase/src/corelib/io/qiodevice.cpp:    buffers). Do not emit readyRead() in other conditions.
qtbase/src/corelib/io/qiodevice.cpp:    which channel triggers QIODevice to emit readyRead().
qtbase/src/corelib/io/qprocess.cpp:            emit q->readyRead();
qtbase/src/corelib/io/qprocess.cpp:        emit q->readyReadStandardOutput(QProcess::QPrivateSignal());
qtbase/src/corelib/io/qprocess.cpp:        emit q->readyReadStandardError(QProcess::QPrivateSignal());
qtbase/src/corelib/io/qprocess.cpp:    which channel triggers QProcess to emit readyRead().
qtbase/src/corelib/io/qprocess.cpp:    function, QProcess will no longer emit readyRead(), and data can no
qtbase/src/corelib/io/qwindowspipereader.cpp:        emit readyRead();
qtbase/src/network/access/qftp.cpp:            emit readyRead();
qtbase/src/network/access/qhttp2protocolhandler.cpp:                emit httpReply->readyRead();
qtbase/src/network/access/qhttpnetworkconnectionchannel.cpp:            emit reply->readyRead();
qtbase/src/network/access/qhttpprotocolhandler.cpp:                    emit m_reply->readyRead();
qtbase/src/network/access/qhttpprotocolhandler.cpp:                        emit m_reply->readyRead();
qtbase/src/network/access/qhttpthreaddelegate_p.h:        emit readyRead();
qtbase/src/network/access/qnetworkreplyhttpimpl.cpp:    emit q->readyRead();
qtbase/src/network/access/qnetworkreplyhttpimpl.cpp:    // emit readyRead before downloadProgress incase this will cause events to be
qtbase/src/network/access/qnetworkreplyhttpimpl.cpp:    // Only emit readyRead when actual data is there
qtbase/src/network/access/qnetworkreplyhttpimpl.cpp:    // emit readyRead before downloadProgress incase this will cause events to be
qtbase/src/network/access/qnetworkreplyhttpimpl.cpp:        emit q->readyRead();
qtbase/src/network/access/qnetworkreplyhttpimpl.cpp:        // No bytes from upload byte device. There will be bytes later, it will emit readyRead()
qtbase/src/network/access/qnetworkreplyhttpimpl.cpp:    // emit readyRead before downloadProgress incase this will cause events to be
qtbase/src/network/access/qnetworkreplyhttpimpl.cpp:        emit q->readyRead();
qtbase/src/network/access/qnetworkreplyimpl.cpp:    // emit readyRead before downloadProgress incase this will cause events to be
qtbase/src/network/access/qnetworkreplyimpl.cpp:    emit q->readyRead();
qtbase/src/network/access/qnetworkreplyimpl.cpp:    emit q->readyRead();
qtbase/src/network/access/qnetworkreplyimpl.cpp:    // emit readyRead before downloadProgress incase this will cause events to be
qtbase/src/network/access/qnetworkreplyimpl.cpp:    // Only emit readyRead when actual data is there
qtbase/src/network/access/qnetworkreplyimpl.cpp:    // emit readyRead before downloadProgress incase this will cause events to be
qtbase/src/network/access/qnetworkreplyimpl.cpp:        emit q->readyRead();
qtbase/src/network/access/qnetworkreplywasmimpl.cpp:    emit q->readyRead();
qtbase/src/network/access/qspdyprotocolhandler.cpp:        emit httpReply->readyRead();
qtbase/src/network/socket/qabstractsocket.cpp:    // Only emit readyRead() when not recursing.
qtbase/src/network/socket/qabstractsocket.cpp:        emit q->readyRead();
qtbase/src/network/ssl/qsslsocket.cpp:        emit q->readyRead();
qtbase/src/network/ssl/qsslsocket_mac.cpp:                emit q->readyRead();
qtbase/src/network/ssl/qsslsocket_openssl.cpp:                emit q->readyRead();
qtbase/src/network/ssl/qsslsocket_winrt.cpp:        emit q->readyRead();
qtbase/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp:        emit readyRead();
qtbase/tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp:        emit readyRead();
qtbase/tests/auto/xml/sax/qxmlinputsource/tst_qxmlinputsource.cpp:            emit readyRead();
qtbase/tests/benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp:    void start() { state = Started; emit readyRead(); }
qtbase/tests/benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp:    void stop() { state = Stopped; emit readyRead(); }
qtbase/tests/benchmarks/network/access/qnetworkreply/tst_qnetworkreply.cpp:    void start() { state = Started; emit readyRead(); }
qtconnectivity/src/bluetooth/qbluetoothsocket_bluez.cpp:        emit q->readyRead();
qtconnectivity/src/bluetooth/qbluetoothsocket_osx.mm:                emit q_ptr->readyRead();
qtconnectivity/src/bluetooth/qbluetoothsocket_osx.mm:        emit q_ptr->readyRead();
qtconnectivity/src/bluetooth/qbluetoothsocket_osx.mm:    }   // else connectToService must check and emit readyRead!
qtconnectivity/src/bluetooth/qbluetoothsocket_winrt.cpp:    emit q->readyRead();
qtconnectivity/src/nfc/qllcpsocket_android_p.cpp:        emit q->readyRead();
qtdeclarative/src/plugins/qmltooling/packetprotocol/qpacketprotocol.cpp:                emit readyRead();
qtdeclarative/tests/auto/qml/debugger/shared/qqmldebugprocess.cpp:        emit readyReadStandardOutput();
qtdeclarative/tests/auto/qml/qqmltypeloader/tst_qqmltypeloader.cpp:        emit readyRead();
qtmultimedia/src/plugins/alsa/qalsaaudioinput.cpp:    emit readyRead();
qtmultimedia/src/plugins/coreaudio/coreaudioinput.mm:        emit readyRead();
qtmultimedia/src/plugins/coreaudio/coreaudiooutput.mm:        emit readyRead();
qtmultimedia/src/plugins/coreaudio/coreaudiooutput.mm:            emit readyRead();
qtmultimedia/src/plugins/pulseaudio/qaudioinput_pulse.cpp:    emit readyRead();
qtmultimedia/src/plugins/qnx-audio/audio/qnxaudioinput.cpp:    emit readyRead();
qtmultimedia/src/plugins/wasapi/qwasapiaudioinput.cpp:        emit m_eventDevice->readyRead();
qtmultimedia/src/plugins/windowsaudio/qwindowsaudioinput.cpp:    emit readyRead();
qtmultimedia/src/plugins/windowsaudio/qwindowsaudioinput.cpp:    emit readyRead();
qtremoteobjects/src/remoteobjects/qconnection_qnx_server.cpp:            emit io->readyRead();
qtserialport/src/serialport/qserialport_unix.cpp:    // only emit readyRead() when not recursing, and only if there is data available
qtserialport/src/serialport/qserialport_unix.cpp:        emit q->readyRead();
qtserialport/src/serialport/qserialport_win.cpp:    emit q->readyRead();
qtwebengine/tests/auto/widgets/qwebengineprofile/tst_qwebengineprofile.cpp:        emit readyRead();
qtwebsockets/src/websockets/qwebsocketserver_p.cpp:            emit pTcpSocket->readyRead();

Qt Layouts with Designer

CleanQt

Crash course in Qt for C++ developers, Part 1

Bits of Bytes – bits of coding, C++, Qt, git, gamedev, linux and other tech stuff

How to create an application with Qt and C++
How to embed a database in your application with SQLite and Qt
Qt Network and JSON example: a simple Hacker News reader
How to traverse a git repository using libgit2 and C++

Qt – setupUi()
User Interfaces
Widgets Classes
Qt Quick UI Forms
What is the use of the ui.qml files in Qt5 (QML)?
Best Practices for QML and Qt Quick

QML (Qt Meta-object Language)

Qt Layouts without Designer

Layouts without Designer

Alignment

Aligning qlabel text in centre
QLabel text align wit StyleSheet
setAlignment in Layout
Qt: Align Text Center and Left using StyleSheet

QSizePolicy, SizeHint, Stretch

QSizePolicy Class

Can’t get a widget to grow properly when I resize the window
Understanding form layout mechanisms in Qt
Qt SizePolicy and sizeHint
How to properly size Qt widgets?

enum Qt::AlignmentFlag / flags Qt::Alignment

Qt Namespace

Constant Value Description
Qt::AlignLeft 0x0001 Aligns with the left edge.
Qt::AlignRight 0x0002 Aligns with the right edge.
Qt::AlignHCenter 0x0004 Centers horizontally in the available space.
Qt::AlignJustify 0x0008 Justifies the text in the available space.
Qt::AlignTop 0x0020 Aligns with the top.
Qt::AlignBottom 0x0040 Aligns with the bottom.
Qt::AlignVCenter 0x0080 Centers vertically in the available space.
Qt::AlignBaseline 0x0100 Aligns with the baseline.

Qt Threads

Thread Support in Qt
QThread Class
Threading Basics
Threading Basics (Qt 4.8)
Threading and Concurrent Programming Examples
Synchronizing Threads
Multithreading Technologies in Qt

Threads Events QObjects
QThreads general usage
How To Really, Truly Use QThreads; The Full Explanation

Qt with Cascades UI Examples Documentation

How to stop a qThread in QT [duplicate]
Sending a sequence of commands and wait for response
QThreads , QObject and sleep function
What is the use of QThread.wait() function?
(QT) QThread not executing a second time
What is the use of QThread.wait() function?

FreeBSD 12.0 on PC Engines APU

Packages

FreeBSD Ports Search
wpa_supplicant
isc-dhcp44-server
bind914

802.1X

Network802.1xAuthentication
802.1X Authentifizierung Raspberry Pi bzw. Debian
raspberry pi 3 Ethernet with 802.1X
Raspberry Pi 3, Wifi Setup
Wireless Networking
Drahtlose Netzwerke
Implementing 802.1x authenticator
How to configure 802.1X client and server in FreeBSD

DHCP Server

Highly Available DHCP Server on FreeBSD
DHCP option domain name server

DNS Server

FreeBSD: Install an authoritative DNS server (BIND)
Ubuntu DHCP/DNS Coupling

Firewall

Firewalls – PF

Live-CD
# mount -u /
# vi /boot/loader.conf
comconsole_speed="115200"
console="comconsole"

# reboot
PC Engines APU BIOS build date: Sep  8 2014
Total memory 4096 MB
AMD G-T40E Processor
CPU MHz=1000
USB MSC blksize=512 sectors=15669248
Press F10 key now for boot menu:
Select boot device:

1. USB MSC Drive Verbatim STORE N GO 1.00
2. AHCI/0: SATA SSD ATA-10 Hard-Disk (15272 MiBytes)
3. Payload [setup]
4. Payload [memtest]

drive 0x000f2a60: PCHS=0/0/0 translation=lba LCHS=975/255/63 s=15669248
drive 0x000f2a90: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 s=31277232
Booting from Hard Disk...
-
   ______               ____   _____ _____
  |  ____|             |  _ \ / ____|  __ \
  | |___ _ __ ___  ___ | |_) | (___ | |  | |
  |  ___| '__/ _ \/ _ \|  _ < \___ \| |  | |
  | |   | | |  __/  __/| |_) |____) | |__| |
  | |   | | |    |    ||     |      |      |
  |_|   |_|  \___|\___||____/|_____/|_____/
                                                 ```                        `
 ▒▒▒▒▒▒▒▒▒▒▒▒Welcome to FreeBSD▒▒▒▒▒▒▒▒▒▒▒▒▒    s` `.....---.......--.```   -/
 ▒                                         ▒    +o   .--`         /y:`      +.
 ▒  1. Boot Multi user [Enter]             ▒     yo`:.            :o      `+-
 ▒  2. Boot Single user                    ▒      y/               -/`   -o/
 ▒  3. Escape to loader prompt             ▒     .-                  ::/sy+:.
 ▒  4. Reboot                              ▒     /                     `--  /
 ▒                                         ▒    `:                          :`
 ▒  Options:                               ▒    `:                          :`
 ▒  5. Kernel: default/kernel (1 of 1)     ▒     /                          /
 ▒  6. Boot Options                        ▒     .-                        -.
 ▒                                         ▒      --                      -.
 ▒                                         ▒       `:`                  `:`
 ▒                                         ▒         .--             `--.
 ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒            .---.....----.
   Autoboot in 5 seconds, hit [Enter] to boot or any other key to stop

Loading kernel...
/boot/kernel/kernel text=0x1678a68 data=0x1cd288+0x768b40 syms=[0x8+0x174cd8+0x8+0x19224a]
Loading configured modules...
can't find '/boot/entropy'
---<<BOOT>>---
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-RELEASE r341666 GENERIC amd64
FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
VT(vga): resolution 640x480
CPU: AMD G-T40E Processor (1000.02-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x500f20  Family=0x14  Model=0x2  Stepping=0
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x802209<SSE3,MON,SSSE3,CX16,POPCNT>
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD Features2=0x35ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,IBS,SKINIT,WDT>
  SVM: NP,NRIP,NAsids=8
  TSC: P-state invariant, performance statistics
real memory  = 4815060992 (4592 MB)
avail memory = 4081344512 (3892 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <CORE   COREBOOT>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
arc4random: no preloaded entropy cache
ioapic0 <Version 2.1> irqs 0-23 on motherboard
Launching APs: 1
Timecounter "TSC" frequency 1000020649 Hz quality 800
random: entropy device external interface
kbd0 at kbdmux0
netmap: loaded module
[ath_hal] loaded
module_register_init: MOD_LOAD (vesa, 0xffffffff810f9770, 0) error 19
nexus0
vtvga0: <VT VGA driver> on motherboard
cryptosoft0: <software crypto> on motherboard
acpi0: <CORE COREBOOT> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 550
Event timer "HPET1" frequency 14318180 Hz quality 450
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 4.0 on pci0
pci1: <ACPI PCI bus> on pcib1
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0x1000-0x10ff mem 0xf7a00000-0xf7a00fff,0xf7900000-0xf7903fff irq 16 at device 0.0 on pci1
re0: Using 1 MSI-X message
re0: ASPM disabled
re0: Chip rev. 0x2c000000
re0: MAC rev. 0x00200000
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re0: Using defaults for TSO: 65518/35/2048
re0: Ethernet address: 00:0d:b9:3f:73:80
re0: netmap queues/slots: TX 1/256, RX 1/256
pcib2: <ACPI PCI-PCI bridge> irq 17 at device 5.0 on pci0
pci2: <ACPI PCI bus> on pcib2
re1: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0x2000-0x20ff mem 0xf7c00000-0xf7c00fff,0xf7b00000-0xf7b03fff irq 17 at device 0.0 on pci2
re1: Using 1 MSI-X message
re1: ASPM disabled
re1: Chip rev. 0x2c000000
re1: MAC rev. 0x00200000
miibus1: <MII bus> on re1
rgephy1: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus1
rgephy1:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re1: Using defaults for TSO: 65518/35/2048
re1: Ethernet address: 00:0d:b9:3f:73:81
re1: netmap queues/slots: TX 1/256, RX 1/256
pcib3: <ACPI PCI-PCI bridge> irq 18 at device 6.0 on pci0
pci3: <ACPI PCI bus> on pcib3
re2: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0x3000-0x30ff mem 0xf7e00000-0xf7e00fff,0xf7d00000-0xf7d03fff irq 18 at device 0.0 on pci3
re2: Using 1 MSI-X message
re2: ASPM disabled
re2: Chip rev. 0x2c000000
re2: MAC rev. 0x00200000
miibus2: <MII bus> on re2
rgephy2: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus2
rgephy2:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re2: Using defaults for TSO: 65518/35/2048
re2: Ethernet address: 00:0d:b9:3f:73:82
re2: netmap queues/slots: TX 1/256, RX 1/256
ahci0: <AMD SB7x0/SB8x0/SB9x0 AHCI SATA controller> port 0x4010-0x4017,0x4020-0x4023,0x4018-0x401f,0x4024-0x4027,0x4000-0x400f mem 0xf7f04000-0xf7f043ff irq 19 at device 17.0 on pci0
ahci0: AHCI v1.20 with 6 6Gbps ports, Port Multiplier supported
ahci0: quirks=0x22000<ATI_PMP_BUG,1MSI>
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich3: <AHCI channel> at channel 3 on ahci0
ahcich4: <AHCI channel> at channel 4 on ahci0
ahcich5: <AHCI channel> at channel 5 on ahci0
ohci0: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xf7f00000-0xf7f00fff irq 18 at device 18.0 on pci0
usbus0 on ohci0
usbus0: 12Mbps Full Speed USB v1.0
ehci0: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xf7f04400-0xf7f044ff irq 17 at device 18.2 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
usbus1: 480Mbps High Speed USB v2.0
ohci1: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xf7f01000-0xf7f01fff irq 18 at device 19.0 on pci0
usbus2 on ohci1
usbus2: 12Mbps Full Speed USB v1.0
ehci1: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xf7f04500-0xf7f045ff irq 17 at device 19.2 on pci0
usbus3: EHCI version 1.0
usbus3 on ehci1
usbus3: 480Mbps High Speed USB v2.0
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
pcib4: <ACPI PCI-PCI bridge> at device 20.4 on pci0
pci4: <ACPI PCI bus> on pcib4
ohci2: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xf7f02000-0xf7f02fff irq 18 at device 20.5 on pci0
usbus4 on ohci2
usbus4: 12Mbps Full Speed USB v1.0
pcib5: <ACPI PCI-PCI bridge> at device 21.0 on pci0
pci5: <ACPI PCI bus> on pcib5
ohci3: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xf7f03000-0xf7f03fff at device 22.0 on pci0
usbus5 on ohci3
usbus5: 12Mbps Full Speed USB v1.0
ehci2: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xf7f04600-0xf7f046ff at device 22.2 on pci0
usbus6: EHCI version 1.0
usbus6 on ehci2
usbus6: 480Mbps High Speed USB v2.0
acpi_button0: <Power Button> on acpi0
orm0: <ISA Option ROM> at iomem 0xee800-0xeffff pnpid ORM0000 on isa0
uart0: <16550 or compatible> at port 0x3f8 irq 4 flags 0x10 on isa0
uart0: console (115200,n,8,1)
uart0: non-PNP ISA device will be removed from GENERIC in FreeBSD 12.
uart1: <16550 or compatible> at port 0x2f8 irq 3 on isa0
uart1: non-PNP ISA device will be removed from GENERIC in FreeBSD 12.
Timecounters tick every 1.000 msec
arc4random: no preloaded entropy cache
ugen5.1: <ATI OHCI root HUB> at usbus5
ugen6.1: <ATI EHCI root HUB> at usbus6
uhub0: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5
uhub1: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus6
ugen4.1: <ATI OHCI root HUB> at usbus4
ugen3.1: <ATI EHCI root HUB> at usbus3
uhub2: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
uhub3: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
ugen2.1: <ATI OHCI root HUB> at usbus2
ugen1.1: <ATI EHCI root HUB> at usbus1
uhub4: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
uhub5: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ugen0.1: <ATI OHCI root HUB> at usbus0
uhub6: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <SATA SSD S9FM02.0> ACS-3 ATA SATA 3.x device
ada0: Serial Number DE35075218EE01540638
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 15272MB (31277232 512 byte sectors)
Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]...
Root mount waiting for: usbus6 usbus5 usbus4 usbus3 usbus2 usbus1 usbus0
uhub2: 2 ports with 2 removable, self powered
uhub0: 4 ports with 4 removable, self powered
uhub4: 5 ports with 5 removable, self powered
uhub6: 5 ports with 5 removable, self powered
Root mount waiting for: usbus6 usbus3 usbus1
uhub1: 4 ports with 4 removable, self powered
uhub3: 5 ports with 5 removable, self powered
uhub5: 5 ports with 5 removable, self powered
ugen6.2: <Generic Flash Card Reader/Writer> at usbus6
umass0 on uhub1
umass0: <Generic Flash Card Reader/Writer, class 0/0, rev 2.01/1.00, addr 2> on usbus6
umass0:  SCSI over Bulk-Only; quirks = 0x4001
umass0:6:0: Attached to scbus6
Root mount waiting for: usbus1
da0 at umass-sim0 bus 0 scbus6 target 0 lun 0
da0: <Multiple Card  Reader 1.00> Removable Direct Access SPC-2 SCSI device
da0: Serial Number 058F63666485
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
da0: quirks=0x2<NO_6_BYTE>
Root mount waiting for: usbus1
ugen1.2: <Verbatim STORE N GO> at usbus1
umass1 on uhub5
umass1: <Verbatim STORE N GO, class 0/0, rev 2.00/1.00, addr 2> on usbus1
umass1:  SCSI over Bulk-Only; quirks = 0xc100
umass1:7:1: Attached to scbus7
mountroot: waiting for device /dev/ufs/FreeBSD_Install...
da1 at umass-sim1 bus 1 scbus7 target 0 lun 0
da1: <Verbatim STORE N GO 1.00> Removable Direct Access SCSI-2 device
da1: Serial Number 12440000000005BA
da1: 40.000MB/s transfers
da1: 7651MB (15669248 512 byte sectors)
da1: quirks=0x2<NO_6_BYTE>
Starting file system checks:
/dev/ufs/FreeBSD_Install: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ufs/FreeBSD_Install: clean, 15378 free (162 frags, 1902 blocks, 0.1% fragmentation)
Mounting local filesystems:.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
random: unblocking device.
32-bit compatibility ldconfig path:
/etc/rc: WARNING: $hostname is not set -- see rc.conf(5).
Setting up harvesting: [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy: dd: /entropy: Read-only file system
dd: /boot/entropy: Read-only file system
.
lo0: link state changed to UP
Starting Network: lo0 re0 re1 re2.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        ire0: link state changed to DOWN
net 127.0.0.1 netmask 0xff000000
        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
re0: flags=8802<BROre1: link state changed to DOWN
ADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGINre2: link state changed to DOWN
G,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:0d:b9:3f:73:80
        media: Ethernet autoselect (10baseT/UTP <half-duplex>)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:0d:b9:3f:73:81
        media: Ethernet autoselect (10baseT/UTP <half-duplex>)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:0d:b9:3f:73:82
        media: Ethernet autoselect (10baseT/UTP <half-duplex>)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Starting devd.
Starting Network: re0.
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:0d:b9:3f:73:80
        media: Ethernet autoselect (10baseT/UTP <half-duplex>)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Starting Network: re1.
re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:0d:b9:3f:73:81
        media: Ethernet autoselect (10baseT/UTP <half-duplex>)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Starting Network: re2.
re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:0d:b9:3f:73:82
        media: Ethernet autoselect (10baseT/UTP <half-duplex>)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Autoloading module: intpm.ko
intsmb0: <AMD SB600/7xx/8xx/9xx SMBus Controller> at device 20.0 on pci0
smbus0: <System Management Bus> on intsmb0
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Generating host.conf.
eval: cannot create /etc/host.conf: Read-only file system
eval: cannot create /etc/host.conf: Read-only file system
eval: cannot create /etc/host.conf: Read-only file system
Creating and/or trimming log files.
Starting syslogd.
Clearing /tmp (X related).
Starting local daemons:
Welcome to FreeBSD!

Please choose the appropriate terminal type for your system.
Common console types are:
   ansi     Standard ANSI terminal
   vt100    VT100 or compatible terminal
   xterm    xterm terminal emulator (or compatible)
   cons25w  cons25w terminal

Console type [vt100]:
+-----------------------------System Hardening-------------------------------+
| Choose system security hardening options:                                  |
| +------------------------------------------------------------------------+ |
| |[ ] 0 hide_uids       Hide processes running as other users             | |
| |[ ] 1 hide_gids       Hide processes running as other groups            | |
| |[ ] 2 hide_jail       Hide processes running in jails                   | |
| |[ ] 3 read_msgbuf     Disable reading kernel message buffer for unprivil| |
| |[ ] 4 proc_debug      Disable process debugging facilities for unprivile| |
| |[ ] 5 random_pid      Randomize the PID of newly created processes      | |
| |[ ] 6 clear_tmp       Clean the /tmp filesystem on system startup       | |
| |[ ] 7 disable_syslogd Disable opening Syslogd network socket (disables r| |
| |[ ] 8 disable_sendmailDisable Sendmail service                          | |
| |[ ] 9 secure_console  Enable console password prompt                    | |
| |[ ] 10 disable_ddtraceDisallow DTrace destructive-mode                  | |
| +------------------------------------------------------------------------+ |
# gpart show ada0
=>      40  31277152  ada0  GPT  (15G)
        40      1024     1  freebsd-boot  (512K)
      1064  29359104     2  freebsd-ufs  (14G)
  29360168   1564672     3  freebsd-swap  (764M)
  30924840    352352        - free -  (172M)

# mount /dev/ada0p2 /mnt
# vi /mnt/boot/loader.conf

comconsole_speed="115200"
console="comconsole"

# reboot
Loading kernel...
/boot/kernel/kernel text=0x1678a68 data=0x1cd288+0x768b40 syms=[0x8+0x174cd8+0x8+0x19224a]
Loading configured modules...
/boot/entropy size=0x1000
---<<BOOT>>---
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.0-RELEASE r341666 GENERIC amd64
FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1)
VT(vga): resolution 640x480
CPU: AMD G-T40E Processor (1000.02-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x500f20  Family=0x14  Model=0x2  Stepping=0
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x802209<SSE3,MON,SSSE3,CX16,POPCNT>
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD Features2=0x35ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,IBS,SKINIT,WDT>
  SVM: NP,NRIP,NAsids=8
  TSC: P-state invariant, performance statistics
real memory  = 4815060992 (4592 MB)
avail memory = 4081344512 (3892 MB)
Event timer "LAPIC" quality 600
ACPI APIC Table: <CORE   COREBOOT>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
random: unblocking device.
ioapic0 <Version 2.1> irqs 0-23 on motherboard
Launching APs: 1
Timecounter "TSC" frequency 1000023444 Hz quality 800
random: entropy device external interface
kbd0 at kbdmux0
netmap: loaded module
[ath_hal] loaded
module_register_init: MOD_LOAD (vesa, 0xffffffff810f9770, 0) error 19
nexus0
vtvga0: <VT VGA driver> on motherboard
cryptosoft0: <software crypto> on motherboard
acpi0: <CORE COREBOOT> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
atrtc0: registered as a time-of-day clock, resolution 1.000000s
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 550
Event timer "HPET1" frequency 14318180 Hz quality 450
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 4.0 on pci0
pci1: <ACPI PCI bus> on pcib1
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0x1000-0x10ff mem 0xf7a00000-0xf7a00fff,0xf7900000-0xf7903fff irq 16 at device 0.0 on pci1
re0: Using 1 MSI-X message
re0: ASPM disabled
re0: Chip rev. 0x2c000000
re0: MAC rev. 0x00200000
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re0: Using defaults for TSO: 65518/35/2048
re0: Ethernet address: 00:0d:b9:3f:73:80
re0: netmap queues/slots: TX 1/256, RX 1/256
pcib2: <ACPI PCI-PCI bridge> irq 17 at device 5.0 on pci0
pci2: <ACPI PCI bus> on pcib2
re1: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0x2000-0x20ff mem 0xf7c00000-0xf7c00fff,0xf7b00000-0xf7b03fff irq 17 at device 0.0 on pci2
re1: Using 1 MSI-X message
re1: ASPM disabled
re1: Chip rev. 0x2c000000
re1: MAC rev. 0x00200000
miibus1: <MII bus> on re1
rgephy1: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus1
rgephy1:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re1: Using defaults for TSO: 65518/35/2048
re1: Ethernet address: 00:0d:b9:3f:73:81
re1: netmap queues/slots: TX 1/256, RX 1/256
pcib3: <ACPI PCI-PCI bridge> irq 18 at device 6.0 on pci0
pci3: <ACPI PCI bus> on pcib3
re2: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0x3000-0x30ff mem 0xf7e00000-0xf7e00fff,0xf7d00000-0xf7d03fff irq 18 at device 0.0 on pci3
re2: Using 1 MSI-X message
re2: ASPM disabled
re2: Chip rev. 0x2c000000
re2: MAC rev. 0x00200000
miibus2: <MII bus> on re2
rgephy2: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus2
rgephy2:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re2: Using defaults for TSO: 65518/35/2048
re2: Ethernet address: 00:0d:b9:3f:73:82
re2: netmap queues/slots: TX 1/256, RX 1/256
ahci0: <AMD SB7x0/SB8x0/SB9x0 AHCI SATA controller> port 0x4010-0x4017,0x4020-0x4023,0x4018-0x401f,0x4024-0x4027,0x4000-0x400f mem 0xf7f04000-0xf7f043ff irq 19 at device 17.0 on pci0
ahci0: AHCI v1.20 with 6 6Gbps ports, Port Multiplier supported
ahci0: quirks=0x22000<ATI_PMP_BUG,1MSI>
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich3: <AHCI channel> at channel 3 on ahci0
ahcich4: <AHCI channel> at channel 4 on ahci0
ahcich5: <AHCI channel> at channel 5 on ahci0
ohci0: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xf7f00000-0xf7f00fff irq 18 at device 18.0 on pci0
usbus0 on ohci0
usbus0: 12Mbps Full Speed USB v1.0
ehci0: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xf7f04400-0xf7f044ff irq 17 at device 18.2 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
usbus1: 480Mbps High Speed USB v2.0
ohci1: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xf7f01000-0xf7f01fff irq 18 at device 19.0 on pci0
usbus2 on ohci1
usbus2: 12Mbps Full Speed USB v1.0
ehci1: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xf7f04500-0xf7f045ff irq 17 at device 19.2 on pci0
usbus3: EHCI version 1.0
usbus3 on ehci1
usbus3: 480Mbps High Speed USB v2.0
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
pcib4: <ACPI PCI-PCI bridge> at device 20.4 on pci0
pci4: <ACPI PCI bus> on pcib4
ohci2: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xf7f02000-0xf7f02fff irq 18 at device 20.5 on pci0
usbus4 on ohci2
usbus4: 12Mbps Full Speed USB v1.0
pcib5: <ACPI PCI-PCI bridge> at device 21.0 on pci0
pci5: <ACPI PCI bus> on pcib5
ohci3: <AMD SB7x0/SB8x0/SB9x0 USB controller> mem 0xf7f03000-0xf7f03fff at device 22.0 on pci0
usbus5 on ohci3
usbus5: 12Mbps Full Speed USB v1.0
ehci2: <AMD SB7x0/SB8x0/SB9x0 USB 2.0 controller> mem 0xf7f04600-0xf7f046ff at device 22.2 on pci0
usbus6: EHCI version 1.0
usbus6 on ehci2
usbus6: 480Mbps High Speed USB v2.0
acpi_button0: <Power Button> on acpi0
orm0: <ISA Option ROM> at iomem 0xee800-0xeffff pnpid ORM0000 on isa0
uart0: <16550 or compatible> at port 0x3f8 irq 4 flags 0x10 on isa0
uart0: console (115200,n,8,1)
uart0: non-PNP ISA device will be removed from GENERIC in FreeBSD 12.
uart1: <16550 or compatible> at port 0x2f8 irq 3 on isa0
uart1: non-PNP ISA device will be removed from GENERIC in FreeBSD 12.
Timecounters tick every 1.000 msec
ugen5.1: <ATI OHCI root HUB> at usbus5
ugen6.1: <ATI EHCI root HUB> at usbus6
uhub0: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus5
uhub1: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus6
ugen4.1: <ATI OHCI root HUB> at usbus4
ugen3.1: <ATI EHCI root HUB> at usbus3
uhub2: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
uhub3: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
ugen2.1: <ATI OHCI root HUB> at usbus2
ugen1.1: <ATI EHCI root HUB> at usbus1
uhub4: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
uhub5: <ATI EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
ugen0.1: <ATI OHCI root HUB> at usbus0
uhub6: <ATI OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <SATA SSD S9FM02.0> ACS-3 ATA SATA 3.x device
ada0: Serial Number DE35075218EE01540638
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 15272MB (31277232 512 byte sectors)
Trying to mount root from ufs:/dev/ada0p2 [rw]...
uhub2: 2 ports with 2 removable, self powered
uhub0: 4 ports with 4 removable, self powered
uhub4: 5 ports with 5 removable, self powered
uhub6: 5 ports with 5 removable, self powered
/etc/rc: WARNING: hostid: unable to figure out a UUID from DMI data, generating a new one
uhub1: 4 ports with 4 removable, self powered
uhub5: 5 ports with 5 removable, self powered
uhub3: 5 ports with 5 removable, self powered
Setting hostuuid: 1b7649f9-3314-11e8-8c30-000db93f7380.
Setting hostid: 0xe10f5a11.
Starting file system checks:
/dev/ada0p2: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/ada0p2: clean, 2797817 free (1057 frags, 349595 blocks, 0.0% fragmentation)
Mounting local filesystems:.
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
ugen6.2: <Generic Flash Card Reader/Writer> at usbus6
umass0 on uhub1
umass0: <Generic Flash Card Reader/Writer, class 0/0, rev 2.01/1.00, addr 2> on usbus6
umass0:  SCSI over Bulk-Only; quirks = 0x4001
umass0:6:0: Attached to scbus6
Setting hostname: clt-dsk-t-andreas-bsd.
da0 at umass-sim0 bus 0 scbus6 target 0 lun 0
da0: <Multiple Card  Reader 1.00> Removable Direct Access SPC-2 SCSI device
da0: Serial Number 058F63666485
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
da0: quirks=0x2<NO_6_BYTE>
Setting up harvesting: [UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
Feeding entropy: .
lo0: link state changed to UP
Starting Network: lo0 re0 re1 re2.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
re0: link state changed to DOWN
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
        inet 127.0.0.1 netmask 0xff000000re1: link state changed to DOWN

        groups: lo
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metricre2: link state changed to DOWN
 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:0d:b9:3f:73:80
        media: Ethernet autoselect (10baseT/UTP <half-duplex>)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:0d:b9:3f:73:81
        media: Ethernet autoselect (10baseT/UTP <half-duplex>)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:0d:b9:3f:73:82
        media: Ethernet autoselect (10baseT/UTP <half-duplex>)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Starting devd.
Starting Network: re0.
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:0d:b9:3f:73:80
        media: Ethernet autoselect (10baseT/UTP <half-duplex>)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Starting Network: re1.
re1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:0d:b9:3f:73:81
        media: Ethernet autoselect (10baseT/UTP <half-duplex>)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Starting Network: re2.
re2: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:0d:b9:3f:73:82
        media: Ethernet autoselect (10baseT/UTP <half-duplex>)
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
Autoloading module: intpm.ko
intsmb0: <AMD SB600/7xx/8xx/9xx SMBus Controller> at device 20.0 on pci0
smbus0: <System Management Bus> on intsmb0
add host 127.0.0.1: gateway lo0 fib 0: route already in table
add host ::1: gateway lo0 fib 0: route already in table
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Generating host.conf.
Creating and/or trimming log files.
Starting syslogd.
No core dumps found.
Clearing /tmp (X related).
Updating motd:.
Mounting late filesystems:.
Configuring vt: keymap blanktime.
Performing sanity check on sshd configuration.
Starting sshd.
Starting cron.
Starting background file system checks in 60 seconds.

Thu Mar 29 07:43
FreeBSD/amd64 (clt-dsk-t-andreas-bsd) (ttyu0)

login:
# shutdown -h now
Shutdown NOW!
shutdown: [pid 1001]
Waiting for PIDS: 933.
Stopping sshd.
Waiting for PIDS: 929.
Stopping devd.
Waiting for PIDS: 657.
Writing entropy file:.
Writing early boot entropy file:.
.
Terminated
Mar 29 07:45:01 clt-dsk-t-andreas-bsd syslogd: exiting on signal 15
Waiting (max 60 seconds) for system process `vnlru' to stop... done
Waiting (max 60 seconds) for system process `syncer' to stop...
Syncing disks, vnodes remaining... 0 0 done
Waiting (max 60 seconds) for system thread `bufdaemon' to stop... done
Waiting (max 60 seconds) for system thread `bufspacedaemon-0' to stop... done
Waiting (max 60 seconds) for system thread `bufspacedaemon-1' to stop... done
All buffers synced.
Uptime: 1m39s
umass0: detached
ugen5.2: <Generic Flash Card Reader/Writer> at usbus5
umass0 on uhub0
umass0: <Generic Flash Card Reader/Writer, class 0/0, rev 2.00/1.00, addr 2> on usbus5
umass0:  SCSI over Bulk-Only; quirks = 0x4001
umass0:6:0: Attached to scbus6
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command, 3 more tries remain
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command, 2 more tries remain
(probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
(probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
(probe0:umass-sim0:0:0:0): Retrying command, 1 more tries remain
umass0: detached

The operating system has halted.
Please press any key to reboot.
### CONSOLE ####################################################################
keymap="ch.kbd"

# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="AUTO"

### NETWORK ####################################################################
hostname="andreas-bsd"
gateway_enable="YES"

ifconfig_re0="WPA DHCP"
ifconfig_re2="inet 192.168.0.1 netmask 255.255.255.0" 

### FIREWALL ###################################################################
pf_enable="YES"
pf_rules="/etc/pf.conf"
pf_flags=""
pflog_enable="YES"
pflog_logfile="/var/log/pf.log"
pflog_flags=""


### DAEMONS ####################################################################
sendmail_enable="NONE"
sshd_enable="YES"

### DHCP SERVER ################################################################
dhcpd_enable="YES"
dhcpd_flags="-q"
dhcpd_conf="/usr/local/etc/dhcpd.conf"
dhcpd_ifaces="re2"
dhcpd_withumask="022"

dhcpd_chuser_enable="YES"
dhcpd_withuser="dhcpd"
dhcpd_withgroup="dhcpd"
dhcpd_chroot_enable="YES"
dhcpd_devfs_enable="YES"
dhcpd_rootdir="/var/db/dhcpd"
network={
    key_mgmt=IEEE8021X
    identity="<USERNAME>"
    password="<PASSWORD>"
    eap=PEAP
    eapol_flags=0
    phase1="peaplabel=0"
    phase2="auth=MSCHAPV2"
}
vfs.mountroot.timeout="10"
kernels_autodetect="NO"
comconsole_speed="115200"
console="comconsole"

PuTTY on Linux: Clipboard Issue (Copy/Paste)

support for CLIPBOARD selection
4.11.4 Assigning copy and paste actions to clipboards



$ dpkg-query -L putty
/.
/usr
/usr/bin
/usr/bin/pageant
/usr/bin/putty
/usr/share
/usr/share/applications
/usr/share/applications/putty.desktop
/usr/share/doc
/usr/share/doc/putty
/usr/share/doc/putty/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/pageant.1.gz
/usr/share/man/man1/putty.1.gz
/usr/share/menu
/usr/share/menu/putty
/usr/share/pixmaps
/usr/share/pixmaps/putty.png
/usr/share/pixmaps/putty.xpm
/usr/share/doc/putty/changelog.Debian.gz


$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for ranlib... ranlib
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/andreas/Downloads/putty-0.71':
configure: error: C compiler cannot create executables
See `config.log' for more details


$ sudo apt-get install build-essential
$ sudo apt-get install coreutils
$ sudo apt-get install autoconf automake groff libtool

$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for ranlib... ranlib
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking for gcc option to accept ISO C99... none needed
checking for utmpx.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GTK+ - version >= 3.0.0... Package gtk+-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-3.0' found
no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occurred. This usually means GTK+ is incorrectly installed.
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.7... yes
checking for GTK+ - version >= 2.0.0... Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
checking for gtk-config... absent
checking for library containing socket... none required
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for library containing dlopen... -ldl
checking for XOpenDisplay in -lX11... no
checking for getaddrinfo... yes
checking for posix_openpt... yes
checking for ptsname... yes
checking for setresuid... yes
checking for strsignal... yes
checking for updwtmpx... yes
checking for fstatat... yes
checking for dirfd... yes
checking whether CLOCK_MONOTONIC is declared... yes
checking for library containing clock_gettime... none required
checking for SO_PEERCRED and dependencies... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating uxconfig.h
config.status: executing depfiles commands

'configure' was unable to find any version of the GTK libraries on
your system. Therefore, PuTTY itself and the other GUI utilities will
not be built by the generated Makefile: only the command-line tools
such as puttygen, plink and psftp will be built.

$ sudo apt-get install libgtk-3-dev

$ ./configure 
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $ dpkg-query -L putty
/.
/usr
/usr/bin
/usr/bin/pageant
/usr/bin/putty
/usr/share
/usr/share/applications
/usr/share/applications/putty.desktop
/usr/share/doc
/usr/share/doc/putty
/usr/share/doc/putty/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/pageant.1.gz
/usr/share/man/man1/putty.1.gz
/usr/share/menu
/usr/share/menu/putty
/usr/share/pixmaps
/usr/share/pixmaps/putty.png
/usr/share/pixmaps/putty.xpm
/usr/share/doc/putty/changelog.Debian.gz
$(MAKE)... yes
checking whether make supports nested variables... yes
checking for ranlib... ranlib
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking for gcc option to accept ISO C99... none needed
checking for utmpx.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GTK+ - version >= 3.0.0... yes (version 3.22.30)
checking for pango_font_family_is_monospace... yes
checking for pango_font_map_list_families... yes
checking for library containing socket... none required
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for library containing dlopen... -ldl
checking for XOpenDisplay in -lX11... yes
checking for getaddrinfo... yes
checking for posix_openpt... yes
checking for ptsname... yes
checking for setresuid... yes
checking for strsignal... yes
checking for updwtmpx... yes
checking for fstatat... yes
checking for dirfd... yes
checking whether CLOCK_MONOTONIC is declared... yes
checking for library containing clock_gettime... none required
checking for SO_PEERCRED and dependencies... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating uxconfig.h
config.status: executing depfiles commands

$ make
make  all-am
[...] 
make[1]: Leaving directory '/home/andreas/Downloads/putty-0.71'

$ ./putty

Linux Find all Serial Ports (ttyS, ttyUSB, …)

How To Check and Use Serial Ports Under Linux
How to find which serial port is in use?
How to find all serial devices (ttyS, ttyUSB, ..) on Linux without opening them?

$ dmesg | grep ttyS
[    0.686269] 00:05: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    0.687681] ttyS4: detected caps 00000700 should be 00000500
[    0.687695] 0000:01:00.0: ttyS4 at MMIO 0xf7c01000 (irq = 16, base_baud = 4000000) is a 16C950/954
[    0.687800] ttyS5: detected caps 00000700 should be 00000500
[    0.687813] 0000:01:00.0: ttyS5 at MMIO 0xf7c01200 (irq = 16, base_baud = 4000000) is a 16C950/954

$ ll /sys/class/tty/*/device/driver | grep -v bus/platform
lrwxrwxrwx 1 root root 0 Mar 31 11:43 /sys/class/tty/ttyS0/device/driver -> ../../../bus/pnp/drivers/serial/
lrwxrwxrwx 1 root root 0 Mar 31 11:43 /sys/class/tty/ttyS4/device/driver -> ../../../../bus/pci/drivers/serial/
lrwxrwxrwx 1 root root 0 Mar 31 11:43 /sys/class/tty/ttyS5/device/driver -> ../../../../bus/pci/drivers/serial/

$ sudo apt install setserial
$ sudo setserial -g /dev/ttyS[0123456789]
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2, UART: unknown, Port: 0x03e8, IRQ: 4
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
/dev/ttyS4, UART: 16950/954, Port: 0x0000, IRQ: 16
/dev/ttyS5, UART: 16950/954, Port: 0x0000, IRQ: 16
/dev/ttyS6, UART: unknown, Port: 0x0000, IRQ: 0

$ sudo cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:16550A port:000003F8 irq:4 tx:0 rx:0
1: uart:unknown port:000002F8 irq:3
2: uart:unknown port:000003E8 irq:4
3: uart:unknown port:000002E8 irq:3
4: uart:16C950/954 mmio:0xF7C01000 irq:16 tx:30 rx:0
5: uart:16C950/954 mmio:0xF7C01200 irq:16 tx:30 rx:0

ESP-IDF Logging

Logging library
Logging to Host (via JTAG)

I (352) boot: Loaded app from partition at offset 0x10000
I (352) boot: Disabling RNG early entropy source...
W (101187) BT_RFCOMM: port_rfc_closed RFCOMM connection in state 2 closed: Closed (res: 19)
W (101227) BT_RFCOMM: rfc_find_lcid_mcb LCID reused LCID:0x42 current:0x0
W (101227) BT_RFCOMM: RFCOMM_DisconnectInd LCID:0x42
^     ^      ^
|     |      |
|     |     Tag
| Timestamp
Letter (E = Error, W = Warning, D = Debug, V = Verbose, I = Information)

#define LOG_FORMAT(letter, format)  LOG_COLOR_ ## letter #letter " (%d) %s: " format LOG_RESET_COLOR "\n"

esp_log_write(ESP_LOG_ERROR,      tag, LOG_FORMAT(E, format), esp_log_timestamp(), tag, ##__VA_ARGS__);

/**
 * @brief Function which returns timestamp to be used in log output
 *
 * This function is used in expansion of ESP_LOGx macros.
 * In the 2nd stage bootloader, and at early application startup stage
 * this function uses CPU cycle counter as time source. Later when
 * FreeRTOS scheduler start running, it switches to FreeRTOS tick count.
 *
 * For now, we ignore millisecond counter overflow.
 *
 * @return timestamp, in milliseconds
 */
uint32_t esp_log_timestamp(void);