You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
This repo looks very useful, but I have not been able to get a working frm or dfu image from it once I have extracted rootfs.cpio to a directory (once itself is extracted from rootfs.cpio.gz) and then recreating it, even without making any changes to its content.
The problem I have seems to be when recreating rootfs.cpio as I have tested the the rest of the process by not extracting rootfs.cpio and that appears to work properly.
I also attempted to recreate rootfs.cpio as root so as to preserve the ownership of its contents.
Assuming pluto.frm is in the repo root (as your per your example commands) and with that as the cwd,
The commands below also assume that pluto.its is in the repo root.
Extraction,
#!/usr/bin/bash
#extract.sh
rm -rf build/
mkdir build
cd build
dtc -O dts ../pluto.frm | ../extract_data_dts.py /dev/stdin
for file in zynq-pluto*; do mv $file $file.dtb; done
mv FPGA system_top.bit
mv Linux zImage
mv Ramdisk rootfs.cpio.gz
gzip -d rootfs.cpio.gz
mkdir rootfs
cd rootfs
cpio -idv < ../rootfs.cpio
#cpio --no-absolute-filenames -idv < ../rootfs.cpio
cd ..
cd ..
Hi,
When I made this repo I was mainly interested in replacing the bitstream, so I didn't play with unpacking and re-packing the rootfs. However, I've done that in some projects in the past, and I have the cheatsheet somewhere. It's probably similar to the solution you've found, since the -H newc parameter looks familiar.
A pull request is more than welcome if you think that it would be useful having some of this information in the README of this repo.
Hi,
This repo looks very useful, but I have not been able to get a working
frm
ordfu
image from it once I have extractedrootfs.cpio
to a directory (once itself is extracted fromrootfs.cpio.gz
) and then recreating it, even without making any changes to its content.The problem I have seems to be when recreating
rootfs.cpio
as I have tested the the rest of the process by not extractingrootfs.cpio
and that appears to work properly.I also attempted to recreate
rootfs.cpio
as root so as to preserve the ownership of its contents.Assuming
pluto.frm
is in the repo root (as your per your example commands) and with that as the cwd,The commands below also assume that
pluto.its
is in the repo root.Extraction,
Compression,
Assembly,
If either
pluto.dfu
(loaded to ram) orpluto.frm
are loaded (to flash) the pluto just hangs.Are you able to offer some way of solving the problem ?
Thanks and regards,
Deon
The text was updated successfully, but these errors were encountered: