请大家帮帮忙,我在DM365ipnc系统下,因为文件系统分区不够大,想把分区扩大一点,但是我在内核里更改后,在启动后还是显示原来的大小,下面有启动的日志信息,只有关键的信息。我将分区改为64M,启动后显示33.3M,我想问下都需要修改哪些地方才可以!!谢谢!
[ 1.868997] UBI: attached mtd3 to ubi0
[ 1.872930] UBI: MTD device name: "filesystem1"
[ 1.878444] UBI: MTD device size: 64 MiB
[ 1.883488] UBI: number of good PEBs: 512
[ 1.888125] UBI: number of bad PEBs: 0
[ 1.892656] UBI: number of corrupted PEBs: 0
[ 1.897116] UBI: max. allowed volumes: 128
[ 1.901823] UBI: wear-leveling threshold: 4096
[ 1.906545] UBI: number of internal volumes: 1
[ 1.911062] UBI: number of user volumes: 1
[ 1.915520] UBI: available PEBs: 0
[ 1.919975] UBI: total number of reserved PEBs: 512
[ 1.924926] UBI: number of PEBs reserved for bad PEB handling: 5
[ 1.931005] UBI: max/mean erase counter: 1/0
[ 1.935291] UBI: image sequence number: 593993110
[ 1.940195] UBI: background thread "ubi_bgt0d" started, PID 419
[ 2.471686] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 2.477740] UBIFS: file system size: 38473728 bytes (37572 KiB, 36 MiB, 303 LEBs)
[ 2.485532] UBIFS: journal size: 5332992 bytes (5208 KiB, 5 MiB, 42 LEBs)
[ 2.492940] UBIFS: media format: w4/r0 (latest is w4/r0)
[ 2.498793] UBIFS: default compressor: lzo
[ 2.502970] UBIFS: reserved for root: 0 bytes (0 KiB)
[ 2.511880] VFS: Mounted root (ubifs filesystem) on device 0:13.
root@DM365_IPNC:/opt/ipnc# df -h
Filesystem Size Used Available Use% Mounted on
ubi0:rootfs 33.3M 33.3M 0 100% /
devtmpfs 21.9M 0 21.9M 0% /dev
ubi1:ubifs_volume 4.8M 28.0K 4.5M 1% /mnt/nand
none 22.0M 20.0K 22.0M 0% /var/volatile/run
none 25.0M 4.0K 25.0M 0% /tmp
/dev/ram0 4.0M 0 4.0M 0% /mnt/ramdisk
同时在dm368_ubinize.cfg中也有修改
[ubifs]
mode=ubi
image=ubifs.img
vol_id=0
vol_size=60MiB
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize
dao xia:
问题解决
reference this page:
http://e2e.ti.com/support/arm/sitara_arm/f/791/p/268305/941327.aspx#941327
kooking:
dvsdk4/psp/linux-2.6.32.17-psp03.01.01.39/arch\arm/mach-davinci/board-dm365-evm.c
static struct mtd_partition davinci_nand_partitions[] = {
这个就是nand在kernel中的分区表