element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 PetaLinux -- Unable to read file uImage
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 3 replies
  • Subscribers 305 subscribers
  • Views 1084 views
  • Users 0 members are here
Related

PetaLinux -- Unable to read file uImage

armendzh
armendzh over 9 years ago

I have AVNET Mini-ITX 7z100 board and I been trying to use PetaLinux to build a linux image.

I am, however, unable to boot the uImage... not from the uImage which I created myself from the BSP files for the same board nor from the pre-built BIN and uImage files provided by AVNET.

Here is an error which I am receiving when trying to boot from SDCARD with BOOT.BIN and image.ub:

//=====================================
U-Boot 2015.04 (Apr 06 2016 - 13:45:26)

DRAM:  ECC disabled 1 GiB
MMC:   zynq_sdhci: 0
SF: Detected S25FL128S_64K with page size 512 Bytes, erase size 128 KiB, total 32 MiB
In:    serial
Out:   serial
Err:   serial
Net:   Gem.e000b000
Hit any key to stop autoboot:  0
Device: zynq_sdhci
Manufacturer ID: 3
OEM: 5054
Name: SL64G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 58.3 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading uimage
** Unable to read file uimage **
U-Boot-PetaLinux> run shboot
## Error: "shboot" not defined
U-Boot-PetaLinux> run sdboot
reading uImage
** Unable to read file uImage **
Unknown command '
setenv' - try 'help'
Unknown command 'softdog.nowayout=0' - try 'help'
Wrong Image Format for bootm command
ERROR: can't get kernel image!
//=====================================

Here are commands which I used ot package my BIN and uImage files (I used both and both failed to boot):


//=====================================
petalinux-package --boot --force --format BIN --fsbl images/linux/zynq_fsbl.elf --fpga images/linux/zynq_design_1_wrapper.bit --u-boot --kernel -o image.ub
petalinux-package --boot --force --format BIN --fsbl images/linux/zynq_fsbl.elf --fpga images/linux/zynq_design_1_wrapper.bit --u-boot
//=====================================

I also have another issue of booting the system (both mine and prebuilt) through JTAG. However, I am not sure if both issues are related (booting via JTAG and via SDcard). Here is what I am getting when trying to boot via JTAG:

//=====================================
INFO: Append dtb - /home/adzh/SBIR_MITX/petalinuxProject/MITX_7100_ED/pre-built/linux/images/system.dtb and other options to boot zImage
INFO: Launching XSDB for file download and boot.
INFO: This may take a few minutes, depending on the size of your image.
rlwrap: warning: your $TERM is 'xterm' but rlwrap couldn't find it in the terminfo database. Expect some problems.: Inappropriate ioctl for device
INFO: Configuring the FPGA...                                                                                  
INFO: Downloading bitstream to the target.
                                             
INFO: The XSDB log is as follows
Got $XILINX_SDK: /home/dzhagaryanaa/opt/Xilinx/SDK/2015.2
attempting to launch hw_server

****** Xilinx hw_server v2015.2
  **** Build date : Jun 26 2015-16:42:45
    ** Copyright 1986-1999, 2001-2015 Xilinx, Inc. All Rights Reserved.

INFO: hw_server application started
INFO: Use Ctrl-C to exit hw_server application

INFO: To connect to this hw_server instance use url: TCP:127.0.0.1:3121


Error in startup script:
No supported FPGA device found
    invoked from within
"::tcf::eval -progress ::xsdb::print_progress {::tcf::cache_enter tcfchan#0 {tcf_cache_eval {process_tcf_actions_cache_client ::tcfclient#0::arg}}}"
    (procedure "::tcf::cache_eval_with_progress" line 2)
    invoked from within
"::tcf::cache_eval_with_progress [dict get $arg chan]  [list process_tcf_actions_cache_client $argvar] $progress"
    (procedure "process_tcf_actions" line 1)
    invoked from within
"process_tcf_actions $arg ::xsdb::print_progress"
    (procedure "fpga" line 350)
    invoked from within
"fpga "/home/adzh/SBIR_MITX/petalinuxProject/MITX_7100_ED/pre-built/linux/implementation/download.bit""
//=====================================

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

    From the description of the "softdog.nowayout" in the u-boot parameters, that is indicative of a Pulsar Linux boot, not PetaLinux.  Now how can that possibly happen if you have nothing on your uSD card but a PetaLinux boot.bin and image.ub file?  I'm guessing that someone, not necessarily you, saved environment variables for a Pulsar boot in the QSPI.  If that is the case, then those will override the u-boot parameters in your code, and u-boot will dutifully execute the commands in the saved environment.  Which is a completely different setup than you use for a PetaLinux kernel boot.

    If at the very beginning of your execution, you don't see text that indicates a "CRC error, using default environment", then u-boot is definitely using the saved environment.  You can see what is saved by stopping u-boot at the command prompt entering "printenv" at the prompt.

    From the u-boot used with a PetaLinux kernel build, you can force it to use your default environment from the u-boot prompt:

    env default -a

    Then you can clear the environment with:  run eraseenv

    Try that and see if that works to get your boot going.

    Ron

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

    I don't have the 'softdog.nowayout=0' in the same way OP does, but I'm also getting complaints of no image.ub:

    -------------------------------------------------------------------
    U-Boot 2016.07 (Nov 03 2016 - 19:04:59 +0000)
    
    DRAM:  ECC disabled 512 MiB
    MMC:   sdhci@e0100000: 0
    Using default environment
    
    ## Error: flags type check failure for "serverip" <= "AUTO" (type: i)
    himport_r: can't insert "serverip=AUTO" into hash table
    In:    serial
    Out:   serial
    Err:   serial
    Net:   ZYNQ GEM: e000b000, phyaddr -1, interface rgmii-id
    eth0: ethernet@e000b000
    U-BOOT for
    
    ethernet@e000b000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
    Hit any key to stop autoboot:  0
    Device: sdhci@e0100000
    Manufacturer ID: 27
    OEM: 5048
    Name: SD04G
    Tran Speed: 50000000
    Rd Block Len: 512
    SD version 3.0
    High Capacity: Yes
    Capacity: 3.7 GiB
    Bus Width: 4-bit
    Erase Group Size: 512 Bytes
    reading image.ub
    ** Unable to read file image.ub **
    U-Boot-PetaLinux>
    -------------------------------------------------------------------
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • jafoste4
    0 jafoste4 over 8 years ago

    Hello engsci,

    Are you also using the Mini ITX? Or are you using a diffrent develpoment board/SOM?

    --Josh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify 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