Difference between revisions of "Globalscale ESPRESSObin v5"

Jump to navigation Jump to search
Line 15: Line 15:
 
== Build The Image ==
 
== Build The Image ==
  
First, you will need to grab the [https://github.com/massmesh/meta-imagebuilder meta-imagebuilder] repository. This repository has a script in it that builds pre-configured OpenWRT images.
+
Use profile <code>meshnode</code> and device <code>espressobin</code> and see [[Building the Firmware]] for instructions on using the ImageBuilder.
 
 
<pre>git clone https://github.com/massmesh/meta-imagebuilder</pre>
 
 
 
Next, build the image using the `build` script.
 
 
 
<pre>cd meta-imagebuilder
 
./build massmesh meshnode espressobin</pre>
 
 
 
You now should see `.img.gz` files when you run
 
 
 
<pre>ls ./communities/massmesh/meshnode/bin/espressobin/</pre>
 
  
 
== Flash The Image to µSD ==
 
== Flash The Image to µSD ==

Revision as of 23:19, 3 July 2019

ESPRESSObin v5

The ESPRESSObin v5 is a small single board computer similar to a raspberry pi. It has 3 ethernet ports, a USB 3.0 port, as well as an internal mPCIe slot.

Files

MassMesh MeshNode Firmware (Latest)

OpenWrt Stable 18.06.2 Image

OpenWrt Snapshot Image

Yggdrasil 0.5.3 Package

Build The Image

Use profile meshnode and device espressobin and see Building the Firmware for instructions on using the ImageBuilder.

Flash The Image to µSD

You can locate your micro-sd card by running the following commands:

sudo su
fdisk -l

Take not of the output. It should contain something like /dev/mmcblk0. That's your memory card.

The build you ran in the last seciton created a compressed image file for you. The following command unzips the file, and pipes it into the µSD. Replace the things in bold as necessary before running the command.

zcat ./communities/massmesh/meshnode/bin/espressobin/openwrt-massmesh-meshnode-mvebu-cortexa53-globalscale_espressobin-squashfs-sdcard.img.gz | sudo dd of=/dev/mmcblk0

Modify U-Boot Variables

Before the ESPRESSObin will boot our Open WRT image from an SD card, we will need to modify just a few U-Boot variables. More information about this can be found in this commit message and these docs.

In order to connect to your modify ESPRESSObin's U-Boot variables, you'll need to establish a serial connection.

Once you've established a serial connection, change the bootcmd variable using the following command:

setenv bootcmd 'mmc dev 0; ext4load mmc 0:1 $kernel_addr $image_name;ext4load mmc 0:1 $fdt_addr $fdt_name;setenv bootargs $console root=/dev/mmcblk0p1 rw rootwait; booti $kernel_addr - $fdt_addr'

Now, save your changes.

saveenv

Flashing

  1. Write openwrt-18.06.2-mvebu-cortexa53-globalscale-espressobin-squashfs-sdcard.img.gz to a microsd card using the following command:
  2. zcat ~/Downloads/openwrt-18.06.2-mvebu-cortexa53-globalscale-espressobin-squashfs-sdcard.img.gz | sudo dd of=/dev/mmcblk0
  3. Run sync before removing the sd card
  4. Insert the sd card into the ESPRESSObin and power it on