[tbot] Question regarding SWUpdate ..... from command line

Stefano Babic sbabic at denx.de
Mon Mar 4 17:03:57 UTC 2019


On 01/03/19 13:26, Lukasz Majewski wrote:
> Hi Stefano,
> 
>> Hallo Lukasz,
>>
>> On 27/02/19 10:13, Lukasz Majewski wrote:
>>> Hi Stefano.
>>>   
>>>> Hi Lukasz,
>>>>
>>>> I have the use case and a tbot testcase. But we are now at EW,
>>>> please wait until I am back.  
>>>
>>> Ach.... I've just realised this :-)
>>> Have a nice time there :-)
>>>   
>>
>> We are back, but I think today I just answer to mails...
> 
> I hope that you (all) enjoyed EW ;-)
> 
>>
>> I have added our tbot experts to the list because we have discussed
>> some topics at EW.
> 
> I've also shared some thoughts/feedback with Harald regarding tbot.
> 
>>
>>>>
>>>> Stefano
>>>>
>>>> On 25/02/19 23:57, Lukasz Majewski wrote:  
>>>>> On Mon, 25 Feb 2019 16:03:48 +0100
>>>>> Lukasz Majewski <lukma at denx.de> wrote:
>>>>>     
>>>>>> Dear Stefano,
>>>>>>
>>>>>> I'm wondering if there is any way to emulate SWUpdate http
>>>>>> frontend from command line (to send *.swu images via command
>>>>>> line)?
>>>>>>
>>>>>> I'm looking for a solution to automatically flash debug images on
>>>>>> the target (and no interaction with browser is necessary).
>>>>>>
>>>>>> Have you had previously any such use case?    
>>>>>
>>>>> The exact use case is to:
>>>>>
>>>>> - Re-build production images with
>>>>>   EXTRA_IMAGE_FEATURES="empty-root-password"
>>>>>
>>>>> - Force the board to SWUpdate (this is done from production
>>>>> on-board SW)
>>>>>
>>>>> - Use some scripts to send *.swu images and prepare that board for
>>>>>   testing.
>>>>>
>>>>> Some curl magic like:
>>>>>
>>>>> curl -v --insecure --request POST --data-binary
>>>>> "@swu-image-emmc-backup-display5.swu" http://192.168.2.130:8080
>>>>>
>>>>> Is not (yet) working properly - but some page info is displayed.
>>>>>     
>>
>> I have written a tbot testcase that I have already used on a couple of
>> board and it covers an update using the internal Webserver (your case,
>> in fact). I have also dome other case in my list, ant last but not
>> least, also a tc working with Hawkbit is in my list (I have to refresh
>> my Java knowledge..). We discussed also how to share this - we agree
>> that tc should be shared, not yet clear how.
> 
> Ok. Good :-)
> 
>>
>> In the meantime, I can propose I will push a public repo with just tc
>> (no boards, no labs at all) and we can use it as container for tc we
>> currently have. tc could be picked up later from this container andwe
>> could also dropped this repo in future after replacing with something
>> better. Any thought (pro or contra) ?
> 
> Yes, I think that it is a good idea.


I pushed a repo with SWUpdate's testcase, more tc will follow:

	https://github.com/sbabic/tbot-tc.git

Regards,
Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the tbot mailing list