From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.chez-thomas.org (mail.mlbassoc.com [65.100.170.105]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 1F6FBE0045D for ; Tue, 27 Nov 2012 02:30:04 -0800 (PST) Received: by mail.chez-thomas.org (Postfix, from userid 1998) id BD7FAF811F7; Tue, 27 Nov 2012 03:30:03 -0700 (MST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on hermes.chez-thomas.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=4.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no version=3.3.2 Received: from [192.168.1.114] (zeus [192.168.1.114]) by mail.chez-thomas.org (Postfix) with ESMTP id 0A013F811F7; Tue, 27 Nov 2012 03:30:02 -0700 (MST) Message-ID: <50B49651.6080406@gmail.com> Date: Tue, 27 Nov 2012 03:30:41 -0700 From: Gary Thomas User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 MIME-Version: 1.0 To: Fabio Estevam References: <50B408C5.6080409@gmail.com> In-Reply-To: Cc: meta-freescale@yoctoproject.org Subject: Re: How to build & boot 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, 27 Nov 2012 10:30:04 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2012-11-26 17:30, Fabio Estevam wrote: > On Mon, Nov 26, 2012 at 10:26 PM, Gary Thomas wrote: > >> Sadly, this doesn't boot at all. I can tell that the SD image does not have >> U-Boot on >> it, so the board is booting U-Boot from FLASH which is quite old: >> U-Boot 2009.08 (Jul 05 2012 - 15:37:27) > > There is a workaround that allows you to boot from the SD card and it > is described at: > http://git.denx.de/?p=u-boot.git;a=blob;f=board/freescale/mx6qsabrelite/README;h=6f2f5343de29a539c11dbe59181d96c4e1dfde93;hb=HEAD I followed these instructions, but sadly my board is now a brick :-( I think the .zip archive at https://wiki.linaro.org/Boards/MX6QSabreLite?action=AttachFile&do=view&target=iMX6DQ_SPI_to_SD_loader_binaries_rev1.0.zip is damaged. Here's what I got when I unpacked it: gthomas@zeus:/tmp/iMX6DQ_SPI_to_SD_loader_rev1.0$ ls -l total 44 -rw-rw-r-- 1 gthomas gthomas 1647 Feb 4 2012 COPYING_BSD.txt -rw-rw-r-- 1 gthomas gthomas 1136 Jan 5 2012 iMX6DQ_SPI_to_uSDHC3.bin -rw-rw-r-- 1 gthomas gthomas 11656 Jan 5 2012 iMX6DQ_SPI_to_uSDHC3.elf -rw-rw-r-- 1 gthomas gthomas 1136 Jan 5 2012 iMX6DQ_SPI_to_uSDHC4.bin -rw-rw-r-- 1 gthomas gthomas 11656 Jan 5 2012 iMX6DQ_SPI_to_uSDHC4.elf -rw-rw-r-- 1 gthomas gthomas 740 Feb 4 2012 Readme.txt Notice that the iMX6DQ_SPI_to_uSDHC3.bin is TINY compared to the .elf file. Looking at the headers: gthomas@zeus:/tmp/iMX6DQ_SPI_to_SD_loader_rev1.0$ readelf -e iMX6DQ_SPI_to_uSDHC3.elf ELF Header: Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 Class: ELF32 Data: 2's complement, little endian Version: 1 (current) OS/ABI: UNIX - System V ABI Version: 0 Type: EXEC (Executable file) Machine: ARM Version: 0x1 Entry point address: 0x90a42c Start of program headers: 52 (bytes into file) Start of section headers: 10236 (bytes into file) Flags: 0x5000002, has entry point, Version5 EABI Size of this header: 52 (bytes) Size of program headers: 32 (bytes) Number of program headers: 1 Size of section headers: 40 (bytes) Number of section headers: 16 Section header string table index: 13 Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk Inf Al [ 0] NULL 00000000 000000 000000 00 0 0 0 [ 1] .ivt_start PROGBITS 0090a000 002000 00042c 00 AX 0 0 1 [ 2] .text.main PROGBITS 0090a42c 00242c 000044 00 AX 0 0 4 [ 3] .debug_abbrev PROGBITS 00000000 002470 000064 00 0 0 1 [ 4] .debug_info PROGBITS 00000000 0024d4 00009f 00 0 0 1 [ 5] .debug_line PROGBITS 00000000 002573 000052 00 0 0 1 [ 6] .debug_pubnames PROGBITS 00000000 0025c5 00001b 00 0 0 1 [ 7] .debug_aranges PROGBITS 00000000 0025e0 000020 00 0 0 1 [ 8] .debug_ranges PROGBITS 00000000 002600 000010 00 0 0 1 [ 9] .debug_str PROGBITS 00000000 002610 0000b5 01 MS 0 0 1 [10] .comment PROGBITS 00000000 0026c5 00002a 01 MS 0 0 1 [11] .ARM.attributes ARM_ATTRIBUTES 00000000 0026ef 000035 00 0 0 1 [12] .debug_frame PROGBITS 00000000 002724 000020 00 0 0 4 [13] .shstrtab STRTAB 00000000 002744 0000b5 00 0 0 1 [14] .symtab SYMTAB 00000000 002a7c 000230 10 15 30 4 [15] .strtab STRTAB 00000000 002cac 0000dc 00 0 0 1 Key to Flags: W (write), A (alloc), X (execute), M (merge), S (strings) I (info), L (link order), G (group), T (TLS), E (exclude), x (unknown) O (extra OS processing required) o (OS specific), p (processor specific) Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x000000 0x00908000 0x00908000 0x02470 0x02470 R E 0x8000 Section to Segment mapping: Segment Sections... 00 .ivt_start .text.main So, the .bin file should be 9238 (0x2470) bytes long, not just 1136. Now I get to try and figure out the black magic involved in restoring the boot loader environment to my board :-( Any help gladly accepted (the note at https://wiki.linaro.org/Boards/MX6QSabreLite says to "write me" for help, but I've not figured out yet where/who that is!)