From mboxrd@z Thu Jan  1 00:00:00 1970
From: Michael Tremer <michael.tremer@ipfire.org>
To: sig-arm@lists.ipfire.org
Subject: Re: News on Utilite?
Date: Wed, 15 Jan 2014 16:19:01 +0100
Message-ID: <1389799141.19959.69.camel@rice-oxley.tremer.info>
In-Reply-To: <52D408B4.5020706@compulab.co.il>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============3358421402842672136=="
List-Id: <sig-arm.lists.ipfire.org>

--===============3358421402842672136==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit

Hello guys,

thank you for writing back. As you said, I updated u-boot on my unit to
version 2009.08-cm-fx6-0.91+tools (Nov 19 2013). The issue remains the
same that I cannot boot an other u-boot from SD card which is what I
need to find out why the kernel is not booting properly.

First, let's talk about the u-boot SD card issue:

U-Boot 2009.08-cm-fx6-0.91+tools (Nov 19 2013 - 14:56:48)

CPU: Freescale i.MX6 family TO6.4 at 792 MHz
Temperature:   39 C, calibration data 0x5b152a69
mx6q pll1: 792MHz
mx6q pll2: 528MHz
mx6q pll3: 480MHz
mx6q pll8: 50MHz
ipg clock     : 66000000Hz
ipg per clock : 66000000Hz
uart clock    : 80000000Hz
cspi clock    : 60000000Hz
ahb clock     : 132000000Hz
axi clock   : 264000000Hz
emi_slow clock: 29333333Hz
ddr clock     : 528000000Hz
usdhc1 clock  : 198000000Hz
usdhc2 clock  : 198000000Hz
usdhc3 clock  : 198000000Hz
usdhc4 clock  : 198000000Hz
nfc clock     : 11000000Hz
Board: CM-FX6:[ WDOG ]
Boot Device: SPI NOR
I2C:   ready
RAM Configuration:
Bank #0: 10000000  1 GB
Bank #1: 80000000  1 GB
NAND:  No NAND device found!!!
0 MiB
MMC:   FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2
JEDEC ID: 0xbf:0x25:0x41
Reading SPI NOR flash 0xc0000 [0x2000 bytes] -> ram 0x17e030e0
SUCCESS

In:    serial
Out:   serial
Err:   serial
Net:   got MAC address from IIM: 00:00:00:00:00:00
FEC0
Hit any key to stop autoboot:  0 
CM-FX6 #   

That is the output of the bootloader inside the SPI. It says:

  Boot Device: SPI NOR

I believe that this should be "SD" card.

On the utilite forums, there is a thread where people have exactly the
same problem:
http://www.utilite-computer.com/forum/viewtopic.php?f=66&t=1465

----

Why do I need to re-compile u-boot? Your version passes a board id to
the kernel and it appears that the kernel won't boot with the device
tree file that was passed to it.

Possibly, this can be solved by this change:

[root(a)hokey u-boot]# git diff
diff --git a/board/compulab/cm_fx6/cm_fx6.c b/board/compulab/cm_fx6/cm_fx6.c
index f46980d..91ffcdf 100644
--- a/board/compulab/cm_fx6/cm_fx6.c
+++ b/board/compulab/cm_fx6/cm_fx6.c
@@ -805,7 +805,7 @@ int board_init(void)
        setup_boot_device();
 
        /* board id for linux */
-       gd->bd->bi_arch_number = MACH_TYPE_CM_FX6;
+       //gd->bd->bi_arch_number = MACH_TYPE_CM_FX6;
 
        /* address of boot parameters */
        gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;


But as long as I cannot test it am not too sure about how the kernel
behaves.

So, please can you look into this and find out if there is a way to get
my device booting u-boot from SD card?

-Michael


--===============3358421402842672136==--