I try to get builds with linux kernel 5.10 and 5.18 (mainline) for my board with RK3399.
But I see that OS after boot this builds has incorrect memory size, root partition is only 1.2 GB and all other 28 GB doesn’t mount to any point.
Here is df and fdisk command for current 5.10 kernel build:
firefly@firefly:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 1.2G 917M 218M 81% /
devtmpfs 1.9G 8.0K 1.9G 1% /dev
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 383M 1.3M 382M 1% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs 383M 0 383M 0% /run/user/0
tmpfs 383M 0 383M 0% /run/user/1000
firefly@firefly:~$ sudo fdisk -l
Disk /dev/ram0: 4 MiB, 4194304 bytes, 8192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk /dev/mtdblock0: 16 MiB, 16777216 bytes, 32768 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
Disk /dev/mmcblk0: 29.12 GiB, 31268536320 bytes, 61071360 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
Disklabel type: gpt
Disk identifier: 534C0000-0000-4F2F-8000-5F7A00007777
Device Start End Sectors Size Type
/dev/mmcblk0p1 16384 24575 8192 4M unknown
/dev/mmcblk0p2 24576 32767 8192 4M unknown
/dev/mmcblk0p3 32768 40959 8192 4M unknown
/dev/mmcblk0p4 40960 172031 131072 64M unknown
/dev/mmcblk0p5 172032 237567 65536 32M unknown
/dev/mmcblk0p6 237568 303103 65536 32M unknown
/dev/mmcblk0p7 303104 368639 65536 32M unknown
/dev/mmcblk0p8 368640 3030015 2661376 1.3G unknown
/dev/mmcblk0p9 3030016 61071326 58041311 27.7G unknown
In builds with original firefly kernel 4.19 I have correct memory mounts:
firefly@firefly:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 8.0K 1.9G 1% /dev
tmpfs 384M 1.5M 383M 1% /run
/dev/mmcblk2p7 1.2G 884M 203M 82% /root-ro
/dev/mmcblk2p8 28G 61M 28G 1% /userdata
overlayroot 28G 61M 28G 1% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
tmpfs 384M 0 384M 0% /run/user/0
tmpfs 384M 0 384M 0% /run/user/1000
What should I check and change that to get correct auto mounts?