T1024: How to increase size of "/dev/root"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

T1024: How to increase size of "/dev/root"

1,219 Views
gouravjain
Contributor IV

Hi All,

I'm working on my custom board based on T1024rdb. While loading files on running card, its showing no space left.

 and found below details,

root@CDOT-HAP:/tmp/bin# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 164M 164M 0 100% /
devtmpfs 920M 4.0K 920M 1% /dev
tmpfs 982M 140K 982M 1% /run
tmpfs 982M 172K 982M 1% /var/volatile
tmpfs 982M 58M 925M 6% /tmp
/dev/mtdblock3 9.0M 732K 8.3M 8% /mnt/jffs2

I observed "/dev/root" is fully occupied. Can any one pls let me know how to increase the size of "/dev/root" dir.

Thanks in advance.

--

Gourav

0 Kudos
Reply
1 Reply

1,151 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Gourav,

You could use memory space in /run or /var/volatile folder. 

The Available memory space in root folder is only the extra space memory provided in rootfs filesystem.

If you want to add more space memory in the rootfs(root folder), you could add more space when generating rootfs filesystem.

Do you use Yocto to build rootfs filesystem? If so, please specify the required space through the variable IMAGE_ROOTFS_EXTRA_SPACE, for example adding the following line in meta-freescale/recipes-fsl/images/fsl-image-core.bb, then regenerate ramdisk rootfs filesystem with 100M extra free memory space.

IMAGE_ROOTFS_EXTRA_SPACE = "102400"

Thanks,

Yiping

0 Kudos
Reply