Hi Zoran,
How does dispatcher select ot,master or nfs at startup?
- setenv loadkernel 'tftp {KERNEL_ADDR} {KERNEL}'It say the {KERNEL} will be substituted. Where is {KERNEL} variable defined? When I submit job definition by web ui,I did't find where to define {KERNEL} variable
At 2018-08-15 14:04:36, "Zoran S" <zoran.stojsavljevic.de@gmail.com> wrote:
>Hello 126.com,
>
>Two things here:
>[1] your question has almost nothing to do with Lava, but almost
>everything with kernel system configuration;
>[2] I'll do very short explanation (my way), and then you need to
>google it, since there are megatons of materials out there.
>
>We start from the boot arguments, which translates directly to kernel
>command line:
>
>u-boot:
> oe:
> - setenv bootargs 'console=ttyO0,115200n8
>root=/dev/mmcblk0p5 rootwait ro'
> master:
> - setenv bootargs 'console=ttyO0,115200n8
>root=LABEL=testrootfs rootwait ro'
> nfs:
> - "setenv nfsargs 'setenv bootargs console=ttyO0,115200n8
>root=/dev/nfs rw nfsroot={SERVER_IP}:{NFSROOTFS},tcp,hard,intr
>ip=dhcp'"
> nbd:
> - setenv nbdkbootargs ' ip=dhcp nbd.server={NBDSERVERIP}
>nbd.port={NBDSERVERPORT} root=/dev/ram0 ramdisk_size=16384 rootdelay=7
> fixrtc nocompcache vram=48M omapfb.vram=0:24M mem=456M@0x80000000
>mem=512M@0xA0000000 rootdelay=5 ip=dhcp'
> - setenv bootargs verbose console=ttyO2,115200n8 rw
>${nbdbasekargs} ${nbdkbootargs}
> ramdisk:
> - setenv bootargs 'console=ttyO0,115200n8 root=/dev/ram0 ip=dhcp'
> usb:
> - setenv bootargs 'console=ttyO0,115200n8 root={ROOT} ip=dhcp'
>
>As you see, each way to boot differs by how rootfs is mounted to the
>system. OE boots from flash, ramdisk from ram0 (initramfs), nfs uses
>rootfs from the host, mounting to it using network it is physically
>attached to it, and so on, and so on...
>
>But, in order to do this, you need to manipulate initial kernel
>menuconfig, called mostly defconfig, defined in the kernel root tree.
>Then, in order to choose how to boot, you need to manipulate CONFIG
>(.config).
>
>As for example, to make system to boot from initramfs, you have to
>have the following set in .config:
>https://github.com/ZoranStojsavljevic/cip-rt-misc/blob/master/configs/bbb/config-initramfs
>
>So, from here you continue walking yourself. :-)
>
>Good Luck,
>Zoran
>_______
>
>
>On Tue, Aug 14, 2018 at 3:53 PM, ljh_dev <ljh_dev@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 ..
>> Could you explain to me about the relationship among oe,matser,nfs ..
>>
>>
>>
>>
>>
>> ÔÚ 2018-08-14 20:37:52£¬"Zoran S" <zoran.stojsavljevic.de@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@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@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@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@lists.linaro.org
>>>> https://lists.linaro.org/mailman/listinfo/lava-users
>>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>
>>