BigW Consortium Gitlab

Commit f73dd02f by David Clark

Merge branch 'master' of ssh://github.com/mangOH/mangOH

parents c2eb59f2 8f2c5973
...@@ -12,7 +12,13 @@ Base project containing apps and drivers for the mangOH hardware ...@@ -12,7 +12,13 @@ Base project containing apps and drivers for the mangOH hardware
1. `ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- make scripts` 1. `ARCH=arm CROSS_COMPILE=arm-poky-linux-gnueabi- make scripts`
1. `sudo chown -R root .` 1. `sudo chown -R root .`
1. Get the Legato source code as described by the [Legato README](https://github.com/legatoproject/legato-af/blob/master/README.md) 1. Get the Legato source code as described by the [Legato README](https://github.com/legatoproject/legato-af/blob/master/README.md)
1. Clone the mangOH source code by running `git clone --recursive git://github.com/mangOH/mangOH` 1. `cd` to the legato folder and run `make wp85`
1. `cd` into the Legato working folder and run the following command to build a system for the mangOH Red: `make wp85 SDEF_TO_USE=$MANGOH_ROOT/mangOH_Red.sdef MKSYS_FLAGS="-s $MANGOH_ROOT/apps/GpioExpander/gpioExpanderService -s $MANGOH_ROOT/apps/RedSensorToCloud"` 1. Run `source bin/configlegatoenv` to setup the environment variables
1. Run `source ./bin/configlegatoenv` to put the Legato tools into `$PATH` 1. `cd` to the home directory and clone the mangOH source code by running `git clone --recursive git://github.com/mangOH/mangOH`
1. Run `instlegato wp85 192.168.2.2` to install the system onto the mangOH connected via a USB cable to the CF3 USB port. 1. `cd` into the mangOH folder and run `make red_wp85` or `make green_wp85` depending on which board is being targeted.
1. Run `instsys mangOH_Red.wp85.update 192.168.2.2` to install the system onto the mangOH connected via a USB cable to the CF3 USB port. Change to `instsys mangOH_Green.wp85.update 192.168.2.2` for mangOH Green.
## SPI
To make use of the SPI bus from userspace, there is a SpiService in Legato. To enable use of this
service, the `spidev` module must be installed by running `modprobe spidev` and then `app start
spiService`.
...@@ -45,4 +45,8 @@ kernelModules: ...@@ -45,4 +45,8 @@ kernelModules:
$MANGOH_ROOT/linux_kernel_modules/lsm6ds3/0-lsm6ds3 $MANGOH_ROOT/linux_kernel_modules/lsm6ds3/0-lsm6ds3
$MANGOH_ROOT/linux_kernel_modules/lsm6ds3/1-lsm6ds3-i2c $MANGOH_ROOT/linux_kernel_modules/lsm6ds3/1-lsm6ds3-i2c
// spisvc creates a spidev device which will appear as /dev/spidev0.0 once the spidev module is
// loaded.
$LEGATO_ROOT/drivers/spisvc/spisvc
} }
...@@ -68,4 +68,8 @@ kernelModules: ...@@ -68,4 +68,8 @@ kernelModules:
// Re-enabled once cp2130 is added again // Re-enabled once cp2130 is added again
//$MANGOH_ROOT/linux_kernel_modules/mt7697q/1-mt7697q //$MANGOH_ROOT/linux_kernel_modules/mt7697q/1-mt7697q
//$MANGOH_ROOT/linux_kernel_modules/mt7697wifi/2-mt7697wifi_core //$MANGOH_ROOT/linux_kernel_modules/mt7697wifi/2-mt7697wifi_core
// spisvc creates a spidev device which will appear as /dev/spidev0.0 once the spidev module is
// loaded.
$LEGATO_ROOT/drivers/spisvc/spisvc
} }
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