© Copyright 2008 WIZnet Co., Inc. All rights reserved.
W
W
5
5
3
3
0
0
0
0
E
E
0
0
1
1
-
-
A
A
R
R
M
M
U
U
s
s
e
e
r
r
’
’
s
s
M
M
a
a
n
n
u
u
a
a
l
l
39
7.2. JFFS2
NAND Flash is non-volitile storage device. For storing data, use NAND Flash area. JFFS2 is the file system
only for Flash. When W5300E01-ARM accesses NAND Flash area, mount and use the JFFS2 file system.
NAND Flahs area can be divided as below
z
0x00000000 – 0x00020000 : Bootloader
z
0x00020000 – 0x00040000 : Boot Param
z
0x00040000 – 0x00400000 : Kernel
z
0x00400000 – 0x01400000 : Ramdisk
z
0x01400000 – 0x04000000 : JFFS2 FileSystem
Bootloader field has bootloader firstly operating when power is supplied to the system.
The Boot Param field is the space where boot parameter value is saved when kernel is booted at the
bootloader. Linux kernel field includes kernel images. At the bootloader, the kernel image of this field is
loaded to RAM and booted to kernel.
In the Ramdisk area, the Ramdisk used for current root file system is included.
JFFS2 File System area does not have any image. This area can be used after formatting as JFFS2.
7.2.1.
JFFS2 File System Mount
1. After completing the boot, log in with ‘root’.
2. In case of using JFFS2 area for the first time, it should be formatted in JFFS2 type.
3. Mount JFFS2 file system.
4. If data is written in the directory - ‘/mnt/jffs2’, the data is saved in NAND Flash.
Now, JFFS2 file system can be automatically mounted.
# flash_eraseall –j /dev/mtd4
# mount –t jffs2 /dev/mtdblock4 /mnt/jffs2