Commit 0ba01abd authored by David Mondou's avatar David Mondou
Browse files

Added README.rst files.

Update board-flash.sh script to print usage message.
parent 18cc7a85
This repository holds the binaries and scripts files necessary to manufacture a Vesta Gateway using a Linux operating system.
The source files and instructions for this tool were original taken from this thread:
https://community.nxp.com/thread/441563
sudo apt-get install libusb-1.0-0-dev
sudo apt-get install libsgutils2-dev
The binaries for this tool were compiled on a machine running Ubuntu 14.04.
In order to use this tool you must have the required packages installed. Run the following commands to install these packages:
- :bash sudo apt-get install libusb-1.0-0-dev
- :bash sudo apt-get install libsgutils2-dev
In order to use this tool you will also need to populate the files folder with the appropriate u-boot, kernel, dtb and rootfs. These files can be created using the instructions here:
`Vesta-Board-Support-Package`_.
.. _Vesta-Board-Support-Package: https://git.rigado.com/vesta/board-support-package
or obtained from the public mfgtool builds hosted on Amazon S3 from the link below:
`mfgtool-builds`_.
.. _mfgtool-builds: https://s3-us-west-2.amazonaws.com/rigado-gateway-images/public/vesta/helium-2.0-production/mfgtool-builds-he-2.0.zip
For the Vesta 300 developer image, the files folder should contain the following files:
* u-boot-vesta-300.imx
* vesta-image-developer-vesta-300.tar.bz2
* zImage
* zImage-vesta-300.dtb
In order to put the Vesta Gateway in USB serial down loader mode, which allows updating over USB, you will need to hold down the user button while supplying power to the Gateway. Then start the tool by issuing the following command:
- :bash sudo ./board-flash board-type image-name
For example to manufacture a Vesta-300 Gateway with the developer image you would issue the following:
- :bash sudo ./board-flash 300 developer
\ No newline at end of file
#!/bin/bash
# p1.- imx_loader and utp_com path
# p2.- Flashing script with the UTP commands
#board-flash.sh
#Script modified from utp_com flash.sh to work with Vesta Gateways.
RED='\e[1;37;41m'
GREEN='\e[1;37;42m'
......@@ -16,9 +15,20 @@ UTP_COM_NAME=utp_com
IMX_USB_PATH=bin
UTP_COM_PATH=bin
#boardtype image
print_usage()
{
printf "Usage: %s: board_type image\n" $0
printf "Example:\n" $0
printf " %s 300 developer\n" $0
printf "\n"
printf "Valid board_types: 100 200 300\n"
printf "Valid images: developer minimal test\n"
exit 1
}
#Check for correct number of arguments
if [ $# -ne 2 ]; then
echo usage
print_usage
exit 1
else
BOARD_TYPE=$1
......@@ -27,19 +37,17 @@ fi
case $BOARD_TYPE in
100)
echo 100
MFG_DTB=vesta-100-mfg
;;
200)
echo 200
MFG_DTB=vesta-200-mfg
;;
300)
echo 300
MFG_DTB=vesta-300-mfg
;;
*)
echo error
printf "Invalid image: $BOARD_TYPE\n"
print_usage
esac
case $IMAGE in
......@@ -53,7 +61,8 @@ case $IMAGE in
IMAGE_FILE=vesta-image-test-vesta-${BOARD_TYPE}
;;
*)
echo Invalid image
printf "Invalid image: $IMAGE\n"
print_usage
esac
......
This folder contains the files to write to the target.
\ No newline at end of file
This folder holds the firmware loaded into memory using imx_usb_loader.
This folder contains board specific scripts to install u-boot, kernel, dtb and rootfs to the appropriate locations.
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment