Format USB Stick with FAT32 on FreeBSD

Formatting USB drive with FAT32 using FreeBSD

Zero disk beginning with
$ dd if=/dev/zero of=/dev/da0 bs=2m count=1

Change first partition type to 12 (FAT32)
$ fdisk -i /dev/da0
[....]
Do you want to change our idea of what BIOS thinks ? [n] n
[...]
fdisk: invalid fdisk partition table found <== No MBR found!!!
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 15663312 (7648 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 974/ head 254/ sector 63
Do you want to change it? [n] y

The static data for the slice 1 has been reinitialized to:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 15663312 (7648 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 974/ head 254/ sector 63
Supply a decimal value for "sysid (165=FreeBSD)" [165] 12
Supply a decimal value for "start" [63]
Supply a decimal value for "size" [15663312]
Explicitly specify beg/end address ? [n]
sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
    start 63, size 15663312 (7648 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 974/ head 254/ sector 63
Are we happy with this entry? [n] y

[...]

We haven't changed the partition table yet.  This is your last chance.
parameters extracted from in-core disklabel are:
cylinders=975 heads=255 sectors/track=63 (16065 blks/cyl)

parameters to be used for BIOS calculations are:
cylinders=975 heads=255 sectors/track=63 (16065 blks/cyl)

Information from DOS bootblock is:
1: sysid 12 (0x0c),(DOS or Windows 95 with 32 bit FAT (LBA))
    start 63, size 15663312 (7648 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 974/ head 254/ sector 63
2: <UNUSED>
3: <UNUSED>
4: <UNUSED>
Should we write new partition table? [n] y

Initialize fat32 file system
$ newfs_msdos -F32 /dev/da1s1
/dev/da1s1: 15659456 sectors in 244679 FAT32 clusters (32768 bytes/cluster)
BytesPerSec=512 SecPerClust=64 ResSectors=32 FATs=2 Media=0xf0 SecPerTrack=63
Heads=255 HiddenSecs=0 HugeSectors=15663312 FATsecs=1912 RootCluster=2
FSInfo=1 Backup=2
List existing partitions
$ gpart show da0

Delete existing partitions
$ gpart delete -i 1 da0
1 being partition index, you might need to repeat this depending on output from gpart show

destroy label after deleting all partitions
$ gpart destroy da0

create new mbr spanning entire disk
$ gpart create -s mbr da0

create new fat32 partition spanning entire disk
$ gpart add -t fat32 da0

Initialize fat32 file system
$ newfs_msdos -F32 /dev/da0s1

PCEngines TinyCore

Mainboard PCEngines apu2 Enable.
APIC: 00 missing read_resources
APIC: 01 missing read_resources
APIC: 02 missing read_resources
APIC: 03 missing read_resources
SeaBIOS (version rel-1.8.0-181-g0af5958)
BUILD: gcc: (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4 binutils: (GNU Binutils for Ubuntu) 2.24
SeaBIOS (version rel-1.8.0-181-g0af5958)
BUILD: gcc: (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4 binutils: (GNU Binutils for Ubuntu) 2.24
Found coreboot cbmem console @ dffdf000
Found mainboard PC Engines PCEngines apu2
Relocating init from 0x000eeb10 to 0xdff66fd0 (size 28576)
Found CBFS header at 0xfffffc50
multiboot: eax=0, ebx=0
boot order:
1: /pci@i0cf8/*@11/drive@0/disk@0
2: /pci@i0cf8/usb@10/usb-*@1
3: /pci@i0cf8/usb@10/usb-*@2
4: /pci@i0cf8/usb@10/usb-*@3
5: /pci@i0cf8/usb@10/usb-*@4
6: /pci@i0cf8/*@11/drive@1/disk@0
7: /rom@genroms/pxe.rom
8: pxen0
9: scon1
10:
Found 21 PCI devices (max PCI bus is 03)
Copying SMBIOS entry point from 0xdffb7000 to 0x000f5a90
Copying ACPI RSDP from 0xdffb8000 to 0x000f5a60
Copying MPTABLE from 0xdffdc000/dffdc010 to 0x000f58b0
Copying PIR from 0xdffdd000 to 0x000f5880
Using pmtimer, ioport 0x818
Scan for VGA option rom
Running option rom at c000:0003

Google, Inc.
Serial Graphics Adapter 08/22/15
SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ (wiv@coreboot-Virtual-Ma                                                                                                              chine) Sat Aug 22 09:25:30 UTC 2015
Term: 80x24
IO4 0
Turning on vga text mode console

[...]

SeaBIOS (version rel-1.8.0-181-g0af5958)
XHCI init on dev 00:10.0: regs @ 0xfeb22000, 4 ports, 32 slots, 32 byte contexts
XHCI    extcap 0x1 @ feb22500
XHCI    protocol USB  3.00, 2 ports (offset 1), def 0
XHCI    protocol USB  2.00, 2 ports (offset 3), def 10
XHCI    extcap 0xa @ feb22540
Found 2 serial ports
Searching bootorder for: /pci@i0cf8/*@14,7
EHCI init on dev 00:13.0 (regs=0xfeb25420)
Searching bootorder for: /rom@img/memtest
Searching bootorder for: /rom@img/setup
XHCI port #4: 0x00200e03, powered, enabled, pls 0, speed 3 [High]
Searching bootorder for: /pci@i0cf8/usb@10/storage@4/*@0/*@0,0
Searching bootorder for: /pci@i0cf8/usb@10/usb-*@4
USB MSC vendor='Verbatim' product='STORE N GO' rev='1.00' type=0 removable=1
USB MSC blksize=512 sectors=15669248
Initialized USB HUB (0 ports used)
All threads complete.
Scan for option roms
PCengines Press F10 key now for boot menu:
Searching bootorder for: HALT
drive 0x000f5850: PCHS=0/0/0 translation=lba LCHS=975/255/63 s=15669248
Space available for UMB: c1000-ef000, f0000-f5850
Returned 258048 bytes of ZoneHigh
e820 map has 7 items:
  0: 0000000000000000 - 000000000009f800 = 1 RAM
  1: 000000000009f800 - 00000000000a0000 = 2 RESERVED
  2: 00000000000f0000 - 0000000000100000 = 2 RESERVED
  3: 0000000000100000 - 00000000dffad000 = 1 RAM
  4: 00000000dffad000 - 00000000e0000000 = 2 RESERVED
  5: 00000000f8000000 - 00000000fc000000 = 2 RESERVED
  6: 0000000100000000 - 000000011f000000 = 1 RAM
enter handle_19:
  NULL
Booting from Hard Disk...
Booting from 0000:7c00

SYSLINUX 3.85 2010-02-20 EBIOS Copyright (C) 1994-2010 H. Peter Anvin et al

SYSLINUX 3.85 2010-02-20  Copyright (C) 1994-2010 H. Peter Anvin et al
Loading vmlinuz...
Loading core.gz...ready.

  ____   ____   _____             _
 |  _ \ / ___| | ____|_ __   __ _(_)_ __   ___  ___
 | |_) | |     |  _| | '_ \ / _` | | '_ \ / _ \/ __|
 |  __/| |___  | |___| | | | (_| | | | | |  __/\__ \
 |_|    \____| |_____|_| |_|\__, |_|_| |_|\___||___/
                            |___/

TinyCore 6.4 www.tinycorelinux.com

searching for home directory ...
FAT partition not mounted yet, retrying since 14 sSorry, FAT partition not found.
-sh: /root/takemehome.sh: line 22: fail_beep: not found


-sh: /root/takemehome.sh: ./autostart.sh: not found
root@box:~# 
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.16.6-tinycore (tc@box) (gcc version 4.9.1 (GCC) ) #777 SMP Thu Oct 16 09:42:42 UTC 2014
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009f7ff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009f800-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000dffacfff] usable
[    0.000000] BIOS-e820: [mem 0x00000000dffad000-0x00000000dfffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000011effffff] usable
[    0.000000] Notice: NX (Execute Disable) protection cannot be enabled: non-PAE kernel!
[    0.000000] SMBIOS 2.7 present.
[    0.000000] DMI: PC Engines apu2/apu2, BIOS APU2A_20150928-13-gdfdf4a2-dirty 11/06/2015
[    0.000000] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[    0.000000] e820: remove [mem 0x000a0000-0x000fffff] usable
[    0.000000] e820: last_pfn = 0xdffad max_arch_pfn = 0x100000
[    0.000000] MTRR default type: uncachable
[    0.000000] MTRR fixed ranges enabled:
[    0.000000]   00000-9FFFF write-back
[    0.000000]   A0000-BFFFF uncachable
[    0.000000]   C0000-FFFFF write-back
[    0.000000] MTRR variable ranges enabled:
[    0.000000]   0 base 0000000000 mask FF80000000 write-back
[    0.000000]   1 base 0080000000 mask FFC0000000 write-back
[    0.000000]   2 base 00C0000000 mask FFE0000000 write-back
[    0.000000]   3 disabled
[    0.000000]   4 disabled
[    0.000000]   5 disabled
[    0.000000]   6 base 00FF800000 mask FFFF800000 write-protect
[    0.000000]   7 disabled
[    0.000000] TOM2: 000000011f000000 aka 4592M
[    0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[    0.000000] found SMP MP-table at [mem 0x000f58b0-0x000f58bf] mapped at [c00f58b0]
[    0.000000] initial memory mapped: [mem 0x00000000-0x00bfffff]
[    0.000000] Base memory trampoline at [c009b000] 9b000 size 16384
[    0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[    0.000000]  [mem 0x00000000-0x000fffff] page 4k
[    0.000000] init_memory_mapping: [mem 0x37000000-0x373fffff]
[    0.000000]  [mem 0x37000000-0x373fffff] page 2M
[    0.000000] init_memory_mapping: [mem 0x30000000-0x36ffffff]
[    0.000000]  [mem 0x30000000-0x36ffffff] page 2M
[    0.000000] init_memory_mapping: [mem 0x00100000-0x2fffffff]
[    0.000000]  [mem 0x00100000-0x003fffff] page 4k
[    0.000000]  [mem 0x00400000-0x2fffffff] page 2M
[    0.000000] init_memory_mapping: [mem 0x37400000-0x377fdfff]
[    0.000000]  [mem 0x37400000-0x377fdfff] page 4k
[    0.000000] BRK [0x00778000, 0x00778fff] PGTABLE
[    0.000000] RAMDISK: [mem 0x7f234000-0x7fffefff]
[    0.000000] Allocated new RAMDISK: [mem 0x36a33000-0x377fd93e]
[    0.000000] Move RAMDISK from [mem 0x7f234000-0x7fffe93e] to [mem 0x36a33000-0x377fd93e]
[    0.000000] ACPI: Early table checksum verification disabled
[    0.000000] ACPI: RSDP 0x000F5A60 000024 (v02 CORE  )
[    0.000000] ACPI: XSDT 0xDFFB80E0 00005C (v01 CORE   COREBOOT 00000000 CORE 00000000)
[    0.000000] ACPI: FACP 0xDFFB96F0 0000F4 (v04 CORE   COREBOOT 00000000 CORE 00000000)
[    0.000000] ACPI: DSDT 0xDFFB8250 001496 (v02 AMD    COREBOOT 00010001 INTL 20140114)
[    0.000000] ACPI: FACS 0xDFFB8210 000040
[    0.000000] ACPI: SSDT 0xDFFB97F0 000045 (v02 CORE   COREBOOT 0000002A CORE 0000002A)
[    0.000000] ACPI: APIC 0xDFFB9840 00007E (v01 CORE   COREBOOT 00000000 CORE 00000000)
[    0.000000] ACPI: HEST 0xDFFB98C0 0001D0 (v01 CORE   COREBOOT 00000000 CORE 00000000)
[    0.000000] ACPI: SSDT 0xDFFB9A90 0048A6 (v02 AMD    AGESA    00000002 MSFT 04000000)
[    0.000000] ACPI: SSDT 0xDFFBE340 0007C8 (v01 AMD    AGESA    00000001 AMD  00000001)
[    0.000000] ACPI: HPET 0xDFFBEB10 000038 (v01 CORE   COREBOOT 00000000 CORE 00000000)
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] 2695MB HIGHMEM available.
[    0.000000] 887MB LOWMEM available.
[    0.000000]   mapped low ram: 0 - 377fe000
[    0.000000]   low ram: 0 - 377fe000
[    0.000000] BRK [0x00779000, 0x00779fff] PGTABLE
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x00001000-0x00ffffff]
[    0.000000]   Normal   [mem 0x01000000-0x377fdfff]
[    0.000000]   HighMem  [mem 0x377fe000-0xdffacfff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00001000-0x0009efff]
[    0.000000]   node   0: [mem 0x00100000-0xdffacfff]
[    0.000000] On node 0 totalpages: 917323
[    0.000000] free_area_init_node: node 0, pgdat c06731c0, node_mem_map f4e33020
[    0.000000]   DMA zone: 32 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 3998 pages, LIFO batch:0
[    0.000000]   Normal zone: 1744 pages used for memmap
[    0.000000]   Normal zone: 223230 pages, LIFO batch:31
[    0.000000]   HighMem zone: 5392 pages used for memmap
[    0.000000]   HighMem zone: 690095 pages, LIFO batch:31
[    0.000000] Using APIC driver default
[    0.000000] ACPI: PM-Timer IO Port: 0x818
[    0.000000] ACPI: Local APIC address 0xfee00000
[    0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x02] lapic_id[0x02] enabled)
[    0.000000] ACPI: LAPIC (acpi_id[0x03] lapic_id[0x03] enabled)
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
[    0.000000] ACPI: IOAPIC (id[0x04] address[0xfec00000] gsi_base[0])
[    0.000000] IOAPIC[0]: apic_id 4, version 33, address 0xfec00000, GSI 0-23
[    0.000000] ACPI: IOAPIC (id[0x05] address[0xfec20000] gsi_base[24])
[    0.000000] IOAPIC[1]: apic_id 5, version 33, address 0xfec20000, GSI 24-55
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
[    0.000000] ACPI: IRQ0 used by override.
[    0.000000] ACPI: IRQ2 used by override.
[    0.000000] ACPI: IRQ9 used by override.
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] ACPI: HPET id: 0x10228201 base: 0xfed00000
[    0.000000] smpboot: Allowing 4 CPUs, 0 hotplug CPUs
[    0.000000] nr_irqs_gsi: 72
[    0.000000] PM: Registered nosave memory: [mem 0x0009f000-0x0009ffff]
[    0.000000] PM: Registered nosave memory: [mem 0x000a0000-0x000effff]
[    0.000000] PM: Registered nosave memory: [mem 0x000f0000-0x000fffff]
[    0.000000] e820: [mem 0xe0000000-0xf7ffffff] available for PCI devices
[    0.000000] Booting paravirtualized kernel on bare hardware
[    0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:4 nr_node_ids:1
[    0.000000] PERCPU: Embedded 12 pages/cpu @f4df1000 s27968 r0 d21184 u49152
[    0.000000] pcpu-alloc: s27968 r0 d21184 u49152 alloc=12*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 915547
[    0.000000] Kernel command line: priority=low initrd=core.gz superuser noswap nodhcp embed nozswap blacklist= BOOT_IMAGE=vmlinuz
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Initializing CPU#0
[    0.000000] xsave: enabled xstate_bv 0x7, cntxt size 0x340
[    0.000000] Initializing HighMem for node 0 (000377fe:000dffad)
[    0.000000] Initializing Movable for node 0 (00000000:00000000)
[    0.000000] Memory: 3618728K/3669292K available (4096K kernel code, 411K rwdata, 1100K rodata, 512K init, 460K bss, 50564K reserved, 2760380K highmem)
[    0.000000] virtual kernel memory layout:
    fixmap  : 0xfff16000 - 0xfffff000   ( 932 kB)
    pkmap   : 0xff800000 - 0xffc00000   (4096 kB)
    vmalloc : 0xf7ffe000 - 0xff7fe000   ( 120 MB)
    lowmem  : 0xc0000000 - 0xf77fe000   ( 887 MB)
      .init : 0xc067d000 - 0xc06fd000   ( 512 kB)
      .data : 0xc0500603 - 0xc067bf40   (1518 kB)
      .text : 0xc0100000 - 0xc0500603   (4097 kB)
[    0.000000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS:2304 nr_irqs:1024 16
[    0.000000] CPU 0 irqstacks, hard=f4808000 soft=f480a000
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [tty0] enabled
[    0.000000] hpet clockevent registered
[    0.000000] tsc: Fast TSC calibration failed
[    0.000000] tsc: Unable to calibrate against PIT
[    0.000000] tsc: using HPET reference calibration
[    0.000000] tsc: Detected 998.106 MHz processor
[    0.000043] Calibrating delay loop (skipped), value calculated using timer frequency.. 1997.38 BogoMIPS (lpj=3327020)
[    0.000061] pid_max: default: 32768 minimum: 301
[    0.000088] ACPI: Core revision 20140424
[    0.018999] ACPI: All ACPI Tables successfully acquired
[    0.019165] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.019205] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.019997] Initializing cgroup subsys devices
[    0.020054] Initializing cgroup subsys freezer
[    0.020068] Initializing cgroup subsys net_cls
[    0.020089] Initializing cgroup subsys blkio
[    0.020107] Initializing cgroup subsys perf_event
[    0.020118] Initializing cgroup subsys net_prio
[    0.020219] CPU: Physical Processor ID: 0
[    0.020226] CPU: Processor Core ID: 0
[    0.020239] mce: CPU supports 6 MCE banks
[    0.020260] LVT offset 1 assigned for vector 0xf9
[    0.020281] Last level iTLB entries: 4KB 512, 2MB 8, 4MB 4
Last level dTLB entries: 4KB 512, 2MB 256, 4MB 128, 1GB 0
tlb_flushall_shift: 6
[    0.020889] Freeing SMP alternatives memory: 16K (c06fd000 - c0701000)
[    0.022238] Enabling APIC mode:  Flat.  Using 2 I/O APICs
[    0.022796] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=0 pin2=0
[    0.055859] smpboot: CPU0: AMD GX-412TC SOC (fam: 16, model: 30, stepping: 01)
[    0.159599] Performance Events: AMD PMU driver.
[    0.159616] ... version:                0
[    0.159622] ... bit width:              48
[    0.159628] ... generic registers:      4
[    0.159634] ... value mask:             0000ffffffffffff
[    0.159641] ... max period:             00007fffffffffff
[    0.159648] ... fixed-purpose events:   0
[    0.159655] ... event mask:             000000000000000f
[    0.160909] CPU 1 irqstacks, hard=f48bc000 soft=f48be000
[    0.160912] x86: Booting SMP configuration:
[    0.160920] .... node  #0, CPUs:      #1
[    0.171599] Initializing CPU#1
[    0.174764] CPU 2 irqstacks, hard=f48d0000 soft=f48d2000
[    0.174810]  #2
[    0.184932] Initializing CPU#2
[    0.188655] CPU 3 irqstacks, hard=f4900000 soft=f4902000
[    0.188702]  #3
[    0.198838] Initializing CPU#3
[    0.201979] x86: Booted up 1 node, 4 CPUs
[    0.202003] smpboot: Total of 4 processors activated (7988.55 BogoMIPS)
[    0.206747] NET: Registered protocol family 16
[    0.207309] cpuidle: using governor ladder
[    0.207317] cpuidle: using governor menu
[    0.207701] ACPI: bus type PCI registered
[    0.207710] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.208039] PCI: PCI BIOS revision 2.10 entry at 0xfd706, last bus=3
[    0.208047] PCI: Using configuration type 1 for base access
[    0.208054] PCI: Using configuration type 1 for extended access
[    0.227839] ACPI: Added _OSI(Module Device)
[    0.227848] ACPI: Added _OSI(Processor Device)
[    0.227855] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.227862] ACPI: Added _OSI(Processor Aggregator Device)
[    0.233000] ACPI: Executed 1 blocks of module-level executable AML code
[    0.246571] ACPI: Interpreter enabled
[    0.246675] ACPI: (supports S0 S1 S2 S3 S4 S5)
[    0.246683] ACPI: Using IOAPIC for interrupt routing
[    0.246792] HEST: Table parsing has been initialized.
[    0.246807] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.256423] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[    0.256447] acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI]
[    0.256727] acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug PME PCIeCapability]
[    0.257105] acpi PNP0A08:00: host bridge window expanded to [io  0x0000-0x0cf7]; [io  0x0000-0x0cf7] ignored
[    0.257439] PCI host bridge to bus 0000:00
[    0.257452] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.257463] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7]
[    0.257474] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff]
[    0.257485] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff]
[    0.257495] pci_bus 0000:00: root bus resource [mem 0x000c0000-0x000dffff]
[    0.257506] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xffffffff]
[    0.257537] pci 0000:00:00.0: [1022:1566] type 00 class 0x060000
[    0.257866] pci 0000:00:02.0: [1022:156b] type 00 class 0x060000
[    0.258160] pci 0000:00:02.2: [1022:1439] type 01 class 0x060400
[    0.258315] pci 0000:00:02.2: PME# supported from D0 D3hot D3cold
[    0.258461] pci 0000:00:02.2: System wakeup disabled by ACPI
[    0.258620] pci 0000:00:02.3: [1022:1439] type 01 class 0x060400
[    0.258770] pci 0000:00:02.3: PME# supported from D0 D3hot D3cold
[    0.258909] pci 0000:00:02.3: System wakeup disabled by ACPI
[    0.259163] pci 0000:00:02.4: [1022:1439] type 01 class 0x060400
[    0.259315] pci 0000:00:02.4: PME# supported from D0 D3hot D3cold
[    0.259455] pci 0000:00:02.4: System wakeup disabled by ACPI
[    0.259725] pci 0000:00:08.0: [1022:1537] type 00 class 0x108000
[    0.259756] pci 0000:00:08.0: reg 0x10: [mem 0xfeb00000-0xfeb1ffff 64bit pref]
[    0.259770] pci 0000:00:08.0: reg 0x18: [mem 0xfe900000-0xfe9fffff]
[    0.259784] pci 0000:00:08.0: reg 0x1c: [mem 0xfeb24000-0xfeb24fff]
[    0.259797] pci 0000:00:08.0: reg 0x20: [mem 0xfea00000-0xfeafffff]
[    0.259810] pci 0000:00:08.0: reg 0x24: [mem 0xfeb20000-0xfeb21fff]
[    0.260203] pci 0000:00:10.0: [1022:7814] type 00 class 0x0c0330
[    0.260238] pci 0000:00:10.0: reg 0x10: [mem 0xfeb22000-0xfeb23fff 64bit]
[    0.260437] pci 0000:00:10.0: PME# supported from D0 D3hot D3cold
[    0.260549] pci 0000:00:10.0: System wakeup disabled by ACPI
[    0.260707] pci 0000:00:11.0: [1022:7800] type 00 class 0x01018f
[    0.260738] pci 0000:00:11.0: reg 0x10: [io  0x4010-0x4017]
[    0.260779] pci 0000:00:11.0: reg 0x14: [io  0x4020-0x4023]
[    0.260795] pci 0000:00:11.0: reg 0x18: [io  0x4018-0x401f]
[    0.260810] pci 0000:00:11.0: reg 0x1c: [io  0x4024-0x4027]
[    0.260825] pci 0000:00:11.0: reg 0x20: [io  0x4000-0x400f]
[    0.260841] pci 0000:00:11.0: reg 0x24: [mem 0xfeb25000-0xfeb253ff]
[    0.260872] pci 0000:00:11.0: set SATA to AHCI mode
[    0.260925] pci 0000:00:11.0: PME# supported from D3hot
[    0.261225] pci 0000:00:13.0: [1022:7808] type 00 class 0x0c0320
[    0.261283] pci 0000:00:13.0: reg 0x10: [mem 0xfeb25400-0xfeb254ff]
[    0.261423] pci 0000:00:13.0: supports D1 D2
[    0.261427] pci 0000:00:13.0: PME# supported from D0 D1 D2 D3hot D3cold
[    0.261588] pci 0000:00:13.0: System wakeup disabled by ACPI
[    0.261764] pci 0000:00:14.0: [1022:780b] type 00 class 0x0c0500
[    0.262135] pci 0000:00:14.3: [1022:780e] type 00 class 0x060100
[    0.262547] pci 0000:00:14.7: [1022:7813] type 00 class 0x080501
[    0.262588] pci 0000:00:14.7: reg 0x10: [mem 0xfeb25500-0xfeb255ff 64bit]
[    0.263003] pci 0000:00:18.0: [1022:1580] type 00 class 0x060000
[    0.263284] pci 0000:00:18.1: [1022:1581] type 00 class 0x060000
[    0.263625] pci 0000:00:18.2: [1022:1582] type 00 class 0x060000
[    0.263898] pci 0000:00:18.3: [1022:1583] type 00 class 0x060000
[    0.264189] pci 0000:00:18.4: [1022:1584] type 00 class 0x060000
[    0.264494] pci 0000:00:18.5: [1022:1585] type 00 class 0x060000
[    0.264947] pci 0000:01:00.0: [8086:157b] type 00 class 0x020000
[    0.265011] pci 0000:01:00.0: reg 0x10: [mem 0xfe600000-0xfe61ffff]
[    0.265047] pci 0000:01:00.0: reg 0x18: [io  0x1000-0x101f]
[    0.265097] pci 0000:01:00.0: reg 0x1c: [mem 0xfe620000-0xfe623fff]
[    0.265266] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    0.269676] pci 0000:00:02.2: PCI bridge to [bus 01]
[    0.269694] pci 0000:00:02.2:   bridge window [io  0x1000-0x1fff]
[    0.269702] pci 0000:00:02.2:   bridge window [mem 0xfe600000-0xfe6fffff]
[    0.269908] pci 0000:02:00.0: [8086:157b] type 00 class 0x020000
[    0.269944] pci 0000:02:00.0: reg 0x10: [mem 0xfe700000-0xfe71ffff]
[    0.270007] pci 0000:02:00.0: reg 0x18: [io  0x2000-0x201f]
[    0.270029] pci 0000:02:00.0: reg 0x1c: [mem 0xfe720000-0xfe723fff]
[    0.270254] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    0.276326] pci 0000:00:02.3: PCI bridge to [bus 02]
[    0.276371] pci 0000:00:02.3:   bridge window [io  0x2000-0x2fff]
[    0.276379] pci 0000:00:02.3:   bridge window [mem 0xfe700000-0xfe7fffff]
[    0.276698] pci 0000:03:00.0: [8086:157b] type 00 class 0x020000
[    0.276733] pci 0000:03:00.0: reg 0x10: [mem 0xfe800000-0xfe81ffff]
[    0.276769] pci 0000:03:00.0: reg 0x18: [io  0x3000-0x301f]
[    0.276791] pci 0000:03:00.0: reg 0x1c: [mem 0xfe820000-0xfe823fff]
[    0.276963] pci 0000:03:00.0: PME# supported from D0 D3hot D3cold
[    0.282997] pci 0000:00:02.4: PCI bridge to [bus 03]
[    0.283014] pci 0000:00:02.4:   bridge window [io  0x3000-0x3fff]
[    0.283022] pci 0000:00:02.4:   bridge window [mem 0xfe800000-0xfe8fffff]
[    0.283065] pci_bus 0000:00: on NUMA node 0
[    0.283736] ACPI: PCI Interrupt Link [INTA] (IRQs *3 5 7 10 11 12 15)
[    0.283956] ACPI: PCI Interrupt Link [INTB] (IRQs *3 5 7 10 11 12 15)
[    0.284114] ACPI: PCI Interrupt Link [INTC] (IRQs 3 *5 7 10 11 12 15)
[    0.284300] ACPI: PCI Interrupt Link [INTD] (IRQs 3 5 *7 10 11 12 15)
[    0.284516] ACPI: PCI Interrupt Link [INTE] (IRQs 3 5 7 10 *11 12 15)
[    0.284701] ACPI: PCI Interrupt Link [INTF] (IRQs 3 5 7 *10 11 12 15)
[    0.284984] ACPI: Enabled 4 GPEs in block 00 to 1F
[    0.285285] vgaarb: loaded
[    0.285647] SCSI subsystem initialized
[    0.285802] libata version 3.00 loaded.
[    0.285928] ACPI: bus type USB registered
[    0.286070] usbcore: registered new interface driver usbfs
[    0.286175] usbcore: registered new interface driver hub
[    0.286322] usbcore: registered new device driver usb
[    0.286416] Linux video capture interface: v2.00
[    0.286565] PCI: Using ACPI for IRQ routing
[    0.286575] PCI: pci_cache_line_size set to 64 bytes
[    0.286690] e820: reserve RAM buffer [mem 0x0009f800-0x0009ffff]
[    0.286695] e820: reserve RAM buffer [mem 0xdffad000-0xdfffffff]
[    0.287497] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0
[    0.287515] hpet0: 3 comparators, 32-bit 14.318180 MHz counter
[    0.289616] Switched to clocksource hpet
[    0.289867] pnp: PnP ACPI init
[    0.289907] ACPI: bus type PNP registered
[    0.290360] system 00:00: [mem 0xfec10002-0xfec11001] has been reserved
[    0.290376] system 00:00: Plug and Play ACPI device, IDs PNP0c02 (active)
[    0.290520] pnp 00:01: Plug and Play ACPI device, IDs PNP0b00 (active)
[    0.290666] pnp 00:02: Plug and Play ACPI device, IDs PNP0501 (active)
[    0.290939] pnp: PnP ACPI: found 3 devices
[    0.290947] ACPI: bus type PNP unregistered
[    0.290955] PnPBIOS: Disabled by ACPI PNP
[    0.330789] pci 0000:00:02.2: PCI bridge to [bus 01]
[    0.330803] pci 0000:00:02.2:   bridge window [io  0x1000-0x1fff]
[    0.330818] pci 0000:00:02.2:   bridge window [mem 0xfe600000-0xfe6fffff]
[    0.330837] pci 0000:00:02.3: PCI bridge to [bus 02]
[    0.330849] pci 0000:00:02.3:   bridge window [io  0x2000-0x2fff]
[    0.330863] pci 0000:00:02.3:   bridge window [mem 0xfe700000-0xfe7fffff]
[    0.330910] pci 0000:00:02.4: PCI bridge to [bus 03]
[    0.330921] pci 0000:00:02.4:   bridge window [io  0x3000-0x3fff]
[    0.330935] pci 0000:00:02.4:   bridge window [mem 0xfe800000-0xfe8fffff]
[    0.330956] pci_bus 0000:00: resource 4 [io  0x0000-0x0cf7]
[    0.330963] pci_bus 0000:00: resource 5 [io  0x0d00-0xffff]
[    0.330996] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff]
[    0.331001] pci_bus 0000:00: resource 7 [mem 0x000c0000-0x000dffff]
[    0.331007] pci_bus 0000:00: resource 8 [mem 0xe0000000-0xffffffff]
[    0.331012] pci_bus 0000:01: resource 0 [io  0x1000-0x1fff]
[    0.331017] pci_bus 0000:01: resource 1 [mem 0xfe600000-0xfe6fffff]
[    0.331023] pci_bus 0000:02: resource 0 [io  0x2000-0x2fff]
[    0.331028] pci_bus 0000:02: resource 1 [mem 0xfe700000-0xfe7fffff]
[    0.331033] pci_bus 0000:03: resource 0 [io  0x3000-0x3fff]
[    0.331038] pci_bus 0000:03: resource 1 [mem 0xfe800000-0xfe8fffff]
[    0.331163] NET: Registered protocol family 2
[    0.332161] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.332212] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.332293] TCP: Hash tables configured (established 8192 bind 8192)
[    0.332375] TCP: reno registered
[    0.332414] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.332463] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.332650] NET: Registered protocol family 1
[    0.332970] RPC: Registered named UNIX socket transport module.
[    0.332978] RPC: Registered udp transport module.
[    0.332985] RPC: Registered tcp transport module.
[    0.332991] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.341926] PCI: CLS 64 bytes, default 64
[    0.342099] Trying to unpack rootfs image as initramfs...
[    1.547036] Freeing initrd memory: 14124K (f6a33000 - f77fe000)
[    1.548221] perf: AMD NB counters detected
[    1.548232] perf: AMD L2I counters detected
[    1.548308] LVT offset 0 assigned for vector 0x400
[    1.548343] perf: AMD IBS detected (0x000000ff)
[    1.548375] apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
[    1.548384] apm: disabled - APM is not SMP safe.
[    1.550837] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    1.553013] NFS: Registering the id_resolver key type
[    1.553128] Key type id_resolver registered
[    1.553136] Key type id_legacy registered
[    1.553182] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.553208] fuse init (API version 7.23)
[    1.553434] msgmni has been set to 1704
[    1.555343] NET: Registered protocol family 38
[    1.555420] bounce: pool size: 64 pages
[    1.555466] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.555496] io scheduler noop registered
[    1.555516] io scheduler deadline registered (default)
[    1.555867] pcieport 0000:00:02.2: device [1022:1439] has invalid IRQ; check vendor BIOS
[    1.556231] pcieport 0000:00:02.2: irq 72 for MSI/MSI-X
[    1.556483] pcieport 0000:00:02.3: device [1022:1439] has invalid IRQ; check vendor BIOS
[    1.556712] pcieport 0000:00:02.3: irq 73 for MSI/MSI-X
[    1.556937] pcieport 0000:00:02.4: device [1022:1439] has invalid IRQ; check vendor BIOS
[    1.557163] pcieport 0000:00:02.4: irq 74 for MSI/MSI-X
[    1.557514] pcieport 0000:00:02.2: Signaling PME through PCIe PME interrupt
[    1.557526] pci 0000:01:00.0: Signaling PME through PCIe PME interrupt
[    1.557540] pcie_pme 0000:00:02.2:pcie01: service driver pcie_pme loaded
[    1.557617] pcieport 0000:00:02.3: Signaling PME through PCIe PME interrupt
[    1.557628] pci 0000:02:00.0: Signaling PME through PCIe PME interrupt
[    1.557641] pcie_pme 0000:00:02.3:pcie01: service driver pcie_pme loaded
[    1.557718] pcieport 0000:00:02.4: Signaling PME through PCIe PME interrupt
[    1.557759] pci 0000:03:00.0: Signaling PME through PCIe PME interrupt
[    1.557774] pcie_pme 0000:00:02.4:pcie01: service driver pcie_pme loaded
[    1.557888] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    1.557952] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    1.558322] input: Power Button as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0
[    1.558342] ACPI: Power Button [PWRB]
[    1.558654] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
[    1.558667] ACPI: Power Button [PWRF]
[    1.558919] ACPI: acpi_idle registered with cpuidle
[    1.560470] GHES: Failed to enable APEI firmware first mode.
[    1.560608] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.560678] isapnp: Scanning for PnP cards...
[    1.581705] 00:02: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    1.602772] serial8250: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    1.603892] Non-volatile memory driver v1.3
[    1.603902] Hangcheck: starting hangcheck timer 0.9.1 (tick is 180 seconds, margin is 60 seconds).
[    1.603912] Hangcheck: Using getrawmonotonic().
[    1.606847] brd: module loaded
[    1.607193] mtip32xx Version 1.3.1
[    1.607201] Error creating debugfs parent
[    1.607676] zram: Created 1 device(s) ...
[    1.608006] VMware PVSCSI driver - version 1.0.5.0-k
[    1.608255] ahci 0000:00:11.0: version 3.0
[    1.608629] ahci 0000:00:11.0: AHCI 0001.0300 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
[    1.608646] ahci 0000:00:11.0: flags: 64bit ncq sntf ilck pm led clo pmp fbs pio slum part
[    1.609948] scsi0 : ahci
[    1.610484] scsi1 : ahci
[    1.610698] ata1: SATA max UDMA/133 abar m1024@0xfeb25000 port 0xfeb25100 irq 19
[    1.610710] ata2: SATA max UDMA/133 abar m1024@0xfeb25000 port 0xfeb25180 irq 19
[    1.615904] scsi2 : pata_legacy
[    1.616104] ata3: PATA max PIO4 cmd 0x1f0 ctl 0x3f6 irq 14
[    1.920922] isapnp: No Plug & Play device found
[    1.929851] ata2: SATA link down (SStatus 0 SControl 300)
[    2.096471] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[    2.096725] ata1.00: ATA-10: SATA SSD, S9FM02.0, max UDMA/133
[    2.096738] ata1.00: 31277232 sectors, multi 16: LBA48 NCQ (depth 31/32), AA
[    2.097074] ata1.00: configured for UDMA/133
[    2.097436] scsi 0:0:0:0: Direct-Access     ATA      SATA SSD         02.0 PQ: 0 ANSI: 5
[    2.098134] sd 0:0:0:0: [sda] 31277232 512-byte logical blocks: (16.0 GB/14.9 GiB)
[    2.098223] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    2.098468] sd 0:0:0:0: [sda] Write Protect is off
[    2.098482] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    2.098607] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.101613]  sda: sda1 sda2 sda3
[    2.102732] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.104145] scsi3 : pata_legacy
[    2.104355] ata4: PATA max PIO4 cmd 0x170 ctl 0x376 irq 15
[    2.257747] libphy: Fixed MDIO Bus: probed
[    2.257773] tun: Universal TUN/TAP device driver, 1.6
[    2.257793] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    2.257914] PPP generic driver version 2.4.2
[    2.258026] PPP Deflate Compression module registered
[    2.258036] NET: Registered protocol family 24
[    2.258185] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.258194] ehci-pci: EHCI PCI platform driver
[    2.258548] ehci-pci 0000:00:13.0: EHCI Host Controller
[    2.258575] ehci-pci 0000:00:13.0: new USB bus registered, assigned bus number 1
[    2.258596] ehci-pci 0000:00:13.0: applying AMD SB700/SB800/Hudson-2/3 EHCI dummy qh workaround
[    2.258623] ehci-pci 0000:00:13.0: debug port 2
[    2.258733] ehci-pci 0000:00:13.0: irq 18, io mem 0xfeb25400
[    2.266481] ehci-pci 0000:00:13.0: USB 2.0 started, EHCI 1.00
[    2.266986] hub 1-0:1.0: USB hub found
[    2.267016] hub 1-0:1.0: 2 ports detected
[    2.267445] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.267454] ohci-pci: OHCI PCI platform driver
[    2.267531] uhci_hcd: USB Universal Host Controller Interface driver
[    2.267742] usbcore: registered new interface driver uas
[    2.267835] usbcore: registered new interface driver usb-storage
[    2.267901] usbcore: registered new interface driver ums-alauda
[    2.267935] usbcore: registered new interface driver ums-cypress
[    2.267998] usbcore: registered new interface driver ums-datafab
[    2.268062] usbcore: registered new interface driver ums_eneub6250
[    2.268096] usbcore: registered new interface driver ums-freecom
[    2.268159] usbcore: registered new interface driver ums-isd200
[    2.268192] usbcore: registered new interface driver ums-jumpshot
[    2.268226] usbcore: registered new interface driver ums-karma
[    2.268264] usbcore: registered new interface driver ums-onetouch
[    2.268332] usbcore: registered new interface driver ums-sddr09
[    2.268398] usbcore: registered new interface driver ums-sddr55
[    2.268461] usbcore: registered new interface driver ums-usbat
[    2.268552] i8042: PNP: No PS/2 controller found. Probing ports directly.
[    2.549833] tsc: Refined TSC clocksource calibration: 998.127 MHz
[    3.347260] i8042: No controller found
[    3.347475] mousedev: PS/2 mouse device common for all mice
[    3.347854] usbcore: registered new interface driver appletouch
[    3.347969] usbcore: registered new interface driver bcm5974
[    3.348216] usbcore: registered new interface driver synaptics_usb
[    3.348267] rtc_cmos 00:01: RTC can wake from S4
[    3.348553] rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
[    3.348600] rtc_cmos 00:01: alarms up to one day, 114 bytes nvram, hpet irqs
[    3.348655] intel_powerclamp: Intel powerclamp does not run on family 22 model 48
[    3.348939] softdog: Software Watchdog Timer: 0.08 initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
[    3.348969] ledtrig-cpu: registered to indicate activity on CPUs
[    3.349398] AMD Cryptographic Coprocessor 0000:00:08.0: 5 command queues available
[    3.349485] AMD Cryptographic Coprocessor 0000:00:08.0: irq 75 for MSI/MSI-X
[    3.349526] AMD Cryptographic Coprocessor 0000:00:08.0: irq 76 for MSI/MSI-X
[    3.350216] AMD Cryptographic Coprocessor 0000:00:08.0: enabled
[    3.352386] Driver for HIFN 795x crypto accelerator chip has been successfully registered.
[    3.352507] hidraw: raw HID events driver (C) Jiri Kosina
[    3.352672] usbcore: registered new interface driver usbhid
[    3.352679] usbhid: USB HID core driver
[    3.352894] Netfilter messages via NETLINK v0.30.
[    3.352910] nfnl_acct: registering with nfnetlink.
[    3.353082] ipip: IPv4 over IPv4 tunneling driver
[    3.353546] IPv4 over IPSec tunneling driver
[    3.354070] ip_tables: (C) 2000-2006 Netfilter Core Team
[    3.354368] TCP: cubic registered
[    3.354374] Initializing XFRM netlink socket
[    3.354389] NET: Registered protocol family 17
[    3.354413] NET: Registered protocol family 15
[    3.354468] Key type dns_resolver registered
[    3.355508] Using IPI No-Shortcut mode
[    3.355795] registered taskstats version 1
[    3.356900] rtc_cmos 00:01: setting system clock to 2016-02-10 15:40:05 UTC (1455118805)
[    3.357707] Freeing unused kernel memory: 512K (c067d000 - c06fd000)
[    3.358102] Write protecting the kernel text: 4100k
[    3.358250] Write protecting the kernel read-only data: 1104k
[    3.542368] loop: module loaded
[    3.553376] Switched to clocksource tsc
[    3.553388] usb 1-1: new high-speed USB device number 2 using ehci-pci
[    3.576450] pps_core: LinuxPPS API ver. 1 registered
[    3.576506] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    3.595298] PTP clock support registered
[    3.678878] hub 1-1:1.0: USB hub found
[    3.679078] hub 1-1:1.0: 4 ports detected
[    3.694269] acpi-cpufreq: overriding BIOS provided _PSD data
[    3.704714] xhci_hcd 0000:00:10.0: xHCI Host Controller
[    3.704780] xhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
[    3.705158] xhci_hcd 0000:00:10.0: irq 77 for MSI/MSI-X
[    3.705171] xhci_hcd 0000:00:10.0: irq 78 for MSI/MSI-X
[    3.705210] xhci_hcd 0000:00:10.0: irq 79 for MSI/MSI-X
[    3.705221] xhci_hcd 0000:00:10.0: irq 80 for MSI/MSI-X
[    3.705231] xhci_hcd 0000:00:10.0: irq 81 for MSI/MSI-X
[    3.728699] hub 2-0:1.0: USB hub found
[    3.730088] hub 2-0:1.0: 2 ports detected
[    3.730635] xhci_hcd 0000:00:10.0: xHCI Host Controller
[    3.730652] xhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 3
[    3.732005] hub 3-0:1.0: USB hub found
[    3.732037] hub 3-0:1.0: 2 ports detected
[    3.738163] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.0.5-k
[    3.738180] igb: Copyright (c) 2007-2014 Intel Corporation.
[    3.739044] igb 0000:01:00.0: irq 82 for MSI/MSI-X
[    3.739056] igb 0000:01:00.0: irq 83 for MSI/MSI-X
[    3.739068] igb 0000:01:00.0: irq 84 for MSI/MSI-X
[    3.739078] igb 0000:01:00.0: irq 85 for MSI/MSI-X
[    3.739088] igb 0000:01:00.0: irq 86 for MSI/MSI-X
[    3.776723] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.781274] piix4_smbus 0000:00:14.0: SMBus Host Controller at 0xb00, revision 0
[    3.781440] piix4_smbus 0000:00:14.0: Auxiliary SMBus Host Controller at 0xb20
[    3.800638] igb 0000:01:00.0: added PHC on eth0
[    3.800658] igb 0000:01:00.0: Intel(R) Gigabit Ethernet Network Connection
[    3.800671] igb 0000:01:00.0: eth0: (PCIe:2.5Gb/s:Width x1) 00:0d:b9:3f:9d:bc
[    3.800710] igb 0000:01:00.0: eth0: PBA No: FFFFFF-0FF
[    3.800720] igb 0000:01:00.0: Using MSI-X interrupts. 4 rx queue(s), 4 tx queue(s)
[    3.801818] igb 0000:02:00.0: irq 87 for MSI/MSI-X
[    3.801830] igb 0000:02:00.0: irq 88 for MSI/MSI-X
[    3.801857] igb 0000:02:00.0: irq 89 for MSI/MSI-X
[    3.801911] igb 0000:02:00.0: irq 90 for MSI/MSI-X
[    3.801923] igb 0000:02:00.0: irq 91 for MSI/MSI-X
[    3.833695] input: PC Speaker as /devices/platform/pcspkr/input/input2
[    3.835939] igb 0000:02:00.0: added PHC on eth1
[    3.835990] igb 0000:02:00.0: Intel(R) Gigabit Ethernet Network Connection
[    3.836001] igb 0000:02:00.0: eth1: (PCIe:2.5Gb/s:Width x1) 00:0d:b9:3f:9d:bd
[    3.836013] igb 0000:02:00.0: eth1: PBA No: FFFFFF-0FF
[    3.836023] igb 0000:02:00.0: Using MSI-X interrupts. 4 rx queue(s), 4 tx queue(s)
[    3.837260] igb 0000:03:00.0: irq 92 for MSI/MSI-X
[    3.837273] igb 0000:03:00.0: irq 93 for MSI/MSI-X
[    3.837284] igb 0000:03:00.0: irq 94 for MSI/MSI-X
[    3.837296] igb 0000:03:00.0: irq 95 for MSI/MSI-X
[    3.837305] igb 0000:03:00.0: irq 96 for MSI/MSI-X
[    3.838589] sdhci: Secure Digital Host Controller Interface driver
[    3.838630] sdhci: Copyright(c) Pierre Ossman
[    3.840945] sdhci-pci 0000:00:14.7: SDHCI controller found [1022:7813] (rev 1)
[    3.841382] mmc0: no vqmmc regulator found
[    3.841390] mmc0: no vmmc regulator found
[    3.844570] mmc0: SDHCI controller on PCI [0000:00:14.7] using ADMA
[    3.869681] igb 0000:03:00.0: added PHC on eth2
[    3.869731] igb 0000:03:00.0: Intel(R) Gigabit Ethernet Network Connection
[    3.869743] igb 0000:03:00.0: eth2: (PCIe:2.5Gb/s:Width x1) 00:0d:b9:3f:9d:be
[    3.869755] igb 0000:03:00.0: eth2: PBA No: FFFFFF-0FF
[    3.869764] igb 0000:03:00.0: Using MSI-X interrupts. 4 rx queue(s), 4 tx queue(s)
[    4.036680] usb 2-2: new high-speed USB device number 2 using xhci_hcd
[    4.160504] usb-storage 2-2:1.0: USB Mass Storage device detected
[    4.160833] scsi4 : usb-storage 2-2:1.0
[    5.164386] scsi 4:0:0:0: Direct-Access     Verbatim STORE N GO       1.00 PQ: 0 ANSI: 2
[    5.165579] sd 4:0:0:0: Attached scsi generic sg1 type 0
[    5.165723] sd 4:0:0:0: [sdb] 15669248 512-byte logical blocks: (8.02 GB/7.47 GiB)
[    5.166592] sd 4:0:0:0: [sdb] Write Protect is off
[    5.166613] sd 4:0:0:0: [sdb] Mode Sense: 03 00 00 00
[    5.169208] sd 4:0:0:0: [sdb] No Caching mode page found
[    5.169229] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[    5.172859]  sdb:
[    5.175315] sd 4:0:0:0: [sdb] Attached SCSI removable disk
[   13.739100] random: nonblocking pool is initialized
# flashrom -w apu151109.rom -p internal
flashrom v0.9.8-r1888 on Linux 3.16.6-tinycore (i686)
flashrom is free software, get the source code at http://www.flashrom.org

Calibrating delay loop... OK.
coreboot table found at 0xdffae000.
Found chipset "AMD FCH".
Enabling flash write... OK.
Found Winbond flash chip "W25Q64.V" (8192 kB, SPI) mapped at physical address 0xff800000.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... VERIFIED.

Java JTable

Color

Java – Swing – JTable – Set Color for Selected Row, but not Cell
Trying to color specific cell in JTable… getTableCellRendererComponent Overide
change background color of row in jtable after selection
color selected row in jtable by another color
Swing JTable – Highlight selected cell in a different color from rest of the selected row?

Add/Remove

Adding rows to JTable in the right order.

Scrollbar

How to scroll to last row in a JTable
JTable autoscrolling to bottom problem
JTable autoscroll to the bottom in Java (not working properly!)

Copy/Paste

Java Tip 77: Enable copy and paste functionality between Swing’s JTables and Excel
JTable copy and paste using Clipboard and AbstractAction
Clipboard copy and paste
Copying to Clipboard in Java

Actions

Adding a row to a jTable on downarrow at bottom

Linux Kernel Development: Modules

Module Parameters
Passing Command Line Arguments to a Module
How do I list loaded Linux module parameter values?

cat /proc/modules | cut -f 1 -d " " | while read module; do \
 echo "Module: $module"; \
 if [ -d "/sys/module/$module/parameters" ]; then \
  ls /sys/module/$module/parameters/ | while read parameter; do \
   echo -n "Parameter: $parameter --> "; \
   cat /sys/module/$module/parameters/$parameter; \
  done; \
 fi; \
 echo; \
done

C# and .NET (C sharp and dotNET)

Proprietary

Visual Studio Express or shortcut: Visual Studio Express
Visual Studio Editions
ic#code SharpDevelop
Free C# (csharp) compiler for Windows 7 and Windows 8 (Microsoft Visual Studio Alternative)

Open Source

Mono Project

.NET

.NET Framework
Common Language Runtime
Best way to check if a DLL file is a CLR assembly in C#

Einfache Typen

C#, int or Int32? Should I care?
Difference between int and System::Int32
ecimal vs double! – Which one should I use and when?
Get int value from enum
Cast int to enum in C#

String:
YourEnum foo = (YourEnum) Enum.Parse(typeof(YourEnum), yourString);

int:
YourEnum foo = (YourEnum)yourInt;

General Number:
YourEnum foo = (YourEnum)Enum.ToObject(typeof(YourEnum) , yourInt);

How to convert from System.Enum to base integer?
Enum ToString with user friendly strings
Enum value to string

Microsoft’s DataGridView

#: is there a JTable equivalent?
How to create a DataTable in C# and how to add rows?

Mono’s DataGridView

Mono is not 100% compatible with Windows .NET: example DataGridView!

Bug 9653 – DataGridView after one cell is edited crashes when selecting a second cell
Fix for issues 9653, 22297 #1486
DataGridView with ICustomTypeDescriptor looks empty on Mono
DataGridView and ICustomTypeDescriptor

Alternative: GTK

GtkSharpNodeViewTutorial
DataGridView for Linux and MonoDevelop

ADO.NET / Database Access

Database Access
SQLClient (ADO.NET Provider for Microsoft SQL Server)
MySQL
MySQL C# tutorial
Connecting a MySQL table to a DataGridView control in C#

Linux Kernel Development: Network Drivers

Linux Networking Subsystem, 2004 for Linux Kernel 2.4.18
Linux Kernel Networking (Presentation), 2007 for Linux Kernel 2.6.23
A Map of the Networking Code in Linux Kernel 2.4.20, 2004

O’Reilly

Understanding the Linux Kernel, 3rd Edition, 2005
Understanding Linux Network Internals, 2005
Linux Device Drivers, 3rd Edition, 2005

Oracle Linux: 6.7 About Network Device Drivers
linux network drivers — net_device_ops
struct net_device and net_device_ops

Understanding TCP/IP Network Stack & Writing Network Apps
Networking in the Linux Kernel
Queueing in the Linux Network Stack
Scaling in the Linux Networking Stack (TXT)
Networking › kernel_flow
Single RX queue kernel bypass in Netmap for high packet rate networking

struct net_device, struct net

what is the difference between register_pernet_subsys and register_pernet_device?
Getting list of network devices inside the Linux kernel

#include <linux/netdevice.h>

struct net_device *dev;

dev = first_net_device(&init_net);
while (dev) {
    printk(KERN_INFO "found [%s]\n", dev->name);
    dev = next_net_device(dev);
}