UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Participant armendzh
Participant
8,842 Views
Registered: ‎03-04-2016

PetaLinux -- Unable to read file uImage

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""
0 Kudos
3 Replies
Visitor mengle
Visitor
8,782 Views
Registered: ‎08-14-2015

Re: PetaLinux -- Unable to read file uImage

Hi,you can try this:

 

  petalinux-config -c u-boot

 

in Menu:  Boot images 

disable the "Enable signature verificatioin of FIT uImages"

 

0 Kudos
Participant armendzh
Participant
8,759 Views
Registered: ‎03-04-2016

Re: PetaLinux -- Unable to read file uImage

I am using PetaLinux 2015.2. I don't think I have u-boot option for petalinux-config. I only have kernel and rootfs which I can specify with -c.

 

I also had a bit of progress, but it now fails at DTB. I have renamed image file (image.ub) to uImage, and it seemed to like it better. However, after it finish reading the uImage, it tries to read dtb and fails.

I also had to disable "Copy final images to tftpboot" since I do not have access to tftp package on my Ubuntu 14.04 workstation.

 

U-Boot 2015.04 (Apr 07 2016 - 16:06:35)

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:   No ethernet found.
Hit any key to stop autoboot:  0 
reading uImage
9356720 bytes read in 803 ms (11.1 MiB/s)
reading dtb
** Unable to read file dtb **
Unknown command '
setenv' - try 'help'
Unknown command 'softdog.nowayout=0' - try 'help'
Wrong Image Format for bootm command
ERROR: can't get kernel image!
U-Boot-PetaLinux> run sdboot
reading uImage
9356720 bytes read in 802 ms (11.1 MiB/s)
reading dtb
** Unable to read file dtb **
Unknown command '
setenv' - try 'help'
Unknown command 'softdog.nowayout=0' - try 'help'
Wrong Image Format for bootm command
ERROR: can't get kernel image!
0 Kudos
Participant armendzh
Participant
8,756 Views
Registered: ‎03-04-2016

Re: PetaLinux -- Unable to read file uImage

Here is another error I got before:

 

U-Boot 2015.04 (Nov 11 2015 - 09:19:43)

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 
reading uImage
9342036 bytes read in 798 ms (11.2 MiB/s)
reading dtb
** Unable to read file dtb **
Unknown command '
setenv' - try 'help'
Unknown command 'softdog.nowayout=0' - try 'help'
## Loading kernel from FIT Image at 03000000 ...
   Using 'conf@1' configuration
   Verifying Hash Integrity ... OK
   Trying 'kernel@1' kernel subimage
     Description:  PetaLinux Kernel
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x030000f0
     Data Size:    9325091 Bytes = 8.9 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x00008000
     Entry Point:  0x00008000
     Hash algo:    crc32
     Hash value:   5222a91e
   Verifying Hash Integrity ... crc32+ OK
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
0 Kudos