Skip to contentSkip to conversation

Add support for at91bootstrap-3.0

PATCH Superseded Ulf Samuelsson 1 participant 9 messages Jan 31, 2011

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/8 Add support for at91bootstrap-3.0

---
 .../at91bootstrap-3.0/0001-Update-.gitignore.patch |   42 +
 ...02-Add-KConfig-support-for-booting-U-Boot.patch |   36 +
 ...erate-a-BOOT.BIN-file-instead-of-boot.bin.patch |   35 +
 .../0004-Add-support-for-dual-boot.patch           |  331 ++
 .../0005-Remove-old-afeb9260-files.patch           |  612 ++++
 ...-instead-of-BOARDNAME-to-define-directory.patch |   28 +
 ...0007-Add-board-support-for-alternate-boot.patch |  289 ++
 .../0008-Clean-up-printouts.patch                  |  199 ++
 .../at91bootstrap-3.0/0009-Update-configs.patch    | 3402 ++++++++++++++++++++
 .../0010-Update-build-scripts.patch                |  194 ++
 .../0011-Fix-Cut-n-Paste-error.patch               |   31 +
 .../0013-Fix-Cut-n-Paste-error-in-Makefile.patch   |   25 +
 ...14-Add-support-for-alternate-jump-address.patch |  280 ++
 .../0015-Make-MAKENEW-useful.patch                 |   41 +
 .../at91bootstrap-3.0/0016-Update-configs.patch    | 1175 +++++++
 recipes/at91bootstrap/at91bootstrap_3.0.bb         |   35 +
 recipes/at91bootstrap/at91bootstrap_3.0.inc        |   27 +
 17 files changed, 6782 insertions(+), 0 deletions(-)
 create mode 100644 recipes/at91bootstrap/at91bootstrap-3.0/0001-Update-.gitignore.patch
 create mode 100644 recipes/at91bootstrap/at91bootstrap-3.0/0002-Add-KConfig-support-for-booting-U-Boot.patch
 create mode 100644 recipes/at91bootstrap/at91bootstrap-3.0/0003-Generate-a-BOOT.BIN-file-instead-of-boot.bin.patch
 create mode 100644 recipes/at91bootstrap/at91bootstrap-3.0/0004-Add-support-for-dual-boot.patch
 create mode 100644 recipes/at91bootstrap/at91bootstrap-3.0/0005-Remove-old-afeb9260-files.patch
 create mode 100644 recipes/at91bootstrap/at91bootstrap-3.0/0006-Use-BOARD-instead-of-BOARDNAME-to-define-directory.patch
 create mode 100644 recipes/at91bootstrap/at91bootstrap-3.0/0007-Add-board-support-for-alternate-boot.patch
 create mode 100644 recipes/at91bootstrap/at91bootstrap-3.0/0008-Clean-up-printouts.patch
 create mode 100644 recipes/at91bootstrap/at91bootstrap-3.0/0009-Update-configs.patch
 create mode 100644 recipes/at91bootstrap/at91bootstrap-3.0/0010-Update-build-scripts.patch
 create mode 100644 recipes/at91bootstrap/at91bootstrap-3.0/0011-Fix-Cut-n-Paste-error.patch
 create mode 100644 recipes/at91bootstrap/at91bootstrap-3.0/0013-Fix-Cut-n-Paste-error-in-Makefile.patch
 create mode 100644 recipes/at91bootstrap/at91bootstrap-3.0/0014-Add-support-for-alternate-jump-address.patch
 create mode 100644 recipes/at91bootstrap/at91bootstrap-3.0/0015-Make-MAKENEW-useful.patch
 create mode 100644 recipes/at91bootstrap/at91bootstrap-3.0/0016-Update-configs.patch
 create mode 100644 recipes/at91bootstrap/at91bootstrap_3.0.bb
 create mode 100644 recipes/at91bootstrap/at91bootstrap_3.0.inc
recipes/at91bootstrap/at91bootstrap-3.0/0001-Update-.gitignore.patch new file +42 -0
new file mode 100644
index 0000000..e704cc9
@@ -0,0 +1,42 @@
+From 91717f6a6591a6fae538447261ddbe58f6df3d38 Mon Sep 17 00:00:00 2001
+From: Ulf Samuelsson <[email protected]>
+Date: Tue, 25 Jan 2011 22:20:29 +0100
+Subject: [PATCH] Update .gitignore
+
+---
+ .gitignore |   13 ++++++++-----
+ 1 files changed, 8 insertions(+), 5 deletions(-)
+
+diff --git a/.gitignore b/.gitignore
+index 5578395..b8878be 100644
+--- a/.gitignore
++++ b/.gitignore
+@@ -1,4 +1,11 @@
++*~
++*.orig
++*.o
++*.rej
++.config.*
+ .config
++.auto.deps
++..make.deps.tmp
+ log
+ log/*
+ config/at91bootstrap-config/
+@@ -10,12 +17,8 @@ config/zconf.hash.c
+ config/zconf.tab.c
+ config/zconf.tab.o
+ config/.depend
+-.config.cmd
+-.config.old
+-.auto.deps
+ build
+ result
+ binaries
+-*~
+-*.orig
++install
+ 
+-- 
+1.7.1
+
recipes/at91bootstrap/at91bootstrap-3.0/0002-Add-KConfig-support-for-booting-U-Boot.patch new file +36 -0
new file mode 100644
index 0000000..623536e
@@ -0,0 +1,36 @@
+From 07cb6b03e0bd1d8f643f497128f05776f943fe69 Mon Sep 17 00:00:00 2001
+From: Ulf Samuelsson <[email protected]>
+Date: Sun, 23 Jan 2011 19:16:46 +0100
+Subject: [PATCH 02/16] Add KConfig support for booting U-Boot
+
+---
+ Config.in |   13 +++++++++++++
+ 1 files changed, 13 insertions(+), 0 deletions(-)
+
+diff --git a/Config.in b/Config.in
+index 6ed8d8f..47da4e6 100644
+--- a/Config.in
++++ b/Config.in
+@@ -189,6 +189,19 @@ config CONFIG_WINCE_IMG_NAND_OFFSET
+ 	default "0x200000"
+ endmenu
+ 
++menu "U-Boot Image Storage Setup"
++	depends on CONFIG_LOAD_UBOOT
++config CONFIG_OS_IMAGE_NAME
++	depends on CONFIG_SDCARD
++	string "U-Boot Image Name on SD Card"
++	default "u-boot.bin"
++
++config CONFIG_OS_IMG_SIZE
++	string "OS Image Size"
++	default "0x40000"
++
++endmenu
++
+ config CONFIG_IMG_ADDRESS
+ 	string
+ 	depends on CONFIG_LOAD_UBOOT || CONFIG_LOAD_NK || CONFIG_LOAD_LINUX || CONFIG_LOAD_EBOOT
+-- 
+1.7.1
+
recipes/at91bootstrap/at91bootstrap-3.0/0003-Generate-a-BOOT.BIN-file-instead-of-boot.bin.patch new file +35 -0
new file mode 100644
index 0000000..06f329a
@@ -0,0 +1,35 @@
+From 7213e685dcaac83610352316bd94938b31f9e3a5 Mon Sep 17 00:00:00 2001
+From: Ulf Samuelsson <[email protected]>
+Date: Sun, 23 Jan 2011 19:32:31 +0100
+Subject: [PATCH 03/16] Generate a "BOOT.BIN" file, instead of "boot.bin"
+
+---
+ Makefile |    5 +++++
+ 1 files changed, 5 insertions(+), 0 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index e53fee6..5c66729 100644
+--- a/Makefile
++++ b/Makefile
+@@ -176,6 +176,9 @@ obj=build/$(BOARDNAME)/
+ BOOT_NAME=$(BOARDNAME)-$(PROJECT)$(CARD_SUFFIX)boot-$(VERSION)$(REV)
+ 
+ AT91BOOTSTRAP:=$(BINDIR)/$(BOOT_NAME).bin
++AT91BOOTSTRAP_BOOTABLE:=$(BINDIR)/$(BOOT_NAME).bin.fixboot
++BOOT_BIN_DIR:=$(BINDIR)/$(BOOT_NAME)
++AT91SD_BOOTSTRAP:=$(BOOT_BIN_DIR)/BOOT.BIN
+ 
+ ifeq ($(DESTDIR),)
+ DESTDIR=install
+@@ -302,6 +305,8 @@ $(AT91BOOTSTRAP).fixboot:	$(AT91BOOTSTRAP)
+ 	./scripts/fixboot.py $(AT91BOOTSTRAP)
+ 
+ boot:	$(AT91BOOTSTRAP).fixboot
++	mkdir -p $(BOOT_BIN_DIR)
++	cp $(AT91BOOTSTRAP_BOOTABLE) $(AT91SD_BOOTSTRAP)
+ 
+ install:	bootstrap	utilities
+ 
+-- 
+1.7.1
+
recipes/at91bootstrap/at91bootstrap-3.0/0004-Add-support-for-dual-boot.patch new file +331 -0

331 lines not on this page · raw message

recipes/at91bootstrap/at91bootstrap-3.0/0005-Remove-old-afeb9260-files.patch new file +612 -0

612 lines not on this page · raw message

recipes/at91bootstrap/at91bootstrap-3.0/0006-Use-BOARD-instead-of-BOARDNAME-to-define-directory.patch new file +28 -0
new file mode 100644
index 0000000..49e1710
@@ -0,0 +1,28 @@
+From d2db62d2c891693358d0cfd79a462609441715ed Mon Sep 17 00:00:00 2001
+From: Ulf Samuelsson <[email protected]>
+Date: Sun, 23 Jan 2011 19:38:04 +0100
+Subject: [PATCH 06/16] Use BOARD instead of BOARDNAME to define directory
+
+---
+ Makefile |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index 0fcd5ba..93ec72d 100644
+--- a/Makefile
++++ b/Makefile
+@@ -223,9 +223,9 @@ SX_AT91=$(BINDIR)/sx-at91
+ EXTRA_INSTALL+=$(BINDIR)/sx-at91
+ endif
+ 
+-COBJS-y:= $(TOPDIR)/main.o $(TOPDIR)/board/$(BOARDNAME)/$(BOARD).o
++COBJS-y:= $(TOPDIR)/main.o $(TOPDIR)/board/$(BOARD)/$(BOARD).o
+ SOBJS-y:= $(TOPDIR)/crt0_gnu.o
+-DIRS:=$(TOPDIR) $(TOPDIR)/board/$(BOARDNAME) $(TOPDIR)/lib $(TOPDIR)/driver
++DIRS:=$(TOPDIR) $(TOPDIR)/board/$(BOARD) $(TOPDIR)/lib $(TOPDIR)/driver
+ 
+ 
+ include 	lib/libc.mk
+-- 
+1.7.1
+
recipes/at91bootstrap/at91bootstrap-3.0/0007-Add-board-support-for-alternate-boot.patch new file +289 -0

289 lines not on this page · raw message

recipes/at91bootstrap/at91bootstrap-3.0/0008-Clean-up-printouts.patch new file +199 -0

199 lines not on this page · raw message

recipes/at91bootstrap/at91bootstrap-3.0/0009-Update-configs.patch new file +3402 -0

1,428 lines not on this page · raw message

recipes/at91bootstrap/at91bootstrap-3.0/0010-Update-build-scripts.patch new file +194 -0

194 lines not on this page · raw message

recipes/at91bootstrap/at91bootstrap-3.0/0011-Fix-Cut-n-Paste-error.patch new file +31 -0
new file mode 100644
index 0000000..bf474b2

Lines of this file are not shown. View the raw message.

recipes/at91bootstrap/at91bootstrap-3.0/0013-Fix-Cut-n-Paste-error-in-Makefile.patch new file +25 -0
new file mode 100644
index 0000000..290dca5

Lines of this file are not shown. View the raw message.

recipes/at91bootstrap/at91bootstrap-3.0/0014-Add-support-for-alternate-jump-address.patch new file +280 -0

280 lines not on this page · raw message

recipes/at91bootstrap/at91bootstrap-3.0/0015-Make-MAKENEW-useful.patch new file +41 -0

41 lines not on this page · raw message

recipes/at91bootstrap/at91bootstrap-3.0/0016-Update-configs.patch new file +1175 -0

1,175 lines not on this page · raw message

recipes/at91bootstrap/at91bootstrap_3.0.bb new file +35 -0
new file mode 100644
index 0000000..82a91c6

Lines of this file are not shown. View the raw message.

recipes/at91bootstrap/at91bootstrap_3.0.inc new file +27 -0
new file mode 100644
index 0000000..ca213d1

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.6.3.3

Part of the diff is not shown here. View the raw message.

#1 lore raw

PATCH 2/16 Add ALSA support for at91sam9xe

---
 recipes/alsa/alsa-state/at91sam9xeek/asound.conf  |    2 +
 recipes/alsa/alsa-state/at91sam9xeek/asound.state |  108 +++++++++++++++++++++
 2 files changed, 110 insertions(+), 0 deletions(-)
 create mode 100644 recipes/alsa/alsa-state/at91sam9xeek/asound.conf
 create mode 100644 recipes/alsa/alsa-state/at91sam9xeek/asound.state
recipes/alsa/alsa-state/at91sam9xeek/asound.conf new file +2 -0
new file mode 100644
index 0000000..87bb5ec
@@ -0,0 +1,2 @@
+pcm.!default {  type hw  card 0  } 
+ctl.!default {  type hw  card 0  }
recipes/alsa/alsa-state/at91sam9xeek/asound.state new file +108 -0

108 lines not on this page · raw message

Signature · 1 line
1.6.3.3
#2 lore raw

PATCH 2/2 Add support for at91sam9m10 H/W video decoder

---
 .../at91sam9m10-vdec/gst-plugin-on2-8170_1.0.bb    |   41 ++++++++
 recipes/at91sam9m10-vdec/on2-8170-libs_1.0.bb      |   49 ++++++++++
 recipes/images/x11-at91sam9m10-image.bb            |  102 ++++++++++++++++++++
 3 files changed, 192 insertions(+), 0 deletions(-)
 create mode 100644 recipes/at91sam9m10-vdec/gst-plugin-on2-8170_1.0.bb
 create mode 100644 recipes/at91sam9m10-vdec/on2-8170-libs_1.0.bb
 create mode 100644 recipes/images/x11-at91sam9m10-image.bb
recipes/at91sam9m10-vdec/gst-plugin-on2-8170_1.0.bb new file +41 -0
new file mode 100644
index 0000000..8010bd4
@@ -0,0 +1,41 @@
+# This is the support library for AT91SAM9M10 On2 8170 video decoder.
+DESCRIPTION = "Library for AT91SAM9M10 On2 8170 video decoder"
+SECTION = "libs"
+PRIORITY = "optional"
+LICENSE = ""
+
+COMPATIBLE_MACHINE = (at91sam9m10ekes|at91sam9m10g45ek)
+
+PR = "r1"
+
+DEPENDS = "glib-2.0 gstreamer on2-8170-libs"
+CFLAGS += "-I${STAGING_INCDIR}/glib-2.0 -I${STAGING_INCDIR}/gstreamer-0.10 -I${STAGING_INCDIR}/libxml2/"
+GST_MAJORMINOR=0.10
+PROVIDES += "gstx170"
+
+SRC_URI = "ftp://ftp.linux4sam.org/pub/demo/linux4sam_1.9/codec/gst-plugin-x170-${PV}.tar.gz"
+S = ${WORKDIR}/gst-plugin-x170-${PV}
+
+inherit autotools
+
+FILES_${PN} = " \
+	${libdir}/gstreamer-${GST_MAJORMINOR}/*.so \
+	"
+
+FILES_${PN}-dev = " \
+	${libdir}/gstreamer-${GST_MAJORMINOR}/*.so \
+	${libdir}/gstreamer-${GST_MAJORMINOR}/*.a \
+	${libdir}/gstreamer-${GST_MAJORMINOR}/*.la \
+	"
+
+do_stage() {
+	echo staging ...
+	oe_libinstall -s -a -C ${S}/src/.libs libgstx170   ${STAGING_LIBDIR}
+	install -m 0644  ${S}/src/gstx170.h  ${STAGING_INCDIR}/
+}
+
+do_install() {
+	echo install ...
+	install -d ${D}/${libdir}/gstreamer-${GST_MAJORMINOR}
+	oe_libinstall -s -C ${S}/src/.libs/ libgstx170   ${D}/${libdir}/gstreamer-${GST_MAJORMINOR}
+}
recipes/at91sam9m10-vdec/on2-8170-libs_1.0.bb new file +49 -0

49 lines not on this page · raw message

recipes/images/x11-at91sam9m10-image.bb new file +102 -0

102 lines not on this page · raw message

Signature · 1 line
1.6.3.3
#3 lore raw

PATCH 3/16 Add initial pointercal files for at91 boards

---
 recipes/pointercal/files/at91sam9261ek/pointercal  |    1 +
 recipes/pointercal/files/at91sam9263ek/pointercal  |    1 +
 recipes/pointercal/files/at91sam9g10ek/pointercal  |    1 +
 .../pointercal/files/at91sam9g45ekes/pointercal    |    1 +
 .../pointercal/files/at91sam9m10ekes/pointercal    |    1 +
 .../pointercal/files/at91sam9m10g45ek/pointercal   |    1 +
 recipes/pointercal/files/at91sam9rlek/pointercal   |    1 +
 7 files changed, 7 insertions(+), 0 deletions(-)
 create mode 100644 recipes/pointercal/files/at91sam9261ek/pointercal
 create mode 100644 recipes/pointercal/files/at91sam9263ek/pointercal
 create mode 100644 recipes/pointercal/files/at91sam9g10ek/pointercal
 create mode 100644 recipes/pointercal/files/at91sam9g45ekes/pointercal
 create mode 100644 recipes/pointercal/files/at91sam9m10ekes/pointercal
 create mode 100644 recipes/pointercal/files/at91sam9m10g45ek/pointercal
 create mode 100644 recipes/pointercal/files/at91sam9rlek/pointercal
recipes/pointercal/files/at91sam9261ek/pointercal new file +1 -0
new file mode 100644
index 0000000..8ad165c
@@ -0,0 +1 @@
+-63 4252 -705920 5593 13 -1131758 65536
recipes/pointercal/files/at91sam9263ek/pointercal new file +1 -0
new file mode 100644
index 0000000..7a8596d
@@ -0,0 +1 @@
+-10 4298 -1026530 5663 8 -1123190 65536
recipes/pointercal/files/at91sam9g10ek/pointercal new file +1 -0
new file mode 100644
index 0000000..709bf6a
@@ -0,0 +1 @@
+62 4355 -1186130 5776 15 -1289552 65536
recipes/pointercal/files/at91sam9g45ekes/pointercal new file +1 -0
new file mode 100644
index 0000000..d8b5fd6
@@ -0,0 +1 @@
+33442 123 -1524636 -99 21242 -1963236 65536
recipes/pointercal/files/at91sam9m10ekes/pointercal new file +1 -0
new file mode 100644
index 0000000..d8b5fd6
@@ -0,0 +1 @@
+33442 123 -1524636 -99 21242 -1963236 65536
recipes/pointercal/files/at91sam9m10g45ek/pointercal new file +1 -0
new file mode 100644
index 0000000..3623751
@@ -0,0 +1 @@
+33229 -46 -1353468 168 20496 -1811604 65536
recipes/pointercal/files/at91sam9rlek/pointercal new file +1 -0
new file mode 100644
index 0000000..6020d7f
@@ -0,0 +1 @@
+16853 73 -772255 -134 -22464 22132488 65536
Signature · 1 line
1.6.3.3
#4 lore raw

PATCH 4/16 Add X arguments for CAP9,SAM9RL/G10/M10/G45

---
 .../files/xserver-common-at91sam9.patch            |   18 ++++++++++++++++++
 recipes/xserver-common/xserver-common_1.22.bb      |    4 +++-
 recipes/xserver-common/xserver-common_1.33.bb      |    5 ++++-
 3 files changed, 25 insertions(+), 2 deletions(-)
 create mode 100644 recipes/xserver-common/files/xserver-common-at91sam9.patch
recipes/xserver-common/files/xserver-common-at91sam9.patch new file +18 -0
new file mode 100644
index 0000000..ae8a864
@@ -0,0 +1,18 @@
+diff -u xserver-common-1.22.old/X11/Xserver xserver-common-1.22/X11/Xserver
+--- xserver-common-1.22.old/X11/Xserver
++++ xserver-common-1.22/X11/Xserver
+@@ -100,8 +100,12 @@
+ 		ARGS="$ARGS -dpi 100 -screen 480x640@270" ;;
+ 	"HTC Tornado")
+ 		ARGS="$ARGS -dpi 100 -hide-cursor" ;;
+-	"Atmel AT91SAM9261-EK" | "Atmel AT91SAM9263-EK")
+-		ARGS="$ARGS -mouse tslib -dpi 100 -rgba bgr -screen 240x320" ;;	
++	"Atmel AT91SAM9261-EK" | "Atmel AT91SAM9263-EK" | "Atmel AT91CAP9A-DK" | "Atmel AT91CAP9-STK")
++		ARGS="$ARGS -mouse tslib -dpi 100 -rgba bgr -screen 240x320" ;;
++	"Atmel AT91SAM9RL-EK" | "Atmel AT91SAM9G10-EK" )
++		ARGS="$ARGS -mouse tslib -dpi 100 -rgba rgb -screen 240x320" ;;
++	"Atmel AT91SAM9M10-EKES" | "Atmel AT91SAM9G45-EKES" | "Atmel AT91SAM9M10G45-EK")
++		ARGS="$ARGS -mouse tslib -rgba rgb -screen 480x272" ;;
+ 	"Generic OMAP1510/1610/1710" | "Nokia N770")
+ 		ARGS="$ARGS -dpi 225 -screen ${SCREEN_SIZE} -mouse tslib" ;;
+ 	"Nokia N800")
recipes/xserver-common/xserver-common_1.22.bb +3 -1
index 160a3fd..d50614f 100644
@@ -14,7 +14,9 @@ SRC_URI_append_angstrom = " file://kdrive-1.4-fixes.patch \
                             file://xorg-fixes.patch \
 			    file://gta-xorg-fixes.patch \
                             file://default.xmodmap \
-                            file://98keymap-fixup "
+                            file://98keymap-fixup \
+			    file://xserver-common-at91sam9.patch "
+
 
 do_install_append() {
 	install -m 0755 "${WORKDIR}/setDPI.sh" "${D}/etc/X11/Xinit.d/50setdpi"
recipes/xserver-common/xserver-common_1.33.bb +4 -1
index ff5711f..86f8932 100644
@@ -2,7 +2,7 @@ DESCRIPTION = "Common X11 scripts and support files"
 LICENSE = "GPL"
 SECTION = "x11"
 RDEPENDS_${PN} = "xmodmap xrandr xdpyinfo"
-PR = "r8"
+PR = "r9"
 
 PACKAGE_ARCH = "all"
 DEFAULT_PREFERENCE = "-1"
@@ -33,6 +33,9 @@ SRC_URI_append_shr = " file://89xTs_Calibrate.xinput_calibrator.patch \
                        file://Xserver.add.dpi.for.gta.patch \
 		       file://Xserver.n900.patch"
 
+SRC_URI_append_at91 =	" file://89xTs_Calibrate.xinput_calibrator.patch \
+			"
+
 do_install_append() {
 	install -m 0755 "${WORKDIR}/setDPI.sh" "${D}/etc/X11/Xinit.d/50setdpi"
 	install -m 0755 "${WORKDIR}/89xdgautostart.sh" "${D}/etc/X11/Xsession.d/89xdgautostart"
Signature · 1 line
1.6.3.3
#5 lore raw

PATCH 5/16 Add SD-Card boot with environment support to u-boot-2009.11

---
 .../at91/0016-SupportEnv-load-from-SD-Card.patch   |  126 ++++++++++++++++++++
 recipes/u-boot/u-boot_2009.11.bb                   |    3 +-
 2 files changed, 128 insertions(+), 1 deletions(-)
 create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0016-SupportEnv-load-from-SD-Card.patch
recipes/u-boot/u-boot-2009.11/at91/0016-SupportEnv-load-from-SD-Card.patch new file +126 -0
new file mode 100644
index 0000000..a5e9ddf
@@ -0,0 +1,126 @@
+diff -urN u-boot-2009.11/common/cmd_factory.c u-boot-2009.11-OK/common/cmd_factory.c
+--- u-boot-2009.11/common/cmd_factory.c	1970-01-01 01:00:00.000000000 +0100
++++ u-boot-2009.11-OK/common/cmd_factory.c	2010-09-26 21:39:09.000000000 +0200
+@@ -0,0 +1,46 @@
++/*
++ * (C) Copyright 2010
++ * Ulf Samuelsson <[email protected]>
++ *
++ * See file CREDITS for list of people who contributed to this
++ * project.
++ *
++ * This program is free software; you can redistribute it and/or
++ * modify it under the terms of the GNU General Public License as
++ * published by the Free Software Foundation; either version 2 of
++ * the License, or (at your option) any later version.
++ *
++ * This program is distributed in the hope that it will be useful,
++ * but WITHOUT ANY WARRANTY; without even the implied warranty of
++ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ * GNU General Public License for more details.
++ *
++ * You should have received a copy of the GNU General Public License
++ * along with this program; if not, write to the Free Software
++ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
++ * MA 02111-1307 USA
++ */
++
++#include <common.h>
++#include <command.h>
++#include <debug.h>
++
++#undef	DEBUG
++#if	defined(DEBUG)
++#define pr_debug(fmt, args...) 		printf(fmt, ##args)
++#else
++#define pr_debug(...) do { } while(0)
++#endif
++
++extern set_default_env(void);
++int do_factory (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
++{
++	set_default_env();	
++	return 0;
++}
++
++U_BOOT_CMD(
++	factory, 1, 0, do_factory,
++	"factory\t- set factory default environment\n",
++	"\n"
++);
+diff -urN u-boot-2009.11/common/Makefile u-boot-2009.11-OK/common/Makefile
+--- u-boot-2009.11/common/Makefile	2011-01-26 01:26:46.000000000 +0100
++++ u-boot-2009.11-OK/common/Makefile	2010-09-26 21:27:30.000000000 +0200
+@@ -88,6 +88,7 @@
+ COBJS-$(CONFIG_CMD_EEPROM) += cmd_eeprom.o
+ COBJS-$(CONFIG_CMD_ELF) += cmd_elf.o
+ COBJS-$(CONFIG_CMD_EXT2) += cmd_ext2.o
++COBJS-$(CONFIG_CMD_FACTORY) += cmd_factory.o
+ COBJS-$(CONFIG_CMD_FAT) += cmd_fat.o
+ COBJS-$(CONFIG_CMD_FDC)$(CONFIG_CMD_FDOS) += cmd_fdc.o
+ COBJS-$(CONFIG_OF_LIBFDT) += cmd_fdt.o fdt_support.o
+diff -urN u-boot-2009.11/include/configs/at91sam9m10g45ek.h u-boot-2009.11-OK/include/configs/at91sam9m10g45ek.h
+--- u-boot-2009.11/include/configs/at91sam9m10g45ek.h	2011-01-26 01:26:46.000000000 +0100
++++ u-boot-2009.11-OK/include/configs/at91sam9m10g45ek.h	2011-01-15 23:18:18.000000000 +0100
+@@ -28,6 +28,7 @@
+ #define __CONFIG_H
+ #define	CONFIG_CMD_DEBUG	1
+ #define	CONFIG_SYS_ROOTFS_SD	1
++#define	CONFIG_CMD_FACTORY	1
+ /* ARM asynchronous clock */
+ #define AT91_MAIN_CLOCK		12000000	/* from 12 MHz crystal */
+ #define CONFIG_SYS_HZ		1000
+@@ -105,6 +106,8 @@
+ #define CONFIG_CMD_FAT
+ #undef CONFIG_CMD_JFFS2
+ #define CONFIG_CMD_MMC
++#define CONFIG_CMD_AUTOSCRIPT
++
+ #define CONFIG_CMD_PING		1
+ #define CONFIG_CMD_DHCP		1
+ #define CONFIG_CMD_NAND		1
+@@ -219,9 +222,19 @@
+ #endif
+ 
+ #ifdef	CONFIG_SYS_ROOTFS_SD
+-#define CONFIG_BOOTCOMMAND	"mmc init; fatload mmc 1:1 0x72000000 uImage; bootm 0x72000000"
+-#define CONFIG_BOOTARGS		"console=ttyS0,115200 " \
+-				"root=/dev/mmcblk1p2 " \
++#define CONFIG_EXTRA_ENV_SETTINGS	\
++	"load_env=fatload mmc 0:1 0x70000000 u-boot.env ; source 0x70000000 \0"	\
++	"load_kernel=fatload mmc 0:1 0x72000000 uimage\0"	\
++	"at91sam9m10ekes=9cd\0"	\
++	"at91sam9g45ekes=8a4\0"	\
++	"at91sam9m10g45ek=726\0"	\
++	"machid=726\0"
++
++
++#define CONFIG_BOOTCOMMAND	"mmc init; run load_env ; run load_kernel ; bootm 0x72000000"
++#define CONFIG_BOOTARGS		"mem=128M "	\
++				"console=ttyS0,115200 " \
++				"root=/dev/mmcblk0p2 " \
+ 				"rootdelay=2 "\
+ 				"rootfstype=rootfs rw"
+ #endif
+diff -urN u-boot-2009.11/Makefile u-boot-2009.11-OK/Makefile
+--- u-boot-2009.11/Makefile	2011-01-26 01:26:46.000000000 +0100
++++ u-boot-2009.11-OK/Makefile	2010-09-26 21:46:35.000000000 +0200
+@@ -295,7 +295,7 @@
+ #########################################################################
+ 
+ # Always append ALL so that arch config.mk's can add custom ones
+-ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
++ALL += $(obj)u-boot.srec $(obj)u-boot.bin $(obj)U-BOOT.BIN $(obj)System.map $(U_BOOT_NAND) $(U_BOOT_ONENAND)
+ 
+ all:		$(ALL)
+ 
+@@ -308,6 +308,9 @@
+ $(obj)u-boot.bin:	$(obj)u-boot
+ 		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
+ 
++$(obj)U-BOOT.BIN:	$(obj)u-boot
++		$(OBJCOPY) ${OBJCFLAGS} -O binary $< $@
++
+ $(obj)u-boot.ldr:	$(obj)u-boot
+ 		$(obj)tools/envcrc --binary > $(obj)env-ldr.o
+ 		$(LDR) -T $(CONFIG_BFIN_CPU) -c $@ $< $(LDR_FLAGS)
recipes/u-boot/u-boot_2009.11.bb +2 -1
index 90a9089..05f82b5 100644
@@ -1,4 +1,4 @@
-PR = "r1"
+PR = "r2"
 require u-boot.inc
 
 DEFAULT_PREFERENCE = "-1"
@@ -28,6 +28,7 @@ SRC_URI_append_at91 = "\
 	file://at91/0013-atmel_dataflash.c-Status-printout-depend-on-DEBUG.patch \
 	file://at91/0014-AT91-MCI-Add-support-for-SD-Card.patch \
 	file://at91/0015-sam9m10g45ek-Add-configuration-file.patch \
+	file://at91/0016-SupportEnv-load-from-SD-Card.patch \
 	"
 
 SRC_URI_append_adb4000 = "\
Signature · 1 line
1.6.3.3
#6 lore raw

PATCH 6/16 Update at91sam9m10ekes linux patch to exp.2

---
 ...ux-2.6.30-001-configurable-partition-size.patch |  362 +++++
 .../exp.2/linux-2.6.30-002-mach-at91-Kconfig.patch |  196 +++
 .../at91/exp.2/linux-2.6.30-003-sam9m10g45ek.patch |   29 +
 .../exp.4/0001-Configurable-partition-size.patch   |  403 +++++
 .../exp.4/0002-mach-at91-KConfig-cleanup.patch     |  202 +++
 .../linux/linux-2.6.30/at91sam9m10ekes/defconfig   |   50 +-
 .../linux-2.6.30/at91sam9m10ekes/exp.2/defconfig   | 1649 +++++++++++++++++++
 .../linux-2.6.30/at91sam9m10ekes/exp.4/defconfig   | 1671 ++++++++++++++++++++
 .../linux/linux-2.6.30/at91sam9m10g45ek/defconfig  | 1649 +++++++++++++++++++
 recipes/linux/linux_2.6.30.bb                      |   59 +-
 10 files changed, 6254 insertions(+), 16 deletions(-)
 create mode 100644 recipes/linux/linux-2.6.30/at91/exp.2/linux-2.6.30-001-configurable-partition-size.patch
 create mode 100644 recipes/linux/linux-2.6.30/at91/exp.2/linux-2.6.30-002-mach-at91-Kconfig.patch
 create mode 100644 recipes/linux/linux-2.6.30/at91/exp.2/linux-2.6.30-003-sam9m10g45ek.patch
 create mode 100644 recipes/linux/linux-2.6.30/at91/exp.4/0001-Configurable-partition-size.patch
 create mode 100644 recipes/linux/linux-2.6.30/at91/exp.4/0002-mach-at91-KConfig-cleanup.patch
 create mode 100644 recipes/linux/linux-2.6.30/at91sam9m10ekes/exp.2/defconfig
 create mode 100644 recipes/linux/linux-2.6.30/at91sam9m10ekes/exp.4/defconfig
 create mode 100644 recipes/linux/linux-2.6.30/at91sam9m10g45ek/defconfig
recipes/linux/linux-2.6.30/at91/exp.2/linux-2.6.30-001-configurable-partition-size.patch new file +362 -0
new file mode 100644
index 0000000..ae24d12
@@ -0,0 +1,362 @@
+diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-at572d940hf_ek.c linux-2.6.30/arch/arm/mach-at91/board-at572d940hf_ek.c
+--- linux-2.6.30-0rig/arch/arm/mach-at91/board-at572d940hf_ek.c	2010-03-14 11:13:34.000000000 +0100
++++ linux-2.6.30/arch/arm/mach-at91/board-at572d940hf_ek.c	2010-03-14 11:28:55.000000000 +0100
+@@ -114,10 +114,20 @@
+  */
+ static struct mtd_partition __initdata eb_nand_partition[] = {
+ 	{
+-		.name	= "Partition 1",
+-		.offset	= 0,
++		.name   = "Bootstrap",
++		.offset = 0,
++		.size   = 4 * SZ_1M,
++	},
++	{
++		.name	= "Root File System",
++		.offset	= MTDPART_OFS_NXTBLK,
++		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
++	},
++	{
++		.name	= "Data",
++		.offset	= MTDPART_OFS_NXTBLK,
+ 		.size	= MTDPART_SIZ_FULL,
+-	}
++	},
+ };
+ 
+ static struct mtd_partition * __init nand_partitions(int size, int *num_partitions)
+diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-cap9adk.c linux-2.6.30/arch/arm/mach-at91/board-cap9adk.c
+--- linux-2.6.30-0rig/arch/arm/mach-at91/board-cap9adk.c	2010-03-14 11:13:34.000000000 +0100
++++ linux-2.6.30/arch/arm/mach-at91/board-cap9adk.c	2010-03-14 11:28:36.000000000 +0100
+@@ -167,8 +167,18 @@
+  */
+ static struct mtd_partition __initdata cap9adk_nand_partitions[] = {
+ 	{
+-		.name	= "NAND partition",
+-		.offset	= 0,
++		.name   = "Bootstrap",
++		.offset = 0,
++		.size   = 4 * SZ_1M,
++	},
++	{
++		.name	= "Root File System",
++		.offset	= MTDPART_OFS_NXTBLK,
++		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
++	},
++	{
++		.name	= "Data",
++		.offset	= MTDPART_OFS_NXTBLK,
+ 		.size	= MTDPART_SIZ_FULL,
+ 	},
+ };
+diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-dk.c linux-2.6.30/arch/arm/mach-at91/board-dk.c
+--- linux-2.6.30-0rig/arch/arm/mach-at91/board-dk.c	2010-03-14 11:13:34.000000000 +0100
++++ linux-2.6.30/arch/arm/mach-at91/board-dk.c	2010-03-14 11:28:43.000000000 +0100
+@@ -314,8 +314,18 @@
+ 
+ static struct mtd_partition __initdata dk_nand_partition[] = {
+ 	{
+-		.name	= "NAND Partition 1",
+-		.offset	= 0,
++		.name   = "Bootstrap",
++		.offset = 0,
++		.size   = 4 * SZ_1M,
++	},
++	{
++		.name	= "Root File System",
++		.offset	= MTDPART_OFS_NXTBLK,
++		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
++	},
++	{
++		.name	= "Data",
++		.offset	= MTDPART_OFS_NXTBLK,
+ 		.size	= MTDPART_SIZ_FULL,
+ 	},
+ };
+diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9260ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9260ek.c
+--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9260ek.c	2010-03-14 11:13:34.000000000 +0100
++++ linux-2.6.30/arch/arm/mach-at91/board-sam9260ek.c	2010-03-14 11:26:57.000000000 +0100
+@@ -177,12 +177,17 @@
+  */
+ static struct mtd_partition __initdata ek_nand_partition[] = {
+ 	{
+-		.name	= "Partition 1",
+-		.offset	= 0,
+-		.size	= SZ_256K,
++		.name   = "Bootstrap",
++		.offset = 0,
++		.size   = 4 * SZ_1M,
+ 	},
+ 	{
+-		.name	= "Partition 2",
++		.name	= "Root File System",
++		.offset	= MTDPART_OFS_NXTBLK,
++		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
++	},
++	{
++		.name	= "Data",
+ 		.offset	= MTDPART_OFS_NXTBLK,
+ 		.size	= MTDPART_SIZ_FULL,
+ 	},
+diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9261ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9261ek.c
+--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9261ek.c	2010-03-14 11:13:34.000000000 +0100
++++ linux-2.6.30/arch/arm/mach-at91/board-sam9261ek.c	2010-03-14 11:26:57.000000000 +0100
+@@ -184,12 +184,17 @@
+  */
+ static struct mtd_partition __initdata ek_nand_partition[] = {
+ 	{
+-		.name	= "Partition 1",
+-		.offset	= 0,
+-		.size	= SZ_256K,
++		.name   = "Bootstrap",
++		.offset = 0,
++		.size   = 4 * SZ_1M,
+ 	},
+ 	{
+-		.name	= "Partition 2",
++		.name	= "Root File System",
++		.offset	= MTDPART_OFS_NXTBLK,
++		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
++	},
++	{
++		.name	= "Data",
+ 		.offset	= MTDPART_OFS_NXTBLK,
+ 		.size	= MTDPART_SIZ_FULL,
+ 	},
+diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9263ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9263ek.c
+--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9263ek.c	2010-03-14 11:13:34.000000000 +0100
++++ linux-2.6.30/arch/arm/mach-at91/board-sam9263ek.c	2010-03-14 11:26:57.000000000 +0100
+@@ -174,12 +174,17 @@
+  */
+ static struct mtd_partition __initdata ek_nand_partition[] = {
+ 	{
+-		.name	= "Partition 1",
+-		.offset	= 0,
+-		.size	= SZ_64M,
++		.name   = "Bootstrap",
++		.offset = 0,
++		.size   = 4 * SZ_1M,
+ 	},
+ 	{
+-		.name	= "Partition 2",
++		.name	= "Root File System",
++		.offset	= MTDPART_OFS_NXTBLK,
++		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
++	},
++	{
++		.name	= "Data",
+ 		.offset	= MTDPART_OFS_NXTBLK,
+ 		.size	= MTDPART_SIZ_FULL,
+ 	},
+diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c linux-2.6.30/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c
+--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c	2010-03-14 11:13:34.000000000 +0100
++++ linux-2.6.30/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c	2010-03-14 11:28:29.000000000 +0100
+@@ -130,12 +130,12 @@
+ 		.size   = 4 * SZ_1M,
+ 	},
+ 	{
+-		.name	= "Partition 1",
++		.name	= "Root File System",
+ 		.offset	= MTDPART_OFS_NXTBLK,
+-		.size	= 60 * SZ_1M,
++		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
+ 	},
+ 	{
+-		.name	= "Partition 2",
++		.name	= "Data",
+ 		.offset	= MTDPART_OFS_NXTBLK,
+ 		.size	= MTDPART_SIZ_FULL,
+ 	},
+diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9g20ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9g20ek.c
+--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9g20ek.c	2010-03-14 11:13:34.000000000 +0100
++++ linux-2.6.30/arch/arm/mach-at91/board-sam9g20ek.c	2010-03-14 11:26:57.000000000 +0100
+@@ -129,12 +129,12 @@
+ 		.size   = 4 * SZ_1M,
+ 	},
+ 	{
+-		.name	= "Partition 1",
++		.name	= "Root File System",
+ 		.offset	= MTDPART_OFS_NXTBLK,
+-		.size	= 60 * SZ_1M,
++		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
+ 	},
+ 	{
+-		.name	= "Partition 2",
++		.name	= "Data",
+ 		.offset	= MTDPART_OFS_NXTBLK,
+ 		.size	= MTDPART_SIZ_FULL,
+ 	},
+diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9m10g45ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9m10g45ek.c
+--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9m10g45ek.c	2010-03-14 11:13:34.000000000 +0100
++++ linux-2.6.30/arch/arm/mach-at91/board-sam9m10g45ek.c	2010-03-14 11:26:57.000000000 +0100
+@@ -133,12 +133,17 @@
+  */
+ static struct mtd_partition __initdata ek_nand_partition[] = {
+ 	{
+-		.name	= "Partition 1",
+-		.offset	= 0,
+-		.size	= SZ_64M,
++		.name   = "Bootstrap",
++		.offset = 0,
++		.size   = 4 * SZ_1M,
+ 	},
+ 	{
+-		.name	= "Partition 2",
++		.name	= "Root File System",
++		.offset	= MTDPART_OFS_NXTBLK,
++		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
++	},
++	{
++		.name	= "Data",
+ 		.offset	= MTDPART_OFS_NXTBLK,
+ 		.size	= MTDPART_SIZ_FULL,
+ 	},
+diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9rlek.c linux-2.6.30/arch/arm/mach-at91/board-sam9rlek.c
+--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9rlek.c	2010-03-14 11:13:34.000000000 +0100
++++ linux-2.6.30/arch/arm/mach-at91/board-sam9rlek.c	2010-03-14 11:26:57.000000000 +0100
+@@ -83,12 +83,17 @@
+  */
+ static struct mtd_partition __initdata ek_nand_partition[] = {
+ 	{
+-		.name	= "Partition 1",
+-		.offset	= 0,
+-		.size	= SZ_256K,
++		.name   = "Bootstrap",
++		.offset = 0,
++		.size   = 4 * SZ_1M,
+ 	},
+ 	{
+-		.name	= "Partition 2",
++		.name	= "Root File System",
++		.offset	= MTDPART_OFS_NXTBLK,
++		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
++	},
++	{
++		.name	= "Data",
+ 		.offset	= MTDPART_OFS_NXTBLK,
+ 		.size	= MTDPART_SIZ_FULL,
+ 	},
+diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/Kconfig linux-2.6.30/arch/arm/mach-at91/Kconfig
+--- linux-2.6.30-0rig/arch/arm/mach-at91/Kconfig	2010-03-14 11:13:34.000000000 +0100
++++ linux-2.6.30/arch/arm/mach-at91/Kconfig	2010-03-14 11:32:54.000000000 +0100
+@@ -96,6 +96,7 @@
+ config ARCH_AT91RM9200DK
+ 	bool "Atmel AT91RM9200-DK Development board"
+ 	depends on ARCH_AT91RM9200
++	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
+ 	help
+ 	  Select this if you are using Atmel's AT91RM9200-DK Development board.
+ 	  (Discontinued)
+@@ -213,6 +214,7 @@
+ config MACH_AT91SAM9260EK
+ 	bool "Atmel AT91SAM9260-EK / AT91SAM9XE Evaluation Kit"
+ 	depends on ARCH_AT91SAM9260
++	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
+ 	help
+ 	  Select this if you are using Atmel's AT91SAM9260-EK or AT91SAM9XE Evaluation Kit
+ 	  <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3933>
+@@ -278,6 +280,7 @@
+ config MACH_AT91SAM9261EK
+ 	bool "Atmel AT91SAM9261-EK Evaluation Kit"
+ 	depends on ARCH_AT91SAM9261
++	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
+ 	help
+ 	  Select this if you are using Atmel's AT91SAM9261-EK Evaluation Kit.
+ 	  <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3820>
+@@ -293,6 +296,7 @@
+ config MACH_AT91SAM9G10EK
+ 	bool "Atmel AT91SAM9G10-EK Evaluation Kit"
+ 	depends on ARCH_AT91SAM9G10
++	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
+ 	help
+ 	  Select this if you are using Atmel's AT91SAM9G10-EK Evaluation Kit.
+ 	  <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4588>
+@@ -308,6 +312,7 @@
+ config MACH_AT91SAM9263EK
+ 	bool "Atmel AT91SAM9263-EK Evaluation Kit"
+ 	depends on ARCH_AT91SAM9263
++	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
+ 	help
+ 	  Select this if you are using Atmel's AT91SAM9263-EK Evaluation Kit.
+ 	  <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4057>
+@@ -350,6 +355,7 @@
+ config MACH_AT91SAM9RLEK
+ 	bool "Atmel AT91SAM9RL-EK Evaluation Kit"
+ 	depends on ARCH_AT91SAM9RL
++	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
+ 	help
+ 	  Select this if you are using Atmel's AT91SAM9RL-EK Evaluation Kit.
+ 
+@@ -364,6 +370,7 @@
+ config MACH_AT91SAM9G20EK
+ 	bool "Atmel AT91SAM9G20-EK Evaluation Kit"
+ 	depends on ARCH_AT91SAM9G20
++	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
+ 	help
+ 	  Select this if you are using Atmel's AT91SAM9G20-EK Evaluation Kit
+ 	  that embeds only one SD/MMC slot.
+@@ -371,6 +378,7 @@
+ config MACH_AT91SAM9G20EK_2MMC
+ 	bool "Atmel AT91SAM9G20-EK Evaluation Kit with 2 SD/MMC Slots"
+ 	depends on ARCH_AT91SAM9G20
++	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
+ 	help
+ 	  Select this if you are using an Atmel AT91SAM9G20-EK Evaluation Kit
+ 	  with 2 SD/MMC Slots. This is the case for AT91SAM9G20-EK rev. C and
+@@ -408,6 +416,7 @@
+ config MACH_AT91SAM9G45EKES
+ 	bool "Atmel AT91SAM9G45-EKES Evaluation Kit"
+ 	depends on ARCH_AT91SAM9G45
++	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
+ 	help
+ 	  Select this if you are using Atmel's AT91SAM9G45-EKES Evaluation Kit.
+ 	  "ES" at the end of the name means that this board is an
+@@ -424,6 +433,7 @@
+ config MACH_AT91SAM9M10EKES
+         bool "Atmel AT91SAM9M10-EKES Evaluation Kit"
+         depends on ARCH_AT91SAM9M10
++	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
+         help
+           Select this if you are using Atmel's AT91SAM9M10-EKES Evaluation Kit.
+           "ES" at the end of the name means that this board is an
+@@ -440,6 +450,7 @@
+ config MACH_AT91CAP9ADK
+ 	bool "Atmel AT91CAP9A-DK Evaluation Kit"
+ 	depends on ARCH_AT91CAP9
++	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
+ 	help
+ 	  Select this if you are using Atmel's AT91CAP9A-DK Evaluation Kit.
+ 	  <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4138>
+@@ -455,6 +466,7 @@
+ config MACH_AT572D940HFEB
+ 	bool "AT572D940HF-EK"
+ 	depends on ARCH_AT572D940HF
++	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
+ 	help
+ 	  Select this if you are using Atmel's AT572D940HF-EK evaluation kit.
+ 	  <http://www.atmel.com/products/diopsis/default.asp>
+@@ -494,6 +506,24 @@
+ 	  On AT91SAM926x boards both types of NAND flash can be present
+ 	  (8 and 16 bit data bus width).
+ 
++config MTD_NAND_ATMEL_ROOTFS_SIZE
++	int "Size NAND rootfs in MB"
++	range 8 250
++	depends on MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
++	default "124"
++	help
++	  Many Atmel development boards has a NAND Flash, 
++	  divided into three partitions.
++          1) Boot partition (4 MB)
++	  2) Root FS
++	  3) Data partition
++	  This allows you to configure the size of the root fs
++	  with the remainder ending up in the data partition.
++	  The legal values are between 8 and 250
++
++config MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
++	bool
++
+ # ----------------------------------------------------------
+ 
+ comment "AT91 Feature Selections"
recipes/linux/linux-2.6.30/at91/exp.2/linux-2.6.30-002-mach-at91-Kconfig.patch new file +196 -0

196 lines not on this page · raw message

recipes/linux/linux-2.6.30/at91/exp.2/linux-2.6.30-003-sam9m10g45ek.patch new file +29 -0
new file mode 100644
index 0000000..05a81bf
@@ -0,0 +1,29 @@
+diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9m10g45ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9m10g45ek.c
+--- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9m10g45ek.c	2010-03-14 11:41:36.000000000 +0100
++++ linux-2.6.30/arch/arm/mach-at91/board-sam9m10g45ek.c	2010-03-14 12:07:05.000000000 +0100
+@@ -432,9 +432,13 @@
+ 
+ #if defined(CONFIG_MACH_AT91SAM9G45EKES)
+ MACHINE_START(AT91SAM9G45EKES, "Atmel AT91SAM9G45-EKES")
+-#else
++#endif
++#if defined(CONFIG_MACH_AT91SAM9M10EKES)
+ MACHINE_START(AT91SAM9M10EKES, "Atmel AT91SAM9M10-EKES")
+ #endif
++#if defined(CONFIG_MACH_AT91SAM9M10G45EK)
++MACHINE_START(AT91SAM9M10G45EK, "Atmel AT91SAM9M10G45-EK")
++#endif
+ 	/* Maintainer: Atmel */
+ 	.phys_io	= AT91_BASE_SYS,
+ 	.io_pg_offst	= (AT91_VA_BASE_SYS >> 18) & 0xfffc,
+diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/Makefile linux-2.6.30/arch/arm/mach-at91/Makefile
+--- linux-2.6.30-0rig/arch/arm/mach-at91/Makefile	2010-03-14 11:13:34.000000000 +0100
++++ linux-2.6.30/arch/arm/mach-at91/Makefile	2010-03-14 12:08:01.000000000 +0100
+@@ -74,6 +74,7 @@
+ # AT91SAM9G45 board-specific support
+ obj-$(CONFIG_MACH_AT91SAM9G45EKES) += board-sam9m10g45ek.o
+ obj-$(CONFIG_MACH_AT91SAM9M10EKES) += board-sam9m10g45ek.o
++obj-$(CONFIG_MACH_AT91SAM9M10G45EK) += board-sam9m10g45ek.o
+ 
+ # AT91CAP9 board-specific support
+ obj-$(CONFIG_MACH_AT91CAP9ADK)	+= board-cap9adk.o
recipes/linux/linux-2.6.30/at91/exp.4/0001-Configurable-partition-size.patch new file +403 -0

403 lines not on this page · raw message

recipes/linux/linux-2.6.30/at91/exp.4/0002-mach-at91-KConfig-cleanup.patch new file +202 -0

202 lines not on this page · raw message

recipes/linux/linux-2.6.30/at91sam9m10ekes/defconfig +41 -9

106 lines not on this page · raw message

recipes/linux/linux-2.6.30/at91sam9m10ekes/exp.2/defconfig new file +1649 -0

1,649 lines not on this page · raw message

recipes/linux/linux-2.6.30/at91sam9m10ekes/exp.4/defconfig new file +1671 -0

53 lines not on this page · raw message

recipes/linux/linux-2.6.30/at91sam9m10g45ek/defconfig new file +1649 -0

1,649 lines not on this page · raw message

recipes/linux/linux_2.6.30.bb +52 -7

59 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.6.3.3

Part of the diff is not shown here. View the raw message.

#7 lore raw

PATCH 7/16 Add Wi-Fi support to at91

---
 recipes/owl-wifi/owl-wifi_1.0.4.bb |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)
 create mode 100644 recipes/owl-wifi/owl-wifi_1.0.4.bb
recipes/owl-wifi/owl-wifi_1.0.4.bb new file +31 -0
new file mode 100644
index 0000000..5e31b82
@@ -0,0 +1,31 @@
+DESCRIPTION = "Driver for HD Wireless Wi-Fi device"
+HOMEPAGE = "http://www.hd-wireless.se"
+PRIORITY = "optional"
+SECTION = "kernel/modules"
+LICENSE = "GPL"
+PR = "r1"
+RDEPENDS = "wireless-tools \
+	 wpa-supplicant \
+	 "
+
+SRC_URI = "http://www.hd-wireless.se/images/stories/public_pdf/owl-linux-arm-${PV}.tar.gz \
+	"
+
+S = "${WORKDIR}/owl-linux-arm-${PV}"
+
+inherit module
+
+do_compile () {
+        unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP
+        oe_runmake 'MODPATH=${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net' \
+                   'KERNELDIR=${STAGING_KERNEL_DIR}' \
+                   'KDIR=${STAGING_KERNEL_DIR}' \
+                   'KERNEL_VERSION=${KERNEL_VERSION}' \
+                   'CC=${KERNEL_CC}' \
+                   'LD=${KERNEL_LD}'
+}
+
+do_install() {
+        install -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net
+        install -m 0644 ${S}/owl*${KERNEL_OBJECT_SUFFIX} ${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/net
+}
Signature · 1 line
1.6.3.3
#8 lore raw

PATCH 8/16 Remove some patches, which was moved by previous linux patch

---
 ....30-001-configurable-partition-size.patch.patch |  362 --------------------
 .../at91/linux-2.6.30-002-mach-at91-Kconfig.patch  |  196 -----------
 .../at91/linux-2.6.30-003-sam9m10g45ek.patch       |   29 --
 3 files changed, 0 insertions(+), 587 deletions(-)
 delete mode 100644 recipes/linux/linux-2.6.30/at91/linux-2.6.30-001-configurable-partition-size.patch.patch
 delete mode 100644 recipes/linux/linux-2.6.30/at91/linux-2.6.30-002-mach-at91-Kconfig.patch
 delete mode 100644 recipes/linux/linux-2.6.30/at91/linux-2.6.30-003-sam9m10g45ek.patch
recipes/linux/linux-2.6.30/at91/linux-2.6.30-001-configurable-partition-size.patch.patch deleted +0 -362
deleted file mode 100644
index ae24d12..0000000
@@ -1,362 +0,0 @@
-diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-at572d940hf_ek.c linux-2.6.30/arch/arm/mach-at91/board-at572d940hf_ek.c
---- linux-2.6.30-0rig/arch/arm/mach-at91/board-at572d940hf_ek.c	2010-03-14 11:13:34.000000000 +0100
-+++ linux-2.6.30/arch/arm/mach-at91/board-at572d940hf_ek.c	2010-03-14 11:28:55.000000000 +0100
-@@ -114,10 +114,20 @@
-  */
- static struct mtd_partition __initdata eb_nand_partition[] = {
- 	{
--		.name	= "Partition 1",
--		.offset	= 0,
-+		.name   = "Bootstrap",
-+		.offset = 0,
-+		.size   = 4 * SZ_1M,
-+	},
-+	{
-+		.name	= "Root File System",
-+		.offset	= MTDPART_OFS_NXTBLK,
-+		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
-+	},
-+	{
-+		.name	= "Data",
-+		.offset	= MTDPART_OFS_NXTBLK,
- 		.size	= MTDPART_SIZ_FULL,
--	}
-+	},
- };
- 
- static struct mtd_partition * __init nand_partitions(int size, int *num_partitions)
-diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-cap9adk.c linux-2.6.30/arch/arm/mach-at91/board-cap9adk.c
---- linux-2.6.30-0rig/arch/arm/mach-at91/board-cap9adk.c	2010-03-14 11:13:34.000000000 +0100
-+++ linux-2.6.30/arch/arm/mach-at91/board-cap9adk.c	2010-03-14 11:28:36.000000000 +0100
-@@ -167,8 +167,18 @@
-  */
- static struct mtd_partition __initdata cap9adk_nand_partitions[] = {
- 	{
--		.name	= "NAND partition",
--		.offset	= 0,
-+		.name   = "Bootstrap",
-+		.offset = 0,
-+		.size   = 4 * SZ_1M,
-+	},
-+	{
-+		.name	= "Root File System",
-+		.offset	= MTDPART_OFS_NXTBLK,
-+		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
-+	},
-+	{
-+		.name	= "Data",
-+		.offset	= MTDPART_OFS_NXTBLK,
- 		.size	= MTDPART_SIZ_FULL,
- 	},
- };
-diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-dk.c linux-2.6.30/arch/arm/mach-at91/board-dk.c
---- linux-2.6.30-0rig/arch/arm/mach-at91/board-dk.c	2010-03-14 11:13:34.000000000 +0100
-+++ linux-2.6.30/arch/arm/mach-at91/board-dk.c	2010-03-14 11:28:43.000000000 +0100
-@@ -314,8 +314,18 @@
- 
- static struct mtd_partition __initdata dk_nand_partition[] = {
- 	{
--		.name	= "NAND Partition 1",
--		.offset	= 0,
-+		.name   = "Bootstrap",
-+		.offset = 0,
-+		.size   = 4 * SZ_1M,
-+	},
-+	{
-+		.name	= "Root File System",
-+		.offset	= MTDPART_OFS_NXTBLK,
-+		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
-+	},
-+	{
-+		.name	= "Data",
-+		.offset	= MTDPART_OFS_NXTBLK,
- 		.size	= MTDPART_SIZ_FULL,
- 	},
- };
-diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9260ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9260ek.c
---- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9260ek.c	2010-03-14 11:13:34.000000000 +0100
-+++ linux-2.6.30/arch/arm/mach-at91/board-sam9260ek.c	2010-03-14 11:26:57.000000000 +0100
-@@ -177,12 +177,17 @@
-  */
- static struct mtd_partition __initdata ek_nand_partition[] = {
- 	{
--		.name	= "Partition 1",
--		.offset	= 0,
--		.size	= SZ_256K,
-+		.name   = "Bootstrap",
-+		.offset = 0,
-+		.size   = 4 * SZ_1M,
- 	},
- 	{
--		.name	= "Partition 2",
-+		.name	= "Root File System",
-+		.offset	= MTDPART_OFS_NXTBLK,
-+		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
-+	},
-+	{
-+		.name	= "Data",
- 		.offset	= MTDPART_OFS_NXTBLK,
- 		.size	= MTDPART_SIZ_FULL,
- 	},
-diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9261ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9261ek.c
---- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9261ek.c	2010-03-14 11:13:34.000000000 +0100
-+++ linux-2.6.30/arch/arm/mach-at91/board-sam9261ek.c	2010-03-14 11:26:57.000000000 +0100
-@@ -184,12 +184,17 @@
-  */
- static struct mtd_partition __initdata ek_nand_partition[] = {
- 	{
--		.name	= "Partition 1",
--		.offset	= 0,
--		.size	= SZ_256K,
-+		.name   = "Bootstrap",
-+		.offset = 0,
-+		.size   = 4 * SZ_1M,
- 	},
- 	{
--		.name	= "Partition 2",
-+		.name	= "Root File System",
-+		.offset	= MTDPART_OFS_NXTBLK,
-+		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
-+	},
-+	{
-+		.name	= "Data",
- 		.offset	= MTDPART_OFS_NXTBLK,
- 		.size	= MTDPART_SIZ_FULL,
- 	},
-diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9263ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9263ek.c
---- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9263ek.c	2010-03-14 11:13:34.000000000 +0100
-+++ linux-2.6.30/arch/arm/mach-at91/board-sam9263ek.c	2010-03-14 11:26:57.000000000 +0100
-@@ -174,12 +174,17 @@
-  */
- static struct mtd_partition __initdata ek_nand_partition[] = {
- 	{
--		.name	= "Partition 1",
--		.offset	= 0,
--		.size	= SZ_64M,
-+		.name   = "Bootstrap",
-+		.offset = 0,
-+		.size   = 4 * SZ_1M,
- 	},
- 	{
--		.name	= "Partition 2",
-+		.name	= "Root File System",
-+		.offset	= MTDPART_OFS_NXTBLK,
-+		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
-+	},
-+	{
-+		.name	= "Data",
- 		.offset	= MTDPART_OFS_NXTBLK,
- 		.size	= MTDPART_SIZ_FULL,
- 	},
-diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c linux-2.6.30/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c
---- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c	2010-03-14 11:13:34.000000000 +0100
-+++ linux-2.6.30/arch/arm/mach-at91/board-sam9g20ek-2slot-mmc.c	2010-03-14 11:28:29.000000000 +0100
-@@ -130,12 +130,12 @@
- 		.size   = 4 * SZ_1M,
- 	},
- 	{
--		.name	= "Partition 1",
-+		.name	= "Root File System",
- 		.offset	= MTDPART_OFS_NXTBLK,
--		.size	= 60 * SZ_1M,
-+		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
- 	},
- 	{
--		.name	= "Partition 2",
-+		.name	= "Data",
- 		.offset	= MTDPART_OFS_NXTBLK,
- 		.size	= MTDPART_SIZ_FULL,
- 	},
-diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9g20ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9g20ek.c
---- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9g20ek.c	2010-03-14 11:13:34.000000000 +0100
-+++ linux-2.6.30/arch/arm/mach-at91/board-sam9g20ek.c	2010-03-14 11:26:57.000000000 +0100
-@@ -129,12 +129,12 @@
- 		.size   = 4 * SZ_1M,
- 	},
- 	{
--		.name	= "Partition 1",
-+		.name	= "Root File System",
- 		.offset	= MTDPART_OFS_NXTBLK,
--		.size	= 60 * SZ_1M,
-+		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
- 	},
- 	{
--		.name	= "Partition 2",
-+		.name	= "Data",
- 		.offset	= MTDPART_OFS_NXTBLK,
- 		.size	= MTDPART_SIZ_FULL,
- 	},
-diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9m10g45ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9m10g45ek.c
---- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9m10g45ek.c	2010-03-14 11:13:34.000000000 +0100
-+++ linux-2.6.30/arch/arm/mach-at91/board-sam9m10g45ek.c	2010-03-14 11:26:57.000000000 +0100
-@@ -133,12 +133,17 @@
-  */
- static struct mtd_partition __initdata ek_nand_partition[] = {
- 	{
--		.name	= "Partition 1",
--		.offset	= 0,
--		.size	= SZ_64M,
-+		.name   = "Bootstrap",
-+		.offset = 0,
-+		.size   = 4 * SZ_1M,
- 	},
- 	{
--		.name	= "Partition 2",
-+		.name	= "Root File System",
-+		.offset	= MTDPART_OFS_NXTBLK,
-+		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
-+	},
-+	{
-+		.name	= "Data",
- 		.offset	= MTDPART_OFS_NXTBLK,
- 		.size	= MTDPART_SIZ_FULL,
- 	},
-diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9rlek.c linux-2.6.30/arch/arm/mach-at91/board-sam9rlek.c
---- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9rlek.c	2010-03-14 11:13:34.000000000 +0100
-+++ linux-2.6.30/arch/arm/mach-at91/board-sam9rlek.c	2010-03-14 11:26:57.000000000 +0100
-@@ -83,12 +83,17 @@
-  */
- static struct mtd_partition __initdata ek_nand_partition[] = {
- 	{
--		.name	= "Partition 1",
--		.offset	= 0,
--		.size	= SZ_256K,
-+		.name   = "Bootstrap",
-+		.offset = 0,
-+		.size   = 4 * SZ_1M,
- 	},
- 	{
--		.name	= "Partition 2",
-+		.name	= "Root File System",
-+		.offset	= MTDPART_OFS_NXTBLK,
-+		.size	= CONFIG_MTD_NAND_ATMEL_ROOTFS_SIZE * SZ_1M,
-+	},
-+	{
-+		.name	= "Data",
- 		.offset	= MTDPART_OFS_NXTBLK,
- 		.size	= MTDPART_SIZ_FULL,
- 	},
-diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/Kconfig linux-2.6.30/arch/arm/mach-at91/Kconfig
---- linux-2.6.30-0rig/arch/arm/mach-at91/Kconfig	2010-03-14 11:13:34.000000000 +0100
-+++ linux-2.6.30/arch/arm/mach-at91/Kconfig	2010-03-14 11:32:54.000000000 +0100
-@@ -96,6 +96,7 @@
- config ARCH_AT91RM9200DK
- 	bool "Atmel AT91RM9200-DK Development board"
- 	depends on ARCH_AT91RM9200
-+	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
- 	help
- 	  Select this if you are using Atmel's AT91RM9200-DK Development board.
- 	  (Discontinued)
-@@ -213,6 +214,7 @@
- config MACH_AT91SAM9260EK
- 	bool "Atmel AT91SAM9260-EK / AT91SAM9XE Evaluation Kit"
- 	depends on ARCH_AT91SAM9260
-+	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
- 	help
- 	  Select this if you are using Atmel's AT91SAM9260-EK or AT91SAM9XE Evaluation Kit
- 	  <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3933>
-@@ -278,6 +280,7 @@
- config MACH_AT91SAM9261EK
- 	bool "Atmel AT91SAM9261-EK Evaluation Kit"
- 	depends on ARCH_AT91SAM9261
-+	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
- 	help
- 	  Select this if you are using Atmel's AT91SAM9261-EK Evaluation Kit.
- 	  <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=3820>
-@@ -293,6 +296,7 @@
- config MACH_AT91SAM9G10EK
- 	bool "Atmel AT91SAM9G10-EK Evaluation Kit"
- 	depends on ARCH_AT91SAM9G10
-+	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
- 	help
- 	  Select this if you are using Atmel's AT91SAM9G10-EK Evaluation Kit.
- 	  <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4588>
-@@ -308,6 +312,7 @@
- config MACH_AT91SAM9263EK
- 	bool "Atmel AT91SAM9263-EK Evaluation Kit"
- 	depends on ARCH_AT91SAM9263
-+	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
- 	help
- 	  Select this if you are using Atmel's AT91SAM9263-EK Evaluation Kit.
- 	  <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4057>
-@@ -350,6 +355,7 @@
- config MACH_AT91SAM9RLEK
- 	bool "Atmel AT91SAM9RL-EK Evaluation Kit"
- 	depends on ARCH_AT91SAM9RL
-+	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
- 	help
- 	  Select this if you are using Atmel's AT91SAM9RL-EK Evaluation Kit.
- 
-@@ -364,6 +370,7 @@
- config MACH_AT91SAM9G20EK
- 	bool "Atmel AT91SAM9G20-EK Evaluation Kit"
- 	depends on ARCH_AT91SAM9G20
-+	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
- 	help
- 	  Select this if you are using Atmel's AT91SAM9G20-EK Evaluation Kit
- 	  that embeds only one SD/MMC slot.
-@@ -371,6 +378,7 @@
- config MACH_AT91SAM9G20EK_2MMC
- 	bool "Atmel AT91SAM9G20-EK Evaluation Kit with 2 SD/MMC Slots"
- 	depends on ARCH_AT91SAM9G20
-+	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
- 	help
- 	  Select this if you are using an Atmel AT91SAM9G20-EK Evaluation Kit
- 	  with 2 SD/MMC Slots. This is the case for AT91SAM9G20-EK rev. C and
-@@ -408,6 +416,7 @@
- config MACH_AT91SAM9G45EKES
- 	bool "Atmel AT91SAM9G45-EKES Evaluation Kit"
- 	depends on ARCH_AT91SAM9G45
-+	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
- 	help
- 	  Select this if you are using Atmel's AT91SAM9G45-EKES Evaluation Kit.
- 	  "ES" at the end of the name means that this board is an
-@@ -424,6 +433,7 @@
- config MACH_AT91SAM9M10EKES
-         bool "Atmel AT91SAM9M10-EKES Evaluation Kit"
-         depends on ARCH_AT91SAM9M10
-+	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
-         help
-           Select this if you are using Atmel's AT91SAM9M10-EKES Evaluation Kit.
-           "ES" at the end of the name means that this board is an
-@@ -440,6 +450,7 @@
- config MACH_AT91CAP9ADK
- 	bool "Atmel AT91CAP9A-DK Evaluation Kit"
- 	depends on ARCH_AT91CAP9
-+	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
- 	help
- 	  Select this if you are using Atmel's AT91CAP9A-DK Evaluation Kit.
- 	  <http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4138>
-@@ -455,6 +466,7 @@
- config MACH_AT572D940HFEB
- 	bool "AT572D940HF-EK"
- 	depends on ARCH_AT572D940HF
-+	select MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
- 	help
- 	  Select this if you are using Atmel's AT572D940HF-EK evaluation kit.
- 	  <http://www.atmel.com/products/diopsis/default.asp>
-@@ -494,6 +506,24 @@
- 	  On AT91SAM926x boards both types of NAND flash can be present
- 	  (8 and 16 bit data bus width).
- 
-+config MTD_NAND_ATMEL_ROOTFS_SIZE
-+	int "Size NAND rootfs in MB"
-+	range 8 250
-+	depends on MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
-+	default "124"
-+	help
-+	  Many Atmel development boards has a NAND Flash, 
-+	  divided into three partitions.
-+          1) Boot partition (4 MB)
-+	  2) Root FS
-+	  3) Data partition
-+	  This allows you to configure the size of the root fs
-+	  with the remainder ending up in the data partition.
-+	  The legal values are between 8 and 250
-+
-+config MTD_NAND_ALLOW_CONFIGURABLE_ROOTFS_SIZE
-+	bool
-+
- # ----------------------------------------------------------
- 
- comment "AT91 Feature Selections"
recipes/linux/linux-2.6.30/at91/linux-2.6.30-002-mach-at91-Kconfig.patch deleted +0 -196

196 lines not on this page · raw message

recipes/linux/linux-2.6.30/at91/linux-2.6.30-003-sam9m10g45ek.patch deleted +0 -29
deleted file mode 100644
index 05a81bf..0000000
@@ -1,29 +0,0 @@
-diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9m10g45ek.c linux-2.6.30/arch/arm/mach-at91/board-sam9m10g45ek.c
---- linux-2.6.30-0rig/arch/arm/mach-at91/board-sam9m10g45ek.c	2010-03-14 11:41:36.000000000 +0100
-+++ linux-2.6.30/arch/arm/mach-at91/board-sam9m10g45ek.c	2010-03-14 12:07:05.000000000 +0100
-@@ -432,9 +432,13 @@
- 
- #if defined(CONFIG_MACH_AT91SAM9G45EKES)
- MACHINE_START(AT91SAM9G45EKES, "Atmel AT91SAM9G45-EKES")
--#else
-+#endif
-+#if defined(CONFIG_MACH_AT91SAM9M10EKES)
- MACHINE_START(AT91SAM9M10EKES, "Atmel AT91SAM9M10-EKES")
- #endif
-+#if defined(CONFIG_MACH_AT91SAM9M10G45EK)
-+MACHINE_START(AT91SAM9M10G45EK, "Atmel AT91SAM9M10G45-EK")
-+#endif
- 	/* Maintainer: Atmel */
- 	.phys_io	= AT91_BASE_SYS,
- 	.io_pg_offst	= (AT91_VA_BASE_SYS >> 18) & 0xfffc,
-diff -urN linux-2.6.30-0rig/arch/arm/mach-at91/Makefile linux-2.6.30/arch/arm/mach-at91/Makefile
---- linux-2.6.30-0rig/arch/arm/mach-at91/Makefile	2010-03-14 11:13:34.000000000 +0100
-+++ linux-2.6.30/arch/arm/mach-at91/Makefile	2010-03-14 12:08:01.000000000 +0100
-@@ -74,6 +74,7 @@
- # AT91SAM9G45 board-specific support
- obj-$(CONFIG_MACH_AT91SAM9G45EKES) += board-sam9m10g45ek.o
- obj-$(CONFIG_MACH_AT91SAM9M10EKES) += board-sam9m10g45ek.o
-+obj-$(CONFIG_MACH_AT91SAM9M10G45EK) += board-sam9m10g45ek.o
- 
- # AT91CAP9 board-specific support
- obj-$(CONFIG_MACH_AT91CAP9ADK)	+= board-cap9adk.o
Signature · 1 line
1.6.3.3