Hi Milosz,

As we discussed earlier , I have tried to boot the STM32MP board through tftp, I was able to boot the board , Please find the test job results page attached in this email.

But while performing the test with the u-boot method , is there any possibility to skip some actions in the default pipeline method , why i am asking this is currently we have not connected pdu for the power controlling to the STM32 target board , so we are not performing any hard-reset commands.

So , can you please check the test results once and suggest the which configuration file we want to update to make this test job "complete" state.

Thanks in advance.

Regards,
Dhanunjaya.P
Dhanunjaya. P


On Wed, Nov 13, 2019 at 7:25 AM dhanu msys <dhanuskd.palnati@gmail.com> wrote:
Hi Milosz,

Thanks for providing the document references. 

I will try my level best.

Thanks & Regards, 
Dhanunjaya

On Tue, Nov 12, 2019, 20:36 Milosz Wasilewski <milosz.wasilewski@linaro.org> wrote:
I'll defer you to the docs:
 - boot commands:
https://master.lavasoftware.org/static/docs/v2/actions-boot.html#index-9
 - device type:
https://master.lavasoftware.org/static/docs/v2/devicetypes.html#device-types
 - u-boot bootloader:
https://master.lavasoftware.org/static/docs/v2/actions-boot.html#index-35

I didn't test tftp booting with this board, so I can't help. It should
work as this is supported in device type:
https://git.lavasoftware.org/lava/lava/blob/master/etc/dispatcher-config/device-types/stm32mp157c-dk2.jinja2

Good luck.

milosz

On Tue, 12 Nov 2019 at 13:59, dhanu msys <dhanuskd.palnati@gmail.com> wrote:
>
> Hi Milosz,
>
> I was running tftp on my localhost & kept those uImage & dtb files in the "tftpboot" repository. PFA.
>
>
> Thanks & Regards,
> Dhanunjaya. P
>
>
> On Tue, Nov 12, 2019 at 7:23 PM dhanu msys <dhanuskd.palnati@gmail.com> wrote:
>>
>> Hi Milosz,
>>
>> Yes , I have booted my board manually using the tftp , here i have attached those uImage & dtb images. PFA.
>> Once the device bootsup , through command prompt , i will set the following commands.
>>
>> setenv ipaddr 192.168.1.201
>> setenv gatewayip 192.168.1.200
>> setenv serverip 192.168.1.200
>> setenv netmask 255.255.255.0
>> tftpboot 0xc2000000 uImage
>> tftpboot 0xc4000000 stm32mp157c-ev1.dtb
>> setenv bootargs 'root=/dev/mmcblk0p6 rootwait rw console=ttySTM0,115200'bootm 0xc2000000 - 0xc4000000
>>
>> Its basically ARM architecture based and bootloader "u-boot".
>>
>> Can you please suggest how i can deploy the tftp files through LAVA test job ,what will be the url i need pass in the job definition ?
>>
>> Thanks & Regards,
>> Dhanunjaya. P
>>
>>
>> On Tue, Nov 12, 2019 at 7:07 PM Milosz Wasilewski <milosz.wasilewski@linaro.org> wrote:
>>>
>>> Hmm,
>>> Do you know how tftp boot works? Loading 100M tarball into memory
>>> doesn't seem like a good idea. Which bootloader is running on your
>>> board?
>>>
>>> milosz
>>>
>>> On Tue, 12 Nov 2019 at 13:32, dhanu msys <dhanuskd.palnati@gmail.com> wrote:
>>> >
>>> > Hi Milosz,
>>> >
>>> > As per earlier email , I am trying to boot the STM32mp157c-dk2 with the tftp deploy method , but getting failed to have proper device configuration.
>>> >
>>> > Here I have attached the device configuration , device template & Job definition files. PFA.
>>> >
>>> > Please let me know how to get resolve the issue.
>>> >
>>> > Regards,
>>> > Dhanunjaya. P
>>> >
>>> >
>>> > On Tue, Nov 12, 2019 at 2:45 PM Milosz Wasilewski <milosz.wasilewski@linaro.org> wrote:
>>> >>
>>> >> On Tue, 12 Nov 2019 at 08:14, dhanu msys <dhanuskd.palnati@gmail.com> wrote:
>>> >> >
>>> >> > Hi Milosz,
>>> >> >
>>> >> > Currently eth008 was unavailable,  Is there any possibility to make use of Raspberry pi 4 as PDU to run power control commands on STM32mp157c-dk2 ?
>>> >>
>>> >> Sure. Anything that can drive a relay will work. You will need to
>>> >> create a script that LAVA can call. Eth008 is a good choice for a
>>> >> bigger LAB where you need a lot of relays (these boards have
>>> >> configurable MAC addresses). If you need just one, than pick any relay
>>> >> you can get on ebay and that will do the trick.
>>> >>
>>> >> milosz
>>> >>
>>> >> >
>>> >> > Thanks in advance.
>>> >> >
>>> >> > Regards,
>>> >> > Dhanunjaya. P
>>> >> >
>>> >> >
>>> >> > On Mon, Nov 11, 2019 at 5:36 PM dhanu msys <dhanuskd.palnati@gmail.com> wrote:
>>> >> >>
>>> >> >> Hi Milosz,
>>> >> >>
>>> >> >> Thanks for the reply.
>>> >> >>
>>> >> >> I will try to get the eth008 if possible , otherwise i will try to make use of TFTP or u-boot methods to run the test job on STM32mp157c-dk2.
>>> >> >>
>>> >> >> Thanks & Regards,
>>> >> >> Dhanunjaya. P
>>> >> >>
>>> >> >>
>>> >> >> On Mon, Nov 11, 2019 at 4:57 PM Milosz Wasilewski <milosz.wasilewski@linaro.org> wrote:
>>> >> >>>
>>> >> >>> On Mon, 11 Nov 2019 at 11:07, dhanu msys <dhanuskd.palnati@gmail.com> wrote:
>>> >> >>> >
>>> >> >>> > Hi Milosz,
>>> >> >>> >
>>> >> >>> > Really Thanks for sharing the Information.
>>> >> >>> >
>>> >> >>> > I have basic question, we can't able to run any test job for the STM32 without external hardware(PDU) ?
>>> >> >>> >
>>> >> >>> > Can you please share the device configuration , which helps to run the test jobs without "ethernet controlled relay" for the STM32.
>>> >> >>>
>>> >> >>> https://git.linaro.org/lava/lava-lab.git/tree/shared/lab-scripts/eth008_control
>>> >> >>>
>>> >> >>> >
>>> >> >>> > As I requested earlier , is there any possibility to run the STM32 specific jobs with any other deployment methods(tmpfs , tftp..etc).
>>> >> >>>
>>> >> >>> Our boards use EFI for booting and I never tried tftp with that. You
>>> >> >>> might need grub EFI application for that. Alternatively you might use
>>> >> >>> u-boot. I didn't try that either.
>>> >> >>>
>>> >> >>> milosz
>>> >> >>>
>>> >> >>> >
>>> >> >>> > Thanks & Regards,
>>> >> >>> > Dhanunjaya. P
>>> >> >>> >
>>> >> >>> >
>>> >> >>> > On Mon, Nov 11, 2019 at 4:19 PM Milosz Wasilewski <milosz.wasilewski@linaro.org> wrote:
>>> >> >>> >>
>>> >> >>> >> Well, LAVA will try to switch the device into DFU mode for deployment
>>> >> >>> >> step. These lines in the device dict do it:
>>> >> >>> >> '/usr/local/lab-scripts/eth008_control -a 172.27.19.27 -r 1 -s on',
>>> >> >>> >> '/usr/local/lab-scripts/eth008_control -a 172.27.19.27 -r 2 -s on',
>>> >> >>> >> Then it will power on the board:
>>> >> >>> >> '/usr/local/lab-scripts/snmp_pdu_control --hostname lngpdu01 --command
>>> >> >>> >> on --port 3 --delay 20',
>>> >> >>> >> After that it will try to flash it using the STM32_Programmer_CLI:
>>> >> >>> >> '/usr/local/bin/STM32_Programmer_CLI -c port=usb1 -w {LAYOUT} -q',
>>> >> >>> >> Lastly it will power the board down and flip the dip switches back:
>>> >> >>> >> '/usr/local/lab-scripts/snmp_pdu_control --hostname lngpdu01 --command
>>> >> >>> >> off --port 3',
>>> >> >>> >> '/usr/local/lab-scripts/eth008_control -a 172.27.19.27 -r 1 -s off',
>>> >> >>> >> '/usr/local/lab-scripts/eth008_control -a 172.27.19.27 -r 2 -s off',
>>> >> >>> >>
>>> >> >>> >> So if you don't have HW moded board, this device dict won't work for
>>> >> >>> >> you. Sources for the scripts are here:
>>> >> >>> >> https://git.linaro.org/lava/lava-lab.git/tree/shared/lab-scripts
>>> >> >>> >> We're using pretty expensive HW in the LAB:
>>> >> >>> >>  - managed APC PDUs:
>>> >> >>> >> https://www.apc.com/shop/uk/en/products/Rack-PDU-Switched-1U-16A-208-230V-8-C13/P-AP7921B
>>> >> >>> >> (I couldn't find the exact models we have, they're discontinued)
>>> >> >>> >>  - ETH008 relay board: https://www.robot-electronics.co.uk/htm/eth008tech.htm
>>> >> >>> >>
>>> >> >>> >> milosz
>>> >> >>> >>
>>> >> >>> >> On Mon, 11 Nov 2019 at 10:42, dhanu msys <dhanuskd.palnati@gmail.com> wrote:
>>> >> >>> >> >
>>> >> >>> >> > Hi Milosz,
>>> >> >>> >> >
>>> >> >>> >> > No.
>>> >> >>> >> > Through Manual Setup , we are able to switch between the modes.
>>> >> >>> >> >
>>> >> >>> >> > Here I have attached the kernel & dtb image for your reference. PFA.
>>> >> >>> >> >
>>> >> >>> >> > Dhanunjaya. P
>>> >> >>> >> >
>>> >> >>> >> >
>>> >> >>> >> > On Mon, Nov 11, 2019 at 3:40 PM Milosz Wasilewski <milosz.wasilewski@linaro.org> wrote:
>>> >> >>> >> >>
>>> >> >>> >> >> I think I forgot to ask key question when it comes to this device: did
>>> >> >>> >> >> you do the HW mod to be able to switch between DFU and OS boot modes
>>> >> >>> >> >> without manual step?
>>> >> >>> >> >>
>>> >> >>> >> >> milosz
>>> >> >>> >> >>
>>> >> >>> >> >> On Mon, 11 Nov 2019 at 10:01, dhanu msys <dhanuskd.palnati@gmail.com> wrote:
>>> >> >>> >> >> >
>>> >> >>> >> >> > Hi Milosz,
>>> >> >>> >> >> >
>>> >> >>> >> >> > Thanks for reply.
>>> >> >>> >> >> >
>>> >> >>> >> >> > I am new to the LAVA usage.
>>> >> >>> >> >> >
>>> >> >>> >> >> > I have taken reference from the below link.
>>> >> >>> >> >> > https://staging.validation.linaro.org/scheduler/device/staging-stm32mp157-01/devicedict
>>> >> >>> >> >> >
>>> >> >>> >> >> > Here I have attached the device_dictionary & device configurations files, PFA.
>>> >> >>> >> >> >
>>> >> >>> >> >> > Note : I am not able to see the "lab-scripts" to have power controlled commands in my local repository , is there any specific package need to install in my localhost , can you please share the lab-scripts to have pdu control and also please share the pdu device details if required to connect with the hardware.
>>> >> >>> >> >> >
>>> >> >>> >> >> > Can you please share some references , which i can run some jobs through any other deploy methods like "tmpfs , tftp " for "STM32MP157C-DK2".
>>> >> >>> >> >> >
>>> >> >>> >> >> > Thanks & Regards,
>>> >> >>> >> >> > Dhanunjaya. P
>>> >> >>> >> >> >
>>> >> >>> >> >> >
>>> >> >>> >> >> > On Mon, Nov 11, 2019 at 2:59 PM Milosz Wasilewski <milosz.wasilewski@linaro.org> wrote:
>>> >> >>> >> >> >>
>>> >> >>> >> >> >> Could you share your device dictionary? You might be missing
>>> >> >>> >> >> >> flasher_deploy_commands.
>>> >> >>> >> >> >>
>>> >> >>> >> >> >> Please check here for reference:
>>> >> >>> >> >> >> https://ledge.validation.linaro.org/scheduler/device/lng-stm32mp157-01/devicedict
>>> >> >>> >> >> >>
>>> >> >>> >> >> >> milosz
>>> >> >>> >> >> >>
>>> >> >>> >> >> >> On Thu, 7 Nov 2019 at 07:48, dhanu msys <dhanuskd.palnati@gmail.com> wrote:
>>> >> >>> >> >> >> >
>>> >> >>> >> >> >> > Hi Team,
>>> >> >>> >> >> >> >
>>> >> >>> >> >> >> > I am trying to run the test_jobs on the specific device type "stm32mp1157c-dk2" , but its throwing an error message to deploy "flasher" method in the deployment parameters.
>>> >> >>> >> >> >> >
>>> >> >>> >> >> >> > Here I have attached the screenshots for reference. PFA.
>>> >> >>> >> >> >> >
>>> >> >>> >> >> >> > Thanks & Regards,
>>> >> >>> >> >> >> > Dhanunjaya. P
>>> >> >>> >> >> >> > _______________________________________________
>>> >> >>> >> >> >> > Lava-users mailing list
>>> >> >>> >> >> >> > Lava-users@lists.lavasoftware.org
>>> >> >>> >> >> >> > https://lists.lavasoftware.org/mailman/listinfo/lava-users