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