Hi there,
Some of you may not be aware of this, but linaro-media-create is undergoing a rewrite in python[1]. This is an incremental rewrite, so right now l-m-c still is a shell script which delegates many of its tasks to python. We don't intend to change any behaviour during this rewrite but there's always the possibility that we do so accidentally, so it'd be great if you all could use the latest l-m-c from lp:linaro-image-tools (instead of the one packaged in Ubuntu) and report any regressions you find.
You can run the linaro-media-create script from a bzr checkout just fine, but notice it won't work if you copy the script to somewhere else (as it won't find the python modules it needs). If you guys think it's worthwhile I can try to find some time to put daily packages in a PPA, but then there would be a bit extra work for you all to revert to the version we currently have in Ubuntu when there are regressions.
Cheers,
[1] https://wiki.linaro.org/Platform/Infrastructure/Specs/ImproveLinaroMediaCreate
On 10 December 2010 12:00, Guilherme Salgado salgado@canonical.com wrote:
Some of you may not be aware of this, but linaro-media-create is undergoing a rewrite in python[1]. This is an incremental rewrite, so right now l-m-c still is a shell script which delegates many of its tasks to python. We don't intend to change any behaviour during this rewrite but there's always the possibility that we do so accidentally, so it'd be great if you all could use the latest l-m-c from lp:linaro-image-tools (instead of the one packaged in Ubuntu) and report any regressions you find.
Ideally we ought to get automated testing set up of running l-m-c against snapshots and then booting the result under qemu. I do have a blueprint for this work but I'm afraid I haven't actually started it yet. https://blueprints.launchpad.net/qemu-linaro/+spec/qemu-continuous-integrati...
-- PMM
On Sat, Dec 11, 2010 at 1:14 AM, Peter Maydell peter.maydell@linaro.org wrote:
On 10 December 2010 12:00, Guilherme Salgado salgado@canonical.com wrote:
Some of you may not be aware of this, but linaro-media-create is undergoing a rewrite in python[1]. This is an incremental rewrite, so right now l-m-c still is a shell script which delegates many of its tasks to python. We don't intend to change any behaviour during this rewrite but there's always the possibility that we do so accidentally, so it'd be great if you all could use the latest l-m-c from lp:linaro-image-tools (instead of the one packaged in Ubuntu) and report any regressions you find.
Ideally we ought to get automated testing set up of running l-m-c against snapshots and then booting the result under qemu. I do have a blueprint for this work but I'm afraid I haven't actually started it yet. https://blueprints.launchpad.net/qemu-linaro/+spec/qemu-continuous-integrati...
I have a spare Overo board (OMAP3, not Beagle, but still) that has a SSH accessible serial console and runs a NFS root. It would be fairly easy to automate building a new rootfs and doing some basic tests. The hardware is available if someone wants to.
Note that it still involves me hitting the 'reset' button each morning, and that you can't test x-load or u-boot.
-- Michael
Forgot to mention that there's one new dependency which you may need to install in case you don't have it yet: python-parted
On Fri, 2010-12-10 at 10:00 -0200, Guilherme Salgado wrote:
Hi there,
Some of you may not be aware of this, but linaro-media-create is undergoing a rewrite in python[1]. This is an incremental rewrite, so right now l-m-c still is a shell script which delegates many of its tasks to python. We don't intend to change any behaviour during this rewrite but there's always the possibility that we do so accidentally, so it'd be great if you all could use the latest l-m-c from lp:linaro-image-tools (instead of the one packaged in Ubuntu) and report any regressions you find.
You can run the linaro-media-create script from a bzr checkout just fine, but notice it won't work if you copy the script to somewhere else (as it won't find the python modules it needs). If you guys think it's worthwhile I can try to find some time to put daily packages in a PPA, but then there would be a bit extra work for you all to revert to the version we currently have in Ubuntu when there are regressions.
Cheers,
[1] https://wiki.linaro.org/Platform/Infrastructure/Specs/ImproveLinaroMediaCreate
linaro-dev mailing list linaro-dev@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-dev
Hi, Guilherme,
I checkout revision 196, and use 1204 daily build to verify, the SD card is burned successfully, but there is an error return from media_create.remove_binary_dir.
+ '[' -d /home/spring/linaro/linaro-image-tools/root-disc ']' + cleanup_tempfiles + rm -r /tmp/tmp.STMDNpUpGK + cleanup_loopbacks + local d + '[' -n '' ']' + python -m media_create.remove_binary_dir + '[' 100 '!=' 0 ']' + remove_image_file + '[' -f '' ']' spring@IC:~/linaro/linaro-image-tools$ echo $? 100
And there is an long waiting time after the following line, could we add some process information during it?
Unpacking hardware pack ...Done <a long wait> Reading package lists... Done
On Fri, 2010-12-10 at 12:11 -0200, Guilherme Salgado wrote:
Forgot to mention that there's one new dependency which you may need to install in case you don't have it yet: python-parted
Hi Spring,
Thanks for the feedback!
On Wed, 2010-12-15 at 04:22 -0600, spring wrote:
Hi, Guilherme,
I checkout revision 196, and use 1204 daily build to verify, the SD card is burned successfully, but there is an error return from media_create.remove_binary_dir.
Did you manage to boot the board using that card as well?
+ '[' -d /home/spring/linaro/linaro-image-tools/root-disc ']' + cleanup_tempfiles + rm -r /tmp/tmp.STMDNpUpGK + cleanup_loopbacks + local d + '[' -n '' ']' + python -m media_create.remove_binary_dir + '[' 100 '!=' 0 ']' + remove_image_file + '[' -f '' ']' spring@IC:~/linaro/linaro-image-tools$ echo $? 100
Do you have a binary/ dir left after the script finishes?
Can you try to reproduce it using lp:~salgado/linaro-image-tools/use-cmd-runner? The code in that branch will catch the non-zero return code and raise an exception, like the rest of our code does.
And there is an long waiting time after the following line, could we add some process information during it?
Unpacking hardware pack ...Done <a long wait> Reading package lists... Done
Sure thing. Care to file a bug about it? FTR, that's when it's fetching the apt package lists (i.e. apt-get update).
On Fri, 2010-12-10 at 12:11 -0200, Guilherme Salgado wrote:
Forgot to mention that there's one new dependency which you may need to install in case you don't have it yet: python-parted