1 |
On 1/11/20 7:38 PM, Bill Kenworthy wrote: |
2 |
> Hi Rafael, fixed thanks to the link you gave - needed� apatch to a dts |
3 |
> file that limited thge memory available. |
4 |
> |
5 |
> So I now have a heavily patched mainline based (gentoo-sources) kernel |
6 |
> with gentoo aarch64/openrc userland running on the n2 as a headless |
7 |
> server for 6 x lxc containers for network infrastructure! |
8 |
> |
9 |
> Nice, |
10 |
> BillK |
11 |
|
12 |
Hello Bill, |
13 |
|
14 |
Very, very cool. Take a look at this page and see if you want to |
15 |
contribute, so others may follow your (gentoo) footsteps:: |
16 |
|
17 |
https://wiki.gentoo.org/wiki/Odroid_N2 |
18 |
|
19 |
and |
20 |
|
21 |
https://wiki.gentoo.org/wiki/Embedded_systems/ARM_hardware_list |
22 |
|
23 |
|
24 |
ODROID-N2 Georgy Yakovlev (GYakovlev) |
25 |
ARMv8 Amlogic S922X - 4xA73@1.8GHz, 2xA53@1.9GHz, GPU: Mali G52@846MHz |
26 |
2G or 4G @DDR4@1320MHz |
27 |
|
28 |
|
29 |
Any more specific input on that link would be greatly appreciated and |
30 |
encourage others to be companion gentoo users..... |
31 |
|
32 |
I know it's on my short list, once I get my new/expanded lab cleaned up |
33 |
a bit more.... The coolest thing is 36" x 18" open-wire racks on |
34 |
wheels...... just for such projects. |
35 |
|
36 |
hth, |
37 |
|
38 |
|
39 |
James |
40 |
|
41 |
|
42 |
|
43 |
|
44 |
> |
45 |
> On 9/1/20 3:34 pm, Raffaele BELARDI wrote: |
46 |
>> No experience on this, but looks like it can be done with the patched |
47 |
>> mainline kernel: |
48 |
>> https://forum.odroid.com/viewtopic.php?t=33993 |
49 |
>> |
50 |
>> Just for my understanding, gentoo-sources does not contain all the |
51 |
>> drivers needed by this board so you are trying to copy those from the |
52 |
>> 'hardkernel' sources, correct? |
53 |
>> |
54 |
>> Raffaele |
55 |
>> |
56 |
>>> -----Original Message----- |
57 |
>>> From: Bill Kenworthy <billk@×××××××××.au> |
58 |
>>> Sent: Thursday, January 9, 2020 02:50 |
59 |
>>> To: gentoo-user@l.g.o |
60 |
>>> Subject: [gentoo-user] gentoo-sources kernel not seeing 4G ram |
61 |
>>> |
62 |
>>> Hi, not sure anyone can help with this as its a bit off the |
63 |
>>> reservation :) |
64 |
>>> |
65 |
>>> I have a Odroid N2 with 4G ram that is only seeing 1G. (even from |
66 |
>>> right at |
67 |
>>> boot looking at dmesg).� Its part of the board so its not a connector |
68 |
>>> issue. |
69 |
>>> |
70 |
>>> Kernel is gentoo-sources-5.4.8 with the AMLOGIC armv8 relevant bits |
71 |
>>> copied |
72 |
>>> from the 4.9 series original hardkernel sources.� OS is gentoo |
73 |
>>> AARCH64.� This |
74 |
>>> all built and runs quite nicely, but cant see the full 4G ram that |
75 |
>>> should be |
76 |
>>> there. |
77 |
>>> |
78 |
>>> Ive attached my latest kernel config in the hope that someone can see |
79 |
>>> something Ive missed (presuming it isn't an inherent problem in the |
80 |
>>> way I |
81 |
>>> have gone about this) - looking at the config, diffing it against the |
82 |
>>> hardkernel |
83 |
>>> source etc. hasn't helped.� Below is the start of dmesg up to the memory |
84 |
>>> statement. |
85 |
>>> |
86 |
>>> My next move will be to go back to the 4.9 supplied kernel and make |
87 |
>>> sure it |
88 |
>>> isn't hardware failure (unlikely, but ...) |
89 |
>>> |
90 |
>>> BillK |
91 |
>>> |
92 |
>>> [��� 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] |
93 |
>>> [��� 0.000000] Linux version 5.4.8-gentoo (root@n2) (gcc version |
94 |
>>> 9.2.0 (Gentoo |
95 |
>>> 9.2.0-r2 p3)) #1 SMP PREEMPT Thu Jan 9 08:36:20 AWST 2020 [��� 0.000000] |
96 |
>>> Machine model: Hardkernel ODROID-N2 [��� 0.000000] efi: Getting EFI |
97 |
>>> parameters from FDT: |
98 |
>>> [��� 0.000000] efi: UEFI not found. |
99 |
>>> [��� 0.000000] Reserved memory: created CMA memory pool at |
100 |
>>> 0x0000000030000000, size 256 MiB [��� 0.000000] OF: reserved mem: |
101 |
>>> initialized |
102 |
>>> node linux,cma, compatible id shared-dma-pool [��� 0.000000] NUMA: No |
103 |
>>> NUMA configuration found [��� 0.000000] NUMA: Faking a node at [mem |
104 |
>>> 0x0000000000000000-0x000000003fffffff] |
105 |
>>> [��� 0.000000] NUMA: NODE_DATA [mem 0x2fdb6800-0x2fdb7fff] [ |
106 |
>>> 0.000000] |
107 |
>>> Zone ranges: |
108 |
>>> [��� 0.000000]�� DMA32��� [mem 0x0000000000000000-0x000000003fffffff] |
109 |
>>> [��� 0.000000]�� Normal�� empty |
110 |
>>> [��� 0.000000] Movable zone start for each node [��� 0.000000] Early |
111 |
>>> memory |
112 |
>>> node ranges [��� 0.000000]�� node�� 0: [mem 0x0000000000000000- |
113 |
>>> 0x0000000004ffffff] |
114 |
>>> [��� 0.000000]�� node�� 0: [mem 0x0000000005300000-0x000000003fffffff] |
115 |
>>> [��� 0.000000] Initmem setup node 0 [mem 0x0000000000000000- |
116 |
>>> 0x000000003fffffff] |
117 |
>>> [��� 0.000000] On node 0 totalpages: 261376 [��� 0.000000]�� DMA32 |
118 |
>>> zone: 4096 |
119 |
>>> pages used for memmap [��� 0.000000]�� DMA32 zone: 0 pages reserved |
120 |
>>> [��� 0.000000]�� DMA32 zone: 261376 pages, LIFO batch:63 [ |
121 |
>>> 0.000000] psci: |
122 |
>>> probing for conduit method from DT. |
123 |
>>> [��� 0.000000] psci: PSCIv1.0 detected in firmware. |
124 |
>>> [��� 0.000000] psci: Using standard PSCI v0.2 function IDs [ |
125 |
>>> 0.000000] psci: |
126 |
>>> MIGRATE_INFO_TYPE not supported. |
127 |
>>> [��� 0.000000] psci: SMC Calling Convention v1.1 [��� 0.000000] percpu: |
128 |
>>> Embedded 22 pages/cpu s52632 r8192 d29288 u90112 [��� 0.000000] |
129 |
>>> pcpu-alloc: |
130 |
>>> s52632 r8192 d29288 u90112 alloc=22*4096 [��� 0.000000] pcpu-alloc: |
131 |
>>> [0] 0 [0] 1 |
132 |
>>> [0] 2 [0] 3 [0] 4 [0] 5 [��� 0.000000] Detected VIPT I-cache on CPU0 |
133 |
>>> [��� 0.000000] |
134 |
>>> CPU features: detected: ARM erratum 845719 [��� 0.000000] Built 1 |
135 |
>>> zonelists, |
136 |
>>> mobility grouping on.� Total pages: 257280 [��� 0.000000] Policy |
137 |
>>> zone: DMA32 |
138 |
>>> [��� 0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait rw |
139 |
>>> console=ttyAML0,115200n8� no_console_suspend fsck.repair=yes |
140 |
>>> net.ifnames=0 elevator=noop hdmimode=1080p60hz cvbsmode=576cvbs |
141 |
>>> max_freq_a53=1896 max_freq_a73=1800 maxcpus=6 voutmode=hdmi |
142 |
>>> disablehpd=false cvbscable=0 overscan=100� monitor_onoff=false |
143 |
>>> usb-xhci.tablesize=2 logo=osd0,loaded |
144 |
>>> [��� 0.000000] Dentry cache hash table entries: 131072 (order: 8, |
145 |
>>> 1048576 bytes, linear) |
146 |
>>> [��� 0.000000] Inode-cache hash table entries: 65536 (order: 7, |
147 |
>>> 524288 bytes, |
148 |
>>> linear) [��� 0.000000] mem auto-init: stack:off, heap alloc:off, heap |
149 |
>>> free:off |
150 |
>>> [��� 0.000000] Memory: 748756K/1045504K available (7932K kernel code, |
151 |
>>> 728K |
152 |
>>> rwdata, 2784K rodata, 1856K init, 403K bss, 34604K reserved, 262144K |
153 |
>>> cma- |
154 |
>>> reserved) [��� 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, |
155 |
>>> CPUs=6, Nodes=1 [��� 0.000000] rcu: Preemptible hierarchical RCU |
156 |
>>> implementation. |
157 |
>>> [��� 0.000000] rcu:���� RCU restricting CPUs from NR_CPUS=256 to |
158 |
>>> nr_cpu_ids=6. |
159 |
> |
160 |
> |
161 |
> |