u-boot-2009.11: Add recipe
PATCH 1/1 u-boot-2009.11: Add recipe
Fix buggy dataflash support for sam9g45/m10 Add support for sd-card
More robust error handling for dataflash access. Add debug command to allow runtime control of verbosity Add support for at91sam9m10g45ek
Signed-off-by Ulf Samuelsson <[email protected]>
--- ...port-running-ATSAM9G45-M10-from-dataflash.patch | 117 +++ ...-SAM9M10-G45-config-for-dataflash-support.patch | 110 +++ ...rt-selecting-SPI-mode-in-dataflash-driver.patch | 116 +++ ...replace-verbose-dataflash_mmc_mux-command.patch | 28 + ...ibarm-board.c-Gets-overwritten-workaround.patch | 34 + .../0007-fat.c-Add-DEBUG-currently-disabled.patch | 26 + ...0008-env_dataflash.c-More-robust-handling.patch | 148 ++++ ...g.c-Add-a-generic-function-for-debug-vars.patch | 168 +++++ ...10-debug.h-Add-header-for-debug-variables.patch | 60 ++ ...-common-Makefile-Add-cmd_debug.c-to-build.patch | 27 + ...mci.c-Support-writing-out-AT91-mci-config.patch | 100 +++ ...taflash.c-Status-printout-depend-on-DEBUG.patch | 59 ++ .../0014-AT91-MCI-Add-support-for-SD-Card.patch | 740 ++++++++++++++++++++ .../0015-sam9m10g45ek-Add-configuration-file.patch | 113 +++ recipes/u-boot/u-boot_2009.11.bb | 37 + 15 files changed, 1883 insertions(+), 0 deletions(-) create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0001-Initial-Commit.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0002-Support-running-ATSAM9G45-M10-from-dataflash.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0003-Update-SAM9M10-G45-config-for-dataflash-support.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0004-Support-selecting-SPI-mode-in-dataflash-driver.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0005-mux-replace-verbose-dataflash_mmc_mux-command.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0006-libarm-board.c-Gets-overwritten-workaround.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0007-fat.c-Add-DEBUG-currently-disabled.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0008-env_dataflash.c-More-robust-handling.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0009-cmd_debug.c-Add-a-generic-function-for-debug-vars.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0010-debug.h-Add-header-for-debug-variables.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0011-common-Makefile-Add-cmd_debug.c-to-build.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0012-cmd_mci.c-Support-writing-out-AT91-mci-config.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0013-atmel_dataflash.c-Status-printout-depend-on-DEBUG.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0014-AT91-MCI-Add-support-for-SD-Card.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0015-sam9m10g45ek-Add-configuration-file.patch create mode 100644 recipes/u-boot/u-boot_2009.11.bb
recipes/u-boot/u-boot-2009.11/at91/0001-Initial-Commit.patch new file +0 -0
recipes/u-boot/u-boot-2009.11/at91/0002-Support-running-ATSAM9G45-M10-from-dataflash.patch new file +117 -0
117 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0003-Update-SAM9M10-G45-config-for-dataflash-support.patch new file +110 -0
110 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0004-Support-selecting-SPI-mode-in-dataflash-driver.patch new file +116 -0
116 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0005-mux-replace-verbose-dataflash_mmc_mux-command.patch new file +28 -0
@@ -0,0 +1,28 @@ +From 600ddf4971206a6c653c23ddbce48253f1e07dd2 Mon Sep 17 00:00:00 2001 +From: Ulf Samuelsson <[email protected]> +Date: Sat, 13 Mar 2010 13:25:26 +0100 +Subject: [PATCH] mux: replace verbose dataflash_mmc_mux command + +Replace verbose 17 character command with the original thing + +Signed-off-by: Ulf Samuelsson <[email protected]> +--- + common/cmd_dataflash_mmc_mux.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/common/cmd_dataflash_mmc_mux.c b/common/cmd_dataflash_mmc_mux.c +index 97e303e..2fc67d4 100644 +--- a/common/cmd_dataflash_mmc_mux.c ++++ b/common/cmd_dataflash_mmc_mux.c +@@ -59,7 +59,7 @@ static int mmc_nspi (const char *s) + + U_BOOT_CMD( + dataflash_mmc_mux, 2, 1, do_dataflash_mmc_mux, +- "dataflash_mmc_mux\t- enable or disable MMC or SPI\n", ++ "mux\t- enable or disable MMC or SPI\n", + "[mmc, spi]\n" + " - enable or disable MMC or SPI" + ); +-- +1.6.0.2 +
recipes/u-boot/u-boot-2009.11/at91/0006-libarm-board.c-Gets-overwritten-workaround.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 1c72f37cbea8c1bb98d438108558a4e222c5ce2b Mon Sep 17 00:00:00 2001 +From: Ulf Samuelsson <[email protected]> +Date: Sat, 13 Mar 2010 13:29:34 +0100 +Subject: [PATCH] libarm/board.c: Gets overwritten - workaround! + +U_BOOT_VERSION gets overwritten by something. +Workaround, but no fix for the problem, by +adding another variable which can get overwritten +without problems. + +Signed-off-by: Ulf Samuelsson <[email protected]> +--- + lib_arm/board.c | 5 +++-- + 1 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/lib_arm/board.c b/lib_arm/board.c +index e148739..379e39b 100644 +--- a/lib_arm/board.c ++++ b/lib_arm/board.c +@@ -74,8 +74,9 @@ extern void dataflash_print_info(void); + #define CONFIG_IDENT_STRING "" + #endif + +-const char version_string[] = +- U_BOOT_VERSION" (" U_BOOT_DATE " - " U_BOOT_TIME ")"CONFIG_IDENT_STRING; ++const char dummy[] = "Is this overwritten ?"; ++const char version_string[] = ++ U_BOOT_VERSION " (" U_BOOT_DATE " - " U_BOOT_TIME ")"CONFIG_IDENT_STRING; + + #ifdef CONFIG_DRIVER_RTL8019 + extern void rtl8019_get_enetaddr (uchar * addr); +-- +1.6.0.2 +
recipes/u-boot/u-boot-2009.11/at91/0007-fat.c-Add-DEBUG-currently-disabled.patch new file +26 -0
@@ -0,0 +1,26 @@ +From db9c87b27153d55cd1818d2f1a2772b8070b3715 Mon Sep 17 00:00:00 2001 +From: Ulf Samuelsson <[email protected]> +Date: Sat, 13 Mar 2010 13:32:40 +0100 +Subject: [PATCH] fat.c: Add DEBUG (currently disabled) + +Signed-off-by: Ulf Samuelsson <[email protected]> +--- + fs/fat/fat.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/fs/fat/fat.c b/fs/fat/fat.c +index 2445f1e..87e7f08 100644 +--- a/fs/fat/fat.c ++++ b/fs/fat/fat.c +@@ -24,7 +24,7 @@ + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ +- ++//#define DEBUG + #include <common.h> + #include <config.h> + #include <fat.h> +-- +1.6.0.2 +
recipes/u-boot/u-boot-2009.11/at91/0008-env_dataflash.c-More-robust-handling.patch new file +148 -0
148 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0009-cmd_debug.c-Add-a-generic-function-for-debug-vars.patch new file +168 -0
168 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0010-debug.h-Add-header-for-debug-variables.patch new file +60 -0
60 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0011-common-Makefile-Add-cmd_debug.c-to-build.patch new file +27 -0
@@ -0,0 +1,27 @@ +From 81c5954a3932d46de7db92c7314060a491e20063 Mon Sep 17 00:00:00 2001 +From: Ulf Samuelsson <[email protected]> +Date: Sun, 14 Mar 2010 00:12:35 +0100 +Subject: [PATCH] common/Makefile: Add cmd_debug.c to build + +Ensure cmd_debug.c is built if CONFIG_CMD_DEBUG is set + +Signed-off-by: Ulf Samuelsson <[email protected]> +--- + common/Makefile | 1 + + 1 files changed, 1 insertions(+), 0 deletions(-) + +diff --git a/common/Makefile b/common/Makefile +index 47f6a71..a827be8 100644 +--- a/common/Makefile ++++ b/common/Makefile +@@ -75,6 +75,7 @@ COBJS-$(CONFIG_CMD_CONSOLE) += cmd_console.o + COBJS-$(CONFIG_CMD_CPLBINFO) += cmd_cplbinfo.o + COBJS-$(CONFIG_DATAFLASH_MMC_SELECT) += cmd_dataflash_mmc_mux.o + COBJS-$(CONFIG_CMD_DATE) += cmd_date.o ++COBJS-$(CONFIG_CMD_DEBUG) += cmd_debug.o + ifdef CONFIG_4xx + COBJS-$(CONFIG_CMD_SETGETDCR) += cmd_dcr.o + endif +-- +1.6.0.2 +
recipes/u-boot/u-boot-2009.11/at91/0012-cmd_mci.c-Support-writing-out-AT91-mci-config.patch new file +100 -0
100 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0013-atmel_dataflash.c-Status-printout-depend-on-DEBUG.patch new file +59 -0
59 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0014-AT91-MCI-Add-support-for-SD-Card.patch new file +740 -0
740 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0015-sam9m10g45ek-Add-configuration-file.patch new file +113 -0
113 lines not on this page · raw message
recipes/u-boot/u-boot_2009.11.bb new file +37 -0
@@ -0,0 +1,37 @@ +PR = "r1" +require u-boot.inc + +DEFAULT_PREFERENCE = "-1" +DEFAULT_PREFERENCE_at91sam9g20ek = "2" +DEFAULT_PREFERENCE_at91sam9g45ek = "2" + + +SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 " + +SRC_URI_append = "\ + file://at91/0001-Initial-Commit.patch;patch=1 \ + file://at91/0002-Support-running-ATSAM9G45-M10-from-dataflash.patch;patch=1 \ + file://at91/0003-Update-SAM9M10-G45-config-for-dataflash-support.patch;patch=1 \ + file://at91/0004-Support-selecting-SPI-mode-in-dataflash-driver.patch;patch=1 \ + file://at91/0005-mux-replace-verbose-dataflash_mmc_mux-command.patch;patch=1 \ + file://at91/0006-libarm-board.c-Gets-overwritten-workaround.patch;patch=1 \ + file://at91/0007-fat.c-Add-DEBUG-currently-disabled.patch;patch=1 \ + file://at91/0008-env_dataflash.c-More-robust-handling.patch;patch=1 \ + file://at91/0009-cmd_debug.c-Add-a-generic-function-for-debug-vars.patch;patch=1 \ + file://at91/0010-debug.h-Add-header-for-debug-variables.patch;patch=1 \ + file://at91/0011-common-Makefile-Add-cmd_debug.c-to-build.patch;patch=1 \ + file://at91/0012-cmd_mci.c-Support-writing-out-AT91-mci-config.patch;patch=1 \ + file://at91/0013-atmel_dataflash.c-Status-printout-depend-on-DEBUG.patch;patch=1 \ + file://at91/0014-AT91-MCI-Add-support-for-SD-Card.patch;patch=1 \ + file://at91/0015-sam9m10g45ek-Add-configuration-file.patch;patch=1 \ + " + +TARGET_LDFLAGS = "" + +inherit base + +do_compile () { + oe_runmake ${UBOOT_MACHINE} + oe_runmake all +} +
Signature · 1 line
1.6.0.2