mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-28 17:59:41 +02:00
[u-boot] fix Issue 28 visual indicator when booting from microSD
This commit is contained in:
parent
02cf23c40f
commit
9e00a231d4
@ -1,16 +1,17 @@
|
|||||||
From 07e50d40b5c79fbaa244ae7f8a60873d63bc4924 Mon Sep 17 00:00:00 2001
|
this patch include all the new files
|
||||||
From: Xiangfu Liu <xiangfu@qi-hardware.com>
|
|
||||||
Date: Sat, 16 Jan 2010 12:56:31 +0800
|
From: Xiangfu Liu <xiangfu@sharism.com>
|
||||||
Subject: [PATCH 1/2] new files
|
|
||||||
|
|
||||||
---
|
---
|
||||||
board/qi_lb60/Makefile | 38 +
|
|
||||||
board/qi_lb60/config.mk | 31 +
|
board/qi_lb60/Makefile | 38
|
||||||
board/qi_lb60/flash.c | 50 +
|
board/qi_lb60/config.mk | 31
|
||||||
|
board/qi_lb60/flash.c | 50
|
||||||
board/qi_lb60/qi_lb60.c | 107 +
|
board/qi_lb60/qi_lb60.c | 107 +
|
||||||
board/qi_lb60/u-boot-nand.lds | 63 +
|
board/qi_lb60/u-boot-nand.lds | 63
|
||||||
board/qi_lb60/u-boot.lds | 63 +
|
board/qi_lb60/u-boot.lds | 63
|
||||||
cpu/mips/jz4740.c | 574 +++++
|
cpu/mips/jz4740.c | 574 ++++
|
||||||
cpu/mips/jz4740_cpm_test.c | 98 +
|
cpu/mips/jz4740_cpm_test.c | 98 +
|
||||||
cpu/mips/jz4740_nand.c | 199 ++
|
cpu/mips/jz4740_nand.c | 199 ++
|
||||||
cpu/mips/jz_cs8900.c | 397 +++
|
cpu/mips/jz_cs8900.c | 397 +++
|
||||||
@ -22,17 +23,17 @@ Subject: [PATCH 1/2] new files
|
|||||||
cpu/mips/jz_lcd.h | 1020 ++++++++
|
cpu/mips/jz_lcd.h | 1020 ++++++++
|
||||||
cpu/mips/jz_mmc.c | 1404 +++++++++++
|
cpu/mips/jz_mmc.c | 1404 +++++++++++
|
||||||
cpu/mips/jz_mmc.h | 113 +
|
cpu/mips/jz_mmc.h | 113 +
|
||||||
cpu/mips/jz_serial.c | 167 ++
|
cpu/mips/jz_serial.c | 167 +
|
||||||
cpu/mips/mmc_protocol.h | 273 +++
|
cpu/mips/mmc_protocol.h | 273 ++
|
||||||
cpu/mips/qi_lb60_gpm940b0.c | 420 ++++
|
cpu/mips/qi_lb60_gpm940b0.c | 420 +++
|
||||||
cpu/mips/qi_lb60_gpm940b0.h | 212 ++
|
cpu/mips/qi_lb60_gpm940b0.h | 212 ++
|
||||||
cpu/mips/usb_boot.S | 880 +++++++
|
cpu/mips/usb_boot.S | 880 +++++++
|
||||||
include/asm-mips/jz4740.h | 4880 +++++++++++++++++++++++++++++++++++++
|
include/asm-mips/jz4740.h | 4880 +++++++++++++++++++++++++++++++++++++
|
||||||
include/configs/qi_lb60.h | 213 ++
|
include/configs/qi_lb60.h | 213 ++
|
||||||
nand_spl/board/qi_lb60/Makefile | 104 +
|
nand_spl/board/qi_lb60/Makefile | 104 +
|
||||||
nand_spl/board/qi_lb60/config.mk | 34 +
|
nand_spl/board/qi_lb60/config.mk | 34
|
||||||
nand_spl/board/qi_lb60/u-boot.lds | 63 +
|
nand_spl/board/qi_lb60/u-boot.lds | 63
|
||||||
nand_spl/nand_boot_jz4740.c | 456 ++++
|
nand_spl/nand_boot_jz4740.c | 456 +++
|
||||||
29 files changed, 13637 insertions(+), 0 deletions(-)
|
29 files changed, 13637 insertions(+), 0 deletions(-)
|
||||||
create mode 100644 board/qi_lb60/Makefile
|
create mode 100644 board/qi_lb60/Makefile
|
||||||
create mode 100644 board/qi_lb60/config.mk
|
create mode 100644 board/qi_lb60/config.mk
|
||||||
@ -64,6 +65,7 @@ Subject: [PATCH 1/2] new files
|
|||||||
create mode 100644 nand_spl/board/qi_lb60/u-boot.lds
|
create mode 100644 nand_spl/board/qi_lb60/u-boot.lds
|
||||||
create mode 100644 nand_spl/nand_boot_jz4740.c
|
create mode 100644 nand_spl/nand_boot_jz4740.c
|
||||||
|
|
||||||
|
|
||||||
diff --git a/board/qi_lb60/Makefile b/board/qi_lb60/Makefile
|
diff --git a/board/qi_lb60/Makefile b/board/qi_lb60/Makefile
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..470447d
|
index 0000000..470447d
|
||||||
@ -13875,6 +13877,3 @@ index 0000000..924a47a
|
|||||||
+ */
|
+ */
|
||||||
+ (*uboot)();
|
+ (*uboot)();
|
||||||
+}
|
+}
|
||||||
--
|
|
||||||
1.6.3.3
|
|
||||||
|
|
||||||
|
@ -1,30 +1,32 @@
|
|||||||
From 64c6e9b3ad9241d88411867cc4d5478bb6c6f3dd Mon Sep 17 00:00:00 2001
|
this patch include the u-boot2009.11 change files
|
||||||
|
|
||||||
From: Xiangfu Liu <xiangfu@sharism.cc>
|
From: Xiangfu Liu <xiangfu@sharism.cc>
|
||||||
Date: Mon, 18 Jan 2010 15:52:15 +0800
|
|
||||||
Subject: [PATCH 2/2] change file
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Makefile | 10 +
|
Makefile | 10 +
|
||||||
board/qi_lb60/qi_lb60.c | 39 +++-
|
board/qi_lb60/qi_lb60.c | 39 +++-
|
||||||
common/env_common.c | 2 +-
|
common/env_common.c | 2
|
||||||
common/lcd.c | 45 ++++-
|
common/lcd.c | 45 ++++
|
||||||
common/main.c | 4 +-
|
common/main.c | 4
|
||||||
cpu/mips/Makefile | 4 +
|
cpu/mips/Makefile | 4
|
||||||
cpu/mips/cache.S | 280 ++++++++++----------------
|
cpu/mips/cache.S | 280 ++++++++++----------------
|
||||||
cpu/mips/config.mk | 6 +-
|
cpu/mips/config.mk | 6 -
|
||||||
cpu/mips/cpu.c | 75 +++++++
|
cpu/mips/cpu.c | 75 +++++++
|
||||||
cpu/mips/start.S | 432 +++++++++++++++++++++++++++++++--------
|
cpu/mips/start.S | 432 ++++++++++++++++++++++++++++++++--------
|
||||||
drivers/mtd/nand/nand_base.c | 88 ++++++++-
|
drivers/mtd/nand/nand_base.c | 88 ++++++++
|
||||||
examples/standalone/mips.lds | 2 +-
|
examples/standalone/mips.lds | 2
|
||||||
include/asm-mips/addrspace.h | 2 +-
|
include/asm-mips/addrspace.h | 2
|
||||||
include/asm-mips/global_data.h | 11 +
|
include/asm-mips/global_data.h | 11 +
|
||||||
include/configs/qi_lb60.h | 2 +
|
include/configs/qi_lb60.h | 2
|
||||||
include/lcd.h | 56 +++++-
|
include/lcd.h | 56 +++++
|
||||||
lib_mips/board.c | 18 ++-
|
lib_mips/board.c | 18 +-
|
||||||
lib_mips/bootm.c | 4 +-
|
lib_mips/bootm.c | 7 +
|
||||||
lib_mips/time.c | 4 +
|
lib_mips/time.c | 4
|
||||||
nand_spl/nand_boot_jz4740.c | 46 ++---
|
nand_spl/nand_boot_jz4740.c | 46 +---
|
||||||
20 files changed, 797 insertions(+), 333 deletions(-)
|
20 files changed, 800 insertions(+), 333 deletions(-)
|
||||||
|
|
||||||
|
|
||||||
diff --git a/Makefile b/Makefile
|
diff --git a/Makefile b/Makefile
|
||||||
index f06a97c..a318eb4 100644
|
index f06a97c..a318eb4 100644
|
||||||
@ -1700,7 +1702,7 @@ index b2d113e..87cb12d 100644
|
|||||||
bd->bi_flashoffset = monitor_flash_len; /* reserved area for U-Boot */
|
bd->bi_flashoffset = monitor_flash_len; /* reserved area for U-Boot */
|
||||||
#else
|
#else
|
||||||
diff --git a/lib_mips/bootm.c b/lib_mips/bootm.c
|
diff --git a/lib_mips/bootm.c b/lib_mips/bootm.c
|
||||||
index 54af24c..34150e9 100644
|
index 54af24c..64bcad9 100644
|
||||||
--- a/lib_mips/bootm.c
|
--- a/lib_mips/bootm.c
|
||||||
+++ b/lib_mips/bootm.c
|
+++ b/lib_mips/bootm.c
|
||||||
@@ -46,7 +46,9 @@ static void linux_env_set (char * env_name, char * env_val);
|
@@ -46,7 +46,9 @@ static void linux_env_set (char * env_name, char * env_val);
|
||||||
@ -1714,6 +1716,16 @@ index 54af24c..34150e9 100644
|
|||||||
char env_buf[12];
|
char env_buf[12];
|
||||||
char *cp;
|
char *cp;
|
||||||
|
|
||||||
|
@@ -98,6 +100,9 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
|
||||||
|
}
|
||||||
|
|
||||||
|
/* we assume that the kernel is in place */
|
||||||
|
+ if (gd->boot_option == 1)
|
||||||
|
+ printf ("\n *** Booting from mircoSD ***\n");
|
||||||
|
+
|
||||||
|
printf ("\nStarting kernel ...\n\n");
|
||||||
|
|
||||||
|
theKernel (linux_argc, linux_argv, linux_env, 0);
|
||||||
diff --git a/lib_mips/time.c b/lib_mips/time.c
|
diff --git a/lib_mips/time.c b/lib_mips/time.c
|
||||||
index 07e356d..4654bf4 100644
|
index 07e356d..4654bf4 100644
|
||||||
--- a/lib_mips/time.c
|
--- a/lib_mips/time.c
|
||||||
@ -1813,6 +1825,3 @@ index 924a47a..146de19 100644
|
|||||||
usb_boot();
|
usb_boot();
|
||||||
}
|
}
|
||||||
|
|
||||||
--
|
|
||||||
1.6.3.3
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user