Missing 256 MB RAM after upgrade to V2.6 Colibri Imx6

Hello Toradex,

After upgrading to the latest bsp v2.6B1 it seems like we’re missing half of the module ram. The following output is shown in u-boot:

U-Boot 2015.04+fslc+ge1a48b2 (Apr 19 2016 - 15:47:44)

CPU: Freescale i.MX6DL rev1.1 at 792 MHz
CPU: Temperature 56 C
Reset cause: WDOG
I2C: ready
DRAM: 256 MiB
PMIC: device id: 0x10, revision id: 0x11
PMIC: programmed
MMC: FSL_SDHC: 0, FSL_SDHC: 1
auto-detected panel vga-rgb
Display: vga-rgb (640x480)
In: serial
Out: serial
Err: serial
Model: Toradex Colibri iMX6 DualLite 512MB IT V1.0B, Serial# 04859743
Net: using PHY at 0
FEC [PRIME]
Normal Boot
Hit any key to stop autoboot: 0

What are the steps required to get RAM configuration back to the correct settings? We already tried creating a new configblock. We builded the image using Bitbake (Toradex Console Image).

From U-boot, try entering the following command:

patch_ddr_size

Let me know if that command resolves the issue or not. We will begin investigating possible causes of this problem.

Hi

This is a bug in U-Boot provided with the V2.6 image.

http://git.toradex.com/cgit/meta-toradex.git/tree/release-notes/Colibri_iMX6_LinuxReleaseNotesV2.x.txt?h=V2.6-next&id=1aa7713e8a3223d569493fd9db0784c8520bca41#n51

You need an U-Boot with the following patch included:

http://git.toradex.com/cgit/u-boot-toradex.git/commit/?h=2015.04-toradex-next&id=89a88407e9189755d0f17d73b05e9b87393daf3e

Max

Is this easily testable in an open embedded environment?
I don’t know how and which recipe exactly i need to patch to test this. There are multiple u-boot directories in the stuff folder.

Hi

I pushed changed recipes to the V2.6-next branch of meta-toradex. You could use them to find the relevant changes or cherry-pick them into your branch.
commit

Hi,
we patched the Model: Toradex Colibri iMX6 DualLite 512MB V1.0A like this:

Colibri iMX6 # patch_ddr_size
done.

But we still have only 244MB

root@christ:~# free -m
total used free shared buffers cached
Mem: 244 193 50 5 11 52
-/+ buffers/cache: 129 114
Swap: 0 0 0

What should we do?
Javier

Hi Javier

You have to rebuild U-Boot with sources that include above mentioned patch and then run patch_ddr_size.

Regards
Max

I applied the patch, but the problem persisted.
Used a recent commit to confirm.

U-boot 2015.04 and kernel 3.14.52.

COMMIT: b66337d357cca761bf8627acbb1ec991f425f0b4

With PATCH: http://git.toradex.com/cgit/u-boot-toradex.git/commit/?h=2015.04-toradex&id=4387807fdaa7f5f2022b77368fac3041f9082ae0


U-Boot 2015.04+fslc+gb66337d (Jul 20 2016 - 10:25:32)

CPU:   Freescale i.MX6DL rev1.2 at 792 MHz
Reset cause: POR
I2C:   ready
DRAM:  256 MiB
PMIC: device id: 0x10, revision id: 0x11
PMIC: programmed

Using COMMIT: http://git.toradex.com/cgit/u-boot-toradex.git/commit/?h=2015.04-toradex&id=59091f05d7c13c1532ce2bcf8b4dee2526aa5d35


U-Boot 2015.04+fslc+g59091f0 (Jul 20 2016 - 10:11:52)

CPU:   Freescale i.MX6DL rev1.2 at 792 MHz
CPU:   Temperature 41 C
Reset cause: POR
I2C:   ready
DRAM:  256 MiB
PMIC: device id: 0x10, revision id: 0x11
PMIC: programmed
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
auto-detected panel HDMI
Display: HDMI (1024x768)
In:    serial
Out:   serial
Err:   serial
Model: Toradex Colibri iMX6 DualLite 512MB V1.0A, Serial# 04869737
Net:   using PHY at 0
FEC [PRIME]
Normal Boot
Hit any key to stop autoboot:  0 
Colibri iMX6 # 

Both recompiled and recorded in /dev/mmcblk0boot0.


Cleiton Bueno

Blog | Linkedin | B2Open

What happens if you execute in U-Boot

patch_ddr_size
reset

If it still shows 256MB try this, which makes sure the eMMC boot mode is set to the first boot partition:

mmc partconf 0 1 1 0
reset

Note that your first U-Boot console output does not match the U-Boot commit you claim it is in your commit.

@max.tx Yeah, it worked!

CPU:   Freescale i.MX6DL rev1.2 at 792 MHz
Reset cause: WDOG
I2C:   ready
DRAM:  256 MiB
PMIC: device id: 0x10, revision id: 0x11
PMIC: programmed
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
auto-detected panel HDMI
Display: HDMI (1024x768)
In:    serial
Out:   serial
Err:   serial
Model: Toradex Colibri iMX6 DualLite 512MB V1.0A, Serial# 04869730
Net:   using PHY at 0
FEC [PRIME]
Hit any key to stop autoboot:  0 
Colibri iMX6 # 
Colibri iMX6 # 
Colibri iMX6 # 
Colibri iMX6 # 
Colibri iMX6 # 
Colibri iMX6 # patch_ddr_size 
patched, done.
Colibri iMX6 # reset 
resetting ...


U-Boot 2015.04+fslc+gb66337d (Jul 02 2016 - 08:42:00)

CPU:   Freescale i.MX6DL rev1.2 at 792 MHz
Reset cause: WDOG
I2C:   ready
DRAM:  512 MiB
PMIC: device id: 0x10, revision id: 0x11
PMIC: programmed
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
auto-detected panel HDMI
Display: HDMI (1024x768)
In:    serial
Out:   serial
Err:   serial
Model: Toradex Colibri iMX6 DualLite 512MB V1.0A, Serial# 04869730
Net:   using PHY at 0
FEC [PRIME]
Hit any key to stop autoboot:  0