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

The subdirectory 

linuxapp-testprj

 has two simple projects that show how to 

cross-compile user applications for Linux. The fbtest.tgz archive contains 
an example that draws the frame buffer from user space. The evtest.tgz 
archive contains an example how to access the board buttons. Example 
usage of evtest:

$ evtest /dev/input/event0

TIPS AND TRICKS

TIP:

 The original Angstrom root filesystem distribution does not enable the 

ETHERNET   connection   by   default.   To   change   that   open 
/etc/network/interfaces :

vi /etc/network/interfaces

and add the following line:

auto eth0

TIP:

 It is possible to use an NFS root filesystem. When U-Boot boots press 

SPACE or ENTER to enter the U-Boot shell:

Hit any key to stop autoboot:  0
U-Boot> 

Then   set   the   kernel   boot   arguments   and   point   to   your   NFS   exported 
directory:

U-Boot>   setenv   bootargs   console=ttyS0,115200   root=/dev/nfs   rw 

nfsroot=192.168.0.225:/path/to/nfs-root/ 
ip=192.168.0.239:192.168.0.225::255.255.255.0:emblin::none

And finally boot the kernel:

U-Boot> boot

In the previous example the NFS server has IP address 192.168.0.225, and 
the   SAM9-L9261   client   is   assigned   IP   address   192.168.0.239   and   host 
name "emblin". The NFS export path is "/path/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, the JFFS2 image can be created by issuing:

mkfs.jffs2 --root="sam9-rootfs" -e128KiB -n -p -o"angstrom-x11-image-

demo-glibc-at91.rootfs.jffs2"

The   archive  

angstrom-atmel-demo-olimex-rootfs.tgz

  contains   the   root 

directory structure that can be used as a starting point.

TIP:

  By   default   the   board   is   configured   to   enable   eth0   using   DHCP   for 

automatic   IP   configuration.   This   can   be   changed   by   editing   the   file 
/etc/network/interfaces.

TIP:

  By default the embedded Linux installation starts a SSH server. In 

order to use it, however, the root password must be set. Type as root in 
board terminal:

passwd

and type the new root password. Password must be non-empty (it must 
contain at least one character).

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.

Содержание 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...

Отзывы: