Difference between revisions of "Globalscale ESPRESSObin v5"
m |
|||
Line 26: | Line 26: | ||
<pre>ls ./communities/massmesh/meshnode/bin/espressobin/</pre> | <pre>ls ./communities/massmesh/meshnode/bin/espressobin/</pre> | ||
− | == Modify | + | == 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 [https://en.wikipedia.org/wiki/Das_U-Boot U-Boot] variables. More information about this can be found in [https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=584d7c53bd2d286a71fe5e8244624f59c529cb26 this commit message] and [https://github.com/MarvellEmbeddedProcessors/openwrt-dd/wiki/ESPRESSObin#booting-the-image these docs.] | ||
+ | |||
+ | In order to connect to your modify EspressoBin's U-Boot variables, you'll need to [http://wiki.espressobin.net/tiki-index.php?page=Serial+connection+-+Linux establish a serial connection.] | ||
+ | |||
+ | Once you've established a serial connection, change the <code>bootcmd</code> variable using the following command: | ||
+ | |||
+ | <pre>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'</pre> | ||
+ | |||
+ | Now, save your changes. | ||
+ | |||
+ | <pre>saveenv</pre> | ||
== Flashing == | == Flashing == |
Revision as of 10:26, 14 June 2019
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
Build The Image
First, you will need to grab the [meta-imagebuilder](https://github.com/massmesh/meta-imagebuilder) repository. This repository has a script in it that builds pre-configured OpenWRT images.
git clone https://github.com/massmesh/meta-imagebuilder
Next, build the image using the `build` script.
cd meta-imagebuilder ./build massmesh meshnode espressobin
You now should see `.img.gz` files when you run
ls ./communities/massmesh/meshnode/bin/espressobin/
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
- Write
openwrt-18.06.2-mvebu-cortexa53-globalscale-espressobin-squashfs-sdcard.img.gz
to a microsd card using the following command: - Run
sync
before removing the sd card - Insert the sd card into the ESPRESSObin and power it on
zcat ~/Downloads/openwrt-18.06.2-mvebu-cortexa53-globalscale-espressobin-squashfs-sdcard.img.gz | sudo dd of=/dev/mmcblk0