{"id":4226,"date":"2015-11-10T13:28:52","date_gmt":"2015-11-10T13:28:52","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=4226"},"modified":"2016-02-12T14:51:15","modified_gmt":"2016-02-12T14:51:15","slug":"apu2b4-and-ubuntu-server-15-10","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=4226","title":{"rendered":"APU2B4 and Ubuntu Server 15.10"},"content":{"rendered":"<p><a href=\"https:\/\/help.ubuntu.com\/community\/BootFromSD\">Boot From SD<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nDisk \/dev\/sdc: 3.7 GiB, 3980394496 bytes, 7774208 sectors\r\nUnits: sectors of 1 * 512 = 512 bytes\r\nSector size (logical\/physical): 512 bytes \/ 512 bytes\r\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\r\nDisklabel type: dos\r\nDisk identifier: 0x672847fd\r\n\r\nDevice    Boot     Start       End Blocks  Id System\r\n\/dev\/sdc1 *            0   1294335 647168   0 Empty\r\n\/dev\/sdc2         261440    265983   2272  ef EFI (FAT-12\/16\/32)\r\n\r\nCommand (m for help): q\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ file -sL \/dev\/sdc1\r\n\/dev\/sdc1: # ISO 9660 CD-ROM filesystem data 'Ubuntu-Server 15.10 amd64' (bootable)\r\n\r\n$ mount \/dev\/sdc1 \/mnt\r\nmount: \/dev\/sdc1 is write-protected, mounting read-only\r\n\r\n==&gt; use unetbootin\r\n<\/pre>\n<p><a href=\"http:\/\/superuser.com\/questions\/676352\/how-to-repair-an-sd-card-which-shows-incorrect-size\">How to repair an SD card which shows incorrect size?<\/a><br \/>\n<a href=\"http:\/\/unix.stackexchange.com\/questions\/68762\/sd-card-interpreted-as-wrong-size\">SD Card interpreted as wrong size<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# cat \/proc\/partitions\r\n# cfdisk \/dev\/sdc =&gt; Type 0b (W95 FAT32)\r\n# mkfs -t vfat \/dev\/sdc1\r\n<\/pre>\n<pre class=\"brush: plain; title: dd; notranslate\" title=\"dd\">\r\nSeaBIOS (version rel-1.8.0-181-g0af5958)\r\nXHCI init on dev 00:10.0: regs @ 0xfeb22000, 4 ports, 32 slots, 32 byte contexts\r\nXHCI    extcap 0x1 @ feb22500\r\nXHCI    protocol USB  3.00, 2 ports (offset 1), def 0\r\nXHCI    protocol USB  2.00, 2 ports (offset 3), def 10\r\nXHCI    extcap 0xa @ feb22540\r\nFound 2 serial ports\r\nSearching bootorder for: \/pci@i0cf8\/*@14,7\r\nEHCI init on dev 00:13.0 (regs=0xfeb25420)\r\nSearching bootorder for: \/rom@img\/memtest\r\nSearching bootorder for: \/rom@img\/setup\r\nFound sdcard at 0xfeb25500: SD card SD04G 3796MiB\r\nXHCI no devices found\r\nInitialized USB HUB (0 ports used)\r\nAll threads complete.\r\nScan for option roms\r\nPCengines Press F10 key now for boot menu:\r\nSelect boot device:\r\n\r\n1. SD card SD04G 3796MiB\r\n2. Payload &#x5B;memtest]\r\n3. Payload &#x5B;setup]\r\n\r\nSearching bootorder for: HALT\r\ndrive 0x000f5850: PCHS=0\/0\/0 translation=lba LCHS=964\/128\/63 s=7774208\r\nSpace available for UMB: c1000-ef000, f0000-f5850\r\nReturned 262144 bytes of ZoneHigh\r\ne820 map has 7 items:\r\n  0: 0000000000000000 - 000000000009f800 = 1 RAM\r\n  1: 000000000009f800 - 00000000000a0000 = 2 RESERVED\r\n  2: 00000000000f0000 - 0000000000100000 = 2 RESERVED\r\n  3: 0000000000100000 - 00000000dffae000 = 1 RAM\r\n  4: 00000000dffae000 - 00000000e0000000 = 2 RESERVED\r\n  5: 00000000f8000000 - 00000000fc000000 = 2 RESERVED\r\n  6: 0000000100000000 - 000000011f000000 = 1 RAM\r\nenter handle_19:\r\n  NULL\r\nBooting from Hard Disk...\r\nBooting from 0000:7c00\r\n\r\nISOLINUX 6.03 20150813 EHDD Copyright (C) 1994-2014 H. Peter Anvin et al\r\nLoading bootlogo...\r\n\r\nInitializing gfx code...\r\ngraphics initialization failed\r\nError setting up gfxboot\r\nboot:\r\n<\/pre>\n<pre class=\"brush: plain; title: unetbootin: use wrong syslinux.cfg with vga=xxx; notranslate\" title=\"unetbootin: use wrong syslinux.cfg with vga=xxx\">\r\nUndefined video mode number: 314\r\nPress &lt;ENTER&gt; to see video modes available, &lt;SPACE&gt; to continue, or wait 30 sec\r\nMode: Resolution:  Type:\r\n0 F00   80x25      CGA\/MDA\/HGC\r\nEnter a video mode or &quot;scan&quot; to scan for additional modes:\r\n<\/pre>\n<h3>Old => wrong syslinux.cfg<\/h3>\n<p><a href=\"http:\/\/weidner.in-bad-schmiedeberg.de\/computer\/hardware\/pcengines-apu\/ubuntu-14.04-auf-pc-engines-apu\/\">Installation von Ubuntu 14.04 auf PC Engines APU<\/a><br \/>\n<a href=\"http:\/\/pcengines.info\/forums\/?page=post&#038;id=E25612E9-84F0-4DCF-A876-1E92FD1D065C&#038;fid=1A77794F-FF7D-44CA-AF64-CAA2588102ED\">APU + Ubuntu 14.04 LTS &#8211; install via serial console<\/a><\/p>\n<h3>Better syslinux.cfg<\/h3>\n<p><a href=\"https:\/\/lists.debian.org\/debian-boot\/2012\/08\/msg00815.html\">Re: Install Debian Squeeze on Alix 2d2 over Serial Console<\/a><\/p>\n<pre class=\"brush: plain; title: old; notranslate\" title=\"old\">\r\nlabel ubnentry1\r\nmenu label ^Install\r\nkernel \/install\/netboot\/ubuntu-installer\/amd64\/linux\r\nappend initrd=\/install\/netboot\/ubuntu-installer\/amd64\/initrd.gz vga=788  --- quiet\r\n<\/pre>\n<pre class=\"brush: plain; title: new; notranslate\" title=\"new\">\r\nlabel ubnentry1\r\nmenu label ^Serial Install\r\nkernel \/install\/netboot\/ubuntu-installer\/amd64\/linux\r\nappend priority=low console=ttyS0,115200n8 video=off initrd=\/install\/netboot\/ubuntu-installer\/amd64\/initrd.gz --\r\n<\/pre>\n<h3>SSD doesn&#8217;t work => use SD card as boot loader?<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nsyslinux.cfg:\r\nlabel ssd\r\ncom32 \/isolinux\/chain.c32\r\nappend hd0\r\n\r\nboot error:\r\n\/isolinux\/chain.c32: not a COM32R image\r\nboot:\r\n<\/pre>\n<pre class=\"brush: plain; title: syslinux.cfg; notranslate\" title=\"syslinux.cfg\">\r\n# D-I config version 2.0\r\nCONSOLE 0\r\nSERIAL 0 115200 0\r\n\r\ndefault menu.c32\r\nprompt 0\r\nmenu title UNetbootin\r\ntimeout 100\r\n\r\nlabel unetbootindefault\r\nkernel \/install\/netboot\/ubuntu-installer\/amd64\/linux\r\nappend console=ttyS0,115200n8 video=off \\\r\ninitrd=\/install\/netboot\/ubuntu-installer\/amd64\/initrd.gz \\\r\ntasks=standard pkgsel\/language-pack-patterns= \\\r\npkgsel\/install-language-support=false --\r\n<\/pre>\n<pre class=\"brush: plain; title: syslinux.cfg; notranslate\" title=\"syslinux.cfg\">\r\n# D-I config version 2.0\r\nCONSOLE 0\r\nSERIAL 0 115200 0\r\n\r\ndefault menu.c32\r\nprompt 0\r\nmenu title UNetbootin\r\ntimeout 100\r\n\r\nlabel unetbootindefault\r\nkernel \/install\/netboot\/ubuntu-installer\/amd64\/linux\r\nappend console=ttyS0,115200n8 video=off initrd=\/install\/netboot\/ubuntu-installer\/amd64\/initrd.gz tasks=standard pkgsel\/language-pack-patterns= pkgsel\/install-language-support=false --\r\n<\/pre>\n<h3>GRUB2 Serial Console<\/h3>\n<p><a href=\"https:\/\/github.com\/ynkjm\/ubuntu-serial-install\">How to install Ubuntu using serial console<\/a><br \/>\n<a href=\"https:\/\/help.ubuntu.com\/community\/Grub2#Booting_from_a_serial_console\">Grub2: Booting from a serial console<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n# Uncomment to disable graphical terminal (grub-pc only)\r\nGRUB_TERMINAL=console\r\nGRUB_SERIAL_COMMAND=&quot;serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1&quot;\r\n\r\nupdate-grub2\r\n<\/pre>\n<h3>Getty with systemd<\/h3>\n<p><a href=\"http:\/\/0pointer.de\/blog\/projects\/serial-console.html\">systemd for Administrators Part XVI: Gettys on Serial Consoles (and Elsewhere)<\/a><br \/>\n<a href=\"http:\/\/unix.stackexchange.com\/questions\/211407\/how-to-get-kernel-messages-on-serial-console-on-a-systemd-system\">How to get kernel messages on serial console on a systemd system?<\/a><br \/>\n<a href=\"http:\/\/askubuntu.com\/questions\/99469\/how-to-invoke-kernel-with-serial-console\">How to invoke kernel with serial console?<\/a><\/p>\n<blockquote><p>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.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Boot From SD 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-4226","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/4226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4226"}],"version-history":[{"count":15,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/4226\/revisions"}],"predecessor-version":[{"id":4689,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/4226\/revisions\/4689"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}