RDK Resources
[*RDK Preferred*]
Code Management Facility
RDK Forums
[RDK Conferences]
RDK Support
Archives
Papers & Presentations Archive
For a raspberrypi image, mainly there are two partitions, kernel and rootfs. The size of kernel size is 48M~48M. Rootfs is mounted on SD card and its value can be increased using gparted,fdisk or similar tool. By default while flashing an image to SD card, two partitions are created, namely mmcblk0p1 and mmcblk0p2. rootfs image is stored in mmcblk0p2 whereas mmcblk0p1 holds boot information.
...
root@raspberrypi-rdk-hybrid:~# fdisk -l Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type |
---|
For changing sd card partition using gparted refer below link.
Partioning and Resizing using GParted GUI
Memory Usage
The memory in raspberrypi is partitioned into different sessions and the details of these partitions and allocated size for these partitions can be found out using df command. df -h command gives size allocated to each of these partitions and the size that is already used by different components.
...
Component | Size |
---|---|
Kernel code | 9216K |
RW data | 737K |
RO data | 2928K |
init | 1024K |
BSS | 853K |
vmalloc | 1097K |
cma total | 262K |
KernelStack | 2536 kB |
Shmem | 14596 kB |
Graphics Memory
graphics memory, commonly called GPU memory is the amount of memory available on graphics card and is used by graphics processor. We can use vcgencmd for getting gpu memory information.
Changing tmpfs partition size
Size of tmpfs partition can be changed by using fstab. Below are the list of tmpfs partitions.
...
The size of these partitions can be changed by mentioning size in /etc/fstab. For example, we reduce size of /run to ~100M by mentioning size as below. Reboot the device after fstab is modified.
root@raspberrypi-rdk-hybrid:~# vi /etc/fstab /dev/root / auto defaults 1 0 # uncomment this if your device has a SD/MMC/Transflash slot /dev/mmcblk0p1 /boot vfat defaults 0 0 |
---|
...