[kubed] dynamically calculate firmware size and crc16