• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » ARM® Processors » Sitara™ ARM® » AM3x Sitara ARM Processors Forum » Unable to create 'u-boot.img'
Share
Sitara™ ARM®
  • Forum
  • Announcements
Options
  • Subscribe via RSS

Forums

Unable to create 'u-boot.img'

This question is not answered
Martin Pfingstl
Posted by Martin Pfingstl
on Apr 09 2012 05:59 AM
Prodigy50 points

Hello ...

When i try to build the 'u-boot.img'  i get always the error message '../u-boot-04.06.00.03/am335x/tools/mkimage: cannot execute binary file' and the file 'u-boot.img' will not build.

Did someone knows what's happen here?

I start the 'u-boot' make in 'Ubuntu 10.4 LT' in a VMWare ....

AM335x
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Prabhakar Lad
    Posted by Prabhakar Lad
    on Apr 09 2012 06:48 AM
    Genius4675 points

    Hi,

    2388.mkimage.txt

    Can you attach the log ?

    I have attached the mkimage tool rename it to mkimage and try replacing this.

    Thx,

    --Prabhakar Lad

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chase Maupin
    Posted by Chase Maupin
    on Apr 09 2012 07:10 AM
    Expert4890 points

    Martin,

    Did you source the environment-setup script before doing the make.  You should not do that.  If your prompt says linux-devkit then you have sourced the script and should open a new terminal window to do this build.

    Chase

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Pfingstl
    Posted by Martin Pfingstl
    on Apr 09 2012 11:42 AM
    Prodigy50 points
    Hi Chase ... I try to build the 'u-boot' like it is describe in the chapter 'Building U-Boot' in the file 'AM335x U-Boot User's Guide'. There are only this steps: -- Change to the base of the U-Boot directory. -- Commands: $ rm -rf ./am335x $ make O=am335x CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm am335x_evm What do you mean with 'source the enviroment-setup script before doing the make' ? Thx Martin
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Anil
    Posted by Anil
    on Apr 09 2012 12:03 PM
    Expert6655 points

    Hi Martin,

    If you add all your variables in a file/script then you have to source the file

    $ source script.sh

    Mostly environment variables we place in ~/.bashrc file, which will automatically exported while restarting the terminal/shell.

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

    AM335x PSP u-boot
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Pfingstl
    Posted by Martin Pfingstl
    on Apr 09 2012 12:19 PM
    Prodigy50 points

    Thx for your answer.

    When i try your 'mkimage'  i was able to start this file onthe linux host system. When i build the 'U-Boot' there will also build a new 'mkimage' and this 'mkimage' is not startable on the linux host sytem. When i try to start 'mkimage' i got the messsage 'bash: ./mkimage: cannot execute binary file'

    It look like that the build mkimage is a arm programm and not for the linux host system ...

    Here is the 'build.log' ...

    7585.build.log

    Thx

         Martin 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chase Maupin
    Posted by Chase Maupin
    on Apr 09 2012 12:24 PM
    Expert4890 points

    Did you do

    sudo apt-get install uboot-mkimage?  The setup.sh script installs that package for you.

    Chase

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Pfingstl
    Posted by Martin Pfingstl
    on Apr 09 2012 12:56 PM
    Prodigy50 points

    Yes ...

    'uboot-mkimage' is installed (Version: 0.4build1) ...

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Anil
    Posted by Anil
    on Apr 09 2012 13:40 PM
    Expert6655 points

    Hi Martin,

    Have you created any folders or files in side u-boot source, apart from the release package?

    Have you modified any makefiles/scripts?

    Can you try building the u-boot from u-boot source folder (release package)?

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

    AM335x PSP uboot build
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chase Maupin
    Posted by Chase Maupin
    on Apr 09 2012 14:09 PM
    Expert4890 points

    Another option is to go to the top-level of the SDK and type "make u-boot".  That should build u-boot and has been verified in system test.

    Chase

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Prabhakar Lad
    Posted by Prabhakar Lad
    on Apr 09 2012 23:57 PM
    Genius4675 points

    Hi Martin,

    copy the mkimage executable to a folder say bin in your home directory,

    and in your .bashrc file add the statement export PATH=$PATH:<directory>/bin

    and restart your machine and try building later, this should solve your issue.

    Thx,

    --Prabhakar Lad

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Pfingstl
    Posted by Martin Pfingstl
    on Apr 10 2012 12:14 PM
    Prodigy50 points

    Hi Lad ,

    i have now change the entrys like '$(obj)tools/makimage' in the makefiles with 'mkimage'. In this case the 'mkimage' under '/usr/bin/mkimage' will be take for build the 'u-boot'.

    The following files will build now :             u-boot.bin, u-boot.img, u-boot.lds, u-boot.map, uboot.srec

                      

    But now i got this message:

    gcc/arm-arago-linux-gnueabi/4.5.3 -lgcc -Map u-boot-spl.map -o u-boot-spl
    arm-arago-linux-gnueabi-objcopy --gap-fill=0xff -O binary /home/user/AM335X-LINUX-PSP-04.06.00.03/src/u-boot/u-boot-04.06.00.03/am335x/spl/u-boot-spl /home/user/AM335X-LINUX-PSP-04.06.00.03/src/u-boot/u-boot-04.06.00.03/am335x/spl/u-boot-spl.bin
    mkimage -T omapimage \
            -a 0x402F0400 -d /home/user/AM335X-LINUX-PSP-04.06.00.03/src/u-boot/u-boot-04.06.00.03/am335x/spl/u-boot-spl.bin /home/user/AM335X-LINUX-PSP-04.06.00.03/src/u-boot/u-boot-04.06.00.03/am335x/MLO

    Invalid Image Type - valid names are: filesystem, firmware, kernel, multi, ramdisk, script, standalone, flat_dt
    Usage: mkimage -l image
              -l ==> list image header information
           mkimage [-x] -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image
              -A ==> set architecture to 'arch'
              -O ==> set operating system to 'os'
              -T ==> set image type to 'type'
              -C ==> set compression type 'comp'
              -a ==> set load address to 'addr' (hex)
              -e ==> set entry point to 'ep' (hex)
              -n ==> set image name to 'name'
              -d ==> use image data from 'datafile'
              -x ==> set XIP (execute in place)
    make[2]: *** [/home/user/AM335X-LINUX-PSP-04.06.00.03/src/u-boot/u-boot-04.06.00.03/am335x/MLO] Error 1
    make[2]: Leaving directory `/home/user/AM335X-LINUX-PSP-04.06.00.03/src/u-boot/u-boot-04.06.00.03/spl'
    make[1]: *** [/home/user/AM335X-LINUX-PSP-04.06.00.03/src/u-boot/u-boot-04.06.00.03/am335x/spl/u-boot-spl.bin] Error 2
    make[1]: Leaving directory `/home/user/AM335X-LINUX-PSP-04.06.00.03/src/u-boot/u-boot-04.06.00.03'
    make: *** [am335x_evm] Error 2

    What's wrong ? I do all the steps like describe to build the u-boot but without success ....

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Prabhakar Lad
    Posted by Prabhakar Lad
    on Apr 11 2012 00:03 AM
    Genius4675 points

    Hi Martin,

    You don't  need to change the Makefile, this mkimage tool gets build every time you build the u-boot. Once its build you just copy it to your /usr/bin.

    Are you trying to build the SPL ? I got it succesfully built..

    here are the following commands what i did.

    $> make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- clean distclean

    $> make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-  am335x_evm_config

    $> make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

    And this created a SPL and u-boot for me I have used the upstream denx branch for building it.

    Thx,

    --Prabhakar Lad





    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Anil
    Posted by Anil
    on Apr 11 2012 00:50 AM
    Expert6655 points

    Hi Martin,

    Can you reply to this post?

    http://e2e.ti.com/support/dsp/sitara_arm174_microprocessors/f/791/p/181233/653356.aspx#653356

    I think you have modified the makefile inside the u-boot folder.

    My build log shows

    tools/mkimage -A arm -T firmware -C none \

    But in your boot log shows extra "am335x"

    /home/user/AM335X-LINUX-PSP-04.06.00.03/src/u-boot/u-boot-04.06.00.03/am335x/tools/mkimage -A arm -T firmware -C none \

    Better use the release package instead of modified one.

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

    AM335x PSP mkimage
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use