TI中文支持网
TI专业的中文技术问题搜集分享网站

扩容后FLASH空间问题

我的是8168平台的,之前使用的是256M的NAND FLASH,现在需要扩容使用512MB(4G bit)的FLASH,因页大小和oob大小和之前的相同,所以替换后直接可以使用,下面是扩前后的分区信息:

NAND device: Maf ID: 0x2c, Chip ID: 0xda (Micron, NAND 256MiB 3,3V 8-bit)

 erasesize: 0x20000, writesize: 2048, oobsize: 64

 omap2-nand: detected x8 NAND flash

 Creating 5 MTD partitions on "omap2-nand.0":

 0x000000000000-0x000000260000 : "U-Boot"

 0x000000260000-0x000000280000 : "U-Boot Env"

0x000000280000-0x000000580000 : "U-Boot Logo"

 0x000000580000-0x0000009c0000 : "Kernel"

0x0000009c0000-0x000010000000 : "File System"

 UBI: attaching mtd4 to ubi0

扩成512M后的:

NAND device: Maf ID: 0x2c, Chip ID: 0xdc (Micron, NAND 512MiB 3,3V 8-bit)

 erasesize: 0x20000, writesize: 2048, oobsize: 64 omap2-nand: detected x8 NAND flash

 Creating 5 MTD partitions on "omap2-nand.0":

 0x000000000000-0x000000260000 : "U-Boot"

0x000000260000-0x000000280000 : "U-Boot Env"

0x000000280000-0x000000580000 : "U-Boot Logo"

0x000000580000-0x0000009c0000 : "Kernel"

 0x0000009c0000-0x000020000000 : "File System"

 UBI: attaching mtd4 to ubi0

从驱动打印的分区信息看这个比之前多的空间应该是添加在文件系统分区上了,但是现在发现用df查看扩容后的可使用空间和之前是一样的,这个是什么问题?是驱动我哪里没改到吗?

下面是df看到的信息:

root@ti81xx:/# df

Filesystem           1K-blocks      Used Available Use% Mounted on

 ubi0:rootfs             179252    179240        12 100%

 / devtmpfs                230588       152    230436   0%

 /dev none                    230704         0    230704   0%

/dev/shm tmpfs                    16384        52     16332   0%

/var/volatile tmpfs                    16384         0     16384   0%

 /media/ram 192.168.1.82:/rootfs  81536768  46244736  31150208  60%

 /media/net

在ubi0:rootfs 这个大小和扩之前是一样,为了验证特意拷个100多M大小文件进去,结果存不下。用fdisk -l看分区4是有500多m大小

Disk /dev/mtdblock4: 526 MB, 526647296 bytes

255 heads, 63 sectors/track, 64 cylinders, total 1028608 sectors Units = sectors of 1 * 512 = 512 bytes Sector

 size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes

这是什么原因,向各位知道的朋友求助!在此谢过!

hailang zeng:

怎么样才能使用到新增的空间没人知道吗?有做过nand容量扩展的吗?

hailang zeng:

回复 Chris Meng:

是UBI制作工具需要重新设置ubi系统的大小,重做文件系统后可以正确扩大

赞(0)
未经允许不得转载:TI中文支持网 » 扩容后FLASH空间问题
分享到: 更多 (0)