⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gta02-bootmenu.patch

📁 Uboot常用的移植patches, 方便定制移植到s3c2440
💻 PATCH
字号:
Index: u-boot/board/neo1973/gta02/gta02.c===================================================================--- u-boot.orig/board/neo1973/gta02/gta02.c+++ u-boot/board/neo1973/gta02/gta02.c@@ -33,6 +33,7 @@ #include <common.h> #include <s3c2440.h> #include <i2c.h>+#include <bootmenu.h>  #include "../common/neo1973.h" #include "../common/jbt6k74.h"@@ -308,12 +309,16 @@ continue_boot: 		if (!(gpio->GPFDAT & (1 << 5))) 			gpio->GPBDAT &= ~(1 << 2); 	}+#endif  	if (menu_vote > 0) {-		bootmenu();+		extern struct bootmenu_setup bootmenu_setup;++		if (booted_from_nand)+			bootmenu_setup.comment = "NAND";+		neo1973_bootmenu(); 		nobootdelay = 1; 	}-#endif  	return 0; }@@ -410,13 +415,11 @@ int neo1973_on_key_pressed(void) 						& PCF50633_OOCSTAT_ONKEY); } -/* FIXME: shared */ int neo1973_aux_key_pressed(void) { 	S3C24X0_GPIO * const gpio = S3C24X0_GetBase_GPIO();-	if (gpio->GPFDAT & (1 << 6))-		return 0;-	return 1;++	return !!(gpio->GPFDAT & (1 << 6)); }  /* The sum of all part_size[]s must equal to or greater than the NAND size,Index: u-boot/board/neo1973/common/bootmenu.c===================================================================--- u-boot.orig/board/neo1973/common/bootmenu.c+++ u-boot/board/neo1973/common/bootmenu.c@@ -95,7 +95,9 @@ static void poweroff_if_idle(void *user) }  -static struct bootmenu_setup bootmenu_setup = {+/* "bootmenu_setup" is extern, so platform can tweak it */++struct bootmenu_setup bootmenu_setup = { 	.next_key = aux_key, 	.enter_key = on_key, 	.seconds = seconds,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -