Difference between revisions of "What can I do with IGEP0020"
From IGEP - ISEE Wiki
Line 19: | Line 19: | ||
IGEP0020 board uses the serial debug for output all debug information and the users can interact with the board. | IGEP0020 board uses the serial debug for output all debug information and the users can interact with the board. | ||
− | The IGEP0020 Serial debug console can be accessed on [http://www.igep.es/index.php?option=com_content&view=article&id=99&Itemid=112&dir=%2Fvar%2Fwww%2Fvhosts%2Figep.es%2Fhttpdocs%2Fdownloads%2F01-ISEE_Products%2FIGEPv2%2FHW_User_Manuals&download_file=%2Fvar%2Fwww%2Fvhosts%2Figep.es%2Fhttpdocs%2Fdownloads%2F01-ISEE_Products%2FIGEPv2%2FHW_User_Manuals%2FMAN-PR-IGEP.0020-001.21.HW_Manual_RC_v1.21.pdf J960 connector] and you should use a [http://igep-platform.com/shop/index.php?main_page=product_info&cPath=1&products_id=8&zenid=701aa01925001b84ed070559d8ac0851 DBM9 to IDC-10 adapter] for connecting it to the host PC.<br> Read [[How to setup the IDC10 cable|how to setup IDC-10 adapter]]. | + | The IGEP0020 Serial debug console can be accessed on [http://www.igep.es/index.php?option=com_content&view=article&id=99&Itemid=112&dir=%2Fvar%2Fwww%2Fvhosts%2Figep.es%2Fhttpdocs%2Fdownloads%2F01-ISEE_Products%2FIGEPv2%2FHW_User_Manuals&download_file=%2Fvar%2Fwww%2Fvhosts%2Figep.es%2Fhttpdocs%2Fdownloads%2F01-ISEE_Products%2FIGEPv2%2FHW_User_Manuals%2FMAN-PR-IGEP.0020-001.21.HW_Manual_RC_v1.21.pdf J960 connector] and you should use a [http://igep-platform.com/shop/index.php?main_page=product_info&cPath=1&products_id=8&zenid=701aa01925001b84ed070559d8ac0851 DBM9 to IDC-10 adapter] for connecting it to the host PC.<br> Read [[How to setup the IDC10 cable|how to setup IDC-10 adapter]], to prepare your serial adapter. |
Now you are ready to login. You can do it via: | Now you are ready to login. You can do it via: |
Revision as of 09:50, 6 October 2011
If you have successfully completed the getting started guide for IGEP0020, you can follow this first introduction about what can you do with this board:
Contents
[hide]How to boot your IGEP0020 board
First of all, you may want to boot your board. IGEP0020 can boot from the next devices (listed by priority):
- from a MMC/microSD card (here is a complete tutorial about how to set it up)
- from OneNAND memory.
The IGEP0020 board boot process is divided in 2 booting phases:
- IGEP xloader boot process (It's not possible to interact with the board).
- Linux Kernel starting process (It's possible to interact with the board using the console when the kernel has already started).
How to set up and log in
IGEP0020 board uses the serial debug for output all debug information and the users can interact with the board.
The IGEP0020 Serial debug console can be accessed on J960 connector and you should use a DBM9 to IDC-10 adapter for connecting it to the host PC.
Read how to setup IDC-10 adapter, to prepare your serial adapter.
Now you are ready to login. You can do it via:
- Serial Console: here is an explanation about how to correctly configure your Serial Console
- SSH: here is an explanation about how to login via Ethernet or USB
The default login user is: root
There is no password for this user.
How to handle the gpio-LED's
This is probably the most simple feature in the board, but sometimes LED's may be the only way of checking the status of some of your applications.
IGEP0020 has 4 LED's which you can control, for example, using 'echo'. Here is an example of turning LED's On:
echo 1 > /sys/devices/platform/leds-gpio/leds/d240\:green/brightness echo 1 > /sys/devices/platform/leds-gpio/leds/d240\:red/brightness echo 1 > /sys/devices/platform/leds-gpio/leds/d440\:green/brightness echo 1 > /sys/devices/platform/leds-gpio/leds/d440\:red/brightness
You can turn them down using the same command and write '0' instead of '1'.
If you want to trigger the leds you can enable this mode and select the trigger source (none by default) to: mmc0, mmc1, timer, heartbeat and default-on.
To enable any of this modes you just have to change a parameter in the directory of the led you want to control. You can see all the possibilities using 'cat':
$ cat /sys/devices/platform/leds-gpio/leds/d240\:green/trigger [none] mmc0 mmc1 timer heartbeat default-on
In the example above, we have checked the status of the trigger in led D240:green. Mode 'none' is selected.
To change it, for example, to the timer mode you can use 'echo':
echo timer > /sys/devices/platform/leds-gpio/leds/d240\:green/trigger
In this case, we have set the trigger to the 'timer' mode. Now you can set the time for what the led is ON and the time it is OFF using:
echo 250 > /sys/devices/platform/leds-gpio/leds/d240\:green/delay_on echo 750 > /sys/devices/platform/leds-gpio/leds/d240\:green/delay_off
Now the selected led is configured with a timer consisting of 250 miliseconds ON and 750 miliseconds OFF.
How to use RS-485
Follow the link to the extensive article: How to use RS-485 on IGEP0020 board
How to get sound out (audio out)
The amplifiers for the headset output are disabled by default, so the first thing you'll do is enable these amplifiers with
amixer set -D hw:0 'Headset' 0dB amixer set -D hw:0 'HeadsetL Mixer AudioL2' on amixer set -D hw:0 'HeadsetR Mixer AudioR2' on
Then you can easily play a wav sound, for example
aplay sample.wav
How to get sound in (audio in)
You can record audio in with
arecord -t wav -c 2 -r 44100 -f S16_LE -v audio-in.wav
Following output is expected on console
Recording WAVE 'audio-in.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Plug PCM: Hardware PCM card 0 'TWL4030' device 0 subdevice 0 Its setup is: stream : CAPTURE access : RW_INTERLEAVED format : S16_LE subformat : STD channels : 2 rate : 44100 exact rate : 44100 (44100/1) msbits : 16 buffer_size : 32768 period_size : 2048 period_time : 46439 tick_time : 7812 tstamp_mode : NONE period_step : 1 sleep_min : 0 avail_min : 2048 xfer_align : 2048 start_threshold : 1 stop_threshold : 32768 silence_threshold: 0 silence_size : 0 boundary : 1073741824
When ever you think you want to stop just press CONTRL+C