OLIMEX SAM9-L9261 Скачать руководство пользователя страница 10

17

NC

18

GND

19

NC

20

GND

PLAYING MULTIMEDIA

The   default   installation   includes   a   command-line   multimedia   player.   To 
play   audio   or   video   start   the   media   player   giving   the   media   files   as 
command line arguments:

mplayer song1.ogg 
mplayer myvideo.avi

The   sound   volume   can   be   controlled   either   from   the   GUI   or   by   the 
command-line ALSA application:

alsamixer

Volume channels are selected by the left and right arrow keys, values can 
be changed with the up and down arrow keys, mute is controlled by the M 
key,   and   the   ESC   key   exits   the   application.   Note   that   certain   terminal 
emulation programs cannot cope with the 

alsamixer

 output. HyperTerminal 

is known not to work. PuTTY is known to work.

WARNING:

  By   default   MPlayer   uses   the   OSS   sound   interface.   But 

sometimes   the   OSS-emulation   layer   in   ALSA   does   not   work   properly, 
particularly in situations when the original sound stream must be down-
sampled. In these cases the sound will be distorted. MPlayer can be forced 
to use ALSA with the 

-ao alsa

 command line argument:

mplayer -ao alsa song1.ogg 

WARNING:

 If colors seem to be messed up then MPlayer is not using 24bpp 

color depth for the frame buffer. Fix that by forcing the video output driver 
to SDL:

export DISPLAY=:0.0

# in case we're on the ttyS0 console

mplayer -vo sdl myvideo.avi

USING THE SD/MMC SLOT

A few limitations arise when using the SD/MMC slot:

1. AT73C213 sound cannot work in Linux.
2. ADS7843 touchscreen cannot work in Linux.
3. Generic SPI cannot work in Linux.
4. Before and during booting the jumper AT/SD must be in position 

“AT”. After Linux kernel is loaded and running, this jumper must be 
placed at the “SD” position.

5. The SMD jumpers WP_E and CP_E must be soldiered.

6.

A specially configured version of the Linux kernel must be used. A 
precompiled   binary   can   be   found   in   the  

“sam9-l9261-samba-

sdmmc.zip” archive

. The configuration for this kernel can be loaded 

in the kernel source tree with the following command

make sam9_l9261_sdmmc_defconfig

CAVEAT:

  The   AT91SAM9261   MCI   controller   has   a   few   bugs   which   can 

prevent it from working properly with some SD/MMC cards. Please consult 
the chip errata for more information.

COMPILING USER APPLICATIONS FOR EMBEDDED LINUX

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Downloaded from

Arrow.com.

Содержание SAM9-L9261

Страница 1: ...SAM9 L9261 User Manual All boards produced by Olimex are ROHS compliant Rev C September 2009 Copyright c 2009 OLIMEX Ltd All rights reserved Downloaded from Arrow com ...

Страница 2: ... and drivers SD MMC Dataflash card connector see notes in the manual AT73C213 stereo DAC with Linux ALSA drivers Ten GPIOs accessible from Linux user space applications Four user buttons accessible from Linux user space applications One reset button Three status LEDs RTC supported by Linux and with a battery backup option On board voltage regulator 3 3V with up to 800mA current Single power supply...

Страница 3: ...SCHEMATIC Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com ...

Страница 4: ...ww codesourcery com A convenience tarball is provided that contains the Codesourcery binaries along with some useful shell scripts This tarball must be extracted in user s home directory Example cd HOME tar xjf codesourcery toolchain 2009q1 repack tar bz2 The latter will create a directory HOME bin codesourcery armgcc 2009q1 along with some shell scripts that must be sourced before compilation sou...

Страница 5: ...n into dataflash LINUX KERNEL The used kernel is a mainstream 2 6 30 slightly modified to include support for the SAM9 L9261 board As with the bootloaders the modifications were based on the source files for Atmel s AT91SAM9261EK board In order to compile the kernel its sources must be extracted first tar xjf linux 2 6 30 olimex tar bz2 Then setup the needed environment variables source HOME bin l...

Страница 6: ... root filesystem can be built using http www angstrom distribution org The other option is to use a ready made binary distribution like Debian or some pre compiled Angstrom image The root filesystem used in SAM9 L9261 is a slightly modified version of the official Atmel Linux demo binary Additional software can easily be installed by the command ipkg provided that the board is connected to Interne...

Страница 7: ...ncluding any data stored in the NAND partition TIP If restoration of the root filesystem in NAND is not required then its erasure can be spared Open sam9_l9261_demo_linux tcl and uncomment the last few lines concerning the writing of NAND Lines in TCL are commented if the first character on the line is The result should be like this lots of TCL code puts I Load the Kernel image send_file DataFlash...

Страница 8: ... gpio EXT pin Notes 1 3 3V 2 GND PA7 gpio39 8 PA8 gpio40 9 PB4 gpio68 10 PB30 gpio94 11 PC4 gpio100 13 Not available when SD MMC is enabled PC5 gpio101 14 PC6 gpio102 15 PC7 gpio103 16 Not available when SD MMC is enabled PC12 gpio108 17 PC13 gpio109 18 19 5V 20 GND In order to setup a pin direction user must write the string high low out or in to the file sys class gpio gpio extX direction in ord...

Страница 9: ...bove JTAG PORT The JTAG connector allows a debugger to talk via a JTAG Joint Test Action Group port directly to the core Instructions may be inserted and executed by the core thus allowing SAM9261 memory to be programmed with code and executed step by step by the host software For more details refer to IEEE Standard 1149 1 1990 Standard Test Access Port and Boundary Scan Architecture and SAM9261 d...

Страница 10: ...epth for the frame buffer Fix that by forcing the video output driver to SDL export DISPLAY 0 0 in case we re on the ttyS0 console mplayer vo sdl myvideo avi USING THE SD MMC SLOT A few limitations arise when using the SD MMC slot 1 AT73C213 sound cannot work in Linux 2 ADS7843 touchscreen cannot work in Linux 3 Generic SPI cannot work in Linux 4 Before and during booting the jumper AT SD must be ...

Страница 11: ...to nfs root Another option is to use DHCP U Boot setenv bootargs console ttyS0 115200 root dev nfs rw nfsroot 192 168 0 225 path to nfs root rsize 1024 wsize 1024 tcp ip dhcp TIP After creating a root filesystem using buildroot Angstrom or similar method it must be converted to a JFFS2 image for writing to the NAND flash Assuming that the target root directory is located in a directory sam9 rootfs...

Страница 12: ...ot setenv bootcmd tftpboot bootm U Boot setenv bootfile uImage U Boot boot The above example assumes you board gets IP 192 168 0 239 your TFTP server has IP 192 168 0 225 and the kernel image filename is uImage CAVEAT The mainstream tslib package has a bug that prevents touchscreen utilities from operating on a 24bit framebuffer This is fixed in the provided root filesystem images In case you re b...

Страница 13: ...forge net http www angstrom distribution org Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com ...

Страница 14: ...08 REV B updated kernel and U Boot June 2009 REV C add a few more tips Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com Downloaded from A...

Страница 15: ...provements All particulars of the product and its use contained in this document are given by OLIMEX in good faith However all warranties implied or expressed including but not limited to implied warranties of merchantability or fitness for purpose are excluded This document is intended only to assist the reader in the use of the product OLIMEX Ltd shall not be liable for any loss or damage arisin...

Отзывы: