cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
1,074 Views
Registered: ‎07-05-2018

Petalinux:How to boot uImage format

Hi,

I am working with petalinux2016.2 to boot my board,and I can't find out how to config the u-boot to boot a ulmage,my work flow is:

1.creat a new project

2.export hardware description

3.change some configs

Subsystem AUTO Hardware Settings--->
           Advanced bootable images storage sttings--->
                      dtb image settings--->
                                 image storage media(primary sd)
Image Packaging Configuration--->
           Root filesystem type(SD card)

4.save and exit

5.Modify <project>/subsystems/linux/configs/u-boot/platform-top.h

#include <configs/platform-auto.h>
CONFIG_EXTRA_ENV_SETTINGS

6.build

xx@xx-virtual-machine:~/project/z7/petalinux$ petalinux-build
INFO: Checking component...
INFO: Generating make files and build linux
INFO: Generating make files for the subcomponents of linux
INFO: Building linux
[INFO ] pre-build linux/rootfs/fwupgrade
[INFO ] pre-build linux/rootfs/peekpoke
[INFO ] build system.dtb
[INFO ] build linux/kernel
[INFO ] generate linux/u-boot configuration files
[INFO ] update linux/u-boot source
[INFO ] build linux/u-boot
[ERROR] make[4]: *** [lib/asm-offsets.s] Error 1
[ERROR] make[4]: *** [arch/arm/lib/asm-offsets.s] Error 1
[ERROR] make[3]: *** [prepare0] Error 2
[ERROR] make[2]: *** [sub-make] Error 2
[ERROR] make[1]: *** [/home/xx/project/z7/petalinux/build/linux/u-boot/u-boot-plnx/u-boot] Error 2
ERROR: Failed to build linux

Thanks!

0 Kudos
5 Replies
Highlighted
Voyager
Voyager
1,052 Views
Registered: ‎10-21-2015

Re: Petalinux:How to boot uImage format

CONFIG_EXTRA_ENV_SETTINGS in platform-top.h shoule be removed or modified
Actually you can use platform-top.h generated by petalinux-config without modifying

0 Kudos
Highlighted
Visitor
Visitor
1,038 Views
Registered: ‎07-05-2018

Re: Petalinux:How to boot uImage format

Thanks for your reply
In step 5,I add CONFIG_EXTRA_ENV_SETTINGS marco to the platform-top.h according to UG1144

The uImage will be generated to images/linux subdirectory of your PetaLinux project. You will then need to
configure your u-boot to boot with uImage. If you have selected "PetaLinux u-boot config" as your u-boot
config target, you can modify "subsystems/linux/configs/u-boot/platform-top.h" of your PetaLinux
project to overwirte the CONFIG_EXTRA_ENV_SETTINGS macro to define your u-boot boot command to boot
with uImage.

If I  use the default platform-top.h to build u-boot,u-boot will boot with image.ub instead of ulmage.

 

0 Kudos
Highlighted
Observer
Observer
1,016 Views
Registered: ‎04-12-2012

Re: Petalinux:How to boot uImage format

Hi Experts,

 

I met same issue with xienima. I am using the 2018.1 version of petalinux and also 2018.1 Vivado tools. I am using Oracle VM Virtual Box virtualization platform and my vm OS infrastructure is Centos-7. On the host PC Windows-7 is running. Could you please help us?

 

Regards.

 

Kursat Gol

0 Kudos
Highlighted
Adventurer
Adventurer
995 Views
Registered: ‎05-26-2017

Re: Petalinux:How to boot uImage format

Load uImage to RAM, then run bootm [address to uImage]

 

see - https://www.denx.de/wiki/DULG/UBootCmdGroupExec

0 Kudos
Highlighted
Moderator
Moderator
983 Views
Registered: ‎09-12-2007

Re: Petalinux:How to boot uImage format

The image.ub is a FIT image tjat is generated after petalinux-package --boot and placed in the images/linux folder. is this not the case?

 

If you are using Yocto on Ubuntu, then you can try:

  • sudo apt-get update
  • sudo apt-get install u-boot-tools
  • sudo apt install device-tree-compiler
  • mkimage -f fitImage.its image.ub

You will need need to create the .its file. See the wiki here for help:

http://www.wiki.xilinx.com/Yocto+2017.1+Linux+Image+creation+for+ZCU102

0 Kudos