Hi
Ti took the liberty of building a script that automates construction of LAVA master images. The work is not finished but the bulk of the work has been done (and greatly facilitated by Dave Pigott's partitioning script).
The design is somewhat different to what we had before but the output is compatible. The script can be summarized in three points:
1) Start with a good nano image (or build one) 2) Add stuff to rootfs, changing a few existing files (/etc/hostname, /etc/hosts, fixing /etc/network/interfaces if buggy) 3) Boot the board and let the first-boot script do the rest
I've registered a blueprint that tracks the remaining work items [1] Feel free to help but please change the work item to be assigned to you. I will definitely need some help with origen as I don't have that hardware at home. I will script the construction parts but I cannot run any tests to make sure it works.
[1]: https://blueprints.launchpad.net/lava-master-image-scripts/+spec/lava-master...
Best regards Zygmunt Krynicki
On 21 March 2012 07:58, Zygmunt Krynicki zygmunt.krynicki@canonical.comwrote:
Hi
Ti took the liberty of building a script that automates construction of LAVA master images. The work is not finished but the bulk of the work has been done (and greatly facilitated by Dave Pigott's partitioning script).
Will you introduce the script as base to start?
The design is somewhat different to what we had before but the output is compatible. The script can be summarized in three points:
- Start with a good nano image (or build one)
- Add stuff to rootfs, changing a few existing files (/etc/hostname,
/etc/hosts, fixing /etc/network/interfaces if buggy) 3) Boot the board and let the first-boot script do the rest
I've registered a blueprint that tracks the remaining work items [1] Feel free to help but please change the work item to be assigned to you. I will definitely need some help with origen as I don't have that hardware at home. I will script the construction parts but I cannot run any tests to make sure it works.
+spec/lava-master-image-**scriptshttps://blueprints.launchpad.net/lava-master-image-scripts/+spec/lava-master-image-scripts
Best regards Zygmunt Krynicki
______________________________**_________________ linaro-validation mailing list linaro-validation@lists.**linaro.org linaro-validation@lists.linaro.org http://lists.linaro.org/**mailman/listinfo/linaro-**validationhttp://lists.linaro.org/mailman/listinfo/linaro-validation
W dniu 21.03.2012 04:12, Spring Zhang pisze:
On 21 March 2012 07:58, Zygmunt Krynicki <zygmunt.krynicki@canonical.com mailto:zygmunt.krynicki@canonical.com> wrote:
Hi Ti took the liberty of building a script that automates construction of LAVA master images. The work is not finished but the bulk of the work has been done (and greatly facilitated by Dave Pigott's partitioning script).
Will you introduce the script as base to start?
I'm not sure what you mean here but here it goes:
If you want to use the script you need to have the branch checked out. Run lava-create-master <board> where board can be beagle, panda or snowball.
After a while you will have a <board>-master.img (and a corresponding <board>-vanilla.img in cache/). Copy that image to an SD and run dave's partitioning script (currently in lava-dispatcher/doc/scritps). NOTE: Make sure to edit his script to ensure it does not wipe out /dev/sdb.
I'll merge both scripts today so that anyone can get one-stop-shop for fully automatic master image.
Oh, I believe this script will only work on precise due to improvements in util-linux, specifically on the ability for partx to create loopback device partitions. If it fails on oneiric I won't be fixing it.
Thanks ZK
linaro-validation@lists.linaro.org