2016-02-20 00:15:23 +01:00
|
|
|
--- include/configs/rpi-common.h.orig 2016-01-12 14:06:54 UTC
|
2015-10-23 21:12:27 +02:00
|
|
|
+++ include/configs/rpi-common.h
|
2016-02-20 00:15:23 +01:00
|
|
|
@@ -182,4 +182,55 @@
|
2015-10-23 21:12:27 +02:00
|
|
|
|
|
|
|
#define CONFIG_BOOTDELAY 2
|
2014-12-11 19:33:19 +01:00
|
|
|
|
|
|
|
+/*****************************************************************************
|
|
|
|
+ * FreeBSD customizations from here down.
|
|
|
|
+ ****************************************************************************/
|
|
|
|
+
|
2015-10-23 21:12:27 +02:00
|
|
|
+#define CONFIG_API
|
2014-12-11 19:33:19 +01:00
|
|
|
+#define CONFIG_EFI_PARTITION
|
|
|
|
+#define CONFIG_PREBOOT
|
|
|
|
+
|
2015-10-23 21:12:27 +02:00
|
|
|
+#define CONFIG_SYS_MMC_MAX_DEVICE 1
|
2014-12-11 19:33:19 +01:00
|
|
|
+
|
|
|
|
+/* Create a small(ish) boot environment for FreeBSD. */
|
|
|
|
+#undef CONFIG_EXTRA_ENV_SETTINGS
|
|
|
|
+#define CONFIG_EXTRA_ENV_SETTINGS \
|
2015-10-23 21:12:27 +02:00
|
|
|
+ ENV_MEM_LAYOUT_SETTINGS \
|
|
|
|
+ "stdin=serial,lcd\0" \
|
2014-12-11 19:33:19 +01:00
|
|
|
+ "stderr=serial,lcd\0" \
|
|
|
|
+ "stdout=serial,lcd\0" \
|
2015-10-23 21:12:27 +02:00
|
|
|
+ \
|
2015-01-02 03:18:37 +01:00
|
|
|
+ "Fatboot=" \
|
2015-10-23 21:12:27 +02:00
|
|
|
+ "env exists bootfile || bootfile=ubldr.bin; " \
|
2015-01-02 03:18:37 +01:00
|
|
|
+ "env exists loaderdev || env set loaderdev ${fatdev}; " \
|
2015-10-23 21:12:27 +02:00
|
|
|
+ "test ${loaderdev} = net && env exists SetupNetconfig && run SetupNetconfig; " \
|
2015-01-02 03:18:37 +01:00
|
|
|
+ "echo Booting from: ${fatdev} ${bootfile}; " \
|
2015-10-23 21:12:27 +02:00
|
|
|
+ "fatload ${fatdev} ${loadaddr} ${bootfile} && bootelf || go ${loadaddr}; " \
|
2014-12-11 19:33:19 +01:00
|
|
|
+ "\0" \
|
2015-01-02 03:18:37 +01:00
|
|
|
+ "Preboot=" \
|
2014-12-11 19:33:19 +01:00
|
|
|
+ "fdt addr 0x100; " \
|
2015-01-02 03:18:37 +01:00
|
|
|
+ "env exists uenv_file || uenv_file=uEnv.txt; " \
|
|
|
|
+ "env exists SetupFatdev && run SetupFatdev; " \
|
|
|
|
+ "env exists SetupUenv && run SetupUenv; " \
|
|
|
|
+ "env exists UserPreboot && run UserPreboot; " \
|
2014-12-11 19:33:19 +01:00
|
|
|
+ "\0" \
|
2015-01-02 03:18:37 +01:00
|
|
|
+ "SetupFatdev=" \
|
|
|
|
+ "env exists fatdev || fatdev='mmc 0'; " \
|
|
|
|
+ "\0" \
|
2015-10-23 21:12:27 +02:00
|
|
|
+ "SetupNetconfig=" \
|
|
|
|
+ "env exists ethact || usb start; " \
|
|
|
|
+ "env exists UserNetconfig && run UserNetconfig; " \
|
|
|
|
+ "\0" \
|
2015-01-02 03:18:37 +01:00
|
|
|
+ "SetupUenv=" \
|
2014-12-11 19:33:19 +01:00
|
|
|
+ "fatload ${fatdev} ${loadaddr} ${uenv_file} && " \
|
|
|
|
+ "env import -t ${loadaddr} ${filesize}; " \
|
|
|
|
+ "\0"
|
|
|
|
+
|
|
|
|
+#undef CONFIG_BOOTCOMMAND
|
2015-01-02 03:18:37 +01:00
|
|
|
+#define CONFIG_BOOTCOMMAND "run Fatboot"
|
|
|
|
+#undef CONFIG_PREBOOT
|
|
|
|
+#define CONFIG_PREBOOT "run Preboot"
|
2015-10-23 21:12:27 +02:00
|
|
|
+
|
|
|
|
+#define CONFIG_CMD_CACHE
|
2014-12-11 19:33:19 +01:00
|
|
|
+
|
|
|
|
#endif
|