08-02-2017 10:01 AM
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
08-04-2017 08:06 AM
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
08-04-2017 08:06 AM
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