
Hello Jami, For DDR size problem, I think we could enable CONFIG_OF_BOARD_SETUP, then use ft_board_setup() to apply fdt_fixup_memory()? Just like what they did in spl.c: https://patchwork.ozlabs.org/project/uboot/patch/20230615093652.23161-12-yan... Best regards, Shengyu (This mail is sent twice because the first one didn't use reply all)
From: Jami Kettunen jami.kettunen@protonmail.com
Currently booting a mainline Linux kernel via extlinux with fdtdir set doesn't load a proper DTB but passes on the U-Boot one to the kernel which as far as I know is very incorrect and prevents user (normally distro) provided DTB usage in a sensible/generic way.
A uEnv.txt or similar manual environment changes were not used and should not be required to boot the board as per: https://u-boot.readthedocs.io/en/latest/develop/distro.html
This also currently needs a kernel patch[1] for my board to have the full 8GB of memory available to Linux instead of just 4GB it shows with these patches alone.
[1] https://gitlab.alpinelinux.org/nmeum/alpine-visionfive/-/blob/main/starfive/...
Jami Kettunen (2): board: visionfive2: Select fdtfile based on revision configs: visionfive2: Enable MISC_INIT_R
.../visionfive2/starfive_visionfive2.c | 25 +++++++++++++++++++ configs/starfive_visionfive2_defconfig | 1 + 2 files changed, 26 insertions(+)