Changes

What can I do with IGEP0020

5,889 bytes removed, 10:45, 13 April 2012
Redirected page to What can I do with IGEPv2
__TOC__{| width="200" cellspacing="0" cellpadding="4" border="1" align="right"|-| ====== IGEP0020 ====== *'''[[:Category#REDIRECT:IGEP0020|Main page]]''' *'''[[Getting Started with IGEP0020 board|Getting started]]''' *'''[[What can I do with IGEP0020|What can I do]]''' *'''[[Start developing under IGEP Technology|Start developing]]''' |}If you have '''successfully completed the [[Getting Started with IGEP0020 board|getting started guide]]''' for IGEP0020, you can follow this first introduction about what can you do with this board: = How to boot your IGEP0020 board<br> = 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 ([[How to boot from MicroSD Card|here]] is a complete tutorial about how to set it up)<br> *from OneNAND&nbsp;memory. <br>  The IGEP0020 board boot process is divided in '''2 booting phases''':<br>  #[[The IGEP X-loader|IGEP xloader]] boot process (It's not possible to interact with the board). #[[The Linux kernel|Linux Kernel]] starting process (It's possible to interact with the board using the console when the kernel has already started).<br> = How to set up and log in<br> = 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]], to prepare your serial adapter.  Now you are ready to login. You can do it via:  *'''Serial Console''': [[Using serial debug port to communicate|here]] is an explanation about how to correctly configure your Serial Console<br> *'''SSH''': [[Using SSH to communicate|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<br> = 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: <pre>echo 1 &gt; /sys/devices/platform/leds-gpio/leds/d240\:green/brightnessecho 1 &gt; /sys/devices/platform/leds-gpio/leds/d240\:red/brightnessecho 1 &gt; /sys/devices/platform/leds-gpio/leds/d440\:green/brightnessecho 1 &gt; /sys/devices/platform/leds-gpio/leds/d440\:red/brightness</pre> 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.<br>  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':<br> <pre>$ cat /sys/devices/platform/leds-gpio/leds/d240\:green/trigger [none] mmc0 mmc1 timer heartbeat default-on</pre> 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':<br> <pre>echo timer &gt; /sys/devices/platform/leds-gpio/leds/d240\:green/trigger</pre> 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:<br> <pre>echo 250 &gt; /sys/devices/platform/leds-gpio/leds/d240\:green/delay_onecho 750 &gt; /sys/devices/platform/leds-gpio/leds/d240\:green/delay_off</pre> 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_RS485_on_IGEP0020_board|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'&nbsp;: Signed 16 bit Little Endian, Rate 44100 Hz, Stereo Plug PCM: Hardware PCM card 0 'TWL4030' device 0 subdevice 0 Its setup is: stream &nbsp;: CAPTURE access &nbsp;: RW_INTERLEAVED format &nbsp;: S16_LE subformat &nbsp;: STD channels &nbsp;: 2 rate &nbsp;: 44100 exact rate &nbsp;: 44100 (44100/1) msbits &nbsp;: 16 buffer_size &nbsp;: 32768 period_size &nbsp;: 2048 period_time &nbsp;: 46439 tick_time &nbsp;: 7812 tstamp_mode &nbsp;: NONE period_step &nbsp;: 1 sleep_min &nbsp;: 0 avail_min &nbsp;: 2048 xfer_align &nbsp;: 2048 start_threshold &nbsp;: 1 stop_threshold &nbsp;: 32768 silence_threshold: 0 silence_size&nbsp;: 0 boundary &nbsp;: 1073741824 When ever you think you want to stop just press CONTRL+C   = Developing under IGEP Technology = Visit the following link and '''start [[Start developing under IGEP Technology|developing under IGEP Technology]]''' [[Category:IGEP0020]][[Category:TutorialsIGEPv2]]
0
edits