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

directory,     contains   a   series   of   patches   that   can   be   applied   to   the 
mainstream 2.6.30 distribution to get 

linux-2.6.30-olimex.tar.bz2.

Compiling and installing the kernel modules require some additional steps. 
First you need to ensure that the target root filesystem is accessible from 
the   build   machine.   Remember   to   use   "root"   user   for   all 
extraction/manipulation procedures! Then enter the Linux source directory 
(where you typed "make uImage") and type

make modules
make

 

INSTALL_MOD_PATH=/path/to/target/root/filesystem  

modules_install

Note that the path must be to the target root filesystem's root directory, and 
NOT the "lib" or "lib/modules" subdirectories!

TWEAKING THE KERNEL

We welcome any patches and comments for improving the board support 
for SAM9-L9261. The starting point for board-specific initialization is the 
following file:

arch/arm/mach-at91/board-sam9-l9261.c

Additional AT91SAM9261 chip specific initialization is located at:

arch/arm/mach-at91/at91sam9261.c
arch/arm/mach-at91/at91sam9261_devices.c

ROOT FILESYSTEM

The   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 Internet via Ethernet cable. Run

ipkg

from the SAM9-L9261 shell prompt to see the available options.

Additionally, the  

sources/debian-lenny-rootfs

  subdirectory contains a flash 

image   for   Debian   Lenny   based   root   filesystem.   It   does   not   feature   a 
graphical demo but user can install additional packages via the standard 
Debian utilities 

apt-get

 and 

aptitude

.

RUNNING   USER-COMPILED   BOOTLOADERS   AND   LINUX 
KERNEL

In   order   to   use   the   newly   compiled   bootloader   and/or   kernel   do   the 
following:

1.

Extract the contents of the 

sam9-l9261-samba.zip

 archive .

2. Overwrite the binary files with the newly compiled ones. 
3. Run the installation restoration procedure below.

RESTORING THE INSTALLATION

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...

Отзывы: