[Letux-kernel] x1600: how RAM size is determined
H. Nikolaus Schaller
hns at goldelico.com
Sat Mar 2 21:30:55 CET 2024
Hi,
64 MB version works. Almost...
U-Boot SPL 2013.07-00326-g599e29eddb (Mar 02 2024 - 20:31:02)
DDR: M54D5121632A type is : LPDDR2
U-Boot 2013.07-00326-g599e29eddb (Mar 02 2024 - 20:31:02)
Board: fpga-X1600 (Ingenic XBurst X1600 SoC)
DRAM: 64 MiB
Starting kernel ...
[ 0.000000] Linux version 5.10.211-letux-lx16+ (hns at iMac.local) (mipsel-linux-gnu-gcc (GCC) 4.9.2, GNU ld (GNU Binutils) 2.25) #16799 PREEMPT Sat Mar 2 20:00:14 CET 2024
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00d00000 (Ingenic XBurst)
[ 0.000000] FPU revision is: 00b70000
[ 0.000000] OF: fdt: No chosen node found, continuing without
[ 0.000000] MIPS: machine is Letux LX16
[ 0.000000] OF: reserved mem: failed to allocate memory for node 'linux,cma'
[ 0.000000] Reserved memory: created DMA memory pool at 0x02000000, size 32 MiB
[ 0.000000] OF: reserved mem: initialized node reserved_mem at 0x2000000, compatible id shared-dma-pool
[ 0.000000] User-defined physical RAM map overwrite
[ 0.000000] OF: reserved mem: node linux,cma compatible matching fail
[ 0.000000] Reserved memory: created DMA memory pool at 0x02000000, size 32 MiB
[ 0.000000] OF: reserved mem: initialized node reserved_mem at 0x2000000, compatible id shared-dma-pool
[ 0.000000] Primary instruction cache 16kB, VIPT, 8-way, linesize 32 bytes.
[ 0.000000] Primary data cache 16kB, 8-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] Unified secondary cache 128kB 8-way, linesize 32 bytes.
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Built 1 zonelists, mobility grouping off. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS2,115200n8 rootfstype=ext4 root=/dev/mmcblk0p2 rw mem=64M at 0x0
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 21716K/65536K available (7760K kernel code, 389K rwdata, 1780K rodata, 300K init, 152K bss, 43820K reserved, 0K cma-reserved)
root at letux:~# cat /proc/meminfo
MemTotal: 22016 kB
MemFree: 768 kB
MemAvailable: 8848 kB
Buffers: 1488 kB
Cached: 7160 kB
SwapCached: 0 kB
Active: 6096 kB
Inactive: 6452 kB
Active(anon): 56 kB
Inactive(anon): 3912 kB
Active(file): 6040 kB
Inactive(file): 2540 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 32 kB
Writeback: 0 kB
AnonPages: 3912 kB
Mapped: 5632 kB
Shmem: 68 kB
KReclaimable: 1840 kB
Slab: 5528 kB
SReclaimable: 1840 kB
SUnreclaim: 3688 kB
KernelStack: 448 kB
PageTables: 308 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 11008 kB
Committed_AS: 32512 kB
VmallocTotal: 1048372 kB
VmallocUsed: 1924 kB
VmallocChunk: 0 kB
Percpu: 64 kB
root at letux:~#
Doesn't look to be 100% consistent.
Anyways, here are the new SPL/U-Boot images:
http://download.goldelico.com/letux-u-boot/Letux-X16E/latest/
http://download.goldelico.com/letux-u-boot/Letux-X16/latest/
Still missing is the makesd extension. But we need that only if we have more x1600e boards...
BR,
Nikolaus
More information about the Letux-kernel
mailing list