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
Adventurer
Adventurer
2,696 Views
Registered: ‎11-14-2008

Can Petalinux create a u-boot wrapper for rootfs.cpio.gz?

Jump to solution

I see from the Xilinx U-boot Wiki that it's straightforward to use 'mkimage' to put a rootfs.cpio.gz ramdisk archive into a u-boot wrapper.

 

Petalinux easily creates the u-boot-wrapped kernel with this command:

 

$ petalinux-package --image -c kernel --format uImage

 

What about urootfs.cpio.gz?

 

Thanks!

/Matt

0 Kudos
1 Solution

Accepted Solutions
Adventurer
Adventurer
4,599 Views
Registered: ‎11-14-2008

Re: Can Petalinux create a u-boot wrapper for rootfs.cpio.gz?

Jump to solution

Follow up answer for anyone interested...

 

The mkimage utility is created as part of the petalinux-build process. Petalinux puts it in the following directory:

 

<project_folder>/build/tmp/sysroots/x86_64-linux/usr/bin/

 

Here's an example command to take rootfs.cpio.gz and wrap it with a u-boot header:

 

$ ~/MiniZed-v2017_2/build/tmp/sysroots/x86_64-linux/usr/bin/mkimage -A arm -T ramdisk -C gzip -d rootfs.cpio.gz uramdisk.image.gz

 

Still no word on whether it can be done with a Petalinux command/switch. That would be really convenient!

Any suggestions?

 

Thanks,

 

/Matt

0 Kudos
1 Reply
Adventurer
Adventurer
4,600 Views
Registered: ‎11-14-2008

Re: Can Petalinux create a u-boot wrapper for rootfs.cpio.gz?

Jump to solution

Follow up answer for anyone interested...

 

The mkimage utility is created as part of the petalinux-build process. Petalinux puts it in the following directory:

 

<project_folder>/build/tmp/sysroots/x86_64-linux/usr/bin/

 

Here's an example command to take rootfs.cpio.gz and wrap it with a u-boot header:

 

$ ~/MiniZed-v2017_2/build/tmp/sysroots/x86_64-linux/usr/bin/mkimage -A arm -T ramdisk -C gzip -d rootfs.cpio.gz uramdisk.image.gz

 

Still no word on whether it can be done with a Petalinux command/switch. That would be really convenient!

Any suggestions?

 

Thanks,

 

/Matt

0 Kudos