From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 57A9CE007B4 for ; Fri, 21 Feb 2014 09:13:12 -0800 (PST) Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s1LHD9xV015887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 21 Feb 2014 17:13:10 GMT Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id s1LHD9bD009131 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 21 Feb 2014 17:13:09 GMT Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s1LHD8Ej011694 for ; Fri, 21 Feb 2014 17:13:08 GMT Received: from ddhill-mac.local (/76.28.28.227) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 21 Feb 2014 09:13:08 -0800 Message-ID: <53078923.60708@Oracle.com> Date: Fri, 21 Feb 2014 12:13:07 -0500 From: David Hill User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: "meta-freescale@yoctoproject.org" X-Source-IP: ucsinet22.oracle.com [156.151.31.94] Subject: Baffled by imx6qsabresd u-boot boot.scr 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: Fri, 21 Feb 2014 17:13:13 -0000 Content-Type: multipart/alternative; boundary="------------080608060201040702020400" --------------080608060201040702020400 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi all, I thought I knew just enough to be dangerous with u-boot scripts, usually working backwards from a u-boot printenv to figure out what needs to be in the script. This time, I have fought this for too long and am hoping that someone will be able to point out what I am doing wrong. Goal: add to mmcargs 'video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24' so I can use HDMI output from my imx6qsabresd (there is a touchscreen also hooked up but...) (found the args in https://community.freescale.com/message/319071#319071) When I do change the environment to add the args, I do boot, but can't do the same with a boot script I would like to use a boot script so that I don't have to play with the environment when I want to switch devices, just switch cards. Perhaps someone has a base script I can work from for the imx6qsabresd? I have the nitrogen6x script, but that relies on functions not present on the imx6qsabresd. Starting with an image that will boot and display to the touchscreen. What I tried: myscript.txt setenv videoargs 'video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24' setenv mmcargs 'setenv bootargs console=${console},${baudrate} root=${mmcroot} ${videoargs}' run mmcboot ~/yocto$ ~/yocto/vanilla/fsl-community-bsp/imx6qsabresd_x11/tmp/sysroots/i686-linux/usr/bin/mkimage -T script -C none -n 'My Script' -d myscript.txt boot.scr Image Name: My Script Created: Fri Feb 21 12:00:09 2014 Image Type: PowerPC Linux Script (uncompressed) Data Size: 179 Bytes = 0.17 kB = 0.00 MB Load Address: 00000000 Entry Point: 00000000 Contents: Image 0: 171 Bytes = 0.17 kB = 0.00 MB *Fails on:* mmc1 is current device reading boot.scr 243 bytes read in 9 ms (26.4 KiB/s) Running bootscript from mmc ... ## Executing script at 12000000 Booting from mmc ... reading imx6q-sabresd.dtb 46128 bytes read in 20 ms (2.2 MiB/s) ## Booting kernel from Legacy Image at 12000000 ... Image Name: My Script Image Type: PowerPC Linux Script (uncompressed) Data Size: 179 Bytes = 179 Bytes Load Address: 00000000 Entry Point: 00000000 Contents: Image 0: 171 Bytes = 171 Bytes Verifying Checksum ... OK Unsupported Architecture 0x7 ERROR: can't get kernel image! -- David Hill Java Embedded Development "The absence of alternatives clears the mind marvelously." -- Henry Kissinger (1923 - ) --------------080608060201040702020400 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
Hi all,
   I thought I knew just enough to be dangerous with u-boot scripts, usually working backwards from a u-boot printenv to figure out what needs to be in the script.
This time, I have fought this for too long and am hoping that someone will be able to point out what I am doing wrong.

Goal:
   add to mmcargs 'video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24' so I can use HDMI output from my imx6qsabresd (there is a touchscreen also hooked up but...)
(found the args in https://community.freescale.com/message/319071#319071)
When I do change the environment to add the args, I do boot, but can't do the same with a boot script
I would like to use a boot script so that I don't have to play with the environment when I want to switch devices, just switch cards.

Perhaps someone has a base script I can work from for the imx6qsabresd? I have the nitrogen6x script, but that relies on functions not present on the imx6qsabresd.

Starting with an image that will boot and display to the touchscreen.

What I tried: myscript.txt

setenv videoargs 'video=mxcfb0:dev=hdmi,1280x720M@60,if=RGB24'
setenv mmcargs 'setenv bootargs console=${console},${baudrate} root=${mmcroot} ${videoargs}'
run mmcboot

~/yocto$ ~/yocto/vanilla/fsl-community-bsp/imx6qsabresd_x11/tmp/sysroots/i686-linux/usr/bin/mkimage -T script -C none -n 'My Script' -d myscript.txt boot.scr
Image Name:   My Script
Created:      Fri Feb 21 12:00:09 2014
Image Type:   PowerPC Linux Script (uncompressed)
Data Size:    179 Bytes = 0.17 kB = 0.00 MB
Load Address: 00000000
Entry Point:  00000000
Contents:
   Image 0: 171 Bytes = 0.17 kB = 0.00 MB

Fails on:
mmc1 is current device
reading boot.scr
243 bytes read in 9 ms (26.4 KiB/s)
Running bootscript from mmc ...
## Executing script at 12000000
Booting from mmc ...
reading imx6q-sabresd.dtb
46128 bytes read in 20 ms (2.2 MiB/s)
## Booting kernel from Legacy Image at 12000000 ...
   Image Name:   My Script
   Image Type:   PowerPC Linux Script (uncompressed)
   Data Size:    179 Bytes = 179 Bytes
   Load Address: 00000000
   Entry Point:  00000000
   Contents:
      Image 0: 171 Bytes = 171 Bytes
   Verifying Checksum ... OK
Unsupported Architecture 0x7
ERROR: can't get kernel image!


-- 
David Hill <David.Hill@Oracle.com>
Java Embedded Development

"The absence of alternatives clears the mind marvelously."
-- Henry Kissinger (1923 - )
--------------080608060201040702020400--