BeagleBone Black Debian Image

Download
http://debian.beagleboard.org/images/bone-debian-7.8-lxde-4gb-armhf-2015-03-01-4gb.img.xz
MD5: c848627722b7a5f7bc89791cc8949e3b
SHA1: 0d36db80b2ca95c1c44d2b5a05dd13864f963ae4
SHA256: 35961c45e843362f8a8ebce938d42500dffa060a5abd84d172ae9cbdfd28836c
SHA512: dfa4d8a0965125875280d6b423acf8704ab72d156f2b8182d00e3f24dbf57dda2055f72f69b75093dea57e4d0174884158f66f9179c2002be00542ff2dfcd66d

Entpacken

unxz -k -d bone-debian-7.8-lxde-4gb-armhf-2015-03-01-4gb.img.xz

MD5: 725d3fa63c0b1b0cc47b44f5c3f56238
SHA1: dedc4dc2e7fdb037fa78db862becbcf706f29ee0
SHA256: 4958c5efcf05b360e9efb5f054811f32918e6ac0bb1d23318b4adf3297aed838
SHA512: c9a810fc927761a4b9eb1504066047049851876ed1253883a5f4eea97beac406ed135fa073d1e55889a4587d006d4667e62138fe936d7a7642fec8b9761b3b4d

mit sd booten
und in /boot/uEnv.txt

##enable BBB: eMMC Flasher:
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

cmdline entkommentieren

BeagleBone Black flash eMMC

Image downloaden (Production Image 2013.09.04):
https://s3.amazonaws.com/angstrom/demo/beaglebone/BBB-eMMC-flasher-2013.09.04.img.xz
MD5: 6b551bf357339e98377dfb6f6fdba016
SHA1: 8bdc82af64e4bf79d602578ac408bab00cdbdead
SHA256: a38e67bd2129baadb45959b35f42d4f35a889fd5ce6fd81df8f2333566f53472
SHA512: ca65d3b3737abf1e73ccd6e5fa8403de6d4a5d7a6065ec0dbdf76c1ba8009959bd35d5f8527e6e1aa1b11f33ea140c66a7a92205745fcf59f9516a62b8bbac57

entpacken

unxz -k -d BBB-eMMC-flasher-2013.09.04.img.xz

MD5: b45fcc0da3d797f6dc0fed3dde19d311
SHA1: e704022c298c74224de6b7a3927e2207ece5bb0a
SHA256: 88dc3ef568dd92df5744e0da4d58c4618d9e7d9e3af9246cff049678a0ffebbd
SHA512: a75f00a2a002b637afb361995851b117e738a69820186767b9a7b56ade505a592c72f2565d307c5e185dc0441cc30e5d0503241b6b68494b1c48a888fe69807f

auf sd karte schreiben

dd bs=1M if=BBB-eMMC-flasher-2013.09.04.img of=/dev/sdX

Beaglebone bei gedrückter User/Boot Taste starten.

Beobachtbar mit 3,3V TTL am Debug Serial Header (J1 GND J4 RX J5 TX)

screen -L /dev/ttyUSB0 115200

Minix3 on Beaglebone Black
Download
http://www.minix3.org/download/minix_arm_sd_beaglebones-3.3.0.img.bz2
MD5: 2ad42ac8c0c17563ba43d60e5a2aec14
SHA1: d405bef73aa1f81aeb1be8b4c2cd944bb2ce44a1
SHA256: 627ec64d768870474891551745bd608d890c85f655d295e4e4ade434f260ca00
SHA512: 134811a355a4c3a869aeb15139aa41a8fa001d81eba514c6f8d3f6fca052ea4eaf2d418e9eccf4a72f3ea96bbd0346eab9556c79c685ecaa4042eebb8ca3680b

Entpacken

bzip2 -k -d minix_arm_sd_bbxm-3.3.0.img.bz2

MD5: 192e9d6080fecf5cb40aa25cce03ad03
SHA1: ed7c8f9be9128b71ba8ef7b03eecfe1a74c6e74b
SHA256: bf99d3498d32039b72bd006864171e1281fa22eaf987a67596054658a3151670
SHA512: 5524e4e1eaa68a8e7bfa0808f4cd825a926739f66ad37db9f29436c6779ea84c726a17dce84b14444d0222ce01ebe0111cce772f892e7a3527c9b21e7e6b387f

auf sd karte schreiben

dd bs=1M if=minix_arm_sd_bbxm-3.3.0.img of=/dev/sdX

und sd booten

verify Linux Kernel download with GPG

get the kernel and the gpg signature

wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.15.3.tar.xz
wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.15.3.tar.sign

download the public key from the PGP keyserver in order to verify the signature

gpg --recv-keys 6092693E

verify you got the right key

gpg --fingerprint 6092693E

pub 4096R/6092693E 2011-09-23
Schl.-Fingerabdruck = 647F 2865 4894 E3BD 4571 99BE 38DB BDC8 6092 693E
uid Greg Kroah-Hartman (Linux kernel stable release signing key)
sub 4096R/76D54749 2011-09-23

Now verify the archive against the signature

unxz -k -d linux-3.15.3.tar.xz
gpg --verify linux-3.15.3.tar.sign

gpg: Unterschrift vom Di 01 Jul 2014 05:14:27 CEST mittels RSA-Schlüssel ID 6092693E
gpg: Korrekte Unterschrift von "Greg Kroah-Hartman (Linux kernel stable release signing key) "
gpg: WARNUNG: Dieser Schlüssel trägt keine vertrauenswürdige Signatur!
gpg: Es gibt keinen Hinweis, daß die Signatur wirklich dem vorgeblichen Besitzer gehört.
Haupt-Fingerabdruck = 647F 2865 4894 E3BD 4571 99BE 38DB BDC8 6092 693E

remove blank lines from text file

sed '/^$/d' /path/to/input/file.txt > output.txt
grep -v '^$' /path/to/input/file.txt > output.txt
#!/bin/bash
files="/path/to/input/files/*.txt"
for i in $files
do
  sed '/^$/d' $i > $i.out
  mv  $i.out $i
done
#!/bin/bash
files="/path/to/input/files/*.txt"
for i in $files
do
  sed '/^ *$/d' $i > $i.out
  mv $i.out $i
done