From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 39D53E006B5; Tue, 26 Aug 2014 02:25:49 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,HTML_MESSAGE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message X-Greylist: delayed 516 seconds by postgrey-1.32 at yocto-www; Tue, 26 Aug 2014 02:25:37 PDT Received: from mailext0.televes.com (mailext0.televes.com [212.163.42.140]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 7307BE0054C for ; Tue, 26 Aug 2014 02:25:37 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mailext0.televes.com (Postfix) with ESMTP id E98039A3F10; Tue, 26 Aug 2014 11:16:58 +0200 (CEST) X-Virus-Scanned: by amavisd-new at mailext0.televes.com Received: from mailext0.televes.com ([127.0.0.1]) by localhost (mailext0.televes.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AzzzA2EYINzl; Tue, 26 Aug 2014 11:16:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mailext0.televes.com (Postfix) with ESMTP id A2AE39A3F13; Tue, 26 Aug 2014 11:16:58 +0200 (CEST) Received: from tves0.televes.com (tvesbackup0 [212.163.42.137]) by mailext0.televes.com (Postfix) with ESMTP id 84E319A3F10; Tue, 26 Aug 2014 11:16:58 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by tves0.televes.com (Postfix) with ESMTP id B34EEF020E1DB; Tue, 26 Aug 2014 11:16:57 +0200 (CEST) Received: from arantia1.arantia.com (ARANTIA0.televes.com [192.168.178.2]) by tves0.televes.com (Postfix) with ESMTP id AAE0BF020E1DA; Tue, 26 Aug 2014 11:16:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by arantia1.arantia.com (Postfix) with ESMTP id 8F2FE1600B62; Tue, 26 Aug 2014 11:16:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by arantia1.arantia.com (Postfix) with ESMTP id 690C41600B63; Tue, 26 Aug 2014 11:16:57 +0200 (CEST) Received: from arantia1.arantia.com ([127.0.0.1]) by localhost (arantia0 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00977-04; Tue, 26 Aug 2014 11:16:56 +0200 (CEST) Received: from [192.168.178.108] (unknown [192.168.178.108]) by arantia1.arantia.com (Postfix) with ESMTP id 2368D15FF4F7; Tue, 26 Aug 2014 11:16:56 +0200 (CEST) Message-ID: <53FC5088.6090904@arantia.com> Date: Tue, 26 Aug 2014 11:16:56 +0200 From: Marco Trillo User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 MIME-Version: 1.0 To: "lianjf@ava.com.cn" References: <2014082617092334337931@ava.com.cn> In-Reply-To: <2014082617092334337931@ava.com.cn> Cc: meta-freescale Subject: Re: consultion about uboot and kernel X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Aug 2014 09:25:49 -0000 Content-Type: multipart/alternative; boundary="------------090508060607020602070307" --------------090508060607020602070307 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, That's because 3.10.17 moved to device trees. You need the appropriate .dtb binary file for your board (you will find the .dtb files in the Yocto "deploy/images//" directory). You need to load the .dtb (typically at address $fdt_addr) as well as the kernel; it would be something like this: tftpboot $fdt_addr imx6q-whatever-board.dtb; tftpboot $loadaddr uImage And then boot with: bootm $loadaddr - $fdt_addr (note the minus "-" sign). Hope it helps, Marco. On 08/26/2014 11:09 AM, lianjf@ava.com.cn wrote: > Hi, > Anyone can tell me why the u-boot is not able to boot the freescale > imx6q kernel,and stuck in the starting the kernel,the message is: > ------------------------------------------------------------------------------------------------------------------------------------- > U-Boot 200908 (Aug 16 2013 - 12:04:20) > > CPU: Freescale i.MX6 family TO1.2 at 792 MHz > Thermal sensor with ratio = 189 > Temperature: 40 C, calibration data 0x5a95097d > 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: 132000000Hz > ddr clock : 528000000Hz > usdhc1 clock : 198000000Hz > usdhc2 clock : 198000000Hz > usdhc3 clock : 198000000Hz > usdhc4 clock : 198000000Hz > nfc clock : 24000000Hz > Board: i.MX6Q-SABRESD: unknown-board Board: 0x63012 [WDOG ] > Boot Device: MMC > I2C: ready > DRAM: 1 GB > MMC: FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3 > In: serial > Out: serial > Err: serial > Found PFUZE100! deviceid=10,revid=11 > Net: got MAC address from IIM: 00:04:9f:02:b1:af > FEC0 [PRIME] > Hit any key to stop autoboot: 0 > PHY indentify @ 0x1 = 0x004dd074 > FEC: Link is Up 796d > Using FEC0 device > TFTP from server 192.168.2.109; our IP address is 192.168.2.106 > Filename 'uImage'. > Load address: 0x10800000 > Loading: > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ################################################################# > ###### > done > Bytes transferred = 5352304 (51ab70 hex) > ## Booting kernel from Legacy Image at 10800000 ... > Image Name: Linux-3.10.17-1.0.0_ga+g232293e > Image Type: ARM Linux Kernel Image (uncompressed) > Data Size: 5352240 Bytes = 5.1 MB > Load Address: 10008000 > Entry Point: 10008000 > Verifying Checksum ... OK > Loading Kernel Image ... OK > OK > > Starting kernel ... > ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > But it can boot the kernel version linux-3.0.35-imx_4.1.0. > > > > > Best Regards > ------------------ > Lian jianfei > 5F, No.15, Ke Hui 2nd Street, Ke Hui Development Centre Science > Avenue, Science City, Luo Gang District Guangzhou, China 510663 > TEL: 15989094327 > Email: lianjf@ava.com.cn > > --------------090508060607020602070307 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Hi,

That's because 3.10.17 moved to device trees. You need the appropriate .dtb binary file for your board (you will find the .dtb files in the Yocto "deploy/images/<your-board>/" directory).

You need to load the .dtb (typically at address $fdt_addr) as well as the kernel; it would be something like this:

tftpboot $fdt_addr imx6q-whatever-board.dtb; tftpboot $loadaddr uImage

And then boot with:

bootm $loadaddr - $fdt_addr

(note the minus "-" sign).

Hope it helps,
Marco.




On 08/26/2014 11:09 AM, lianjf@ava.com.cn wrote:
Hi,
Anyone can tell me why the u-boot is not able to boot the freescale imx6q kernel,and stuck in the starting the kernel,the message is:
-------------------------------------------------------------------------------------------------------------------------------------
U-Boot 200908 (Aug 16 2013 - 12:04:20)

CPU: Freescale i.MX6 family TO1.2 at 792 MHz
Thermal sensor with ratio = 189
Temperature: 40 C, calibration data 0x5a95097d
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: 132000000Hz
ddr clock : 528000000Hz
usdhc1 clock : 198000000Hz
usdhc2 clock : 198000000Hz
usdhc3 clock : 198000000Hz
usdhc4 clock : 198000000Hz
nfc clock : 24000000Hz
Board: i.MX6Q-SABRESD: unknown-board Board: 0x63012 [WDOG ]
Boot Device: MMC
I2C: ready
DRAM: 1 GB
MMC: FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3
In: serial
Out: serial
Err: serial
Found PFUZE100! deviceid=10,revid=11
Net: got MAC address from IIM: 00:04:9f:02:b1:af
FEC0 [PRIME]
Hit any key to stop autoboot: 0
PHY indentify @ 0x1 = 0x004dd074
FEC: Link is Up 796d
Using FEC0 device
TFTP from server 192.168.2.109; our IP address is 192.168.2.106
Filename 'uImage'.
Load address: 0x10800000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
######
done
Bytes transferred = 5352304 (51ab70 hex)
## Booting kernel from Legacy Image at 10800000 ...
Image Name: Linux-3.10.17-1.0.0_ga+g232293e
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5352240 Bytes = 5.1 MB
Load Address: 10008000
Entry Point: 10008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

But it can boot the kernel version linux-3.0.35-imx_4.1.0.




Best Regards
 
------------------
Lian jianfei
5F, No.15, Ke Hui 2nd Street, Ke Hui Development Centre Science Avenue, Science City, Luo Gang District Guangzhou, China 510663
TEL: 15989094327



--------------090508060607020602070307--