[Lava-users] How to configure usb serial in device .jinja2 file

Neil Williams neil.williams at linaro.org
Tue Aug 28 07:27:25 UTC 2018


On Tue, 14 Aug 2018 at 14:56, ljh_dev <ljh_dev at 126.com> wrote:

> Hi,Zoran,
>
> https://git.linaro.org/lava/lava.git/tree/lava_dispatcher/devices/bbb-01.yaml
> Under  boot label, it has some sub labels such as oe,matser,nfs ..
>

Those are blocks of instructions used to boot that particular method in
U-Boot.

Typically you can ignore "master", that's from older styles. NFS differs
from ramdisk by setting the variables to tell the kernel where to find the
NFS, for example.

The nice thing with U-Boot is that most U-Boot device integrations don't
need to make any changes here.

It sounds, from other messages about this device, that your device might
need some changes. So limit yourself to those instruction blocks which will
be useful for your testing - typically ramdisk and nfs. You might be
interested in nbd but ums is specialised to devices which offer a USB mass
storage interface from U-Boot to write to local flash etc. The sata
commands are for the (few) devices which can load files from SATA within
U-Boot. It doesn't hurt to have these instruction blocks listed - the block
to use is determined by the test job:

https://staging.validation.linaro.org/scheduler/job/233049/definition#defline48

That test job specifies commands: nfs so the nfs instruction block is sent
to the DUT.

oe and master are no longer used.

https://git.linaro.org/lava/lava.git/tree/lava_scheduler_app/tests/device-types/base-uboot.jinja2

base-uboot has become quite complex over time - possibly the best view is
to look at a working U-Boot device dictionary and compare the Jinja2 view
with the YAML view:

https://staging.validation.linaro.org/scheduler/device/staging-black03/devicedict



> Could you explain to me about the relationship among oe,matser,nfs ..
>
>
>
>
>
> 在 2018-08-14 20:37:52,"Zoran S" <zoran.stojsavljevic.de at gmail.com> 写道:
>
>
> https://git.linaro.org/lava/lava.git/tree/lava_dispatcher/devices/bbb-01.yaml
>
> Zoran
>
> On Tue, Aug 14, 2018 at 2:29 PM, ljh_dev <ljh_dev at 126.com> wrote:
>
>> Don't need to set connection_list command?
>>
>> https://validation.linaro.org/static/docs/v2/lava-scheduler-device-dictionary.html
>> It say:
>>   connection_list - the list of hardware ports which are configured for
>> serial connections to the device.
>>
>>
>>
>>
>> 在 2018-08-14 20:24:06,"Zoran S" <zoran.stojsavljevic.de at gmail.com> 写道:
>>
>>
>> https://github.com/ZoranStojsavljevic/lava-server-vm/blob/master/device-types/beaglebone-black.jinja2
>>
>> Zoran
>> _______
>>
>> On Tue, Aug 14, 2018 at 1:42 PM, ljh_dev <ljh_dev at 126.com> wrote:
>>
>>> The board has usb serial, it connected to computer running dispatcher.
>>> On dispatcher computer that  usb serial device name is /dev/ttyUSB0 .
>>> How to configure  usb serial in device .jinja2  file?
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Lava-users mailing list
>>> Lava-users at lists.linaro.org
>>> https://lists.linaro.org/mailman/listinfo/lava-users
>>>
>>>
>>
>>
>>
>>
>
>
>
>
> _______________________________________________
> Lava-users mailing list
> Lava-users at lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/lava-users
>


-- 

Neil Williams
=============
neil.williams at linaro.org
http://www.linux.codehelp.co.uk/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linaro.org/pipermail/lava-users/attachments/20180828/63c653ce/attachment-0001.html>


More information about the Lava-users mailing list