I am following a tutorial on few kernel dev. I encountered an operation where I have to use
dd ... if=PBL.bin of=... count=block_number
block_number variable is defined to be as
The HEX of ($filesize - 1)/512 + 1
$filesize is the filesize of the input file
PBL.bin as given in the
dd command above.
How do I calculate this value? Thanks in advance