u-boot for CuBox-i 4x4: only 2GB of 4GB seen

This forum is for supported devices using an ARMv7 Freescale SoC.

u-boot for CuBox-i 4x4: only 2GB of 4GB seen

Postby Oleg » Tue Jun 23, 2015 2:18 pm

New CuBox-i 4x4 has 4GB RAM but latest Arch Linux ARM is able to see only 2GB.

I was told that I need latest u-boot from https://github.com/SolidRun/u-boot-imx6 to access whole 4GB.

Hope you can update u-boot to latest version.
Oleg
 
Posts: 30
Joined: Tue Jun 23, 2015 1:28 pm

Re: u-boot for CuBox-i 4x4: only 2GB of 4GB seen

Postby maniac » Tue Jun 23, 2015 5:39 pm

+1 here

mine 4x4 just arrived, but even after obligate pacman -Syu and reboot it still can detect only 2GB.
adding mem=4096M into uEnv.txt caused it to not even boot.
maniac
 
Posts: 10
Joined: Tue Jun 23, 2015 5:36 pm

Re: u-boot for CuBox-i 4x4: only 2GB of 4GB seen

Postby WarheadsSE » Tue Jun 23, 2015 6:00 pm

If the u-boot version is limiting it, then yeah, it isn't going to magically show up.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: u-boot for CuBox-i 4x4: only 2GB of 4GB seen

Postby maniac » Thu Jun 25, 2015 10:43 am

I've just found compiled fresh u-boot on solidrun site http://download.solid-run.com/pub/solid ... x-i/uboot/

Is it enough to replace the uboot.img in /boot folder on SD card with archlinux-arm with this file, or dd to SD card with 1k seek is required to get it applied?

Have anyone successfully tried this to get 4GB RAM support on cubox 4x4?

thank you!
maniac
 
Posts: 10
Joined: Tue Jun 23, 2015 5:36 pm

Re: u-boot for CuBox-i 4x4: only 2GB of 4GB seen

Postby WarheadsSE » Thu Jun 25, 2015 1:26 pm

The developers have not, because we don't have this device. Perhaps a community member has.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: u-boot for CuBox-i 4x4: only 2GB of 4GB seen

Postby Oleg » Thu Jun 25, 2015 2:09 pm

maniac, thank you for sharing this link!

Well, I have copied both files with dd command, rebooted, and got same 2GB. Later I copied both files to /boot folder, rebooted and still get 2GB. Something is wrong. Maybe someone needs to re-compile these u-boot sources again.
Oleg
 
Posts: 30
Joined: Tue Jun 23, 2015 1:28 pm

Re: u-boot for CuBox-i 4x4: only 2GB of 4GB seen

Postby maniac » Thu Jun 25, 2015 6:38 pm

OK, so I have tried to extract the u-boot.img and SPL files and copy those to SD card into /boot - no joy - still only 2GB memory detected on my archlinux arm running on Cubox 4x4.

HOWEVER, after storing contents of both files to SD card as described here:

http://wiki.solid-run.com/index.php?tit ... mmingBoard

That means in short:

dd if=SPL of=/dev/mmcblk0 bs=1K seek=1
and
dd if=u-boot.img of=/dev/mmcblk0 bs=1K seek=42

After reboot, kernel detects 4GB of RAM correctly :D :

[root@localhost ~]# dmesg |grep Memory:
[ 0.000000] Memory: 3617596K/3932156K available (7680K kernel code, 364K rwdata, 2700K rodata, 340K init, 529K bss, 314560K reserved, 2105340K highmem)
[root@localhost ~]#

[root@localhost ~]# free
total used free shared buff/cache available
Mem: 3880080 419320 3218884 672 241876 3426012
Swap: 0 0 0
[root@localhost ~]#


Here is the link to archive file from Solid-Run containing both latest u-boot.img and SPL files:
http://download.solid-run.com/pub/solid ... 515.tar.xz
maniac
 
Posts: 10
Joined: Tue Jun 23, 2015 5:36 pm

Re: u-boot for CuBox-i 4x4: only 2GB of 4GB seen

Postby Oleg » Thu Jun 25, 2015 7:02 pm

Oh, it worked out for me too now!

I used /dev/sda and got no luck, but with /dev/mmcblk0 I got it working!

Thank you maniac!
Oleg
 
Posts: 30
Joined: Tue Jun 23, 2015 1:28 pm

Re: u-boot for CuBox-i 4x4: only 2GB of 4GB seen

Postby pepedog » Thu Jun 25, 2015 8:09 pm

I have been asked to rebase u boot by solid run but don't have time at the moment.
U boot must be on sd card
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: u-boot for CuBox-i 4x4: only 2GB of 4GB seen

Postby moonman » Tue Jun 30, 2015 9:37 pm

I looked at it a week ago before I was out of town. It looked like it needed a patch for gcc5 (even after I copied compiler-gcc5.h from linux kernel tree). Will have to investigate further
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Next

Return to Freescale

Who is online

Users browsing this forum: No registered users and 14 guests