On 10/31/2017 01:15 PM, Gabriel Kuri wrote:
With some kernels, not all memory is allocated to the kernel unless you pass
"mem=0" on the command line.
Since special Octeon code consumes the "mem=..." parameter, it isn't
available in userspace after the kernel is booted, so you must look at what
is done in u-boot.
Well, that didn't work out too well (see below).
Do I need to tweak the device tree or
'arch/mips/cavium-octeon/setup.c' for my specific board?
What board it it?
Allocated memory for ELF segment: addr: 0x1100000, size 0x2628a48
Why not show the entire logs we could know what you are doing in u-boot?
Loading .text @ 0x81100000 (0x35ca1c bytes)
Loading __ex_table @ 0x8145ca20 (0x57c0 bytes)
Archaic version of u-boot being used...
Loading .rodata @ 0x81463000 (0xca880 bytes)
Loading .pci_fixup @ 0x8152d880 (0x1db8 bytes)
Loading __ksymtab @ 0x8152f638 (0xbdd0 bytes)
Loading __ksymtab_gpl @ 0x8153b408 (0x6710 bytes)
Loading __ksymtab_strings @ 0x81541b18 (0x14cfd bytes)
Loading __param @ 0x81556818 (0x988 bytes)
Clearing __modver @ 0x815571a0 (0xe60 bytes)
Loading .data @ 0x81558000 (0x3bbd8 bytes)
Loading .data..page_aligned @ 0x81594000 (0x4000 bytes)
Loading .init.text @ 0x81598000 (0x278b4 bytes)
Loading .init.data @ 0x815bf8c0 (0x12390 bytes)
Loading .data..percpu @ 0x815d2000 (0x3eb0 bytes)
Clearing .bss @ 0x816e0000 (0x2048a48 bytes)
## Loading OS kernel with entry point: 0x81107920 ...
Bootloader: Done loading app on coremask: 0x1
[ 0.000000] Linux version 4.4.92 (gkuri@galileo) (gcc version 5.4.0
(LEDE GCC 5.4.0 r3560-79f57e4227
[ 0.000000] CVMSEG size: 2 cache lines (256 bytes)
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 000d0601 (Cavium Octeon+)
[ 0.000000] Checking for the multiply/shift bug... no.
[ 0.000000] Checking for the daddiu bug... no.
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 0000000000800000 @ 0000000003800000 (usable)
[ 0.000000] memory: 0000000002628a48 @ 0000000001100000 (usable)
[ 0.000000] Wasting 243712 bytes for tracking 4352 unused pages
[ 0.000000] Using internal Device Tree.
[ 0.000000] bootmem alloc of 8388608 bytes failed!
[ 0.000000] Kernel panic - not syncing: Out of memory
[ 0.000000] Rebooting in 1 seconds..