[Vm-dev] Packaging 64-bit and 32-bit linux VMs

Eliot Miranda eliot.miranda at gmail.com
Thu May 24 20:19:59 UTC 2018


Hi Subbu,

On Thu, May 17, 2018 at 4:44 AM, K K Subbu <kksubbu.ml at gmail.com> wrote:

>
> On Wednesday 16 May 2018 11:55 PM, Eliot Miranda wrote:
>
>> IMVER=`hexdump -n 4 -e '"%u\n"' "$IMAGE"`
>>
>
> od may be a better choice as it can handle endianness too. E.g.
>
> $ od -A n -t u4 -N 4 --endian=little squeak.image
>  6521
> $ od -A n -t u4 -N 4 --endian=big squeak.image
>  2031681536
>
>
Doesn't work on Mac OS X:

Sisyphus.oscogvm$ od -A n -t u4 -N 4 --endian=little ~/Cog/SpurWork64.image
od: illegal option -- -
usage: od [-aBbcDdeFfHhIiLlOosvXx] [-A base] [-j skip] [-N length] [-t type]
          [[+]offset[.][Bb]] [file ...]

And when I used od on Mac OS X I found there is no option to eliminate the
byte offset/data address printing.  Whatever we use has to work across as
many Unix dialects as possible.


> The magic numbers may also be offset 512 bytes into the file:
>
> $ od -j 512 .......
>
> Regards .. Subbu
>



-- 
_,,,^..^,,,_
best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180524/935a64e4/attachment.html>


More information about the Vm-dev mailing list