From f8ac113d054281dbad52d2b68d9eff5dce509073 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Fri, 21 Aug 2020 12:08:51 +0800 Subject: [PATCH] Update u-boot and linux kernel patch, adjust nandflash partition and remove jffs2 support in u-boot --- linux-bsp/patches/linux-3.0-fl2440.patch | 56 +++++++----------- linux-bsp/patches/u-boot-2010.09-fl2440.patch | 85 ++++++++++++++-------------- 2 files changed, 65 insertions(+), 76 deletions(-) diff --git a/linux-bsp/patches/linux-3.0-fl2440.patch b/linux-bsp/patches/linux-3.0-fl2440.patch index 7721faa..b5c016a 100644 --- a/linux-bsp/patches/linux-3.0-fl2440.patch +++ b/linux-bsp/patches/linux-3.0-fl2440.patch @@ -1,6 +1,6 @@ diff -Nuar -x .gitignore linux-3.0/arch/arm/mach-s3c2440/mach-smdk2440.c linux-3.0-fl2440/arch/arm/mach-s3c2440/mach-smdk2440.c --- linux-3.0/arch/arm/mach-s3c2440/mach-smdk2440.c 2011-07-22 10:17:23.000000000 +0800 -+++ linux-3.0-fl2440/arch/arm/mach-s3c2440/mach-smdk2440.c 2020-01-09 16:54:31.213380202 +0800 ++++ linux-3.0-fl2440/arch/arm/mach-s3c2440/mach-smdk2440.c 2020-08-21 11:21:29.628495043 +0800 @@ -23,6 +23,14 @@ #include <linux/platform_device.h> #include <linux/io.h> @@ -274,8 +274,8 @@ smdk_machine_init(); diff -Nuar -x .gitignore linux-3.0/arch/arm/plat-s3c24xx/common-smdk.c linux-3.0-fl2440/arch/arm/plat-s3c24xx/common-smdk.c --- linux-3.0/arch/arm/plat-s3c24xx/common-smdk.c 2011-07-22 10:17:23.000000000 +0800 -+++ linux-3.0-fl2440/arch/arm/plat-s3c24xx/common-smdk.c 2020-01-09 16:54:31.213380202 +0800 -@@ -48,107 +48,98 @@ ++++ linux-3.0-fl2440/arch/arm/plat-s3c24xx/common-smdk.c 2020-08-21 10:37:03.244443895 +0800 +@@ -48,107 +48,88 @@ /* LED devices */ @@ -415,29 +415,19 @@ + .size = SZ_1M*15, /* 0x0100000 ~ 0X1000000 */ + }, + [2] = { -+ .name = "mtdblock2 rootfs 40MB", ++ .name = "mtdblock2 rootfs 80MB", + .offset = MTDPART_OFS_NXTBLK, -+ .size = SZ_1M*40, ++ .size = SZ_1M*80, + }, + [3] = { -+ .name = "mtdblock3 apps 80MB", ++ .name = "mtdblock3 apps 160MB", + .offset = MTDPART_OFS_NXTBLK, -+ .size = SZ_1M*80, -+ }, -+ [4] = { -+ .name = "mtdblock4 data 80MB", -+ .offset = MTDPART_OFS_NXTBLK, -+ .size = SZ_1M*80, -+ }, -+ [5] = { -+ .name = "mtdblock5 backup 40MB", -+ .offset = MTDPART_OFS_NXTBLK, -+ .size = SZ_1M*40, ++ .size = SZ_1M*160, + }, }; static struct s3c2410_nand_set smdk_nand_sets[] = { -@@ -176,10 +167,10 @@ +@@ -176,10 +157,10 @@ static struct platform_device __initdata *smdk_devs[] = { &s3c_device_nand, @@ -454,7 +444,7 @@ void __init smdk_machine_init(void) diff -Nuar -x .gitignore linux-3.0/arch/arm/plat-s3c24xx/devs.c linux-3.0-fl2440/arch/arm/plat-s3c24xx/devs.c --- linux-3.0/arch/arm/plat-s3c24xx/devs.c 2011-07-22 10:17:23.000000000 +0800 -+++ linux-3.0-fl2440/arch/arm/plat-s3c24xx/devs.c 2020-01-09 16:54:31.213380202 +0800 ++++ linux-3.0-fl2440/arch/arm/plat-s3c24xx/devs.c 2020-08-21 10:08:38.580411195 +0800 @@ -299,6 +299,66 @@ EXPORT_SYMBOL(s3c_device_iis); @@ -524,7 +514,7 @@ static struct resource s3c_rtc_resource[] = { diff -Nuar -x .gitignore linux-3.0/arch/arm/plat-samsung/include/plat/devs.h linux-3.0-fl2440/arch/arm/plat-samsung/include/plat/devs.h --- linux-3.0/arch/arm/plat-samsung/include/plat/devs.h 2011-07-22 10:17:23.000000000 +0800 -+++ linux-3.0-fl2440/arch/arm/plat-samsung/include/plat/devs.h 2020-01-09 16:54:31.273380204 +0800 ++++ linux-3.0-fl2440/arch/arm/plat-samsung/include/plat/devs.h 2020-08-21 10:08:38.580411195 +0800 @@ -93,6 +93,10 @@ extern struct platform_device s3c_device_usb_hsudc; extern struct platform_device s3c_device_usb_hsotg; @@ -538,7 +528,7 @@ extern struct platform_device s5pv210_device_pcm1; diff -Nuar -x .gitignore linux-3.0/arch/arm/tools/mach-types linux-3.0-fl2440/arch/arm/tools/mach-types --- linux-3.0/arch/arm/tools/mach-types 2011-07-22 10:17:23.000000000 +0800 -+++ linux-3.0-fl2440/arch/arm/tools/mach-types 2020-01-09 16:54:31.273380204 +0800 ++++ linux-3.0-fl2440/arch/arm/tools/mach-types 2020-08-21 10:08:38.580411195 +0800 @@ -85,7 +85,8 @@ bast ARCH_BAST BAST 331 h1940 ARCH_H1940 H1940 347 @@ -561,7 +551,7 @@ cpuat9g20 MACH_CPUAT9G20 CPUAT9G20 2031 diff -Nuar -x .gitignore linux-3.0/build.sh linux-3.0-fl2440/build.sh --- linux-3.0/build.sh 1970-01-01 08:00:00.000000000 +0800 -+++ linux-3.0-fl2440/build.sh 2020-01-09 17:27:02.941417641 +0800 ++++ linux-3.0-fl2440/build.sh 2020-08-21 10:08:38.580411195 +0800 @@ -0,0 +1,82 @@ +#!/bin/bash + @@ -647,7 +637,7 @@ + diff -Nuar -x .gitignore linux-3.0/.cfg-fl2440 linux-3.0-fl2440/.cfg-fl2440 --- linux-3.0/.cfg-fl2440 1970-01-01 08:00:00.000000000 +0800 -+++ linux-3.0-fl2440/.cfg-fl2440 2020-01-09 17:09:56.601397954 +0800 ++++ linux-3.0-fl2440/.cfg-fl2440 2020-08-21 11:26:22.344500658 +0800 @@ -0,0 +1,2407 @@ +# +# Automatically generated make config: don't edit @@ -3058,7 +3048,7 @@ +CONFIG_AVERAGE=y diff -Nuar -x .gitignore linux-3.0/drivers/input/touchscreen/s3c2410_ts.c linux-3.0-fl2440/drivers/input/touchscreen/s3c2410_ts.c --- linux-3.0/drivers/input/touchscreen/s3c2410_ts.c 2011-07-22 10:17:23.000000000 +0800 -+++ linux-3.0-fl2440/drivers/input/touchscreen/s3c2410_ts.c 2020-01-09 16:54:31.277380204 +0800 ++++ linux-3.0-fl2440/drivers/input/touchscreen/s3c2410_ts.c 2020-08-21 10:08:38.584411195 +0800 @@ -126,6 +126,7 @@ input_report_abs(ts.input, ABS_Y, ts.yp); @@ -3090,7 +3080,7 @@ ts.input->id.bustype = BUS_HOST; diff -Nuar -x .gitignore linux-3.0/drivers/mmc/host/s3cmci.c linux-3.0-fl2440/drivers/mmc/host/s3cmci.c --- linux-3.0/drivers/mmc/host/s3cmci.c 2011-07-22 10:17:23.000000000 +0800 -+++ linux-3.0-fl2440/drivers/mmc/host/s3cmci.c 2020-01-09 16:54:31.277380204 +0800 ++++ linux-3.0-fl2440/drivers/mmc/host/s3cmci.c 2020-08-21 10:08:38.584411195 +0800 @@ -1275,6 +1275,7 @@ writel(mci_con, host->base + S3C2410_SDICON); @@ -3128,7 +3118,7 @@ #ifdef CONFIG_CPU_FREQ diff -Nuar -x .gitignore linux-3.0/drivers/net/dm9000.c linux-3.0-fl2440/drivers/net/dm9000.c --- linux-3.0/drivers/net/dm9000.c 2011-07-22 10:17:23.000000000 +0800 -+++ linux-3.0-fl2440/drivers/net/dm9000.c 2020-01-09 16:54:31.277380204 +0800 ++++ linux-3.0-fl2440/drivers/net/dm9000.c 2020-08-21 10:08:38.584411195 +0800 @@ -39,6 +39,10 @@ #include <asm/irq.h> #include <asm/io.h> @@ -3156,7 +3146,7 @@ dev_dbg(db->dev, "enabling %s\n", dev->name); diff -Nuar -x .gitignore linux-3.0/drivers/tty/serial/samsung.c linux-3.0-fl2440/drivers/tty/serial/samsung.c --- linux-3.0/drivers/tty/serial/samsung.c 2011-07-22 10:17:23.000000000 +0800 -+++ linux-3.0-fl2440/drivers/tty/serial/samsung.c 2020-01-09 16:54:31.297380204 +0800 ++++ linux-3.0-fl2440/drivers/tty/serial/samsung.c 2020-08-21 10:08:38.584411195 +0800 @@ -54,7 +54,7 @@ /* UART name and device definitions */ @@ -3177,7 +3167,7 @@ .dev_name = S3C24XX_SERIAL_NAME, diff -Nuar -x .gitignore linux-3.0/drivers/tty/vt/vt.c linux-3.0-fl2440/drivers/tty/vt/vt.c --- linux-3.0/drivers/tty/vt/vt.c 2011-07-22 10:17:23.000000000 +0800 -+++ linux-3.0-fl2440/drivers/tty/vt/vt.c 2020-01-09 16:54:31.297380204 +0800 ++++ linux-3.0-fl2440/drivers/tty/vt/vt.c 2020-08-21 10:08:38.628411196 +0800 @@ -3843,12 +3843,14 @@ */ static void blank_screen_t(unsigned long dummy) @@ -3195,7 +3185,7 @@ void poke_blanked_console(void) diff -Nuar -x .gitignore linux-3.0/drivers/usb/host/ohci-s3c2410.c linux-3.0-fl2440/drivers/usb/host/ohci-s3c2410.c --- linux-3.0/drivers/usb/host/ohci-s3c2410.c 2011-07-22 10:17:23.000000000 +0800 -+++ linux-3.0-fl2440/drivers/usb/host/ohci-s3c2410.c 2020-01-09 16:54:31.297380204 +0800 ++++ linux-3.0-fl2440/drivers/usb/host/ohci-s3c2410.c 2020-08-21 10:08:38.628411196 +0800 @@ -22,6 +22,7 @@ #include <linux/platform_device.h> #include <linux/clk.h> @@ -3222,7 +3212,7 @@ clk_enable(usb_clk); diff -Nuar -x .gitignore linux-3.0/drivers/usb/serial/Kconfig linux-3.0-fl2440/drivers/usb/serial/Kconfig --- linux-3.0/drivers/usb/serial/Kconfig 2011-07-22 10:17:23.000000000 +0800 -+++ linux-3.0-fl2440/drivers/usb/serial/Kconfig 2020-01-09 16:54:31.297380204 +0800 ++++ linux-3.0-fl2440/drivers/usb/serial/Kconfig 2020-08-21 10:08:38.628411196 +0800 @@ -588,7 +588,8 @@ module will be called keyspan_pda. @@ -3235,7 +3225,7 @@ tristate "USB driver for GSM and CDMA modems" diff -Nuar -x .gitignore linux-3.0/drivers/usb/serial/option.c linux-3.0-fl2440/drivers/usb/serial/option.c --- linux-3.0/drivers/usb/serial/option.c 2011-07-22 10:17:23.000000000 +0800 -+++ linux-3.0-fl2440/drivers/usb/serial/option.c 2020-01-09 16:54:31.301380204 +0800 ++++ linux-3.0-fl2440/drivers/usb/serial/option.c 2020-08-21 10:08:38.628411196 +0800 @@ -51,6 +51,13 @@ static void option_instat_callback(struct urb *urb); @@ -3299,7 +3289,7 @@ MODULE_VERSION(DRIVER_VERSION); diff -Nuar -x .gitignore linux-3.0/Makefile linux-3.0-fl2440/Makefile --- linux-3.0/Makefile 2011-07-22 10:17:23.000000000 +0800 -+++ linux-3.0-fl2440/Makefile 2020-01-09 17:26:42.517417250 +0800 ++++ linux-3.0-fl2440/Makefile 2020-08-21 11:21:30.996495069 +0800 @@ -144,7 +144,7 @@ # but instead _all depend on modules PHONY += all @@ -3339,7 +3329,7 @@ # Packaging of the kernel to various formats diff -Nuar -x .gitignore linux-3.0/net/wireless/db.txt linux-3.0-fl2440/net/wireless/db.txt --- linux-3.0/net/wireless/db.txt 2011-07-22 10:17:23.000000000 +0800 -+++ linux-3.0-fl2440/net/wireless/db.txt 2020-01-09 16:54:31.301380204 +0800 ++++ linux-3.0-fl2440/net/wireless/db.txt 2020-08-21 10:08:38.628411196 +0800 @@ -1,17 +1,793 @@ -# -# This file is a placeholder to prevent accidental build breakage if someone diff --git a/linux-bsp/patches/u-boot-2010.09-fl2440.patch b/linux-bsp/patches/u-boot-2010.09-fl2440.patch index 50de68b..a15f050 100644 --- a/linux-bsp/patches/u-boot-2010.09-fl2440.patch +++ b/linux-bsp/patches/u-boot-2010.09-fl2440.patch @@ -1,6 +1,6 @@ diff -Nuar u-boot-2010.09/arch/arm/cpu/arm920t/s3c24x0/speed.c u-boot-2010.09-fl2440/arch/arm/cpu/arm920t/s3c24x0/speed.c --- u-boot-2010.09/arch/arm/cpu/arm920t/s3c24x0/speed.c 2010-09-29 05:20:55.000000000 +0800 -+++ u-boot-2010.09-fl2440/arch/arm/cpu/arm920t/s3c24x0/speed.c 2020-01-09 17:22:17.705412170 +0800 ++++ u-boot-2010.09-fl2440/arch/arm/cpu/arm920t/s3c24x0/speed.c 2020-08-21 12:06:35.008546938 +0800 @@ -64,6 +64,11 @@ p = ((r & 0x003F0) >> 4) + 2; s = r & 0x3; @@ -56,7 +56,7 @@ #endif /* CONFIG_S3C24X0 */ diff -Nuar u-boot-2010.09/arch/arm/cpu/arm920t/s3c24x0/timer.c u-boot-2010.09-fl2440/arch/arm/cpu/arm920t/s3c24x0/timer.c --- u-boot-2010.09/arch/arm/cpu/arm920t/s3c24x0/timer.c 2010-09-29 05:20:55.000000000 +0800 -+++ u-boot-2010.09-fl2440/arch/arm/cpu/arm920t/s3c24x0/timer.c 2020-01-09 17:22:17.705412170 +0800 ++++ u-boot-2010.09-fl2440/arch/arm/cpu/arm920t/s3c24x0/timer.c 2020-08-21 12:06:35.008546938 +0800 @@ -181,6 +181,7 @@ tbclk = timer_load_val * 100; #elif defined(CONFIG_SBC2410X) || \ @@ -67,7 +67,7 @@ #else diff -Nuar u-boot-2010.09/arch/arm/cpu/arm920t/start.S u-boot-2010.09-fl2440/arch/arm/cpu/arm920t/start.S --- u-boot-2010.09/arch/arm/cpu/arm920t/start.S 2010-09-29 05:20:55.000000000 +0800 -+++ u-boot-2010.09-fl2440/arch/arm/cpu/arm920t/start.S 2020-01-09 17:22:17.705412170 +0800 ++++ u-boot-2010.09-fl2440/arch/arm/cpu/arm920t/start.S 2020-08-21 12:06:35.012546938 +0800 @@ -114,8 +114,8 @@ orr r0, r0, #0xd3 msr cpsr, r0 @@ -261,7 +261,7 @@ ************************************************************************* diff -Nuar u-boot-2010.09/arch/arm/cpu/arm920t/u-boot.lds u-boot-2010.09-fl2440/arch/arm/cpu/arm920t/u-boot.lds --- u-boot-2010.09/arch/arm/cpu/arm920t/u-boot.lds 2010-09-29 05:20:55.000000000 +0800 -+++ u-boot-2010.09-fl2440/arch/arm/cpu/arm920t/u-boot.lds 2020-01-09 17:22:17.705412170 +0800 ++++ u-boot-2010.09-fl2440/arch/arm/cpu/arm920t/u-boot.lds 2020-08-21 12:06:35.012546938 +0800 @@ -40,6 +40,8 @@ .text : { @@ -273,7 +273,7 @@ diff -Nuar u-boot-2010.09/arch/arm/include/asm/arch-s3c24x0/s3c24x0_cpu.h u-boot-2010.09-fl2440/arch/arm/include/asm/arch-s3c24x0/s3c24x0_cpu.h --- u-boot-2010.09/arch/arm/include/asm/arch-s3c24x0/s3c24x0_cpu.h 2010-09-29 05:20:55.000000000 +0800 -+++ u-boot-2010.09-fl2440/arch/arm/include/asm/arch-s3c24x0/s3c24x0_cpu.h 2020-01-09 17:22:17.705412170 +0800 ++++ u-boot-2010.09-fl2440/arch/arm/include/asm/arch-s3c24x0/s3c24x0_cpu.h 2020-08-21 12:06:35.012546938 +0800 @@ -20,7 +20,7 @@ #ifdef CONFIG_S3C2400 @@ -285,7 +285,7 @@ #error Please define the s3c24x0 cpu type diff -Nuar u-boot-2010.09/arch/arm/include/asm/arch-s3c24x0/s3c24x0.h u-boot-2010.09-fl2440/arch/arm/include/asm/arch-s3c24x0/s3c24x0.h --- u-boot-2010.09/arch/arm/include/asm/arch-s3c24x0/s3c24x0.h 2010-09-29 05:20:55.000000000 +0800 -+++ u-boot-2010.09-fl2440/arch/arm/include/asm/arch-s3c24x0/s3c24x0.h 2020-01-09 17:22:17.705412170 +0800 ++++ u-boot-2010.09-fl2440/arch/arm/include/asm/arch-s3c24x0/s3c24x0.h 2020-08-21 12:06:35.012546938 +0800 @@ -78,7 +78,7 @@ u32 PRIORITY; u32 INTPND; @@ -397,7 +397,7 @@ diff -Nuar u-boot-2010.09/board/lingyun/fl2440/config.mk u-boot-2010.09-fl2440/board/lingyun/fl2440/config.mk --- u-boot-2010.09/board/lingyun/fl2440/config.mk 1970-01-01 08:00:00.000000000 +0800 -+++ u-boot-2010.09-fl2440/board/lingyun/fl2440/config.mk 2020-01-09 17:22:17.705412170 +0800 ++++ u-boot-2010.09-fl2440/board/lingyun/fl2440/config.mk 2020-08-21 12:06:35.012546938 +0800 @@ -0,0 +1,25 @@ +# +# (C) Copyright 2002 @@ -426,7 +426,7 @@ +TEXT_BASE = 0x33F80000 diff -Nuar u-boot-2010.09/board/lingyun/fl2440/fl2440.c u-boot-2010.09-fl2440/board/lingyun/fl2440/fl2440.c --- u-boot-2010.09/board/lingyun/fl2440/fl2440.c 1970-01-01 08:00:00.000000000 +0800 -+++ u-boot-2010.09-fl2440/board/lingyun/fl2440/fl2440.c 2020-01-09 17:22:17.705412170 +0800 ++++ u-boot-2010.09-fl2440/board/lingyun/fl2440/fl2440.c 2020-08-21 12:06:35.012546938 +0800 @@ -0,0 +1,174 @@ +/* + * (C) Copyright 2002 @@ -604,7 +604,7 @@ +#endif diff -Nuar u-boot-2010.09/board/lingyun/fl2440/flash.c u-boot-2010.09-fl2440/board/lingyun/fl2440/flash.c --- u-boot-2010.09/board/lingyun/fl2440/flash.c 1970-01-01 08:00:00.000000000 +0800 -+++ u-boot-2010.09-fl2440/board/lingyun/fl2440/flash.c 2020-01-09 17:22:17.705412170 +0800 ++++ u-boot-2010.09-fl2440/board/lingyun/fl2440/flash.c 2020-08-21 12:06:35.012546938 +0800 @@ -0,0 +1,433 @@ +/* + * (C) Copyright 2002 @@ -1041,7 +1041,7 @@ +} diff -Nuar u-boot-2010.09/board/lingyun/fl2440/lowlevel_init.S u-boot-2010.09-fl2440/board/lingyun/fl2440/lowlevel_init.S --- u-boot-2010.09/board/lingyun/fl2440/lowlevel_init.S 1970-01-01 08:00:00.000000000 +0800 -+++ u-boot-2010.09-fl2440/board/lingyun/fl2440/lowlevel_init.S 2020-01-09 17:22:17.705412170 +0800 ++++ u-boot-2010.09-fl2440/board/lingyun/fl2440/lowlevel_init.S 2020-08-21 12:06:35.012546938 +0800 @@ -0,0 +1,198 @@ +/* + * Memory Setup stuff - taken from blob memsetup.S @@ -1243,7 +1243,7 @@ + .word 0x30 diff -Nuar u-boot-2010.09/board/lingyun/fl2440/Makefile u-boot-2010.09-fl2440/board/lingyun/fl2440/Makefile --- u-boot-2010.09/board/lingyun/fl2440/Makefile 1970-01-01 08:00:00.000000000 +0800 -+++ u-boot-2010.09-fl2440/board/lingyun/fl2440/Makefile 2020-01-09 17:22:17.705412170 +0800 ++++ u-boot-2010.09-fl2440/board/lingyun/fl2440/Makefile 2020-08-21 12:06:35.012546938 +0800 @@ -0,0 +1,51 @@ +# +# (C) Copyright 2000-2006 @@ -1298,7 +1298,7 @@ +######################################################################### diff -Nuar u-boot-2010.09/board/lingyun/fl2440/nand_read.c u-boot-2010.09-fl2440/board/lingyun/fl2440/nand_read.c --- u-boot-2010.09/board/lingyun/fl2440/nand_read.c 1970-01-01 08:00:00.000000000 +0800 -+++ u-boot-2010.09-fl2440/board/lingyun/fl2440/nand_read.c 2020-01-09 17:22:17.705412170 +0800 ++++ u-boot-2010.09-fl2440/board/lingyun/fl2440/nand_read.c 2020-08-21 12:06:35.012546938 +0800 @@ -0,0 +1,212 @@ +/* + * nand_read.c: Simple NAND read functions for booting from NAND @@ -1514,7 +1514,7 @@ +} diff -Nuar u-boot-2010.09/boards.cfg u-boot-2010.09-fl2440/boards.cfg --- u-boot-2010.09/boards.cfg 2010-09-29 05:20:55.000000000 +0800 -+++ u-boot-2010.09-fl2440/boards.cfg 2020-01-09 17:22:17.709412170 +0800 ++++ u-boot-2010.09-fl2440/boards.cfg 2020-08-21 12:06:35.012546938 +0800 @@ -238,6 +238,7 @@ sbc2410x arm arm920t - - s3c24x0 smdk2400 arm arm920t - samsung s3c24x0 @@ -1525,7 +1525,7 @@ afeb9260 arm arm926ejs - - at91 diff -Nuar u-boot-2010.09/build.sh u-boot-2010.09-fl2440/build.sh --- u-boot-2010.09/build.sh 1970-01-01 08:00:00.000000000 +0800 -+++ u-boot-2010.09-fl2440/build.sh 2020-01-09 17:25:25.785415778 +0800 ++++ u-boot-2010.09-fl2440/build.sh 2020-08-21 12:06:35.012546938 +0800 @@ -0,0 +1,72 @@ +#!/bin/bash + @@ -1601,7 +1601,7 @@ + diff -Nuar u-boot-2010.09/common/cmd_nand.c u-boot-2010.09-fl2440/common/cmd_nand.c --- u-boot-2010.09/common/cmd_nand.c 2010-09-29 05:20:55.000000000 +0800 -+++ u-boot-2010.09-fl2440/common/cmd_nand.c 2020-01-09 17:22:17.709412170 +0800 ++++ u-boot-2010.09-fl2440/common/cmd_nand.c 2020-08-21 12:06:35.012546938 +0800 @@ -148,6 +148,11 @@ #if defined(CONFIG_CMD_MTDPARTS) out: @@ -1616,8 +1616,15 @@ puts("whole chip\n"); diff -Nuar u-boot-2010.09/common/env_common.c u-boot-2010.09-fl2440/common/env_common.c --- u-boot-2010.09/common/env_common.c 2010-09-29 05:20:55.000000000 +0800 -+++ u-boot-2010.09-fl2440/common/env_common.c 2020-01-09 17:22:17.709412170 +0800 -@@ -57,7 +57,34 @@ ++++ u-boot-2010.09-fl2440/common/env_common.c 2020-08-21 12:06:35.016546939 +0800 +@@ -53,11 +53,35 @@ + #define MK_STR(x) XMK_STR(x) + + uchar default_environment[] = { ++#ifdef CONFIG_DEVNAME /* Add by guowenxue, boardname */ ++ "devname=" CONFIG_DEVNAME "\0" ++#endif + #ifdef CONFIG_BOOTARGS "bootargs=" CONFIG_BOOTARGS "\0" #endif #ifdef CONFIG_BOOTCOMMAND @@ -1627,15 +1634,12 @@ +#ifdef CONFIG_BBL_COMMAND /* Add by guowenxue, burn u-boot image */ + "bbl=" CONFIG_BBL_COMMAND "\0" +#endif -+#ifdef CONFIG_BLX_COMMAND /* Add by guowenxue, burn linux kernel image */ -+ "blx=" CONFIG_BLX_COMMAND "\0" ++#ifdef CONFIG_BKR_COMMAND /* Add by guowenxue, burn linux kernel image */ ++ "bkr=" CONFIG_BKR_COMMAND "\0" +#endif +#ifdef CONFIG_BURN_UBIFS /* Add by guowenxue, burn UBIFS root filesystem image */ -+ "bubifs=" CONFIG_BURN_UBIFS "\0" ++ "bfs=" CONFIG_BURN_UBIFS "\0" +#endif -+#ifdef CONFIG_BURN_JFFS2 /* Add by guowenxue, burn JFFS2 root filesystem image */ -+ "bjffs2=" CONFIG_BURN_JFFS2 "\0" -+#endif +#ifdef CONFIG_BSYS_COMMAND /* Add by guowenxue, burn linux kernel and rootfs */ + "bsys=" CONFIG_BSYS_COMMAND "\0" +#endif @@ -1645,9 +1649,6 @@ +#ifdef CONFIG_BARGS_UBIFS /* Add by guowenxue, bootargs for ubifs rootfs */ + "args_ubifs=" CONFIG_BARGS_UBIFS "\0" +#endif -+#ifdef CONFIG_BARGS_JFFS2 /* Add by guowenxue, bootargs for jffs2 rootfs */ -+ "args_jffs2=" CONFIG_BARGS_JFFS2 "\0" -+#endif +#ifdef CONFIG_TFTPBOOT_COMMAND /* Add by guowenxue, tftp boot linux system */ + "tb=" CONFIG_TFTPBOOT_COMMAND "\0" #endif @@ -1655,7 +1656,7 @@ "ramboot=" CONFIG_RAMBOOTCOMMAND "\0" diff -Nuar u-boot-2010.09/common/serial.c u-boot-2010.09-fl2440/common/serial.c --- u-boot-2010.09/common/serial.c 2010-09-29 05:20:55.000000000 +0800 -+++ u-boot-2010.09-fl2440/common/serial.c 2020-01-09 17:22:17.709412170 +0800 ++++ u-boot-2010.09-fl2440/common/serial.c 2020-08-21 12:06:35.016546939 +0800 @@ -68,7 +68,7 @@ #else #error "Bad CONFIG_PSC_CONSOLE." @@ -1676,7 +1677,7 @@ serial_register(&s3c24xx_serial2_device); diff -Nuar u-boot-2010.09/drivers/mtd/nand/s3c2410_nand.c u-boot-2010.09-fl2440/drivers/mtd/nand/s3c2410_nand.c --- u-boot-2010.09/drivers/mtd/nand/s3c2410_nand.c 2010-09-29 05:20:55.000000000 +0800 -+++ u-boot-2010.09-fl2440/drivers/mtd/nand/s3c2410_nand.c 2020-01-09 17:22:17.709412170 +0800 ++++ u-boot-2010.09-fl2440/drivers/mtd/nand/s3c2410_nand.c 2020-08-21 12:06:35.016546939 +0800 @@ -24,6 +24,7 @@ #include <asm/arch/s3c24x0_cpu.h> #include <asm/io.h> @@ -1788,7 +1789,7 @@ diff -Nuar u-boot-2010.09/drivers/net/dm9000x.c u-boot-2010.09-fl2440/drivers/net/dm9000x.c --- u-boot-2010.09/drivers/net/dm9000x.c 2010-09-29 05:20:55.000000000 +0800 -+++ u-boot-2010.09-fl2440/drivers/net/dm9000x.c 2020-01-09 17:22:17.709412170 +0800 ++++ u-boot-2010.09-fl2440/drivers/net/dm9000x.c 2020-08-21 12:06:35.016546939 +0800 @@ -364,7 +364,7 @@ while (!(phy_read(1) & 0x20)) { /* autonegation complete bit */ udelay(1000); @@ -1800,8 +1801,8 @@ } diff -Nuar u-boot-2010.09/include/configs/fl2440.h u-boot-2010.09-fl2440/include/configs/fl2440.h --- u-boot-2010.09/include/configs/fl2440.h 1970-01-01 08:00:00.000000000 +0800 -+++ u-boot-2010.09-fl2440/include/configs/fl2440.h 2020-01-09 17:22:17.709412170 +0800 -@@ -0,0 +1,239 @@ ++++ u-boot-2010.09-fl2440/include/configs/fl2440.h 2020-08-21 12:06:35.016546939 +0800 +@@ -0,0 +1,237 @@ +/* + * (C) Copyright 2002 + * Sysgo Real-Time Solutions, GmbH <www.elinos.com> @@ -1914,22 +1915,20 @@ +#define CONFIG_ETHADDR 08:00:3e:26:0a:5b +#define CONFIG_NETMASK 255.255.255.0 +#define CONFIG_IPADDR 192.168.2.168 -+#define CONFIG_SERVERIP 192.168.2.8 ++#define CONFIG_SERVERIP 192.168.2.2 + + -+#define CONFIG_BBL_COMMAND "tftp 30008000 u-boot-fl2440.bin;nand erase 0 100000;nand write 30008000 0 60000" -+#define CONFIG_BLX_COMMAND "tftp 30008000 linuxrom-fl2440.bin;nand erase 100000 F00000;nand write 30008000 100000 D00000" -+#define CONFIG_BSYS_COMMAND "run blx;run bubifs" -+#define CONFIG_TFTPBOOT_COMMAND "tftp 30008000 linuxrom-fl2440.bin; bootm 30008000" -+#define CONFIG_BURN_JFFS2 "tftp 30008000 rootfs-fl2440.jfs;nand erase 1000000 2800000;nand write 30008000 1000000 $filesize" -+#define CONFIG_BURN_UBIFS "tftp 30008000 rootfs-fl2440.ubi;nand erase 1000000 2800000;nand write 30008000 1000000 $filesize" -+ ++#define CONFIG_DEVNAME "fl2440" ++#define CONFIG_BBL_COMMAND "tftp 30008000 u-boot-${devname}.bin;nand erase 0 100000;nand write 30008000 0 60000" ++#define CONFIG_BKR_COMMAND "tftp 30008000 linuxrom-fl2440.bin;nand erase 100000 F00000;nand write 30008000 100000 D00000" ++#define CONFIG_BSYS_COMMAND "run bkr;run bfs" ++#define CONFIG_TFTPBOOT_COMMAND "tftp 30008000 linuxrom-${devname}.bin; bootm 30008000" ++#define CONFIG_BURN_UBIFS "tftp 30008000 rootfs-${devname}.ubi;nand erase 1000000 5000000;nand write 30008000 1000000 $filesize" + +#define CONFIG_BARGS_INITRAMFS "console=tty0 console=ttyS0,115200 mem=64M rw loglevel=7" -+#define CONFIG_BARGS_JFFS2 "console=tty0 console=ttyS0,115200 root=/dev/mtdblock2 rootfstype=jffs2 init=/linuxrc mem=64M rw noinitrd loglevel=7" +#define CONFIG_BARGS_UBIFS "console=tty0 console=ttyS0,115200 ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs mem=64M noinitrd rw loglevel=7" +#define CONFIG_BOOTARGS CONFIG_BARGS_UBIFS -+#define CONFIG_BOOTCOMMAND "nand read 30008000 100000 900000; bootm 30008000" ++#define CONFIG_BOOTCOMMAND "nand read 30008000 100000 A00000; bootm 30008000" + +#if defined(CONFIG_CMD_KGDB) +#define CONFIG_KGDB_BAUDRATE 115200 /* speed to run kgdb serial port */ @@ -2043,7 +2042,7 @@ +#endif /* __CONFIG_H */ diff -Nuar u-boot-2010.09/include/serial.h u-boot-2010.09-fl2440/include/serial.h --- u-boot-2010.09/include/serial.h 2010-09-29 05:20:55.000000000 +0800 -+++ u-boot-2010.09-fl2440/include/serial.h 2020-01-09 17:22:17.709412170 +0800 ++++ u-boot-2010.09-fl2440/include/serial.h 2020-08-21 12:06:35.016546939 +0800 @@ -46,7 +46,7 @@ extern struct serial_device serial6_device; #endif @@ -2055,7 +2054,7 @@ extern struct serial_device s3c24xx_serial2_device; diff -Nuar u-boot-2010.09/Makefile u-boot-2010.09-fl2440/Makefile --- u-boot-2010.09/Makefile 2010-09-29 05:20:55.000000000 +0800 -+++ u-boot-2010.09-fl2440/Makefile 2020-01-09 17:25:16.141415593 +0800 ++++ u-boot-2010.09-fl2440/Makefile 2020-08-21 12:06:39.420547023 +0800 @@ -154,6 +154,8 @@ # load ARCH, BOARD, and CPU configuration include $(obj)include/config.mk -- Gitblit v1.9.1