Difference between revisions of "PB:Download a suitable Image"

From Klaus' wiki
Jump to: navigation, search
(Created page with "The PcoketBeagle (PB) does not come with a built-in flash memory, so in order to make it run a suitable image must be downloaded and burnt onto a SD-card. Jump over to [http:...")
(No difference)

Revision as of 15:26, 21 February 2018

The PcoketBeagle (PB) does not come with a built-in flash memory, so in order to make it run a suitable image must be downloaded and burnt onto a SD-card.

Jump over to BeagleBoard's download section and get one of the headless images. A headless image is a complete Linux operating system without any graphics support - and therefore also a fair bit smaller than the images with graphics support. At time of writing the "Debian 9.3 2018-01-28 4GB SD IoT" is the most current. It contains a 4.9.78 kernel - a fairly new kernel.

All work here is described using the Centos development host running as a virtual computer.

Once the image has downloaded to you development host find you 4++ GB SD card and a USB device that the card can be inserted into. The reason for using a USB MultiMediaCard (MMC) reader is that it can be very hard to route the built-in MMC card reader, that many laptops are fitted with, from the host operating system to the guest, i.e. the Centos.

Attach the USB card reader with the SD card inserted to your laptop.

In your virtual machine menu find something like this picture:

Screenshot 20180221 155309.png

Navigate to the point where you downloaded the image, typically in ~/Downloads

$] cd Downloads
$] ll
[ ✓ klaus@jdoe [Downloads] $  ll
total 6.1G
drwxr-xr-x.  2 klaus klaus 4.0K Feb 21 16:02 .
drwx------. 44 klaus klaus 4.0K Feb 21 11:14 ..
-rwxrwx---.  1 klaus klaus 3.4G Feb 20 14:56 bone-debian-9.3-iot-armhf-2018-01-28-4gb.img.xz

Next thing is to unpack the image as it comes hard compressed.

$] unxz bone-debian-9.3-iot-armhf-2018-01-28-4gb.img.xz

after a few minutes, depending on you computers speed you'll end up with a .img file around 3.4 GB.

The .img file contains a fulle disk layout with a boot partition and a root (/) partition with all the Linux utilities.

Transfering the image to the SD card is a matter of locating the correct device. Try

Invalid language.

You need to specify a language like this: <source lang="html4strict">...</source>

Supported languages for syntax highlighting:

4cs, 6502acme, 6502kickass, 6502tasm, 68000devpac, abap, actionscript, actionscript3, ada, algol68, apache, applescript, apt_sources, arm, asm, asp, asymptote, autoconf, autohotkey, autoit, avisynth, awk, bascomavr, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_loadrunner, c_mac, caddcl, cadlisp, cfdg, cfm, chaiscript, cil, clojure, cmake, cobol, coffeescript, cpp, cpp-qt, csharp, css, cuesheet, d, dcl, dcpu16, dcs, delphi, diff, div, dos, dot, e, ecmascript, eiffel, email, epc, erlang, euphoria, f1, falcon, fo, fortran, freebasic, freeswitch, fsharp, gambas, gdb, genero, genie, gettext, glsl, gml, gnuplot, go, groovy, gwbasic, haskell, haxe, hicest, hq9plus, html4strict, html5, icon, idl, ini, inno, intercal, io, j, java, java5, javascript, jquery, kixtart, klonec, klonecpp, latex, lb, ldif, lisp, llvm, locobasic, logtalk, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, magiksf, make, mapbasic, matlab, mirc, mmix, modula2, modula3, mpasm, mxml, mysql, nagios, netrexx, newlisp, nsis, oberon2, objc, objeck, ocaml, ocaml-brief, octave, oobas, oorexx, oracle11, oracle8, oxygene, oz, parasail, parigp, pascal, pcre, per, perl, perl6, pf, php, php-brief, pic16, pike, pixelbender, pli, plsql, postgresql, povray, powerbuilder, powershell, proftpd, progress, prolog, properties, providex, purebasic, pycon, pys60, python, q, qbasic, rails, rebol, reg, rexx, robots, rpmspec, rsplus, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, spark, sparql, sql, stonescript, systemverilog, tcl, teraterm, text, thinbasic, tsql, typoscript, unicon, upc, urbi, uscript, vala, vb, vbnet, vedit, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xbasic, xml, xorg_conf, xpp, yaml, z80, zxbasic

The -lart sorts the output in reverse order so the newest device will be presented in the bottom of the list. If you just inserted the USB-reader the newest device is typical '''sdb''' or '''sdc'''. 

'''NOTE: NEVER try to use the sda devices. It is your harddisk for the Centos operating system.'''

Now in order to transfer the image to the SD disk issue
<source lang=bash>
$] sudo dd if=./bone-debian-9.3-iot-armhf-2018-01-28-4gb.img of=/dev/sdb BS=1M

and wait. Wait even longer. It takes several minutes if not several ten minutes.