diff --git a/CHANGELOG.md b/CHANGELOG.md
index aa020b3..cc4ca5c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -90,6 +90,7 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
| Version | Date | Comment |
| ------- | ---------- | --------------------------------------------------------------------------------------------------- |
+| 5.25.9 | 2025-01-10 | `memLayout()` improvement Raspberry PI 5 |
| 5.25.8 | 2025-01-09 | `graphics()` improved for Raspberry PI |
| 5.25.7 | 2025-01-09 | `baseboard()`, `memLayout()` improved for Raspberry PI |
| 5.25.6 | 2025-01-08 | `system()` raspberry PI detection improved |
diff --git a/README.md b/README.md
index 6472ff1..0f8c115 100644
--- a/README.md
+++ b/README.md
@@ -30,27 +30,6 @@
## The Systeminformation Project
-```
- .''.
- .''. . *''* :_\/_:
- :_\/_: _\(/_ .:.*_\/_* : /\ :
- .''.: /\ : ./)\ ':'* /\ * : '..'.
- :_\/_:'.:::. ' *''* * '.\'/.' _\(/_
- : /\ : ::::: *_\/_* -= o =- /)\
- '..' ':::' * /\ * .'/.\'. '
- *..* :
- *
- * /.\ * * . *
- . /..'\ . . * .
- */'.'\* . . . * *
- * /.''.'\ * . . . *
- . */.'.'.\*
-.........".""""/'.''.'.\""."."........".".".......................
- ^^^[_]^^^*
-```
-
-I wish you all a Merry Christmas and a peaceful New Year 2025.
-
This is amazing. Started as a small project just for myself, it now has > 17,000
lines of code, > 650 versions published, up to 8 mio downloads per month, > 330
mio downloads overall. #1 NPM ranking for backend packages. Thank you to all who
diff --git a/docs/history.html b/docs/history.html
index 242069c..18ffd06 100644
--- a/docs/history.html
+++ b/docs/history.html
@@ -57,6 +57,11 @@
+
+ | 5.25.9 |
+ 2024-01-10 |
+ memLayout() improvements Raspberry PI 5 |
+
| 5.25.8 |
2024-01-09 |
diff --git a/docs/index.html b/docs/index.html
index 74169f3..2c1c9ea 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -170,7 +170,7 @@
systeminformation
- 3New Version: 5.25.8
+ 3New Version: 5.25.9
@@ -204,7 +204,7 @@
-
18,440
+
18,452
Lines of code
@@ -212,7 +212,7 @@
Downloads last month
diff --git a/lib/memory.js b/lib/memory.js
index e02687e..f7eb84d 100644
--- a/lib/memory.js
+++ b/lib/memory.js
@@ -409,10 +409,12 @@ function memLayout(callback) {
'0': 400,
'1': 450,
'2': 450,
- '3': 3200
+ '3': 3200,
+ '4': 4267
};
result[0].type = 'LPDDR2';
- result[0].type = version && version[2] && version[2] === '3' ? 'LPDDR4' : result[0].type;
+ result[0].type = version && version[2] && (version[2] === '3') ? 'LPDDR4' : result[0].type;
+ result[0].type = version && version[2] && (version[2] === '4') ? 'LPDDR4X' : result[0].type;
result[0].ecc = false;
result[0].clockSpeed = version && version[2] && clockSpeed[version[2]] || 400;
result[0].clockSpeed = version && version[4] && version[4] === 'd' ? 500 : result[0].clockSpeed;
diff --git a/lib/util.js b/lib/util.js
index 10e513f..d1cc412 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -1094,9 +1094,11 @@ function decodePiCpuinfo(lines) {
return result;
}
-function getRpiGpu() {
- let cpuinfo = null;
- if (_rpi_cpuinfo !== null) {
+function getRpiGpu(cpuinfo) {
+
+ if (_rpi_cpuinfo === null && cpuinfo !== undefined) {
+ _rpi_cpuinfo = cpuinfo;
+ } else if (cpuinfo === undefined && _rpi_cpuinfo !== null) {
cpuinfo = _rpi_cpuinfo;
} else {
try {
@@ -1109,7 +1111,7 @@ function getRpiGpu() {
const rpi = decodePiCpuinfo(cpuinfo);
if (rpi.type === '4B' || rpi.type === 'CM4' || rpi.type === 'CM4S' || rpi.type === '400') { return 'VideoCore VI'; }
- if (rpi.type === '5') { return 'VideoCore VII'; }
+ if (rpi.type === '5' || rpi.type === '500') { return 'VideoCore VII'; }
return 'VideoCore IV';
}