cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
joychauhan43
Observer
Observer
91 Views
Registered: ‎11-22-2019

petalinux 2020.1 can't get kernel image in qspi Wrong Image Format for bootm command ERROR: can't get kernel image

Hi,

I am trying to boot my custom board based zynq-mp device using QSPI mode,

I am Generating BOOT.BIN using below command.

petalinux-package --force --boot --fsbl zynqmp_fsbl.elf --u-boot --fpga ../../../zcu.bit --pmufw pmufw.elf



The problem is when I load image.ub(Kernel image) it on the QSPI flash I get the error described above. The full bootlog can be found below:

ZynqMP>boot

SF: Detected n25q512a with page size 256 Bytes, erase size 64 KiB, total 64 MiB

device 0 offset 0x3e80000, size 0x80000

SF: 524288 bytes @ 0x3e80000 Read: OK

## Executing script at 20000000

Wrong image format for "source" command

SCRIPT FAILED: continuing...

## Executing script at 20000000

Wrong image format for "source" command

SCRIPT FAILED: continuing...

No MMC device available

No MMC device available

SF: Detected n25q512a with page size 256 Bytes, erase size 64 KiB, total 64 MiB

device 0 offset 0x3e80000, size 0x80000

SF: 524288 bytes @ 0x3e80000 Read: OK

## Executing script at 20000000

Wrong image format for "source" command

SCRIPT FAILED: continuing...



no devices available

SCRIPT FAILED: continuing...

starting USB...

No working controllers found

USB is stopped. Please issue 'usb start' first.

starting USB...

No working controllers found

USB is stopped. Please issue 'usb start' first.



Device 0: unknown device

starting USB...

No working controllers found

No ethernet found.

missing environment variable: pxeuuid

missing environment variable: bootfile

Retrieving file: pxelinux.cfg/00000000

No ethernet found.

missing environment variable: bootfile

Retrieving file: pxelinux.cfg/0000000

No ethernet found.

missing environment variable: bootfile

Retrieving file: pxelinux.cfg/000000

No ethernet found.

missing environment variable: bootfile

Retrieving file: pxelinux.cfg/00000

No ethernet found.

missing environment variable: bootfile

Retrieving file: pxelinux.cfg/0000

No ethernet found.

missing environment variable: bootfile

Retrieving file: pxelinux.cfg/000

No ethernet found.

missing environment variable: bootfile

Retrieving file: pxelinux.cfg/00

No ethernet found.

missing environment variable: bootfile

Retrieving file: pxelinux.cfg/0

No ethernet found.

missing environment variable: bootfile

Retrieving file: pxelinux.cfg/default-arm-zynqmp-zynqmp

No ethernet found.

missing environment variable: bootfile

Retrieving file: pxelinux.cfg/default-arm-zynqmp

No ethernet found.

missing environment variable: bootfile

Retrieving file: pxelinux.cfg/default-arm

No ethernet found.

missing environment variable: bootfile

Retrieving file: pxelinux.cfg/default

No ethernet found.

Config file not found

starting USB...

No working controllers found

No ethernet found.

No ethernet found.



booting the petalinux failed with the messages below:

ZynqMP> bootm

Wrong Image Format for bootm command

ERROR: can't get kernel image!





0 Kudos
1 Reply
stephenm
Moderator
Moderator
50 Views
Registered: ‎09-12-2007

did you copy the boot.scr to the sd card too?

You can use the bootm command, however you need to provide the address of the kernel

For example:

  • fatload mmc 0 0x1000000 image.ub
  • bootm 0x1000000

Reference:

https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18842223/U-boot

0 Kudos