Olimex Lime2: SPL hang on "DRAM: 0 MiB" when doing a "fel boot"

Started by aventuri, June 04, 2015, 11:56:01 AM

Previous topic - Next topic

aventuri

hello,

i have got a boot issue, all of a sudden.

i'm testing an Olinuxino Lime2 ver.C without NAND.

in my actual setup i'm using a network env with DHCP/TFTP/NFS for rapid testing of different software images.

for booting, as i don't have NAND on board and do not want to use microSD, i use "fel boot"

http://linux-sunxi.org/FEL/USBBoot

it used to work greatly til a few days ago, now it fails at SPL stage (pretty soon so..)

the USB otg is connected and i get proper recognition on host system.

i'm using u-boot 15.04 stable latest with the config at the bottom. as i said, it used to work! :-|

when a send from my host the usual command: fel spl u-boot-sunxi-with-spl.bin
i get back on the uart0:

U-Boot SPL 2015.04 (Apr 21 2015 - 17:39:26)
DRAM: 0 MiB
### ERROR ### Please RESET the board ###

then the board hangs. i repeated this process many times, i tested different power adapters (after the one it used to work..)

i reset the board with all the internal switch: power, reset recovery. when restart always the same DRAM error.

i tried to clean the DRAM and SOC, but they appear not to be damaged or tampered.

i tried a microSD with a known working u-boot from a different board and still the spl stage stops with the same DRAM 0MiB error.

i googled here and there but not getting a clue. i'm a bit stuck. anyone has hint or suggestion?

i find difficult this is a sudden HW error.. so i hope there's some clever de-bricking technique! :-)

bests

andrea


CONFIG_HAVE_GENERIC_BOARD=y
CONFIG_ARM=y
CONFIG_SYS_ARCH="arm"
CONFIG_SYS_CPU="armv7"
CONFIG_SYS_SOC="sunxi"
CONFIG_SYS_BOARD="sunxi"
CONFIG_SYS_CONFIG_NAME="sun7i"

CONFIG_HAS_VBAR=y
CONFIG_CPU_V7=y
CONFIG_ARCH_SUNXI=y
CONFIG_CPU_V7_HAS_NONSEC=y
CONFIG_CPU_V7_HAS_VIRT=y
CONFIG_ARMV7_NONSEC=y
CONFIG_ARMV7_VIRT=y
CONFIG_MACH_SUN7I=y
CONFIG_DRAM_CLK=480
CONFIG_DRAM_MBUS_CLK=300
CONFIG_DRAM_ZQ=127
CONFIG_DRAM_EMR1=4
CONFIG_DRAM_ODT_EN=0
CONFIG_DRAM_TPR3=0
CONFIG_DRAM_DQS_GATING_DELAY=0
CONFIG_DRAM_TIMINGS_VENDOR_MAGIC=y
CONFIG_SYS_CLK_FREQ=912000000
CONFIG_FDTFILE="sun7i-a20-olinuxino-lime2.dtb"
CONFIG_MMC0_CD_PIN=""
CONFIG_MMC1_CD_PIN=""
CONFIG_MMC2_CD_PIN=""
CONFIG_MMC3_CD_PIN=""
CONFIG_MMC_SUNXI_SLOT_EXTRA=-1
CONFIG_USB0_VBUS_PIN=""
CONFIG_USB1_VBUS_PIN="PH6"
CONFIG_USB2_VBUS_PIN="PH3"
CONFIG_VIDEO=y
CONFIG_VIDEO_HDMI=y
CONFIG_VIDEO_LCD_MODE=""
CONFIG_VIDEO_LCD_DCLK_PHASE=1
CONFIG_VIDEO_LCD_POWER=""
CONFIG_VIDEO_LCD_RESET=""
CONFIG_VIDEO_LCD_BL_EN=""
CONFIG_VIDEO_LCD_BL_PWM=""
CONFIG_VIDEO_LCD_BL_PWM_ACTIVE_LOW=y
CONFIG_VIDEO_LCD_IF_PARALLEL=y
CONFIG_VIDEO_LCD_PANEL_PARALLEL=y
CONFIG_USB_KEYBOARD=y
CONFIG_GMAC_TX_DELAY=0

CONFIG_DEFAULT_DEVICE_TREE=""

CONFIG_LOCALVERSION=""
CONFIG_LOCALVERSION_AUTO=y
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
CONFIG_EXPERT=y
CONFIG_SYS_MALLOC_CLEAR_ON_INIT=y

CONFIG_SUPPORT_SPL=y
CONFIG_SPL=y
CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,RGMII,AHCI,SATAPWR=SUNXI_GPC(3),USB_EHCI"

CONFIG_CMD_BOOTM=y
CONFIG_CMD_GO=y
CONFIG_CMD_EXPORTENV=y
CONFIG_CMD_IMPORTENV=y
CONFIG_CMD_CRC32=y
CONFIG_SUPPORT_OF_CONTROL=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_HAVE_PRIVATE_LIBGCC=y
CONFIG_SYS_HZ=1000



 


JohnS

As it doesn't see RAM I think config is irrelevant.

Usually bad power.

Disconnect everything you can and use a good quality PSU.

John

aventuri

thanx for the reply,

i thought the cfg could be useful because in the first stage the SPL runs on Static Ram IIRC and tries to setup the Dynamic Ram params (that are showed in the UBOOT CFG above).

maybe the params i'm using are broken or on the edge of the correct range, so i thought someone could shed some light.

BTW if someone knows some conservative DRAM params who cut the speed in half, i would be happy to hear, because now i'd like to put the device back at work, so halving the speed is way better then completely off :-)

then the typical PSU is switching 5V 3A so beefy enough i suppose.