Do target device must have sd card when I add device lava dispatcher ?

Asked by chunrongguo on 2012-09-20

hello, all

I add target device in lava-dispatcher .Do target device must have sd card and boot from sd card ?
Do my target device must boot with " master image " in sd card if I add target device in lava-dispatcher?

DO some other methods boot my target device when I use lava-diapatcher?
how to make "master image " for my target device ?

Question information

Language:
English Edit question
Status:
Answered
For:
LAVA Dispatcher Edit question
Assignee:
No assignee Edit question
Last query:
2012-09-21
Last reply:
2012-09-21
Dave Pigott (dpigott) said : #1

OK. This probably should be better documented, but it's pretty simple (but there are a couple of gotchas):

bzr branch lp:lava-master-image-scripts

Then, in the directory, do:

lava-create-master {board}

Where board is the name of the board as listed in the boards.d directory (but without the .conf extension)

Note - you have to have a net connection for this to work.

Once it has created the image, you then burn this to an sd card (using dd). Then you put it in your board and boot it up. Here's where the potential gotchas are.

On first boot, a first time boot script gets run. It takes quite a considerable time, so resist the urge to try to stop it. It must run to completion successfully. Note that the board must have a net connection as well.

Once you get the boot prompt, you should now have a valid LAVA master image, but it is always best to look in /var/log/lava/first-boot.log and see that it completed properly.

Hope this helps

chunrongguo (chrguo-x) said : #2

hello,

thank you very much !

My test boards can not support sd card .
can I burn this master image to flash and boot test boards ?
or can I download this master image to ram ?

thank you
chrguo

chunrongguo (chrguo-x) said : #3

I means that what functions master image have .
is master image bootloader or (bootloader + filesystem )?
do lava-dispatcher support master image only ?

Dave Pigott (dpigott) said : #4

Wow. OK. You're trying to do something that lava currently doesn't support.

Essentially, a lava master image is a set of partitions:

boot
rootfs
testboot
testrootfs
sdcard
userdata

Along with that, the first boot installs some packages that lava needs

What lava does is to boot up into the master image, deploy the test image onto testboot and testrootfs, restart the board and intercept u-boot and direct it to boot off testboot, with testrootfs as its filing system. That is the majority of what takes the time on first boot: Partitioning and formatting. What you would need to do (I think) is burn the image into the flash and let it run.

Question: How much flash do you have? You need a minimum of 8G to support lava

chunrongguo (chrguo-x) said : #5

 I have 4G flash

Dave Pigott (dpigott) said : #6

OK. I'm assuming that you can't expand that?

So, basically, at the moment, you *could* run a limited lava, in that you could test nano images only. Desktop would certainly not fit - It needs 3G just for the rootfs, and given that android needs an extra two partitions, I suspect you won't be able to run that either, but we can try to fit it on.

So, we'll need to change your partitioning scheme, which is just done through a couple of command line options on lava-create-master. These are --rootfs-size and --userdata-size. I would recommend trying --rootfs-size 2G --userdata-size 500M. If that is ok, then you should be good to go, but remember that you will only be able to run a rootfs smaller than desktop.

Can you help with this problem?

Provide an answer of your own, or ask chunrongguo for more information if necessary.

To post a message you must log in.