[BTC-dev] Presenting... Build your own Pogotron.
Stanislav Datskovskiy
stas at loper-os.org
Sun Mar 29 02:36:25 UTC 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Read POGOTRON.TXT.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
iQEcBAEBCgAGBQJVF2SpAAoJELmCKKABq//HtK4IAMpTvNYWOL/+oCUZBQC+L7zm
9YcOzAtvVtN7BQiSdzDZ/hfWovFUcnbIyF4SNj6B++wFl2Fgxm/norMzHa+fC40G
6A+4lborMdJanmwR8dbuh5xGXyVn3rlsZPRHU7FX21rOI8Xs37fwW6yoJFqg/0fh
KVvolBCeY/Jjn/EgrGF3Ad+GoORN6+I5mTy3QsrPMeLgWjVH0NSGP46fqkhJ7Zt9
f6SwT9B7HQ+iHgVkXCu0zuJDRM7b/b12H3UoeECY5lRCgXNveDuSPnQGRtmVf0HZ
1WN+KS/sm6IxHyr238L0uzeu6l5OiUidfm4HcMGQ/OCzKidhudG3V8A/VmB5ySA=
=j3hs
-----END PGP SIGNATURE-----
-------------- next part --------------
-------------------------
asciilifeform's pogotron!
-------------------------
-- or, how to bake a reasonable linux for pogov4. --
First things first, the manifest:
SHA512
a10c2d205f30925540907b30276f8459582bc52b79113e87a7bd86491b9639d947e81bfae18ec528fa1f52c5b8f6561bcadf9ea2e67f90298e641bde033bf483 buildroot-asciilifeform-pogov4.patch
f9f2d0a7511e71b9fb9dde15de7004268930aded27278c29d0a8675d5089df7444e9177e4aaef32faa5debb793ec0ff2013abdf2ce038a2374394fbcfee97528 buildroot-asciilifeform-pogov4.patch.sig
Get these from http://buildroot.uclibc.org/download.html :
974451cc4d1a5721ef151d226e878b1383e04fcbf2ae89bf146c2859a16fe3854ecc812800e34cafa62bf1a7287ba18ac35a1dec467d1656c53c59031fa092e5 buildroot-2015.02.tar.gz
7cb26d2a8377268bf483dc1b7cbda4a2b647f64c28d5c593261380bfd9ba04e3336d52fa17bea518f0cf286688c993f073ae4d09c1a6dda9f5079c87c144050c buildroot-2015.02.tar.gz.sign
1) Check my pgp sig.
2) Check his pgp sig.
3) Put on a kettle of tea
4) tar xvfz buildroot-2015.02.tar.gz
5) copy buildroot-asciilifeform-pogov4.patch to buildroot-2015.02
6) cd buildroot-2015.02
7) patch -p1 < buildroot-asciilifeform-pogov4.patch
8) make pogoplug_defconfig
9) tea should be ready, pour a cup
10) make all
....
.... gcc, toolchain, etc. will LOAD FROM THE NET!
.... TODO: we need to freeze all of it in time. and sign.
11) continue drinking tea
12) YOUR KERNEL IS AT
buildroot-2015.02/output/images/uImage
If you have a tftp server set up (see http://therealbitcoin.org/ml/btc-dev/2015-February/000050.html)
you might want to point it at, e.g., /home/lamer/tftp/kernel and
ln -s /home/lamer/buildroot-2015.02/output/images/uImage /home/lamer/tftp/kernel
... then every time you rebuild, all you need to do is cycle power to the Pogo (you -did- configure the u-boot to tftp by default, aha?)
-- Quick Guide to the Patch --
Notice that when you applied it, you got:
-----------------------------------------------------------------------
patching file board/pogo/pogo/busybox.config
patching file board/pogo/pogo/fs-overlay/etc/dhcpcd.conf
patching file board/pogo/pogo/fs-overlay/etc/hostname
patching file board/pogo/pogo/fs-overlay/etc/hosts
patching file board/pogo/pogo/fs-overlay/etc/inittab
patching file board/pogo/pogo/fs-overlay/etc/network/interfaces
patching file board/pogo/pogo/linux.config
patching file configs/pogoplug_defconfig
-----------------------------------------------------------------------
Or else something went terribly wrong.
Let's go through these:
board/pogo/pogo/busybox.config
--- Determines what programs end up in the userland snapshot, as well as the overall behaviour (e.g., what arch, how to package, whether to make rootfs [1] and what kind)
board/pogo/pogo/fs-overlay/etc/dhcpcd.conf
--- If want to customize this
board/pogo/pogo/fs-overlay/etc/hostname
--- Same as above
board/pogo/pogo/fs-overlay/etc/hosts
--- Hostname
board/pogo/pogo/fs-overlay/etc/inittab
--- READ THIS ONE - anything that fires at boot-up will live here. Currently, a suicidal (pw-less root) telnetd.
board/pogo/pogo/fs-overlay/etc/network/interfaces
--- Configures ethernet and starts DHCP
board/pogo/pogo/linux.config
--- Our kernel config! Snipped as much crud as could think of
configs/pogoplug_defconfig
--- This is the config which 'brings them all and in the darkness binds them.'
///////////////////////
What's missing?
///////////////////////
Plenty of things.
bitcoind. (eventually we want this as a buildroot package! so no one has to fuck with crossdev tool building, etc.)
LED lamp.
GPIO toggle button (telnetd should only start if it is held, ideally)
Probably more.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: POGOTRON.TXT.sig
Type: application/octet-stream
Size: 490 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150328/POGOTRON_384f7fd68c614b6fb1dde32872dba4fc59f1b008.TXT.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buildroot-asciilifeform-pogov4.patch
Type: text/x-patch
Size: 118334 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150328/buildroot-asciilifeform-pogov4_0567b86c55934a8b5d1351b4ccba9306ee3406c3.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buildroot-asciilifeform-pogov4.patch.sig
Type: application/octet-stream
Size: 490 bytes
Desc: not available
URL: <http://therealbitcoin.org/ml/btc-dev/attachments/20150328/buildroot-asciilifeform-pogov4_b9c840d5302d764bb17da395d2d4ef8430f4a3ca.patch.sig>
More information about the BTC-dev
mailing list