I moved my question from build kernel thread where it was offtopic.
The question is: how can I enable support for more that 4GB address space per process?
It was promised by nvidia http://www.nvidia.com/object/tegra-k1-processor.html
and mentioned https://en.wikipedia.org/wiki/Tegra#Tegra_K1.
I enabled swap (16 gb), and I saw that my program took 3Gb mem and got “bad alloc”.
I downloaded last nvidia kernel sources (3.10.40), enabled LPAE, rebuilded all modules and flashed new kernel, but the only thing I’ve got is that network adapter became accessible. The program is still limited to 3GB.
It’s strange, that
does not have lpae flag in features.
As far as I understand, LPAE support was added many years ago in kernel 2.6. I took vanilla kernel, and grepped for CONFIG_ARM_LPAE - yes, many entries.
That I did it on nvidia source tree … nothing.
So, that patches were threw away. Why?
Can anyone give me a piece of advice how to apply lpae patches from vanilla kernel to nvidia kernel source? Or it’s better to build vanilla kernel for jetson?