Commit b2482dffa04b79f3878117364c1f3cbf7771117f
Committed by
Tom Rini
1 parent
9dd05fb8c8
Exists in
v2017.01-smarct4x
and in
25 other branches
README: Drop unused JFFS2 options
There appear to be neither implemented nor used. Drop them. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: York Sun <york.sun@nxp.com>
Showing 3 changed files with 6 additions and 69 deletions Side-by-side Diff
README
... | ... | @@ -1656,22 +1656,12 @@ |
1656 | 1656 | If not defined the default value "mbr" is used. |
1657 | 1657 | |
1658 | 1658 | - Journaling Flash filesystem support: |
1659 | - CONFIG_JFFS2_NAND, CONFIG_JFFS2_NAND_OFF, CONFIG_JFFS2_NAND_SIZE, | |
1660 | - CONFIG_JFFS2_NAND_DEV | |
1659 | + CONFIG_JFFS2_NAND | |
1661 | 1660 | Define these for a default partition on a NAND device |
1662 | 1661 | |
1663 | 1662 | CONFIG_SYS_JFFS2_FIRST_SECTOR, |
1664 | 1663 | CONFIG_SYS_JFFS2_FIRST_BANK, CONFIG_SYS_JFFS2_NUM_BANKS |
1665 | 1664 | Define these for a default partition on a NOR device |
1666 | - | |
1667 | - CONFIG_SYS_JFFS_CUSTOM_PART | |
1668 | - Define this to create an own partition. You have to provide a | |
1669 | - function struct part_info* jffs2_part_info(int part_num) | |
1670 | - | |
1671 | - If you define only one JFFS2 partition you may also want to | |
1672 | - #define CONFIG_SYS_JFFS_SINGLE_PART 1 | |
1673 | - to disable the command chpart. This is the default when you | |
1674 | - have not defined a custom partition | |
1675 | 1665 | |
1676 | 1666 | - FAT(File Allocation Table) filesystem write function support: |
1677 | 1667 | CONFIG_FAT_WRITE |
doc/README.JFFS2
... | ... | @@ -19,52 +19,15 @@ |
19 | 19 | thus you should really consider if you can avoid it! |
20 | 20 | |
21 | 21 | |
22 | -There is two ways for JFFS2 to find the disk. The default way uses | |
23 | -the flash_info structure to find the start of a JFFS2 disk (called | |
24 | -partition in the code) and you can change where the partition is with | |
25 | -two defines. | |
22 | +There only one way for JFFS2 to find the disk. It uses the flash_info | |
23 | +structure to find the start of a JFFS2 disk (called partition in the code) | |
24 | +and you can change where the partition is with two defines. | |
26 | 25 | |
27 | 26 | CONFIG_SYS_JFFS2_FIRST_BANK |
28 | 27 | defined the first flash bank to use |
29 | 28 | |
30 | 29 | CONFIG_SYS_JFFS2_FIRST_SECTOR |
31 | 30 | defines the first sector to use |
32 | - | |
33 | - | |
34 | -The second way is to define CONFIG_SYS_JFFS_CUSTOM_PART and implement the | |
35 | -jffs2_part_info(int part_num) function in your board specific files. | |
36 | -In this mode CONFIG_SYS_JFFS2_FIRST_BANK and CONFIG_SYS_JFFS2_FIRST_SECTOR is not | |
37 | -used. | |
38 | - | |
39 | -The input is a partition number starting with 0. | |
40 | -Return a pointer to struct part_info or NULL for error; | |
41 | - | |
42 | -Ex jffs2_part_info() for one partition. | |
43 | ---- | |
44 | -#if defined CONFIG_SYS_JFFS_CUSTOM_PART | |
45 | -#include <jffs2/jffs2.h> | |
46 | - | |
47 | -static struct part_info part; | |
48 | - | |
49 | -struct part_info* | |
50 | -jffs2_part_info(int part_num) | |
51 | -{ | |
52 | - if(part_num==0){ | |
53 | - if(part.usr_priv==(void*)1) | |
54 | - return ∂ | |
55 | - | |
56 | - memset(&part, 0, sizeof(part)); | |
57 | - part.offset=(char*)0xFF800000; | |
58 | - part.size=1024*1024*8; | |
59 | - | |
60 | - /* Mark the struct as ready */ | |
61 | - part.usr_priv=(void*)1; | |
62 | - | |
63 | - return ∂ | |
64 | - } | |
65 | - return 0; | |
66 | -} | |
67 | -#endif | |
68 | 31 | --- |
69 | 32 | |
70 | 33 | TODO. |
doc/README.JFFS2_NAND
... | ... | @@ -2,24 +2,8 @@ |
2 | 2 | |
3 | 3 | To enable, use the following #define in the board configuration file: |
4 | 4 | |
5 | -#define CONFIG_JFFS2_NAND 1 | |
5 | +#define CONFIG_JFFS2_NAND | |
6 | 6 | |
7 | 7 | Configuration of partitions is similar to how this is done in U-Boot |
8 | -for JFFS2 on top NOR flash. If a single partition is used, it can be | |
9 | -configured using the following #defines in the configuration file: | |
10 | - | |
11 | -#define CONFIG_JFFS2_NAND_DEV 0 /* nand device jffs2 lives on */ | |
12 | -#define CONFIG_JFFS2_NAND_OFF 0 /* start of jffs2 partition */ | |
13 | -#define CONFIG_JFFS2_NAND_SIZE 2*1024*1024 /* size of jffs2 partition */ | |
14 | - | |
15 | -If more than a single partition is desired, the user can define a | |
16 | -CONFIG_SYS_JFFS_CUSTOM_PART macro and implement a | |
17 | - | |
18 | - struct part_info* jffs2_part_info(int part_num) | |
19 | - | |
20 | -function in a board-specific module. An example of such function is | |
21 | -available in common/cmd_jffs2.c | |
22 | - | |
23 | -The default configuration for the DAVE board has a single JFFS2 | |
24 | -partition of 2 MB size. | |
8 | +for JFFS2 on top NOR flash. |