Improve SD-Card support in u-boot for AT91
PATCH 1/1 Improve SD-Card support in u-boot for AT91
From: Ulf Samuelsson <[email protected]>
Signed-off-by Ulf Samuelsson <[email protected]>
--- .../at91/0001-Add-environment-size.patch | 26 ++++ .../at91/0016-SupportEnv-load-from-SD-Card.patch | 126 ++++++++++++++++ .../0017-SD-Card-boot-patch-for-SAM9M10-G45.patch | 151 ++++++++++++++++++++ .../at91/0018-ADD-AT91-Build-script.patch | 45 ++++++ recipes/u-boot/u-boot_2009.11.bb | 22 +++- recipes/u-boot/u-boot_r2.inc | 90 ++++++++++++ 6 files changed, 456 insertions(+), 4 deletions(-) create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0001-Add-environment-size.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0016-SupportEnv-load-from-SD-Card.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0017-SD-Card-boot-patch-for-SAM9M10-G45.patch create mode 100644 recipes/u-boot/u-boot-2009.11/at91/0018-ADD-AT91-Build-script.patch create mode 100644 recipes/u-boot/u-boot_r2.inc
recipes/u-boot/u-boot-2009.11/at91/0001-Add-environment-size.patch new file +26 -0
@@ -0,0 +1,26 @@ +From 2fde0fc4d5e6e92d123286bb410f7a5e00edba91 Mon Sep 17 00:00:00 2001 +From: Ulf Samuelsson <ulf@bulwark.(none)> +Date: Fri, 4 Feb 2011 08:21:43 +0100 +Subject: [PATCH 1/2] Add environment size + +--- + include/configs/at91sam9m10g45ek.h | 3 +++ + 1 files changed, 3 insertions(+), 0 deletions(-) + +diff --git a/include/configs/at91sam9m10g45ek.h b/include/configs/at91sam9m10g45ek.h +index 261d698..a3d854b 100644 +--- a/include/configs/at91sam9m10g45ek.h ++++ b/include/configs/at91sam9m10g45ek.h +@@ -234,6 +234,9 @@ + #endif /* CONFIG_SYS_USE_DATAFLASH */ + + #ifdef CONFIG_SYS_USE_SDCARD ++#define CONFIG_ENV_IS_NOWHERE ++#define CONFIG_ENV_SIZE 0x4200 ++#define CONFIG_ENV_SECT_SIZE 0x420 + #define CONFIG_SYS_ROOTFS_SD 1 + #define CONFIG_EXTRA_ENV_SETTINGS \ + "load_env=fatload mmc 0:1 0x70000000 u-boot.env ; source 0x70000000 \0" \ +-- +1.6.3.3 +
recipes/u-boot/u-boot-2009.11/at91/0016-SupportEnv-load-from-SD-Card.patch new file +126 -0
126 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0017-SD-Card-boot-patch-for-SAM9M10-G45.patch new file +151 -0
151 lines not on this page · raw message
recipes/u-boot/u-boot-2009.11/at91/0018-ADD-AT91-Build-script.patch new file +45 -0
45 lines not on this page · raw message
recipes/u-boot/u-boot_2009.11.bb +18 -4
@@ -1,5 +1,5 @@ -PR = "r1" -require u-boot.inc +PR = "r2" +require u-boot_r2.inc DEFAULT_PREFERENCE = "-1" DEFAULT_PREFERENCE_at91sam9g10ek = "2"
@@ -28,6 +28,9 @@ 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 \ + file://0017-SD-Card-boot-patch-for-SAM9M10-G45.patch \ + file://0018-ADD-AT91-Build-script.patch \ " SRC_URI_append_adb4000 = "\
@@ -39,8 +42,19 @@ TARGET_LDFLAGS = "" inherit base do_compile () { - oe_runmake ${UBOOT_MACHINE} - oe_runmake all + if ! [ "x${UBOOT_MACHINES}" == "x" ] ; then + for board in ${UBOOT_MACHINES} ; do + if ! [ `grep ${board}_config Makefile | wc -c` == 0 ] ; then + mkdir -p binaries/${board} + oe_runmake O=binaries/${board} distclean + oe_runmake O=binaries/${board} ${board}_config + oe_runmake O=binaries/${board} all + fi + done + else + oe_runmake ${UBOOT_MACHINE} + oe_runmake all + fi } SRC_URI[md5sum] = "d94700614225f53c853dfe714eb5fa47"
recipes/u-boot/u-boot_r2.inc new file +90 -0
90 lines not on this page · raw message
Signature · 1 line
1.7.4.1