forked from mendersoftware/meta-mender-community
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
u-boot/sama5d27-som1-ek-sd: update to 2019.04
Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
- Loading branch information
Showing
2 changed files
with
94 additions
and
3 deletions.
There are no files selected for viewing
78 changes: 78 additions & 0 deletions
78
.../recipes-bsp/u-boot/files/0001-ARM-sama5d27_som1_ek-Add-support-to-mender-for-U-Boo.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
From dea234aada238b9579420cccc5765effa8db7543 Mon Sep 17 00:00:00 2001 | ||
From: Pierre-Jean Texier <pjtexier@koncepto.io> | ||
Date: Tue, 25 Jun 2019 21:13:53 +0200 | ||
Subject: [PATCH] ARM: sama5d27_som1_ek: Add support to mender for U-Boot | ||
2019.04 | ||
|
||
Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> | ||
--- | ||
configs/sama5d27_som1_ek_mmc_defconfig | 10 ++++++---- | ||
include/configs/sama5d27_som1_ek.h | 11 +++++++++++ | ||
2 files changed, 17 insertions(+), 4 deletions(-) | ||
|
||
diff --git a/configs/sama5d27_som1_ek_mmc_defconfig b/configs/sama5d27_som1_ek_mmc_defconfig | ||
index e31eb1c..09290e5 100644 | ||
--- a/configs/sama5d27_som1_ek_mmc_defconfig | ||
+++ b/configs/sama5d27_som1_ek_mmc_defconfig | ||
@@ -23,7 +23,7 @@ CONFIG_SYS_EXTRA_OPTIONS="SAMA5D2" | ||
CONFIG_SD_BOOT=y | ||
CONFIG_BOOTDELAY=3 | ||
CONFIG_USE_BOOTARGS=y | ||
-CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait" | ||
+CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk root='${mender_kernel_root}' rw rootwait" | ||
CONFIG_MISC_INIT_R=y | ||
# CONFIG_DISPLAY_BOARDINFO is not set | ||
CONFIG_SPL_SEPARATE_BSS=y | ||
@@ -39,14 +39,17 @@ CONFIG_CMD_DHCP=y | ||
CONFIG_CMD_PING=y | ||
CONFIG_CMD_EXT4=y | ||
CONFIG_CMD_FAT=y | ||
+CONFIG_CMD_FS_GENERIC=y | ||
CONFIG_OF_CONTROL=y | ||
CONFIG_SPL_OF_CONTROL=y | ||
CONFIG_DEFAULT_DEVICE_TREE="at91-sama5d27_som1_ek" | ||
CONFIG_OF_SPL_REMOVE_PROPS="interrupts interrupt-parent dmas dma-names" | ||
-CONFIG_ENV_IS_IN_FAT=y | ||
+CONFIG_ENV_IS_IN_MMC=y | ||
CONFIG_DM=y | ||
CONFIG_SPL_DM=y | ||
CONFIG_SPL_DM_SEQ_ALIAS=y | ||
+CONFIG_BOOTCOUNT_LIMIT=y | ||
+CONFIG_BOOTCOUNT_ENV=y | ||
CONFIG_CLK=y | ||
CONFIG_SPL_CLK=y | ||
CONFIG_CLK_AT91=y | ||
@@ -92,7 +95,6 @@ CONFIG_USB_STORAGE=y | ||
CONFIG_USB_GADGET=y | ||
CONFIG_USB_GADGET_ATMEL_USBA=y | ||
CONFIG_DM_VIDEO=y | ||
-CONFIG_W1_GPIO=y | ||
CONFIG_W1_EEPROM=y | ||
-CONFIG_W1_EEPROM_DS24XXX=y | ||
+CONFIG_FAT_WRITE=y | ||
CONFIG_OF_LIBFDT_OVERLAY=y | ||
diff --git a/include/configs/sama5d27_som1_ek.h b/include/configs/sama5d27_som1_ek.h | ||
index f128bdb..339ba32 100644 | ||
--- a/include/configs/sama5d27_som1_ek.h | ||
+++ b/include/configs/sama5d27_som1_ek.h | ||
@@ -40,6 +40,17 @@ | ||
#define CONFIG_BOOTCOMMAND "fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x21000000 at91-sama5d27_som1_ek.dtb; " \ | ||
"fatload mmc " CONFIG_ENV_FAT_DEVICE_AND_PART " 0x22000000 zImage; " \ | ||
"bootz 0x22000000 - 0x21000000" | ||
+ | ||
+#undef CONFIG_ENV_SIZE | ||
+#undef CONFIG_BOOTCOMMAND | ||
+ | ||
+#define CONFIG_ENV_SIZE 0x1000 | ||
+#define CONFIG_BOOTCOMMAND \ | ||
+ "run mender_setup;" \ | ||
+ "load ${mender_uboot_root} 0x21000000 /boot/at91-sama5d27_som1_ek.dtb; " \ | ||
+ "load ${mender_uboot_root} 0x22000000 /boot/zImage; " \ | ||
+ "bootz 0x22000000 - 0x21000000; " \ | ||
+ "run mender_try_to_recover" | ||
#endif | ||
|
||
#ifdef CONFIG_QSPI_BOOT | ||
-- | ||
2.7.4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters