Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5288

Advanced users • Re: Custom Linux, custom file system in RAM

$
0
0
you would need a custom initrd, that just mounts things with normal linux commands, and copies it
or a bootloader like u-boot
Do you know how to find out how much space my file system occupies in RAM and how much RAM is available to it? How to manually limit the amount of RAM allocated to initramfs?
Linux finds initramfs with thanks to the device tree that the bootloader passed to it

https://trac.gateworks.com/wiki/linux/devicetree
https://www.baeldung.com/linux/rootfs-location

Code:

# hexdump -C /sys/firmware/devicetree/base/chosen/linux,initrd-start00000000  00 00 00 00 02 70 00 40                           |.....p.@|00000008
uboot env ramdisk_addr_r=0x02700000

Statistics: Posted by Hurin — Sat Mar 16, 2024 5:24 pm



Viewing all articles
Browse latest Browse all 5288

Trending Articles