
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
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from