Category Archives: Uncategorized
APU2B4 and FreeBSD 10.2
Booting...bootorder for: /rom@img/memtest
Copyright (c) 1992-2015 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
XHCI no The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015
root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
CPU: AMD GX-412TC SOC (998.15-MHz K8-class CPU)
Origin="AuthenticAMD" Id=0x730f01 Family=0x16 Model=0x30 Stepping=1
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=0x3ed8220b<SSE3,PCLMULQDQ,MON,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C>
AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
AMD Features2=0x1d4037ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT,Topology,PNXC,DBE,PTSC,PL2I>
Structured Extended Features=0x8<BMI1>
XSAVE Features=0x1<XSAVEOPT>ranslation=lba LCHS=964/128/63 s=7774208
SVM: NP,NRIP,AFlush,DAssist,NAsids=8f0000-f5850
TSC: P-state invariant, performance statistics
real memory = 4815060992 (4592 MB)
avail memory = 4100636672 (3910 MB)9f800 = 1 RAM
Event timer "LAPIC" quality 4000000a0000 = 2 RESERVED
ACPI APIC Table: <CORE COREBOOT>100000 = 2 RESERVED
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s)000 = 2 RESERVED
cpu0 (BSP): APIC ID: 000000000fc000000 = 2 RESERVED
cpu1 (AP): APIC ID: 1 000000011f000000 = 1 RAM
cpu2 (AP): APIC ID: 2
cpu3 (AP): APIC ID: 3
random device not loaded; using insecure entropy
ioapic1: Changing APIC ID to 5
ioapic0 <Version 2.1> irqs 0-23 on motherboard
ioapic1 <Version 2.1> irqs 24-55 on motherboard
random: <Software, Yarrow> initialized
module_register_init: MOD_LOAD (vesa, 0xffffffff80db8eb0, 0) error 19
kbd0 at kbdmux0
acpi0: <CORE COREBOOT> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
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
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x818-0x81b on acpi0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
acpi_button0: <Power Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 2.2 on pci0
pcib1: failed to allocate initial I/O port window: 0x1000-0x1fff
pci1: <ACPI PCI bus> on pcib1
igb0: <Intel(R) PRO/1000 Network Connection version - 2.4.0> mem 0xfe600000-0xfe61ffff,0xfe620000-0xfe623fff at device 0.0 on pci1
igb0: Using MSIX interrupts with 5 vectors
igb0: Ethernet address: 00:0d:b9:3f:9d:bc
igb0: Bound queue 0 to cpu 0
igb0: Bound queue 1 to cpu 1
igb0: Bound queue 2 to cpu 2
igb0: Bound queue 3 to cpu 3
pcib2: <ACPI PCI-PCI bridge> at device 2.3 on pci0
pci2: <ACPI PCI bus> on pcib2
igb1: <Intel(R) PRO/1000 Network Connection version - 2.4.0> port 0x2000-0x201f mem 0xfe700000-0xfe71ffff,0xfe720000-0xfe723fff at device 0.0 on pci2
igb1: Using MSIX interrupts with 5 vectors
igb1: Ethernet address: 00:0d:b9:3f:9d:bd
igb1: Bound queue 0 to cpu 0
igb1: Bound queue 1 to cpu 1
igb1: Bound queue 2 to cpu 2
igb1: Bound queue 3 to cpu 3
pcib3: <ACPI PCI-PCI bridge> at device 2.4 on pci0
pci3: <ACPI PCI bus> on pcib3
igb2: <Intel(R) PRO/1000 Network Connection version - 2.4.0> port 0x3000-0x301f mem 0xfe800000-0xfe81ffff,0xfe820000-0xfe823fff at device 0.0 on pci3
igb2: Using MSIX interrupts with 5 vectors
igb2: Ethernet address: 00:0d:b9:3f:9d:be
igb2: Bound queue 0 to cpu 0
igb2: Bound queue 1 to cpu 1
igb2: Bound queue 2 to cpu 2
igb2: Bound queue 3 to cpu 3
pci0: <encrypt/decrypt> at device 8.0 (no driver attached)
xhci0: <XHCI (generic) USB 3.0 controller> mem 0xfeb22000-0xfeb23fff at device 16.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
usbus0 on xhci0
ahci0: <AMD Hudson-2 AHCI SATA controller> port 0x4010-0x4017,0x4020-0x4023,0x4018-0x401f,0x4024-0x4027,0x4000-0x400f mem 0xfeb25000-0xfeb253ff at device 17.0 on pci0
ahci0: AHCI v1.30 with 2 6Gbps ports, Port Multiplier supported with FBS
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xfeb25400-0xfeb254ff at device 19.0 on pci0
usbus1: EHCI version 1.0
usbus1 on ehci0
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
sdhci_pci0: <Generic SD HCI> mem 0xfeb25500-0xfeb255ff at device 20.7 on pci0
sdhci_pci0: 1 slot(s) allocated
mmc0: <MMC/SD bus> on sdhci_pci0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: console (9600,n,8,1)
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc0fff,0xef000-0xeffff on isa0
ppc0: cannot reserve I/O port range
uart1: <16550 or compatible> at port 0x2f8-0x2ff irq 3 on isa0
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
random: unblocking device.
usbus0: 5.0Gbps Super Speed USB v3.0
Timecounters tick every 1.000 msec
usbus1: 480Mbps High Speed USB v2.0
ugen0.1: <0x1022> at usbus0
uhub0: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
ugen1.1: <AMD> at usbus1
uhub1: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
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 DE35075218EE01540762
ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes)uhub0: 4 ports with 4 removable, self powered
ada0: Command Queueing enabled
ada0: 15272MB (31277232 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad4
mmcsd0: 4GB <SDHC SD04G 3.0 SN 7C9DCED4 MFG 09/2015 by 39 PH> at mmc0 31.5MHz/4bit/65535-block
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #1 Launched!
Timecounter "TSC" frequency 998148987 Hz quality 1000
Root mount waiting for: usbus1
uhub1: 2 ports with 2 removable, self powered
Root mount waiting for: usbus1
ugen1.2: <vendor 0x0438> at usbus1
uhub2: <vendor 0x0438 product 0x7900, class 9/0, rev 2.00/0.18, addr 2> on usbus1
uhub2: 4 ports with 4 removable, self powered
What is a ‘Socket’?
Java Networking with Socket and DatagramSocket
Illustrator
Ulo
SYSLINUX / ISOLINUX Bootloader
X11 connection rejected because of wrong authentication
X11 connection rejected because of wrong authentication after sudo to another user
“su” with error “X11 connection rejected because of wrong authentication”
$ xauth list | grep unix`echo $DISPLAY | cut -c10-12` > /tmp/xauth $ sudo -s # xauth add `cat /tmp/xauth`
APU2B4 and Ubuntu Server 15.10
Disk /dev/sdc: 3.7 GiB, 3980394496 bytes, 7774208 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x672847fd Device Boot Start End Blocks Id System /dev/sdc1 * 0 1294335 647168 0 Empty /dev/sdc2 261440 265983 2272 ef EFI (FAT-12/16/32) Command (m for help): q
$ file -sL /dev/sdc1 /dev/sdc1: # ISO 9660 CD-ROM filesystem data 'Ubuntu-Server 15.10 amd64' (bootable) $ mount /dev/sdc1 /mnt mount: /dev/sdc1 is write-protected, mounting read-only ==> use unetbootin
How to repair an SD card which shows incorrect size?
SD Card interpreted as wrong size
# cat /proc/partitions # cfdisk /dev/sdc => Type 0b (W95 FAT32) # mkfs -t vfat /dev/sdc1
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 Found sdcard at 0xfeb25500: SD card SD04G 3796MiB XHCI no devices found Initialized USB HUB (0 ports used) All threads complete. Scan for option roms PCengines Press F10 key now for boot menu: Select boot device: 1. SD card SD04G 3796MiB 2. Payload [memtest] 3. Payload [setup] Searching bootorder for: HALT drive 0x000f5850: PCHS=0/0/0 translation=lba LCHS=964/128/63 s=7774208 Space available for UMB: c1000-ef000, f0000-f5850 Returned 262144 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 - 00000000dffae000 = 1 RAM 4: 00000000dffae000 - 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 ISOLINUX 6.03 20150813 EHDD Copyright (C) 1994-2014 H. Peter Anvin et al Loading bootlogo... Initializing gfx code... graphics initialization failed Error setting up gfxboot boot:
Undefined video mode number: 314 Press <ENTER> to see video modes available, <SPACE> to continue, or wait 30 sec Mode: Resolution: Type: 0 F00 80x25 CGA/MDA/HGC Enter a video mode or "scan" to scan for additional modes:
Old => wrong syslinux.cfg
Installation von Ubuntu 14.04 auf PC Engines APU
APU + Ubuntu 14.04 LTS – install via serial console
Better syslinux.cfg
Re: Install Debian Squeeze on Alix 2d2 over Serial Console
label ubnentry1 menu label ^Install kernel /install/netboot/ubuntu-installer/amd64/linux append initrd=/install/netboot/ubuntu-installer/amd64/initrd.gz vga=788 --- quiet
label ubnentry1 menu label ^Serial Install kernel /install/netboot/ubuntu-installer/amd64/linux append priority=low console=ttyS0,115200n8 video=off initrd=/install/netboot/ubuntu-installer/amd64/initrd.gz --
SSD doesn’t work => use SD card as boot loader?
syslinux.cfg: label ssd com32 /isolinux/chain.c32 append hd0 boot error: /isolinux/chain.c32: not a COM32R image boot:
# D-I config version 2.0 CONSOLE 0 SERIAL 0 115200 0 default menu.c32 prompt 0 menu title UNetbootin timeout 100 label unetbootindefault kernel /install/netboot/ubuntu-installer/amd64/linux append console=ttyS0,115200n8 video=off \ initrd=/install/netboot/ubuntu-installer/amd64/initrd.gz \ tasks=standard pkgsel/language-pack-patterns= \ pkgsel/install-language-support=false --
# D-I config version 2.0 CONSOLE 0 SERIAL 0 115200 0 default menu.c32 prompt 0 menu title UNetbootin timeout 100 label unetbootindefault kernel /install/netboot/ubuntu-installer/amd64/linux append console=ttyS0,115200n8 video=off initrd=/install/netboot/ubuntu-installer/amd64/initrd.gz tasks=standard pkgsel/language-pack-patterns= pkgsel/install-language-support=false --
GRUB2 Serial Console
How to install Ubuntu using serial console
Grub2: Booting from a serial console
# Uncomment to disable graphical terminal (grub-pc only) GRUB_TERMINAL=console GRUB_SERIAL_COMMAND="serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1" update-grub2
Getty with systemd
systemd for Administrators Part XVI: Gettys on Serial Consoles (and Elsewhere)
How to get kernel messages on serial console on a systemd system?
How to invoke kernel with serial console?
To make use of a serial console, just use console=ttyS0 on the kernel command line, and systemd will automatically start a getty on it for you.