Gentoo Archives: gentoo-user

From: Bill Kenworthy <billk@×××××××××.au>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: [gentoo-user] gentoo-sources kernel not seeing 4G ram
Date: Thu, 09 Jan 2020 01:51:00
Message-Id: 0700e651-f183-7e02-a45c-d47c451d5885@iinet.net.au
1 Hi, not sure anyone can help with this as its a bit off the reservation :)
2
3 I have a Odroid N2 with 4G ram that is only seeing 1G. (even from right
4 at boot looking at dmesg).  Its part of the board so its not a connector
5 issue.
6
7 Kernel is gentoo-sources-5.4.8 with the AMLOGIC armv8 relevant bits
8 copied from the 4.9 series original hardkernel sources.  OS is gentoo
9 AARCH64.  This all built and runs quite nicely, but cant see the full 4G
10 ram that should be there.
11
12 Ive attached my latest kernel config in the hope that someone can see
13 something Ive missed (presuming it isn't an inherent problem in the way
14 I have gone about this) - looking at the config, diffing it against the
15 hardkernel source etc. hasn't helped.  Below is the start of dmesg up to
16 the memory statement.
17
18 My next move will be to go back to the 4.9 supplied kernel and make sure
19 it isn't hardware failure (unlikely, but ...)
20
21 BillK
22
23 [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
24 [    0.000000] Linux version 5.4.8-gentoo (root@n2) (gcc version 9.2.0
25 (Gentoo 9.2.0-r2 p3)) #1 SMP PREEMPT Thu Jan 9 08:36:20 AWST 2020
26 [    0.000000] Machine model: Hardkernel ODROID-N2
27 [    0.000000] efi: Getting EFI parameters from FDT:
28 [    0.000000] efi: UEFI not found.
29 [    0.000000] Reserved memory: created CMA memory pool at
30 0x0000000030000000, size 256 MiB
31 [    0.000000] OF: reserved mem: initialized node linux,cma, compatible
32 id shared-dma-pool
33 [    0.000000] NUMA: No NUMA configuration found
34 [    0.000000] NUMA: Faking a node at [mem
35 0x0000000000000000-0x000000003fffffff]
36 [    0.000000] NUMA: NODE_DATA [mem 0x2fdb6800-0x2fdb7fff]
37 [    0.000000] Zone ranges:
38 [    0.000000]   DMA32    [mem 0x0000000000000000-0x000000003fffffff]
39 [    0.000000]   Normal   empty
40 [    0.000000] Movable zone start for each node
41 [    0.000000] Early memory node ranges
42 [    0.000000]   node   0: [mem 0x0000000000000000-0x0000000004ffffff]
43 [    0.000000]   node   0: [mem 0x0000000005300000-0x000000003fffffff]
44 [    0.000000] Initmem setup node 0 [mem
45 0x0000000000000000-0x000000003fffffff]
46 [    0.000000] On node 0 totalpages: 261376
47 [    0.000000]   DMA32 zone: 4096 pages used for memmap
48 [    0.000000]   DMA32 zone: 0 pages reserved
49 [    0.000000]   DMA32 zone: 261376 pages, LIFO batch:63
50 [    0.000000] psci: probing for conduit method from DT.
51 [    0.000000] psci: PSCIv1.0 detected in firmware.
52 [    0.000000] psci: Using standard PSCI v0.2 function IDs
53 [    0.000000] psci: MIGRATE_INFO_TYPE not supported.
54 [    0.000000] psci: SMC Calling Convention v1.1
55 [    0.000000] percpu: Embedded 22 pages/cpu s52632 r8192 d29288 u90112
56 [    0.000000] pcpu-alloc: s52632 r8192 d29288 u90112 alloc=22*4096
57 [    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5
58 [    0.000000] Detected VIPT I-cache on CPU0
59 [    0.000000] CPU features: detected: ARM erratum 845719
60 [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 257280
61 [    0.000000] Policy zone: DMA32
62 [    0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait rw
63 console=ttyAML0,115200n8  no_console_suspend fsck.repair=yes
64 net.ifnames=0 elevator=noop hdmimode=1080p60hz cvbsmode=576cvbs
65 max_freq_a53=1896 max_freq_a73=1800 maxcpus=6 voutmode=hdmi 
66 disablehpd=false cvbscable=0 overscan=100  monitor_onoff=false
67 usb-xhci.tablesize=2 logo=osd0,loaded
68 [    0.000000] Dentry cache hash table entries: 131072 (order: 8,
69 1048576 bytes, linear)
70 [    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288
71 bytes, linear)
72 [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
73 [    0.000000] Memory: 748756K/1045504K available (7932K kernel code,
74 728K rwdata, 2784K rodata, 1856K init, 403K bss, 34604K reserved,
75 262144K cma-reserved)
76 [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
77 [    0.000000] rcu: Preemptible hierarchical RCU implementation.
78 [    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=256 to
79 nr_cpu_ids=6.

Attachments

File name MIME type
config text/plain

Replies

Subject Author
RE: [gentoo-user] gentoo-sources kernel not seeing 4G ram Raffaele BELARDI <raffaele.belardi@××.com>