Skip to content
Project Ara Greybus system simulator
Branch: master
Clone or download
Pull request Compare This branch is 16 commits ahead of projectara:master.
Latest commit 9e61a9b Jul 1, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
systemd add gbsim systemd service Jun 23, 2019
test gbsim: Fix interface ID to 1 May 14, 2016
.gitignore add partial support for i2c clicks Jun 3, 2019
LICENSE LICENSE: fix copyright holder information Oct 8, 2014
Makefile.am remove fns not relevant to click board support Jun 3, 2019
README.md Update README.md Jul 1, 2019
arpc.h functionfs: add arpc handler Oct 19, 2016
autogen.sh gbsim: add interpreter explicitly to autogen.sh May 4, 2015
configure.ac Update configure.ac May 24, 2019
connection.c remove fns not relevant to click board support Jun 3, 2019
control.c interface: add support for interfaces and svc Nov 29, 2016
functionfs.c remove fns not relevant to click board support Jun 3, 2019
gadget.c update to libusbgx dependency : fix usbg_init_state() error Jun 3, 2019
gbsim.h add temporary support for spi(tested on spidev1.0 with oledc and oled… Jun 23, 2019
gbsim_usb.c usb: isolate usb related functions Nov 29, 2016
gbsim_usb.h usb: isolate usb related functions Nov 29, 2016
gpio.c fix gpio.c mistake Jun 30, 2019
greybus_manifest.h build: add header files dependencies Oct 19, 2016
greybus_protocols.h build: add header files dependencies Oct 19, 2016
i2c.c add partial support for i2c clicks Jun 3, 2019
inotify.c add partial support for i2c clicks Jun 3, 2019
installgbsim.sh fix error in install script Jun 30, 2019
interface.c interface: allow more than one interface Nov 29, 2016
main.c add temporary support for spi(tested on spidev1.0 with oledc and oled… Jun 23, 2019
manifest.c interface: allow more than one interface Nov 29, 2016
pwm.c fix install error(libsoc request) Apr 4, 2019
spi.c add temporary support for spi(tested on spidev1.0 with oledc and oled… Jun 23, 2019
startgbsim install dummy_hcd and startgbsim Jun 23, 2019
svc.c fix svc set power mode error Jun 3, 2019
uart.c protocols: handle cport shutdown request Nov 29, 2016

README.md

Greybus Simulator (gbsim)

A tool which simulates an AP Bridge, SVC, and an arbitrary set of Ara modules plugged into Greybus.

Provided under BSD license. See LICENSE for details.

Quick Start

The install script installs the required dependencies and sets up the Greybus Simulator as a startup service,the greybus driver is required for proper working of the simulator and is available on Linux beaglebone 4.14.108-ti-r106 kernel and later versions, if you have an older version, please update the kernel, the details of image used for testing are:

debian@beaglebone:~$ uname -a
Linux beaglebone 4.14.108-ti-r106 #1 SMP PREEMPT Fri May 24 22:12:34 UTC 2019 armv7l GNU/Linux
debian@beaglebone:~$ cat /etc/dogtag
BeagleBoard.org Debian Image 2018-10-07

To update the kernel :

cd /opt/scripts/tools/
git pull
sudo ./update_kernel.sh
sudo reboot

For building and installing Greybus Simulator and Required Dependencies run the following script:

sudo sh installgbsim.sh

The script fetches and installs the simulator and required dependencies, make sure that the Beaglebone is connected to the internet while running the script.

Run

Load up the Greybus Simulator and the required modules manually, just run:

sudo startgbsim

by default after installation via the install script ,the gbsim will be set up a startup service whose status can be verified using these commands

 systemctl status gbsim

Using the simulator

This version of the simulator is modified to Support MikroElektronika Click Boards and the support for Click Boards can be tested by downloading and setting up the manifesto tool and the insclick/rmclick utilities.Manifest blob files can be created using the Manifesto tool found at https://github.com/vaishnav98/manifesto. The click boards can be easily loaded/unloaded using the insclick/rmclick utilities

You can’t perform that action at this time.