From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from nm17-vm6.bullet.mail.sg3.yahoo.com ([106.10.149.85]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1cvdBH-0006ZN-Kk for rauc@pengutronix.de; Wed, 05 Apr 2017 07:08:32 +0200 Date: Wed, 5 Apr 2017 05:08:16 +0000 (UTC) From: gurpartap singh Message-ID: <1043369542.264396.1491368896805@mail.yahoo.com> In-Reply-To: References: <1195414473.2379963.1489058037687.ref@mail.yahoo.com> <1195414473.2379963.1489058037687@mail.yahoo.com> MIME-Version: 1.0 Subject: Re: [RAUC] Errors in Using Rauc List-Id: RAUC Project - Discussion List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: gurpartap singh Content-Type: multipart/mixed; boundary="===============1722961661==" Errors-To: rauc-bounces@pengutronix.de Sender: "RAUC" To: Enrico Joerns Cc: "rauc@pengutronix.de" --===============1722961661== Content-Type: multipart/alternative; boundary="----=_Part_264395_1566405131.1491368896801" Content-Length: 12247 ------=_Part_264395_1566405131.1491368896801 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Enrico,I am facing problems with D-Bus service.=20 1. Error creating proxy: Error calling StartServiceByName for de.pengutroni= x.rauc: Timeout was reached > D-Bus error while installing `/home/rauc/update.raucb2.How to start D-Bus= service and run rauc in Daemon mode.3.Please start some IRC chat so we can= get live help from your team. =C2=A0Regards Gurpartap SinghEmbedded Software EngineerTerron Microsystems Pvt. LtdNew De= lhi=20 On Monday, 13 March 2017 9:38 PM, Enrico Joerns wr= ote: =20 Hi, On 03/09/2017 12:13 PM, gurpartap singh wrote: > I installed RAUC with --disable-network option because of libcurl depende= ncy issues. > I have done below steps so far: > Created manifest.raucm like this > [update] > compatible=3Drauc-demo-x86 > version=3D2015.04-1 > > [image.rootfs] > sha256=3D4c03d5be6780e64a604e94222a2da50e671698b9c1d764f1bbc617558de80f98 > size=3D11376640 > filename=3Drauc.img this one looks ok. > MY /etc/rauc/system.conf is: > > [system] > compatible=3Drauc-demo-x86 > bootloader=3Duboot > mountprefix=3D/mnt/rauc > > > [slot.rootfs.0] > device=3D/dev/mmcblk0p1 > type=3Draw > bootname=3DA this one will require a second rootfs partition to allow you installing=20 updates when running from the productive one. > But when I try to install this update using: > ./rauc install -d update.raucb > it shows following log: > Domains: 'rauc' > (rauc:21307): rauc-DEBUG: install started > (rauc:21307): rauc-DEBUG: input bundle: /home/rauc/update.raucb > Error creating proxy: Error calling StartServiceByName for de.pengutronix= .rauc: Timeout was reached > D-Bus error while installing `/home/rauc/update.raucb` There seems to be a communication issue between the command line client=20 and the service. Did you try to start the service. Do you have the d-bus=20 config installed? Could you get any log data from the service itself? > Previously I have done: > ./autogen.sh > ./configure --disable-network > make > make install > > service rauc start This looks ok so far. > LOG of > ./rauc info -d update.raucb > Domains: 'rauc' > rauc-Message: Reading bundle: update.raucb > rauc-Message: Verifying bundle... > 3069734912:error:2E09D06D:CMS routines:CMS_verify:content verify error:..= /crypto/cms/cms_smime.c:393: > > (rauc:21318): rauc-WARNING **: signature verification failed: error:2E09A= 09E:CMS routines:CMS_SignerInfo_verify_content:verification failure I assume you executed this on the target? Obviously, there is a certificate verification error. Did you set up the=20 key, cert and keychain correctly? If you want to (for test-purpose)=20 inspect the bundle without verification, you can use the `--no-verify`=20 argument. But for installation the verification is mandatory thus it=20 should work with `info`, too. > > QUESTION 2: > How to use it with uboot? Can u please elaborate how to install library t= o modify u-boot variables and environment. In the documentation there is the chapter `Interfacing with the bootloader`= : http://rauc.readthedocs.io/en/latest/integration.html#interfacing-with-the-= bootloader Did you already try what is described in there? If there is some=20 information missing please let us know. The subsection "U-Boot" also=20 points you to the u-boot example script located in the `contrib/`=20 folder. This should be a good starting point. Best regards Enrico --=20 Pengutronix e.K.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | Enrico J=C3=B6rns=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | Industrial Linux Solutions=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-5080 | Amtsgericht Hildesheim, HRA 2686=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | Fax:= =C2=A0 +49-5121-206917-5555 | _______________________________________________ RAUC mailing list =20 ------=_Part_264395_1566405131.1491368896801 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Enrico,
I am facing problems wit= h D-Bus service.
1. Er= ror creating proxy: Error calling StartServiceByName for de.pengutronix.rau= c: Timeout was reached
> D-Bus error while installing `/home/rauc/update.raucb
<= div dir=3D"ltr" id=3D"yui_3_16_0_ym19_1_1491368669960_4385">2.How to start = D-Bus service and run rauc in Daemon mode.
3.Please start some IRC chat so we can ge= t live help from your team.
 = ;
Regards
<= div id=3D"yui_3_16_0_ym19_1_1482299902594_8582" style=3D"">
<= /div>
Gurpartap = Singh
Embedded Software Engineer
Terron Microsystems Pvt. Ltd
New Delhi
<= div class=3D"qtdSeparateBR">

= On Monday, 13 March 2017 9:38 PM, Enrico Joerns <ejo@pengutronix.de>= wrote:


Hi,

On 03/09/2017 12:13 PM, g= urpartap singh wrote:
> I installed RAUC with --disabl= e-network option because of libcurl dependency issues.
&g= t; I have done below steps so far:
> Created manifest.= raucm like this
> [update]
> comp= atible=3Drauc-demo-x86
> version=3D2015.04-1
>
> [image.rootfs]
>= sha256=3D4c03d5be6780e64a604e94222a2da50e671698b9c1d764f1bbc617558de80f98<= br clear=3D"none">> size=3D11376640
> filename=3Dra= uc.img

this one looks ok.

> MY /etc/rauc/system.conf is:
>
> [system]
> compatible=3D= rauc-demo-x86
> bootloader=3Duboot
&= gt; mountprefix=3D/mnt/rauc
>
>> [slot.rootfs.0]
> device=3D/dev/= mmcblk0p1
> type=3Draw
> bootname= =3DA

this one will require a second ro= otfs partition to allow you installing
updates when runn= ing from the productive one.

> But = when I try to install this update using:
> ./rauc inst= all -d update.raucb
> it shows following log:
> Domains: 'rauc'
> (rauc:21307): rauc-DE= BUG: install started
> (rauc:21307): rauc-DEBUG: input= bundle: /home/rauc/update.raucb
> Error creating prox= y: Error calling StartServiceByName for de.pengutronix.rauc: Timeout was re= ached
> D-Bus error while installing `/home/rauc/updat= e.raucb`

There seems to be a communica= tion issue between the command line client
and the servi= ce. Did you try to start the service. Do you have the d-bus
config installed? Could you get any log data from the service itself?
> Previously I have done:
> ./autogen.sh
> ./configure --disable-ne= twork
> make
> make install
>
> service rauc start

This looks ok so far.

> LOG of
> ./rauc info -d update.raucb
> Domains: 'rauc'
> rauc-Message: Readi= ng bundle: update.raucb
> rauc-Message: Verifying bund= le...
> 3069734912:error:2E09D06D:CMS routines:CMS_ver= ify:content verify error:../crypto/cms/cms_smime.c:393:
&= gt;
> (rauc:21318): rauc-WARNING **: signature verific= ation failed: error:2E09A09E:CMS routines:CMS_SignerInfo_verify_content:ver= ification failure

I assume you execute= d this on the target?
Obviously, there is a certificate v= erification error. Did you set up the
key, cert and keyc= hain correctly? If you want to (for test-purpose)
inspec= t the bundle without verification, you can use the `--no-verify`
argument. But for installation the verification is mandatory thus= it
should work with `info`, too.


>
> QUESTION 2:
> How to use it with uboot?= Can u please elaborate how to install library to modify u-boot variables a= nd environment.


In the documenta= tion there is the chapter `Interfacing with the bootloader`:

http://rauc.readthedocs.io/en/latest/integration.html#interfacing-with-= the-bootloader

Did you already try= what is described in there? If there is some
informatio= n missing please let us know. The subsection "U-Boot" also
points you to the u-boot example script located in the `contrib/`
folder. This should be a good starting point.


Best regards

Enrico

--
Pengutronix e.K.              &nbs= p;           | Enrico J=C3=B6rns    &nb= sp;           |
Industrial Linux= Solutions                | http://ww= w.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildeshei= m, Germany | Phone: +49-5121-206917-5080 |
Amtsgericht Hi= ldesheim, HRA 2686          | Fax:  +49-512= 1-206917-5555 |


___= ____________________________________________
RAUC mailing= list


------=_Part_264395_1566405131.1491368896801-- --===============1722961661== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KUkFVQyBtYWls aW5nIGxpc3Q= --===============1722961661==--