element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development Starting a application with u-boot on Microzed
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 8 replies
  • Subscribers 330 subscribers
  • Views 1140 views
  • Users 0 members are here
Related

Starting a application with u-boot on Microzed

Former Member
Former Member over 9 years ago

Hi,
I'm trying to start a RTEMS application on the Microzed Board with u-boot. The .bin file is located on the SD card. I try it the following way:
  1. fatload mmc 0 0x100000 ticker.bin
  2. go 100000
Than it freezes with:
## Starting application at 0x00100000 ...

When I try to bootm the image of ticker.bin with:
  1. fatload mmc 0 100000 ticker.img
  2. bootm 100000
it freezes with:
## Booting kernel from Legacy Image at 00100000 ...                                          
   Image Name:   RTEMS Application                                                           
   Image Type:   ARM RTEMS Kernel Image (uncompressed)                                       
   Data Size:    1039080 Bytes = 1014.7 KiB                                                  
   Load Address: 30000100                                                                    
   Entry Point:  30000100                                                                    
   Verifying Checksum ... OK                                                                 
   Loading Kernel Image ... OK                                                               
OK                                                                                           
## Transferring control to RTEMS (at address 30000100) ...

I use the U-Boot 2013.01-dirty version of u-boot. RTEMS is a bare metal application

Regards

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 9 years ago

    Have you tried simply launching it from a standard boot.bin using the FSBL generated in the Xilinx SDK?

    Ron

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to Former Member

    Yes I can start it from a standard boot.bin which I generate in the SDK. But I need to start the application in u-boot.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to Former Member

    Tom,

      I'm aware that you can start standalone applications from U-boot, but I've never used that facility.  If I'm launching standalone, I just use the fsbl.  For Linux, I use u-boot.

    However, you might find some useful information on the u-boot maintainers site here:

    http://www.denx.de/wiki/view/DULG/UBootStandalone

    ron

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • arturete
    0 arturete over 8 years ago

    Hi, I'm trying to launch the hello RTEMS sample application in a Zedboard but I achieved nothing. I will thank you so much if you can give me some advices or recomendations or whatever you can/know.
     

    The steps that I followed  are these:

    1.-First I compiled the RTEMS Souurce Builder for arm and I exported the path with the executables

    2.-I compiled the RTEMS sources for the zedboard with these commands:

        2.1.- ../rtems/configure --target=arm-rtems4.12  --enable-tests=samples --enable-rtemsbsp=xilinx_zynq_zedboard --enable-networking --enable-posix --prefix=${HOME}/rtems-4.12-zed_net_posix

       2.2 make and make install

    3.- I created a vivado project with the PS to generate the FSBL throug the hsi

    4.-I copied the hello.exe and rename it to kernel.img with the
    arm-rtems4.12-objcopy -Obinary hello.exe kernel.img

    5.- I created the boot.bin with bootgen from a .bif with this content:

    image : {
            [bootloader]fsbl.elf
            bitstream.bit
            kernel.img        
    }

    6.- I put the boot.bin, bitstream.bit and kernel.img files in the SD

    7.- I started the Zedboard and the only thing in does is to turn on the DONE led indicating the FPGA has been configured, but it doesn't appear any message in the terminal I am using.

    I don't know which format I have to give to the SD and I don't know what I am doing wrong

    Thanks in advance

    P.D.: sorry for my basic/bad english

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jafoste4
    0 jafoste4 over 8 years ago

    Hello Arturete,

    Is your SD card the one that came packaged with the Zedboard? If not is it formatted to FAT32?

    --Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • arturete
    0 arturete over 8 years ago in reply to jafoste4

    I'm not sure if this the SD is the original from the kit because I'm working in the university and we are some people working with different SDs.

    But yes It is formatted with FAT32

    If I print the partition table of the SD with fdisk this is the result:

    arturete@ubuntu:~$ sudo fdisk /dev/sdc

    Command (m for help): p

    Disk /dev/sdc: 3991 MB, 3991928832 bytes
    83 heads, 45 sectors/track, 2087 cylinders, total 7796736 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x1bb12714

       Device Boot      Start         End      Blocks   Id  System
    /dev/sdc1   *        2048     7796735     3897344    b  W95 FAT32
     

    And I'm sure that I am connected to the board through gkterm because the UART led (RX) blink when I press enter. But the other led never blink(TX) when or after the board is booted.

    Thanks for the fast reply.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jafoste4
    0 jafoste4 over 8 years ago

    Hello Arturete,

    Your SD Card is formatted correctly, just make sure it falls under the SD Card Guidelines we offer.

    http://zedboard.org/zynqgeek

     

    Here are a few other things to check out.

    1. Make sure your terminal program is set up correctly. (see specs below)

    Port:(Your COM PORT)

    Baude rate : 115200

    Data : 8 bit

    Parity : none

    Stop : 1 bit

     

    2. Make sure your Zedboard is in SD boot mode. (see jumper palcement below)

    MIO6 : SIG - GND

    MIO5 : 3V3 - SIG

    MIO4 : 3V3 - SIG

    MIO3 : SIG - GND

    MIO2 : SIG - GND

     

    3. Make sure you created your .bin file correctly. (see video below)

    https://www.youtube.com/watch?v=09nQlWMGmFU

     

    4. If all of these are done correctly, then your setup looks good. For any further help with your issue please post over at the Digilent forum as they are the main contact for education support.

    https://forum.digilentinc.com/

    --Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • arturete
    0 arturete over 8 years ago

    All the setup was ok.

    I created the FSBL.elf and the BOOT.bin with the SDK, as you indicated me in the last comment, instead of the terminal.

    It started working when I used the hello.ralf file instead of the hello.exe, and I renamed it to hello.elf.

    I putted those files plus the .bit in the SD and the application is launched and works.

    As you told me for the next issues I will use the Digilent forum.


    THANKS,
    Arturete.



     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube