Ubuntu Pastebin

Paste from ogra at Thu, 16 Jul 2015 13:40:26 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ogra@anubis:~/datengrab/rpi/uboot/bbb/u-boot$ git diff
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index 476430d..6128a88 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -41,8 +41,8 @@
 /* Custom script for NOR */
 #define CONFIG_SYS_LDSCRIPT            "board/ti/am335x/u-boot.lds"
 
-/* Always 128 KiB env size */
-#define CONFIG_ENV_SIZE                        (128 << 10)
+/* Always 16 KiB env size */
+#define CONFIG_ENV_SIZE                        (16 << 10)
 
 /* Enhance our eMMC support / experience. */
 #define CONFIG_CMD_GPT
@@ -479,4 +479,17 @@
 #endif
 #endif  /* NOR support */
 
+/* Save the env to the fat partition. */
+#ifndef CONFIG_SPL_BUILD
+#undef  CONFIG_ENV_IS_NOWHERE
+#undef  CONFIG_ENV_IS_IN_NAND
+#undef  CONFIG_ENV_IS_IN_MMC
+#define CONFIG_ENV_IS_IN_FAT
+#define CONFIG_FAT_WRITE
+#define FAT_ENV_INTERFACE      "mmc"
+#define FAT_ENV_DEVICE_AND_PART        "0"
+#define FAT_ENV_FILE           "uboot.env"
+#define CONFIG_SUPPORT_RAW_INITRD
+#endif
+
 #endif /* ! __CONFIG_AM335X_EVM_H */
Download as text