cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mattbrowner
Adventurer
Adventurer
3,533 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
mattbrowner
Adventurer
Adventurer
5,436 Views
Registered: ‎11-14-2008

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

View solution in original post

0 Kudos
1 Reply
mattbrowner
Adventurer
Adventurer
5,437 Views
Registered: ‎11-14-2008

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

View solution in original post

0 Kudos