I tried building mainline u-boot as you suggested @Hans. Here's what I did 
(please bear with me):

Compiled u-boot (natively on olimex A20-micro):
(Installed dtc first)

> git clone git://git.denx.de/u-boot.git
> make A20-OLinuXino_MICRO_defconfig
> make



Wrote the bootloader files to an SD card using:
> sudo dd if=~/u-boot/u-boot.bin of=/dev/disk2 bs=1024 seek=32 
> sudo dd if=~/u-boot/spl/sunxi-spl.bin of=/dev/disk2 bs=1024 seek=8



However, I still (sadly) get the same error.
U-Boot SPL 2015.07-rc1-00255-g0e6b7a2 (May 19 2015 - 16:55:13)

DRAM:Timeout initialising DRAM

As seen above, this is a recent U-Boot version, so I'm guessing I did 
compile the U-Boot alright.
But, the problem persists and I've run out of ideas. 

Any other suggestions? 
Could there be any other reason (apart from DRAM parameters) that could be 
causing this?

Thanks and regards,
Shoaib.

On Tuesday, May 19, 2015 at 2:56:30 PM UTC+4, sufi al hussaini hassani 
kamili raheemi wrote:
>
> I have a board that's got A20 with Samsung's SDRAM 'K4B1G1646G BCK0'. 
>
> The problem I'm facing now is that I'm not able to get it to boot. I keep 
> getting the following on debug UART:
>
> U-Boot SPL 2014.04-10706-g36080eb (Aug 19 2014 - 16:42:16)
> DRAM:Timeout initialising DRAM
>
> resetting ...
>
> .... (Repeats infinitely)
>
>
> I suspected that the (old) '[dram_para]' in my FEX file was causing this, 
> as it was configured for 'K4B4G1646D' (which is widely used).
> So, I edited the FEX file based on the info I could gather from the 
> SDRAM's datasheet. It now looks like this:
>
>
> [dram_para]
> dram_baseaddr = 0x40000000
> dram_clk = 384
> dram_type = 3
> dram_rank_num = 1
> dram_chip_density = 1024
> dram_io_width = 16
> dram_bus_width = 32
> dram_cas = 9
> dram_zq = 0x7f
> dram_odt_en = 0
> dram_size = 256
> dram_tpr0 = 0x42d899b7
> dram_tpr1 = 0xa090
> dram_tpr2 = 0x22a00
> dram_tpr3 = 0x0
> dram_tpr4 = 0x0
> dram_tpr5 = 0x0
> dram_emr1 = 0x4
> dram_emr2 = 0x10
> dram_emr3 = 0x0
>
> I tried booting with this but to no avail. The problem persists (same 
> error).
>
> I looked for ways to get the DRAM info directly from the hardware and 
> found meminfo in sunxi tools. 
> I was able to compile (and run) it (on a A20 based commercial board), but 
> I just can't figure out how to get it running on my board.
>
> Now, I'm confused- whether just setting the correct values in my FEX would 
> suffice or would I have to rebuild U-Boot.
> I would appreciate if someone could point me in the right direction to 
> solve this problem. 
>
> Thanks.
>

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to