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

Zoran S zoran.stojsavljevic.de at gmail.com
Tue Aug 28 16:51:36 UTC 2018


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

Hello Neil,

With all due respect, this, what you have presented to us, all, as
lava-dispatcher U-Boot configuration:
https://git.linaro.org/lava/lava.git/tree/lava_dispatcher/devices/bbb-01.yaml

Was so useful (👍👍👍) and so well done, that I do NOT use these for Lava
testing, rather I use fragments of these to test the full systems NOT using
Lava, albeit to simulate virtual drivers on HW platforms... I just use
these fragments to upgrade U-Boot ENV variables on the embedded targets
using Lava VMs NOT for Lava testing (I use my own scripts based on the
above net pointer), rather for downloading true system configurations with
full YOCTO initramfs implemented/ported applications to the DUT platforms.
One time testing environment, wrt to testing, discovering the problems, and
fixing YOCTO build system by fixing YOCTO recipes, bitbake scripts, adding
new packages, reusing old packages, and so on... 😎

Kudos to you and the Lava team for giving me keys-in-hand for U-Boot
initramfs commands' upgrades!

Lava is powerful tool. Both ways. Mostly NOT to be used for Lava testing.
in my case. Rather to reuse Lava parts for DUT complete application
simulation, temporarily stored in initramfs and mounted to the kernel!

Another use case for Lava, after all. ✌

Thank you,
Zoran
_______


On Tue, Aug 28, 2018 at 9:27 AM Neil Williams <neil.williams at linaro.org>
wrote:

> 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/e3a3e87a/attachment-0001.html>


More information about the Lava-users mailing list