On 25 May 2012 01:04, Peter Maydell peter.maydell@linaro.org wrote:
On 24 May 2012 03:45, Michael Hope michael.hope@linaro.org wrote:
Hi Peter, Riku. I've written up a page covering the KVM integration work done this quarter at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration
Could you review it please, including the instructions at: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration/Quick...
The quickstart instructions don't work for me:
$ linaro-media-create --image-file=host.img --image-size=1.9G --output-directory=host --dev fastmodel --hwpack hwpack_linaro*kvm-host* --hwpack-force-yes --binary linaro-precise-dev* [snip lots of output] Done
proc has been unmounted Traceback (most recent call last): File "/usr/bin/linaro-media-create", line 183, in <module> args.should_format_rootfs, args.should_align_boot_part) File "/usr/lib/pymodules/python2.7/linaro_image_tools/media_create/partitions.py", line 134, in setup_partitions image_size_in_bytes = convert_size_to_bytes(image_size) File "/usr/lib/pymodules/python2.7/linaro_image_tools/media_create/partitions.py", line 487, in convert_size_to_bytes real_size = int(size[:-1]) ValueError: invalid literal for int() with base 10: '1.9'
...I guess it doesn't like the non-integer image-size option? (also, is there an --image-size which avoids the need for the extra 'dd' command ?)
Support for float sizes is in the revno listed on the output page itself: https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/KVMIntegration
"""linaro-image-tools+bzr517 from lp:linaro-image-tools"""
Riku's 2000M avoids the extra padding. Updated.
The Fast Model seems to round the image size down to the nearest megabyte. According to the guest kernel mmcblk0 is 3983360 blocks / 1945.0 MB but the image is 2040109466 bytes / 1945.60 MB. linaro-media-create uses all of the image and creates a partition that extends the 0.60 MB out into no man's land which causes the mount to fail.
I've logged LP: #1004199. It's caused by the Fast Model but it's a reasonable thing to work around.
-- Michael