Date:2011-02-13 18:04:49 (13 years 1 month ago)
Author:Xiangfu Liu
Commit:1c3f08354a8be4eb884138eba8353ac2e7da148f
Message:uboot-xburst, add ubifs support

Files: package/uboot-xburst/patches/300-add-ubifs-support.patch (1 diff)

Change Details

package/uboot-xburst/patches/300-add-ubifs-support.patch
1diff --git a/include/configs/nanonote.h b/include/configs/nanonote.h
2index dde5cb4..8e4f6d1 100644
3--- a/include/configs/nanonote.h
4@@ -90,7 +90,7 @@
5 /* Print Buffer Size */
6 #define CONFIG_SYS_MAXARGS 16 /* max number of command args*/
7
8-#define CONFIG_SYS_MALLOC_LEN 896 * 1024
9+#define CONFIG_SYS_MALLOC_LEN 4 * 1024 * 1024
10 #define CONFIG_SYS_BOOTPARAMS_LEN 128 * 1024
11
12 #define CONFIG_SYS_SDRAM_BASE 0x80000000 /* Cached addr */
13diff --git a/include/configs/qi_lb60.h b/include/configs/qi_lb60.h
14index 9f08c74..7ed9a1e 100644
15--- a/include/configs/qi_lb60.h
16@@ -8,6 +8,20 @@
17 //#define DEBUG
18 #define CONFIG_BOOTCOMMAND "nand read 0x80600000 0x400000 0x200000;bootm"
19 #define CONFIG_BOOTARGS "mem=32M console=tty0 console=ttyS0,57600n8 ubi.mtd=2 rootfstype=ubifs root=ubi0:rootfs rw rootwait"
20+
21+#define CONFIG_CMD_UBIFS
22+#define CONFIG_CMD_UBI
23+#define CONFIG_MTD_PARTITIONS
24+#define CONFIG_MTD_DEVICE
25+#define CONFIG_CMD_MTDPARTS
26+#define CONFIG_CMD_UBI
27+#define CONFIG_CMD_UBIFS
28+#define CONFIG_LZO
29+#define CONFIG_RBTREE
30+
31+#define MTDIDS_DEFAULT "nand0=jz4740-nand"
32+#define MTDPARTS_DEFAULT "mtdparts=jz4740-nand:4M@0(uboot)ro,4M@4M(kernel)ro,512M@8M(rootfs)ro,-(data)ro"
33+
34 #define CONFIG_EXTRA_ENV_SETTINGS \
35     "bootcmdfromsd=mmc init; ext2load mmc 0 0x80600000 /boot/uImage; bootm;\0" \
36     "bootargsfromsd=mem=32M console=tty0 console=ttyS0,57600n8 rootfstype=ext2 root=/dev/mmcblk0p1 rw rootwait\0" \
37@@ -17,8 +31,8 @@
38     "bootargsf2=mem=32M console=tty0 console=ttyS0,57600n8 rootfstype=ext2 root=/dev/mmcblk0p2 rw rootwait\0" \
39     "bootcmdf3=mmc init; ext2load mmc 0:3 0x80600000 /boot/uImage; bootm;\0" \
40     "bootargsf3=mem=32M console=tty0 console=ttyS0,57600n8 rootfstype=ext2 root=/dev/mmcblk0p3 rw rootwait\0" \
41- "bootcmdf4=mmc init; ext2load mmc 0:4 0x80600000 /boot/uImage; bootm;\0" \
42- "bootargsf4=mem=32M console=tty0 console=ttyS0,57600n8 rootfstype=ext2 root=/dev/mmcblk0p4 rw rootwait\0"
43+ "bootcmdf4=mtdparts default;ubi part rootfs;ubifsmount rootfs;ubifsload 0x80600000 /boot/uImage; bootm;\0" \
44+ "bootargsf4=mem=32M console=tty0 console=ttyS0,57600n8 ubi.mtd=2 rootfstype=ubifs root=ubi0:rootfs rw rootwait"
45
46 /* SDRAM paramters */
47 #define SDRAM_BW16 1 /* Data bus width: 0-32bit, 1-16bit */

Archive Download the corresponding diff file



interactive