mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
Separate mtdparts command from jffs2
Currently the mtdparts commands are included in the jffs2 command support. This doesn't make sense anymore since other commands (e.g. UBI) use this infrastructure as well now. This patch separates the mtdparts commands from the jffs2 commands making it possible to only select mtdparts when no JFFS2 support is needed. Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
This commit is contained in:
parent
02a301cd50
commit
68d7d65100
81 changed files with 2122 additions and 1852 deletions
1
README
1
README
|
@ -636,6 +636,7 @@ The following options need to be configured:
|
|||
CONFIG_CMD_MISC Misc functions like sleep etc
|
||||
CONFIG_CMD_MMC * MMC memory mapped support
|
||||
CONFIG_CMD_MII * MII utility commands
|
||||
CONFIG_CMD_MTDPARTS * MTD partition support
|
||||
CONFIG_CMD_NAND * NAND support
|
||||
CONFIG_CMD_NET bootp, tftpboot, rarpboot
|
||||
CONFIG_CMD_PCA953X * PCA953x I2C gpio commands
|
||||
|
|
|
@ -241,7 +241,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -249,7 +249,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=fads0,nor1=fads-1,nor2=fads-2,nor3=fads-3"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=fads-0:-@1m(user1),fads-1:-(user2),fads-2:-(user3),fads-3:-(user4)"
|
||||
*/
|
||||
|
|
|
@ -110,6 +110,7 @@ COBJS-$(CONFIG_CMD_MII) += cmd_mii.o
|
|||
COBJS-$(CONFIG_CMD_MISC) += cmd_misc.o
|
||||
COBJS-$(CONFIG_CMD_MMC) += cmd_mmc.o
|
||||
COBJS-$(CONFIG_MP) += cmd_mp.o
|
||||
COBJS-$(CONFIG_CMD_MTDPARTS) += cmd_mtdparts.o
|
||||
COBJS-y += cmd_nand.o
|
||||
COBJS-$(CONFIG_CMD_NET) += cmd_net.o
|
||||
COBJS-$(CONFIG_CMD_ONENAND) += cmd_onenand.o
|
||||
|
|
|
@ -31,12 +31,12 @@
|
|||
#include <dataflash.h>
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_CMD_MTDPARTS)
|
||||
#include <jffs2/jffs2.h>
|
||||
|
||||
/* parition handling routines */
|
||||
int mtdparts_init(void);
|
||||
int id_parse(const char *id, const char **ret_id, u8 *dev_type, u8 *dev_num);
|
||||
int mtd_id_parse(const char *id, const char **ret_id, u8 *dev_type, u8 *dev_num);
|
||||
int find_dev_and_part(const char *id, struct mtd_device **dev,
|
||||
u8 *part_num, struct part_info **part);
|
||||
#endif
|
||||
|
@ -325,7 +325,7 @@ int do_flerase (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
|||
flash_info_t *info;
|
||||
ulong bank, addr_first, addr_last;
|
||||
int n, sect_first, sect_last;
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_CMD_MTDPARTS)
|
||||
struct mtd_device *dev;
|
||||
struct part_info *part;
|
||||
u8 dev_type, dev_num, pnum;
|
||||
|
@ -357,9 +357,9 @@ int do_flerase (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
|||
return rcode;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_CMD_MTDPARTS)
|
||||
/* erase <part-id> - erase partition */
|
||||
if ((argc == 2) && (id_parse(argv[1], NULL, &dev_type, &dev_num) == 0)) {
|
||||
if ((argc == 2) && (mtd_id_parse(argv[1], NULL, &dev_type, &dev_num) == 0)) {
|
||||
mtdparts_init();
|
||||
if (find_dev_and_part(argv[1], &dev, &pnum, &part) == 0) {
|
||||
if (dev->id->type == MTD_DEV_TYPE_NOR) {
|
||||
|
@ -470,7 +470,7 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
|||
#endif /* CONFIG_SYS_NO_FLASH */
|
||||
ulong addr_first, addr_last;
|
||||
int p;
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_CMD_MTDPARTS)
|
||||
struct mtd_device *dev;
|
||||
struct part_info *part;
|
||||
u8 dev_type, dev_num, pnum;
|
||||
|
@ -563,9 +563,9 @@ int do_protect (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
|
|||
return rcode;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_CMD_MTDPARTS)
|
||||
/* protect on/off <part-id> */
|
||||
if ((argc == 3) && (id_parse(argv[2], NULL, &dev_type, &dev_num) == 0)) {
|
||||
if ((argc == 3) && (mtd_id_parse(argv[2], NULL, &dev_type, &dev_num) == 0)) {
|
||||
mtdparts_init();
|
||||
if (find_dev_and_part(argv[2], &dev, &pnum, &part) == 0) {
|
||||
if (dev->id->type == MTD_DEV_TYPE_NOR) {
|
||||
|
@ -698,7 +698,7 @@ int flash_sect_protect (int p, ulong addr_first, ulong addr_last)
|
|||
|
||||
|
||||
/**************************************************/
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_CMD_MTDPARTS)
|
||||
# define TMP_ERASE "erase <part-id>\n - erase partition\n"
|
||||
# define TMP_PROT_ON "protect on <part-id>\n - protect partition\n"
|
||||
# define TMP_PROT_OFF "protect off <part-id>\n - make partition writable\n"
|
||||
|
|
1731
common/cmd_jffs2.c
1731
common/cmd_jffs2.c
File diff suppressed because it is too large
Load diff
1986
common/cmd_mtdparts.c
Normal file
1986
common/cmd_mtdparts.c
Normal file
File diff suppressed because it is too large
Load diff
|
@ -29,7 +29,7 @@
|
|||
#include <jffs2/jffs2.h>
|
||||
#include <nand.h>
|
||||
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_CMD_MTDPARTS)
|
||||
|
||||
/* parition handling routines */
|
||||
int mtdparts_init(void);
|
||||
|
@ -105,7 +105,7 @@ static int
|
|||
arg_off_size(int argc, char *argv[], nand_info_t *nand, ulong *off, size_t *size)
|
||||
{
|
||||
int idx = nand_curr_device;
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_CMD_MTDPARTS)
|
||||
struct mtd_device *dev;
|
||||
struct part_info *part;
|
||||
u8 pnum;
|
||||
|
@ -153,7 +153,7 @@ arg_off_size(int argc, char *argv[], nand_info_t *nand, ulong *off, size_t *size
|
|||
*size = nand->size - *off;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_CMD_MTDPARTS)
|
||||
out:
|
||||
#endif
|
||||
printf("device %d ", idx);
|
||||
|
@ -589,7 +589,7 @@ int do_nandboot(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
|
|||
char *boot_device = NULL;
|
||||
int idx;
|
||||
ulong addr, offset = 0;
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_CMD_MTDPARTS)
|
||||
struct mtd_device *dev;
|
||||
struct part_info *part;
|
||||
u8 pnum;
|
||||
|
@ -634,7 +634,7 @@ int do_nandboot(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
|
|||
offset = simple_strtoul(argv[3], NULL, 16);
|
||||
break;
|
||||
default:
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_JFFS2_CMDLINE)
|
||||
#if defined(CONFIG_CMD_JFFS2) && defined(CONFIG_CMD_MTDPARTS)
|
||||
usage:
|
||||
#endif
|
||||
cmd_usage(cmdtp);
|
||||
|
|
|
@ -58,6 +58,7 @@
|
|||
#define CONFIG_CMD_MII /* MII support */
|
||||
#define CONFIG_CMD_MISC /* Misc functions like sleep etc*/
|
||||
#define CONFIG_CMD_MMC /* MMC support */
|
||||
#define CONFIG_CMD_MTDPARTS /* mtd parts support */
|
||||
#define CONFIG_CMD_NAND /* NAND support */
|
||||
#define CONFIG_CMD_NET /* bootp, tftpboot, rarpboot */
|
||||
#define CONFIG_CMD_NFS /* NFS support */
|
||||
|
|
|
@ -673,14 +673,14 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
||||
/* mtdparts command line support */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT ""
|
||||
#define MTDPARTS_DEFAULT ""
|
||||
*/
|
||||
|
|
|
@ -320,7 +320,7 @@
|
|||
|
||||
/* No command line, one static partition */
|
||||
/*
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0x00400000
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -328,7 +328,7 @@
|
|||
|
||||
/* mtdparts command line support */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=alaska-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=alaska-0:4m(user)"
|
||||
*/
|
||||
|
|
|
@ -219,7 +219,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -229,7 +229,7 @@
|
|||
* Note: fake mtd_id used, no linux mtd map file
|
||||
*/
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=bab7xx-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=bab7xx-0:-(jffs2)"
|
||||
*/
|
||||
|
|
|
@ -346,7 +346,7 @@
|
|||
#define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (in ms) */
|
||||
|
||||
/* Dynamic MTD partition support */
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM5200-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM5200-0:640k(firmware)," \
|
||||
"1408k(kernel)," \
|
||||
|
|
|
@ -781,7 +781,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nand"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0x00200000
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -791,7 +791,7 @@
|
|||
* Note: fake mtd_id used, no linux mtd map file
|
||||
*/
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nand0=catcenter"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=catcenter:2m(nand)"
|
||||
*/
|
||||
|
|
|
@ -230,7 +230,7 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor1"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -242,7 +242,7 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
|
|||
* Note: fake mtd_id's used, no linux mtd map file.
|
||||
*/
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor1=db64360-1"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=db64360-1:-(jffs2)"
|
||||
*/
|
||||
|
|
|
@ -168,7 +168,7 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor1"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -180,7 +180,7 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
|
|||
* Note: fake mtd_id's used, no linux mtd map file.
|
||||
*/
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor1=db64460-1"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=db64460-1:-(jffs2)"
|
||||
*/
|
||||
|
|
|
@ -539,14 +539,14 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
||||
/* mtdparts command line support */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT ""
|
||||
#define MTDPARTS_DEFAULT ""
|
||||
*/
|
||||
|
|
|
@ -545,14 +545,14 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
||||
/* mtdparts command line support */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT ""
|
||||
#define MTDPARTS_DEFAULT ""
|
||||
*/
|
||||
|
|
|
@ -196,7 +196,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -204,7 +204,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=elppc-0,nor1=elppc-1"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=elppc-0:-(jffs2),elppc-1:-(user)"
|
||||
*/
|
||||
|
|
|
@ -216,7 +216,7 @@
|
|||
/*-----------------------------------------------------------------------
|
||||
* Dynamic MTD partition support
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM8xxL-0"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
|
||||
|
|
|
@ -216,7 +216,7 @@
|
|||
/*-----------------------------------------------------------------------
|
||||
* Dynamic MTD partition support
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM8xxL-0"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
|
||||
|
|
|
@ -352,14 +352,14 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
||||
/* mtdparts command line support */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT ""
|
||||
#define MTDPARTS_DEFAULT ""
|
||||
*/
|
||||
|
|
|
@ -200,7 +200,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -208,7 +208,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=mhpc-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=mhpc-0:-(jffs2)"
|
||||
*/
|
||||
|
|
|
@ -243,7 +243,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -251,7 +251,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=mip405-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=mip405-0:-(jffs2)"
|
||||
*/
|
||||
|
|
|
@ -249,7 +249,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00080000
|
||||
|
@ -257,7 +257,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=ml2-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=ml2-0:-@512k(jffs2)"
|
||||
*/
|
||||
|
|
|
@ -563,14 +563,14 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
||||
/* mtdparts command line support */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT ""
|
||||
#define MTDPARTS_DEFAULT ""
|
||||
*/
|
||||
|
|
|
@ -440,13 +440,13 @@
|
|||
*/
|
||||
|
||||
/* No command line, one static partition */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nand0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0x00400000
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
||||
/* mtdparts command line support */
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=nc650-0,nand0=nc650-nand"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=nc650-0:1m(kernel1),1m(kernel2)," \
|
||||
|
|
|
@ -702,7 +702,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nand0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0x00100000
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00200000
|
||||
|
@ -710,7 +710,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nand0=netta-nand"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=netta-nand:1m@2m(jffs2)"
|
||||
*/
|
||||
|
|
|
@ -804,14 +804,14 @@
|
|||
*/
|
||||
|
||||
/* No command line, one static partition */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nand0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0x00400000
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
||||
/* mtdparts command line support */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=PPChameleon-0,nand0=ppchameleonevb-nand"
|
||||
*/
|
||||
|
||||
|
|
|
@ -167,14 +167,14 @@
|
|||
*/
|
||||
/* No command line, one static partition
|
||||
* use all the space starting at offset 3MB*/
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00300000
|
||||
|
||||
/* mtdparts command line support */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=r360-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=r360-0:-@3m(user)"
|
||||
*/
|
||||
|
|
|
@ -429,7 +429,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -437,7 +437,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT ""
|
||||
#define MTDPARTS_DEFAULT ""
|
||||
*/
|
||||
|
|
|
@ -202,7 +202,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00100000
|
||||
|
@ -210,7 +210,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=rattler-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=rattler-0:-@1m(jffs2)"
|
||||
*/
|
||||
|
|
|
@ -189,7 +189,7 @@
|
|||
#define CONFIG_JFFS2_DEV "nand0"
|
||||
|
||||
/* mtdparts command line support */
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nand0=nand0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=nand0:2M(u-boot),6M(kernel),-(jffs2)"
|
||||
|
||||
|
|
|
@ -174,7 +174,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
|
||||
/*
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
|
@ -189,7 +189,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=sixnet-0,nand0=sixnet-nand"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=sixnet-0:7680k@512k();sixnet-nand:2m(jffs2-nand)"
|
||||
*/
|
||||
|
|
|
@ -275,7 +275,7 @@
|
|||
(= chip selects) */
|
||||
|
||||
/* Dynamic MTD partition support */
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM5200-0"
|
||||
#if defined(CONFIG_TQM5200_B)
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM5200-0:768k(firmware)," \
|
||||
|
|
|
@ -407,7 +407,7 @@
|
|||
#endif
|
||||
|
||||
/* Dynamic MTD partition support */
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM5200-0"
|
||||
|
||||
#ifdef CONFIG_STK52XX
|
||||
|
|
|
@ -231,7 +231,7 @@
|
|||
/*-----------------------------------------------------------------------
|
||||
* Dynamic MTD partition support
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM8xxL-0"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
|
||||
|
|
|
@ -227,7 +227,7 @@
|
|||
/*-----------------------------------------------------------------------
|
||||
* Dynamic MTD partition support
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM8xxM-0"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \
|
||||
|
|
|
@ -537,7 +537,7 @@ extern int tqm834x_num_flash_banks;
|
|||
* JFFS2 partitions
|
||||
*/
|
||||
/* mtdparts command line support */
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM834x-0"
|
||||
|
||||
/* default mtd partition table */
|
||||
|
|
|
@ -216,7 +216,7 @@
|
|||
/*-----------------------------------------------------------------------
|
||||
* Dynamic MTD partition support
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM8xxL-0"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
|
||||
|
|
|
@ -216,7 +216,7 @@
|
|||
/*-----------------------------------------------------------------------
|
||||
* Dynamic MTD partition support
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM8xxM-0"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \
|
||||
|
|
|
@ -221,7 +221,7 @@
|
|||
/*-----------------------------------------------------------------------
|
||||
* Dynamic MTD partition support
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM8xxL-0"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
|
||||
|
|
|
@ -256,7 +256,7 @@
|
|||
/*-----------------------------------------------------------------------
|
||||
* Dynamic MTD partition support
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM8xxM-0"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \
|
||||
|
|
|
@ -597,14 +597,14 @@
|
|||
|
||||
#define CONFIG_JFFS2_NAND 1
|
||||
|
||||
#ifdef CONFIG_JFFS2_CMDLINE
|
||||
#ifdef CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nand0=TQM85xx-nand"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM85xx-nand:-"
|
||||
#else
|
||||
#define CONFIG_JFFS2_DEV "nand0" /* NAND device jffs2 lives on */
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0 /* start of jffs2 partition */
|
||||
#define CONFIG_JFFS2_PART_SIZE 0x200000 /* size of jffs2 partition */
|
||||
#endif /* CONFIG_JFFS2_CMDLINE */
|
||||
#endif /* CONFIG_CMD_MTDPARTS */
|
||||
|
||||
#endif /* CONFIG_NAND */
|
||||
|
||||
|
|
|
@ -220,7 +220,7 @@
|
|||
/*-----------------------------------------------------------------------
|
||||
* Dynamic MTD partition support
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM8xxL-0"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
|
||||
|
|
|
@ -221,7 +221,7 @@
|
|||
/*-----------------------------------------------------------------------
|
||||
* Dynamic MTD partition support
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM8xxM-0"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \
|
||||
|
|
|
@ -224,7 +224,7 @@
|
|||
/*-----------------------------------------------------------------------
|
||||
* Dynamic MTD partition support
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM8xxL-0"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
|
||||
|
|
|
@ -225,7 +225,7 @@
|
|||
/*-----------------------------------------------------------------------
|
||||
* Dynamic MTD partition support
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM8xxM-0"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \
|
||||
|
|
|
@ -265,7 +265,7 @@
|
|||
/*-----------------------------------------------------------------------
|
||||
* Dynamic MTD partition support
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM8xxM-0"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM8xxM-0:512k(u-boot)," \
|
||||
|
|
|
@ -130,7 +130,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -138,7 +138,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor1=zuma-1,nor2=zuma-2"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=zuma-1:-(jffs2),zuma-2:-(user)"
|
||||
*/
|
||||
|
|
|
@ -258,7 +258,7 @@
|
|||
#define CONFIG_ENV_ADDR 0x00020000
|
||||
|
||||
#ifdef CONFIG_SYS_USE_UBI
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "onenand0=onenand"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=onenand:128k(bootloader)," \
|
||||
"128k(params)," \
|
||||
|
|
|
@ -222,7 +222,7 @@
|
|||
/*
|
||||
* MTD configuration
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE 1
|
||||
#define CONFIG_CMD_MTDPARTS 1
|
||||
#define MTDIDS_DEFAULT "nor0=cm5200-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=cm5200-0:" \
|
||||
"384k(uboot),128k(env)," \
|
||||
|
|
|
@ -234,7 +234,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -246,7 +246,7 @@
|
|||
* Note: fake mtd_id's used, no linux mtd map file.
|
||||
*/
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=debris-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=debris-0:-(jffs2)"
|
||||
*/
|
||||
|
|
|
@ -158,7 +158,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -166,7 +166,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=ep7312-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=ep7312-0:-(jffs2)"
|
||||
*/
|
||||
|
|
|
@ -758,7 +758,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -766,7 +766,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT ""
|
||||
#define MTDPARTS_DEFAULT ""
|
||||
*/
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
/* cmd config */
|
||||
#define CONFIG_CMD_JFFS2
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#undef CONFIG_CMD_NET
|
||||
|
||||
/* sdram */
|
||||
|
|
|
@ -730,14 +730,14 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
||||
/* mtdparts command line support */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT ""
|
||||
#define MTDPARTS_DEFAULT ""
|
||||
*/
|
||||
|
|
|
@ -229,7 +229,7 @@
|
|||
|
||||
|
||||
/* Dynamic MTD partition support */
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=idmr-0"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=idmr-0:128k(u-boot)," \
|
||||
|
|
|
@ -160,14 +160,14 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00020000
|
||||
|
||||
/* mtdparts command line support */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=impA7 NOR Flash Bank #0,nor1=impA7 NOR Flash Bank #1"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=impA7 NOR Flash Bank #0:-(FileSystem1);impA7 NOR Flash Bank #1:-(FileSystem2)"
|
||||
*/
|
||||
|
|
|
@ -170,7 +170,7 @@
|
|||
/*
|
||||
* JFFS2 partitions
|
||||
*/
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
|
||||
#endif /* __CONFIG_H */
|
||||
|
|
|
@ -175,7 +175,7 @@
|
|||
/*
|
||||
* JFFS2 partitions
|
||||
*/
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
|
||||
/* EET platform additions */
|
||||
|
|
|
@ -168,14 +168,14 @@
|
|||
* JFFS2 partitions
|
||||
*/
|
||||
/* No command line, one static partition, use all space on the device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor1"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
||||
/* mtdparts command line support */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=INCA-IP Bank 0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=INCA-IP Bank 0:192k(uboot)," \
|
||||
"64k(env)," \
|
||||
|
|
|
@ -203,7 +203,7 @@
|
|||
*/
|
||||
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -211,7 +211,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=innokom-0"
|
||||
*/
|
||||
|
||||
|
|
|
@ -259,7 +259,7 @@
|
|||
|
||||
#if defined(CONFIG_CMD_JFFS2)
|
||||
/* JFFS2 partitions */
|
||||
#define CONFIG_JFFS2_CMDLINE /* mtdparts command line support */
|
||||
#define CONFIG_CMD_MTDPARTS /* mtdparts command line support */
|
||||
#define MTDIDS_DEFAULT "nor0=ml401-0"
|
||||
|
||||
/* default mtd partition table */
|
||||
|
|
|
@ -182,7 +182,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00080000
|
||||
|
@ -190,7 +190,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=modnet50-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=modnet50-0:-@512k(jffs2)"
|
||||
*/
|
||||
|
|
|
@ -275,7 +275,7 @@
|
|||
/*
|
||||
* MTD configuration
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=motionpro-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=motionpro-0:" \
|
||||
"13m(fs),2m(kernel),256k(uboot)," \
|
||||
|
|
|
@ -176,7 +176,7 @@
|
|||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
/*
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00050000
|
||||
|
@ -184,7 +184,7 @@
|
|||
|
||||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=mx1fs2-0"
|
||||
|
||||
#ifdef BUS32BIT_VERSION
|
||||
|
|
|
@ -194,7 +194,7 @@
|
|||
/*
|
||||
* JFFS2 partitions
|
||||
*/
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
|
||||
#endif /* __CONFIG_H */
|
||||
|
|
|
@ -121,7 +121,7 @@
|
|||
/*
|
||||
* partitions (mtdparts command line support)
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=omapflash.0,nand0=omapnand.0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=" \
|
||||
"omapflash.0:8k@16k(env),8k(r_env),448k@576k(u-boot);" \
|
||||
|
|
|
@ -296,7 +296,7 @@
|
|||
* JFFS2 partitions
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor1"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -304,7 +304,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor1=omap2420-1"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=omap2420-1:-(jffs2)"
|
||||
*/
|
||||
|
|
|
@ -212,7 +212,7 @@
|
|||
/*
|
||||
* JFFS2 partitions
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=physmap-flash.0"
|
||||
#define MTDPARTS_DEFAULT \
|
||||
"mtdparts=physmap-flash.0:256k(U-Boot),128k(env1)," \
|
||||
|
|
|
@ -430,7 +430,7 @@ extern unsigned long offsetOfEnvironment;
|
|||
#define CONFIG_JFFS2_NAND 1 /* jffs2 on nand support */
|
||||
|
||||
/* No command line, one static partition */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nand0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0x01000000
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
|
|
@ -159,14 +159,14 @@
|
|||
* JFFS2 partitions
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
||||
/* mtdparts command line support */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=SC520CDP Flash Bank #0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=SC520CDP Flash Bank #0:-(jffs2)"
|
||||
*/
|
||||
|
|
|
@ -177,7 +177,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -185,7 +185,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=sc520_spunk-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=sc520_spunk-0:-(jffs2)"
|
||||
*/
|
||||
|
|
|
@ -214,7 +214,7 @@
|
|||
#define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (in ms) */
|
||||
|
||||
/* Dynamic MTD partition support */
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM5200-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM5200-0:640k(firmware)," \
|
||||
"1408k(kernel)," \
|
||||
|
|
|
@ -375,7 +375,7 @@
|
|||
#define CONFIG_SYS_MONITOR_LEN (256 << 10)
|
||||
|
||||
/* Dynamic MTD partition support */
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=0"
|
||||
|
||||
/* production flash layout */
|
||||
|
|
|
@ -106,7 +106,7 @@
|
|||
*
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor1"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -114,7 +114,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor1=v37-1"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=v37-1:-(jffs2)"
|
||||
*/
|
||||
|
|
|
@ -286,7 +286,7 @@ int vct_gpio_get(int pin);
|
|||
#define CONFIG_CMD_UBI
|
||||
#define CONFIG_RBTREE
|
||||
#define CONFIG_MTD_PARTITIONS
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
|
||||
#define MTDIDS_DEFAULT "onenand0=onenand"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=onenand:128k(u-boot)," \
|
||||
|
|
|
@ -225,7 +225,7 @@
|
|||
/*-----------------------------------------------------------------------
|
||||
* Dynamic MTD partition support
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=TQM8xxL-0"
|
||||
|
||||
#define MTDPARTS_DEFAULT "mtdparts=TQM8xxL-0:256k(u-boot)," \
|
||||
|
|
|
@ -189,7 +189,7 @@
|
|||
/*
|
||||
* JFFS2 partitions (mtdparts command line support)
|
||||
*/
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=omapflash.0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=omapflash.0:256k(u-boot),64k(env),64k(r_env),16192k(data0),-(data1)"
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
#define CONFIG_CMD_IRQ
|
||||
#define CONFIG_CMD_REGINFO
|
||||
#undef CONFIG_CMD_JFFS2
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#undef CONFIG_CMD_SPI
|
||||
#undef CONFIG_CMD_I2C
|
||||
#undef CONFIG_CMD_DTT
|
||||
|
@ -108,7 +108,7 @@
|
|||
#define CONFIG_SYS_MAX_FLASH_BANKS 1
|
||||
#define CONFIG_SYS_FLASH_PROTECTION
|
||||
#define CONFIG_CMD_JFFS2
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#else
|
||||
#define CONFIG_ENV_IS_NOWHERE
|
||||
#define CONFIG_SYS_NO_FLASH
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
* JFFS2 partitions
|
||||
*/
|
||||
/* No command line, one static partition, whole device */
|
||||
#undef CONFIG_JFFS2_CMDLINE
|
||||
#undef CONFIG_CMD_MTDPARTS
|
||||
#define CONFIG_JFFS2_DEV "nor0"
|
||||
#define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
|
||||
#define CONFIG_JFFS2_PART_OFFSET 0x00000000
|
||||
|
@ -70,7 +70,7 @@
|
|||
/* mtdparts command line support */
|
||||
/* Note: fake mtd_id used, no linux mtd map file */
|
||||
/*
|
||||
#define CONFIG_JFFS2_CMDLINE
|
||||
#define CONFIG_CMD_MTDPARTS
|
||||
#define MTDIDS_DEFAULT "nor0=xsengine-0"
|
||||
#define MTDPARTS_DEFAULT "mtdparts=xsengine-0:256k(uboot),1m(kernel1),8m(kernel2)"
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue