From 198fce0fdf72b283ec8621dc0561782ea8ca1687 Mon Sep 17 00:00:00 2001 From: John Klug Date: Mon, 27 Jun 2022 18:37:34 -0500 Subject: Make U-Boot configurable for SD card --- recipes-bsp/u-boot/u-boot-2016.09.01/mtcdt-sd.patch | 9 +++++---- recipes-bsp/u-boot/u-boot.inc | 2 +- 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) -- cgit v1.2.3