ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
5.41k stars 1.72k forks source link

Missing Ram on S90W x96-mini device #1994

Closed E4ST2W3ST closed 5 months ago

E4ST2W3ST commented 6 months ago

Device Information | 设备信息

Armbian Version | 系统版本

Describe the bug | 问题描述 All issues will only remain open for one week to prioritize resolving them. After that period, they will be closed but can still continue to be discussed in the thread. 所有的问题都只保留一周的开启状态供重点关注解决,超时将关闭,但仍然可以长期继续跟帖讨论。

The memory node in the FDT is overwritten by u-boot with the standard dtb files:

image

The u-boot on my device is the one that came stock likely this config - gxl_p281_v1.

image

A fixup routine overwrites the memory config reducing internal ram size by 128Mb on the top end. You can confirm by looking at the loaded device tree in linux.

image

The parameter linux,usable-memory frees the memory up for use:

image

https://bugcheck.win/2018/12/17/override-available-memory-region-passed-to-linux-by-u-boot/ https://lore.kernel.org/lkml/20161223161747.9986-1-xypron.glpk@gmx.de/

With change:

[ 0.000000] Initmem setup node 0 [mem 0x0000000001000000-0x000000003fffffff]

vs

[ 0.000000] Initmem setup node 0 [mem 0x0000000001000000-0x0000000037ffffff]

Please provide a detailed description of the issue and, if necessary, attach a screenshot. 详细描述问题,并在必要时附上屏幕截图。

E4ST2W3ST commented 6 months ago

Corrected dts parameter screenshot above