riscv / meta-riscv

OpenEmbedded/Yocto layer for RISC-V Architecture
https://riscv.org/
Other
344 stars 133 forks source link

How can I increase my RAM memory for milk-v duo 64MB? #469

Open Markus250 opened 2 months ago

Markus250 commented 2 months ago

I have Milk-V Duo 64MB, in Linux I see only ~22MB (free and even less). I find posts like this and this, , but that's all for buildroot (i am using yocto). How can I use your layer to increase the memory for the Linux kernel to the maximum (well, or somehow divide it differently, in one project I use the RTOS kernel, in another only the camera, and in others I do not use either the RTOS or the camera, but only the network interface, I need all the memory). I hope I expressed my thoughts correctly, thanks in advance!

kraj commented 3 weeks ago

@Markus250 I think there is an external logic in the BR sdk to generate some header file (cvi_board_memmap.h) and conf file (cvi_board_memmap.conf) and linker script (cvi_board_memmap.ld) via a python script memmap.py, I think this step s completely missing here in yocto setup. So it needs to be done for yocto. Perhaps they can be directly patched into u-boot/kernel/freestos builds, look into the logic in memmap.py perhaps as a starting point