Go to file
Sanchayan Maity 61f762be3b Add presentation used for workshop 2017-05-18 12:45:13 +05:30
alsa-audio Update Eclipse settings 2017-05-08 15:57:11 +05:30
cairo Update Eclipse settings 2017-05-08 15:57:11 +05:30
docs Add presentation used for workshop 2017-05-18 12:45:13 +05:30
gpio_interrupt Update Eclipse settings 2017-05-08 15:57:11 +05:30
gtk Update Eclipse settings 2017-05-08 15:57:11 +05:30
gtkmm Update Eclipse settings 2017-05-08 15:57:11 +05:30
images Commit Aster Pioneer image to use for docs 2017-04-28 11:35:08 +05:30
pcf8574 Minor documentation/code update 2017-05-10 13:25:32 +05:30
pcf8591 Update Eclipse settings 2017-05-08 15:57:11 +05:30
pwm Update PWM code to demo rotation 2017-05-09 13:02:34 +05:30
spidev Update Eclipse settings 2017-05-08 15:57:11 +05:30
ssd1306 Update Eclipse settings 2017-05-08 15:57:11 +05:30
LICENSE.txt Add LICENSE file 2017-04-12 14:40:25 +05:30
README.md Minor documentation/code update 2017-05-10 13:25:32 +05:30

README.md

Setup

Aster Carrier Board

Colibri VF61

Pioneer600

Cloning this repository
git clone https://github.com/SanchayanMaity/LinuxWorkshop.git
Building and installing SDK

Build and install the OE-Core aka Yocto SDK, for instructions related to building and installing SDK, have a look at this knowledge base article.

The Linux image for Vybrid module being used for the workshop can be downloaded here and flashed to the module as per Flashing Embedded Linux to Vybrid Modules if required. To facilitate development, a sample SDK can be downloaded from this link. Install the SDK by executing the following from the command line

chmod a+x angstrom-glibc-x86_64-armv7at2hf-neon-v2016.12-toolchain.sh
./angstrom-glibc-x86_64-armv7at2hf-neon-v2016.12-toolchain.sh

Please use the standard default /usr/local/oecore-x86_64 path for SDK installation. The Eclipse projects included in this repository assume that this path has been used for SDK installation. Any generated SDK and image used on the module must include "libsoc" library for the code samples to work. Additionally gtkmm code has dependency on gtkmm library.

Sourcing Environment Script and starting Eclipse
. /usr/local/oecore-x86_64/environment-setup-armv7at2hf-neon-angstrom-linux-gnueabi

Note the space between the dot and rest of the command. Now start Eclipse from the same terminal from where the above script was sourced.

eclipse &

Import the projects in Eclipse and build the project. Transfer the binary executable which will be available in Debug directory to the module using scp as follows, for example

scp <binary> root@<module_ip_address>:/home/root
Sample Output
gpio interrupt
root@colibri-vf:~# ./gpio_interrupt 
Enter the GPIO number to use as interrupt:      10
Enter the GPIO number used for LED output:      11
Waiting for interrupt. Press 'q' and 'Enter' at any time to exit
pcf8574
root@colibri-vf:~# ./pcf8574

Enter choice: 1. Joy stick status 2. Led2 On/Off 3. Buzzer On/Off 4. Exit
1
Key A pressed

Enter choice: 1. Joy stick status 2. Led2 On/Off 3. Buzzer On/Off 4. Exit
2

Enter choice: 1. Joy stick status 2. Led2 On/Off 3. Buzzer On/Off 4. Exit
2

Enter choice: 1. Joy stick status 2. Led2 On/Off 3. Buzzer On/Off 4. Exit
3

Enter choice: 1. Joy stick status 2. Led2 On/Off 3. Buzzer On/Off 4. Exit
3

Enter choice: 1. Joy stick status 2. Led2 On/Off 3. Buzzer On/Off 4. Exit
4
pcf8591
root@colibri-vf:~# ./pcf8591 
PCF8591 ADC and DAC test code

1. ADC 2. DAC 3. Exit
2
Enter DAC value:        78

1. ADC 2. DAC 3. Exit
1

Enter ADC channel number 0-3:   3

ADC Channel 3: value: 128

1. ADC 2. DAC 3. Exit
1

Enter ADC channel number 0-3:   3

ADC Channel 3: value: 78

1. ADC 2. DAC 3. Exit
1

Enter ADC channel number 0-3:   3

ADC Channel 3: value: 78

1. ADC 2. DAC 3. Exit
3
pwm
root@colibri-vf:~# ./pwm 
Enter PWM chip number:  0
Enter PWM number:       0
Enter PWM Period:       1000000
Enter PWM Duty Cycle:   500000
PWM will be running for 10 seconds
Disabling PWM