summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2022-06-27 18:37:34 -0500
committerJohn Klug <john.klug@multitech.com>2022-11-16 18:05:35 -0600
commit198fce0fdf72b283ec8621dc0561782ea8ca1687 (patch)
treef6fe5dd287199d9191a753b662ec63933fb9994d
parentad29d393fbd7d8b96cb5182e2c2ea845c247f332 (diff)
downloadmeta-multitech-atmel-198fce0fdf72b283ec8621dc0561782ea8ca1687.tar.gz
meta-multitech-atmel-198fce0fdf72b283ec8621dc0561782ea8ca1687.tar.bz2
meta-multitech-atmel-198fce0fdf72b283ec8621dc0561782ea8ca1687.zip
Make U-Boot configurable for SD card
-rw-r--r--recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt-sd.patch9
-rw-r--r--recipes-bsp/u-boot/u-boot.inc2
2 files changed, 6 insertions, 5 deletions
diff --git a/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt-sd.patch b/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt-sd.patch
index 3ccaf87..6b40314 100644
--- a/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt-sd.patch
+++ b/recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt-sd.patch
@@ -1,6 +1,6 @@
-diff -Naru orig/include/configs/at91sam9x5ek.h new/include/configs/at91sam9x5ek.h
---- orig/include/configs/at91sam9x5ek.h 2022-06-17 18:30:03.683129650 -0500
-+++ new/include/configs/at91sam9x5ek.h 2022-06-17 19:38:08.647034056 -0500
+diff -Naru a/include/configs/at91sam9x5ek.h b/include/configs/at91sam9x5ek.h
+--- a/include/configs/at91sam9x5ek.h 2022-06-27 17:22:35.279005660 -0500
++++ b/include/configs/at91sam9x5ek.h 2022-06-27 17:27:50.446998285 -0500
@@ -9,9 +9,12 @@
#ifndef __CONFIG_H__
#define __CONFIG_H__
@@ -150,8 +150,9 @@ diff -Naru orig/include/configs/at91sam9x5ek.h new/include/configs/at91sam9x5ek.
#endif
#ifdef CONFIG_SYS_USE_MMC
+-#define CONFIG_BOOTARGS "mem=128M console=ttyS0,115200 " \
+#define CONFIG_BOOTCOMMAND "load mmc 0:1 ${loadaddr} uImage; bootm ${loadaddr}"
- #define CONFIG_BOOTARGS "mem=128M console=ttyS0,115200 " \
++#define CONFIG_BOOTARGS "mem=256M console=ttyS0,115200 " \
"mtdparts=atmel_nand:" \
"8M(bootstrap/uboot/kernel)ro,-(rootfs) " \
"root=/dev/mmcblk0p2 " \
diff --git a/recipes-bsp/u-boot/u-boot.inc b/recipes-bsp/u-boot/u-boot.inc
index f6d496a..e4e534a 100644
--- a/recipes-bsp/u-boot/u-boot.inc
+++ b/recipes-bsp/u-boot/u-boot.inc
@@ -85,7 +85,7 @@ do_patch_append () {
except TypeError:
bb.fatal("PR is missing from recipe")
f.write(PR + os.linesep)
- SDCARD = d.getvar("BB_USE_SD",True)
+ SDCARD = d.getVar("BB_USE_SD",True)
if (SDCARD == 1):
try:
S = d.getVar("S",True)