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