4Gb ram not recognized

Home Forums GeeXboX on ARM SoCs 4Gb ram not recognized

This topic contains 26 replies, has 3 voices, and was last updated by  Warped Rudi 1 year, 2 months ago.

Viewing 15 posts - 1 through 15 (of 27 total)
  • Author
  • #10931


    I use free command in my Cubox-i4x4 and this is result:

    You are authenticated
    root@geexbox /root$ free
                 total       used       free     shared    buffers     cached
    Mem:       1793524     647496    1146028          0      11992     137400
    -/+ buffers/cache:     498104    1295420
    Swap:            0          0          0

    If I got it right system see only 1.8Gb ram instead 4.0Gb..

    It is possible to see all 4.0 Gb of ram?


    Warped Rudi

    You reported that before, but unfortunately I don’t have a 4×4 to test. I know that the memory size detection in u-boot is somewhat flaky. Jon N. changed something a while ago but I heard bad things (i.e. some non-booting units) about this change. So I did not include it. However, I’m also not 100% sure if our kernel config has something to do with this. There is one parameter that looks suspicious… Maybe next week I can build a kernel with that param changed, so that we can rule that out.



    Some thing like this ?

    Basically, the parameter that sets the total available physical memory is "mem=MEMORY_LIMIT". And this is a kernel boot parameter. You need to add, say "mem=1G" for maximum of 1GB available physical memory to the kernel boot parameter. For more info on how to add kernel boot parameters look at https://wiki.ubuntu.com/Kernel/KernelBootParameters


    Warped Rudi

    No, I was thinking about a kernel compile-time configuration. BTW, can you attach a micro USB cable to the console port of your box, open a terminal and abort the boot process by pressing a key during the 3 second countdown. This should get you to an u-boot prompt. Then type:


    and post the output here.



    Could you explain better? I’m a eternal newbye… ^_^

    1) attach a micro USB cable to the console port of your box, (I can do it)
    2) open a terminal (how I can open a terminal using USB? I know command like ‘telnet ‘ for get a terminal…)
    3) abort the boot process by pressing a key during the 3 second countdown. (…)
    4) Then type: bdinfo (…)

    Thank you



    Ok, man if I did it right, this is what you asked for:

    CuBox-i U-Boot > bdinfo
    arch_number = 0x000012D5
    boot_params = 0x10000100
    DRAM bank   = 0x00000000
    -> start    = 0x10000000
    -> size     = 0xF0000000
    eth0name    = FEC
    ethaddr     = d0:63:b4:00:84:1f
    current eth = FEC
    ip_addr     = <NULL>
    baudrate    = 115200 bps
    TLB addr    = 0xFFFF0000
    relocaddr   = 0xFFF70000
    reloc off   = 0xEF770000
    irq_sp      = 0xFF76FF38
    sp start    = 0xFF76FF28
    FB base     = 0x00000000
    CuBox-i U-Boot >

    may be?



    This was a double of previous post. Sorry.

    • This reply was modified 1 year, 4 months ago by  skelos.


    Hi Skelos

    -> size = 0xF0000000

    it seems quite good : 4GB
    But Rudi is better than me for this



    please , could you let me know why 0xF0000000 is equal to 4Gb? F is not equal to 16? If you know… if not I wait Rudi.


    Warped Rudi

    Of course 0xF0000000 is not exactly 4GB. However, iMX6 is a 32bit machine and some address space is required for the SoC’s control registers. Therefore the area above 0xF0000000 is not reported as valid memory. It’s actually present, but cannot be used.

    But anyway, the output tells us that u-boot is detecting the memory size correctly. Now the question is why the kernel would not report it. I suspect CONFIG_VMSPLIT_2G…



    Please let me know if I can do ohter tests for you.



    Rudi, do you have any news?


    Warped Rudi

    I’m away for the next two and a half weeks. Maybe Tom can build a new kernel package with CONFIG_VMSPLIT_3G set (and CONFIG_VMSPLIT_2G unset). But be aware that it might not boot at all or fail on 1920×1080 videos…



    Building it with CONFIG_VMSPLIT_3G set to “y”


Viewing 15 posts - 1 through 15 (of 27 total)

You must be logged in to reply to this topic.