Title: Incorrect system mount [Print This Page] Author: Gustoff Time: 7/5/2022 03:31 Title: Incorrect system mount 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
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
Copy the code
What should I check and change that to get correct auto mounts?Author: Gustoff Time: 7/5/2022 03:35
I experiment with parameter.txt values. In logs above parameter for 5.10 (and 5.18) was:
If anything, in 5.10 builds i get incorrect mounts with 4.19 parameter.txt settings.Author: Gustoff Time: 7/7/2022 20:03
I get worked build with stable 5.18 kernel of Linux. I just forgot copy compiled ramdisk.img from Firefly kernel 4.19 build.
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/)