Question on updating rootfs with a bundle where there are no changes #126
-
This is on kirkstone release. I have rauc up and running successfully. For my system.conf it looks like
I build an update bundle with
I have run
the manifest looks like
So it looks like I should be ok to support the adaptive updates. I setup a simple range supporting HTTP server and from the device I run
which succeeds. I do this for both The bundle is about 1.3G in size with the internal rootfs ext file being about 3.2G in size. Now I back on slot A, I install the bundle again. This is with no changes to the bundle. From capturing the network traffic, I see about 1.2G of HTTP traffic. I am curious why there should be so much. The build was done with the Yocto reproducible build settings
Any insight as to why so much of a transfer is needed will be helpful. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
@bbergquist0930 you might want to check the adaptive update stats from the rauc service log ( Also, check that the ext4 block size is 4096 and that you use a fixed directory hash seed. See https://github.com/rauc/meta-rauc-community/blob/master/meta-rauc-qemux86/recipes-core/images/core-image-minimal.bbappend#L12 for example. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for taking the time to respond!. I did go through those. My rootfs.ext inside the bundle
My rootfs of the original image
My initial install is an installer image that copies rootfs.img to the drive after partitioning (like a live install but custom). I can see that rootfs.img is 4k blocks as well
and on the physical device once installed
So originally, all seem to have 4k blocks. Doing more investigation, maybe it is my initial copying the rootfs.img to the physical storage as part of my installation. I am using "cp -r" after mounting the image, which is probably not what I want. I probably want to use "dd". I will try that later today and report back. But again, just the response back caused me to think investigate and think some more! |
Beta Was this translation helpful? Give feedback.
-
My installing the rootfs onto the target device was the issue. I had to change to using "dd" to copy the rootfs to the target device and then use "resize2fs" to resize the filesystem to the partition size. An update with no changes only downloaded 26M out of 3.2G of the update bundle. |
Beta Was this translation helpful? Give feedback.
My installing the rootfs onto the target device was the issue. I had to change to using "dd" to copy the rootfs to the target device and then use "resize2fs" to resize the filesystem to the partition size. An update with no changes only downloaded 26M out of 3.2G of the update bundle.