[PATCH] riscv: dts: fix memory size for the SiFive HiFive Unmatched
Qiu Wenbo
qiuwenbo at kylinos.com.cn
Sun Jul 4 03:54:04 PDT 2021
Hi Geert,
It isn't. The official SD card image from SiFive passes DTB through
extlinux.conf. And the DTB can be an external DTB installed under the
/boot partition. I got 8GB memory available without this patch applied.
Thanks,
Qiu
On 7/4/21 6:27 PM, Geert Uytterhoeven wrote:
> Hi Qiu,
>
> On Sun, Jul 4, 2021 at 10:37 AM Qiu Wenbo <qiuwenbo at kylinos.com.cn> wrote:
>> The production version of HiFive Unmatched have 16GB memory.
>>
>> Signed-off-by: Qiu Wenbo <qiuwenbo at kylinos.com.cn>
> Thanks for your patch!
>
>> --- a/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
>> +++ b/arch/riscv/boot/dts/sifive/hifive-unmatched-a00.dts
>> @@ -24,7 +24,7 @@ cpus {
>>
>> memory at 80000000 {
>> device_type = "memory";
>> - reg = <0x0 0x80000000 0x2 0x00000000>;
>> + reg = <0x0 0x80000000 0x4 0x00000000>;
>> };
>>
>> soc {
> The /memory node is updated by U-Boot before passing it to the kernel
> anyway, right?
>
> Gr{oetje,eeting}s,
>
> Geert
>
More information about the linux-riscv
mailing list