OLIMEX SAM9-L9261 User Manual Download Page 12

TIP:

  By   default   all   Olimex   boards   ship   with   the   _same_   ethernet   MAC 

address. This will cause trouble if there are two or more boards in the same 
local network. Assigning a custom MAC address is easy. When U-Boot is 
starting   press   a   key   to   enter   the   U-Boot   shell.   There   set   the   Ethernet 
address:

setenv ethaddr 00-40-91-31-32-33

And then save the settings to dataflash:

saveenv

Another option is to open the programming script 

sam9-l9261-samba/sam9_l9261_demo_linux.tcl

and set the Ethernet address there. Search for "ethaddr" to find where to 
edit.   Then   reflash   the   board   memories   (see   the   RESTORING   THE 
INSTALLATION section).

TIP:

  For development purposes you can configure U-Boot to fetch uImage 

via   TFTP.   You   need   to   set   the   board's   IP   address,   the   TFTP   server   IP 
address and a few more U-Boot environment variables. So stop U-Boot by 
pressing ENTER during the countdown after reset, and type the following 
lines in the U-Boot prompt:

U-Boot> setenv ipaddr 192.168.0.239
U-Boot> setenv netmask 255.255.255.0
U-Boot> setenv serverip 192.168.0.225
U-Boot> 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 building your own root 
filesystem, here is a patch that fixes the problem:

############################## BEGIN CUT ####################################

--- tslib-1.0-orig/tests/fbutils.c

2006-08-25 00:02:55.0000300

+++ tslib-1.0/tests/fbutils.c 2009-06-04 17:16:09.0000300

@@ -247,6 +247,7 @@
         

        perror("ioctl FBIOPUTCMAP");

 

break;

 

case 2:

+

case 3:

 

case 4:

 

red = (value >> 16) & 0xff;

 

green = (value >> 8) & 0xff;

@@ -274,6 +275,17 @@
 

else

 

*loc.p16 = color;

 

break;

+

case 3:

+

if (xormode) {

+

loc.p8[0] ^= color >> 0;

+

loc.p8[1] ^= color >> 8;

+

loc.p8[2] ^= color >> 16;

+

} else {

+

loc.p8[0] = color >> 0;

+

loc.p8[1] = color >> 8;

+

loc.p8[2] = color >> 16;

+

}

+

break;

 

case 4:

 

if (xormode)

 

*loc.p32 ^= color;

############################## END CUT #####################################

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.

Summary of Contents for SAM9-L9261

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

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

Page 3: ...SCHEMATIC Downloaded from Arrow com Downloaded from Arrow com Downloaded from Arrow com ...

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

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

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

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

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

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

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

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

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

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

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

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

Reviews: