Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - mkifs - image checksum: (1 Item)
   
mkifs - image checksum  
I have noticed that mkifs creates a 4 byte trailer to a boot image.  Searches seem to suggest that this is a checksum of
 the image.  We are going to perform system upgrades by writing new images to .altboot and use a custom bootloader to 
copy .altboot to .boot.  We are using the QNX 4 filesystem, which is not power-fail safe.  I have noticed that in some 
cases the image copied into .altboot is the right size but corrupted if the system was hard booted soon after the copy 
is complete.  On bootup, Id like to verify the integrity of .altboot before copying it.  Is the trailer bytes a checksum
 and if so, how do I check it?