Browse Source

add u-boot patches and wrapper scripts

Waldemar Brodkorb 10 years ago
parent
commit
b3df07cfda

+ 1 - 0
package/u-boot/files/fw_env.config

@@ -0,0 +1 @@
+/mnt/uboot.env      0x0000          0x4000

+ 5 - 0
package/u-boot/files/uboot_print_env

@@ -0,0 +1,5 @@
+#!/bin/sh
+
+mount -r /dev/mmcblk0p1 /mnt
+fw_printenv "$@"
+umount /mnt

+ 5 - 0
package/u-boot/files/uboot_set_env

@@ -0,0 +1,5 @@
+#!/bin/sh
+
+mount /dev/mmcblk0p1 /mnt
+fw_setenv "$@"
+umount /mnt

+ 13 - 0
package/u-boot/patches/patch-arch_arm_lib_bootm_c

@@ -0,0 +1,13 @@
+--- u-boot-d8bec60c1b0de7770f9b56ad092ab9be801d99af.orig/arch/arm/lib/bootm.c	2015-01-06 09:00:23.000000000 +0100
++++ u-boot-d8bec60c1b0de7770f9b56ad092ab9be801d99af/arch/arm/lib/bootm.c	2015-01-07 18:11:45.971158851 +0100
+@@ -70,8 +70,8 @@ void arch_lmb_reserve(struct lmb *lmb)
+  */
+ static void announce_and_cleanup(int fake)
+ {
+-	printf("\nStarting kernel ...%s\n\n", fake ?
+-		"(fake run for tracing)" : "");
++	//printf("\nStarting kernel ...%s\n\n", fake ?
++	//	"(fake run for tracing)" : "");
+ 	bootstage_mark_name(BOOTSTAGE_ID_BOOTM_HANDOFF, "start_kernel");
+ #ifdef CONFIG_BOOTSTAGE_FDT
+ 	bootstage_fdt_add_report();

+ 11 - 0
package/u-boot/patches/patch-common_cmd_bootmenu_c

@@ -0,0 +1,11 @@
+--- u-boot-d8bec60c1b0de7770f9b56ad092ab9be801d99af.orig/common/cmd_bootmenu.c	2015-01-06 09:00:23.000000000 +0100
++++ u-boot-d8bec60c1b0de7770f9b56ad092ab9be801d99af/common/cmd_bootmenu.c	2015-01-07 17:51:11.947152887 +0100
+@@ -423,7 +423,7 @@ cleanup:
+ 	}
+ 
+ 	if (title && command) {
+-		debug("Starting entry '%s'\n", title);
++		//debug("Starting entry '%s'\n", title);
+ 		free(title);
+ 		run_command(command, 0);
+ 		free(command);

+ 44 - 0
package/u-boot/patches/patch-include_configs_rpi_h

@@ -0,0 +1,44 @@
+--- u-boot-d8bec60c1b0de7770f9b56ad092ab9be801d99af.orig/include/configs/rpi.h	2015-01-06 09:00:23.000000000 +0100
++++ u-boot-d8bec60c1b0de7770f9b56ad092ab9be801d99af/include/configs/rpi.h	2015-01-07 18:05:13.563156954 +0100
+@@ -19,6 +19,8 @@
+ 
+ #include <linux/sizes.h>
+ 
++#undef DEBUG
++
+ /* Architecture, CPU, etc.*/
+ #define CONFIG_SYS_GENERIC_BOARD
+ #define CONFIG_BCM2835
+@@ -96,7 +98,7 @@
+ /* Console UART */
+ #define CONFIG_PL01X_SERIAL
+ #define CONFIG_CONS_INDEX		0
+-#define CONFIG_BAUDRATE			115200
++#define CONFIG_BAUDRATE			9600
+ 
+ /* Console configuration */
+ #define CONFIG_SYS_CBSIZE		1024
+@@ -117,7 +119,7 @@
+ 
+ /* Shell */
+ #define CONFIG_SYS_MAXARGS		8
+-#define CONFIG_SYS_PROMPT		"U-Boot> "
++#define CONFIG_SYS_PROMPT		"CONET-Boot> "
+ #define CONFIG_COMMAND_HISTORY
+ 
+ /* Commands */
+@@ -185,9 +187,12 @@
+ 
+ #define CONFIG_EXTRA_ENV_SETTINGS \
+ 	ENV_DEVICE_SETTINGS \
+-	ENV_MEM_LAYOUT_SETTINGS \
+-	BOOTENV
++	ENV_MEM_LAYOUT_SETTINGS
+ 
+ #define CONFIG_BOOTDELAY 2
++#define CONFIG_CMD_BOOTMENU
++#define CONFIG_MENU
++#define CONFIG_AUTOBOOT_KEYED
++#define CONFIG_MENU_SHOW
+ 
+ #endif

+ 11 - 0
package/u-boot/patches/patch-include_env_default_h

@@ -0,0 +1,11 @@
+--- u-boot-2015.01.orig/include/env_default.h	2015-01-12 15:39:08.000000000 +0100
++++ u-boot-2015.01/include/env_default.h	2015-02-16 10:23:23.123639584 +0100
+@@ -8,6 +8,8 @@
+  * SPDX-License-Identifier:	GPL-2.0+
+  */
+ 
++#include <generated/autoconf.h>
++
+ #include <env_callback.h>
+ 
+ #ifdef DEFAULT_ENV_INSTANCE_EMBEDDED

+ 11 - 0
package/u-boot/patches/patch-tools_env_fw_env_h

@@ -0,0 +1,11 @@
+--- u-boot-d8bec60c1b0de7770f9b56ad092ab9be801d99af.orig/tools/env/fw_env.h	2015-01-06 09:00:23.000000000 +0100
++++ u-boot-d8bec60c1b0de7770f9b56ad092ab9be801d99af/tools/env/fw_env.h	2015-01-07 13:13:44.399072426 +0100
+@@ -14,6 +14,8 @@
+ #include <config.h>
+ #endif
+ 
++#include <generated/autoconf.h>
++
+ /*
+  * To build the utility with the static configuration
+  * comment out the next line.