All of lore.kernel.org
 help / color / mirror / Atom feed
* morty build fails firmware_imx fetcher
@ 2017-03-24 21:22 Eckhardt, Andrew           UTAS
  2017-03-24 23:09 ` Max Krummenacher
  0 siblings, 1 reply; 4+ messages in thread
From: Eckhardt, Andrew           UTAS @ 2017-03-24 21:22 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 2849 bytes --]

Hi all,

Because our proxy server requires http format. I have changed SRC_URI in meta-freescale/recipes-bsp/firmware-imx/firmware-imx.inc

From:
           git://git.freescale.com/imx/imx-firmware.git;branch=${SRCBRANCH};destsuffix=${S}/git "

To:
          http://git.freescale.com/git/cgit.cgi/imx/imx-firmware.git;branch=${SRCBRANCH};destsuffix=${S}/git "

Now bitbake actually gets an html file which start like this...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en'>
<head>
<title>imx-firmware.git - i.MX Firmware
</title>
<meta name='generator' content='cgit v0.9.0.2-39-g756e'/>
<meta name='robots' content='index, nofollow'/>
<link rel='stylesheet' type='text/css' href='/cgit.css'/>
<link rel='alternate' title='Atom feed' href='http://git.freescale.com/git/cgit.cgi/imx/imx-firmware.git/atom/?h=master' type='application/atom+xml'/>
</head>
<body>
Ubuntu1A

...and so has checksum failure.

WARNING: firmware-imx-1_5.4-r0 do_fetch: Checksum mismatch for local file downloads/imx-firmware.git
Cleaning and trying again.
WARNING: firmware-imx-1_5.4-r0 do_fetch: Renaming /downloads/imx-firmware.git to /downloads/imx-firmware.git_bad-checksum_6aa357175f29cf32710c9677bc7cdaa8
...
imx-firmware.git' has md5 checksum 6aa357175f29cf32710c9677bc7cdaa8 when dae846ca2fc4504067f725f501491adf was expected
imx-firmware.git' has sha256 checksum 44c0250e54e11a4b72741226da43d184872f5f97d08edb6645f26c8c0422a5dd when c5bd4bff48cce9715a5d6d2c190ff3cd2262c7196f7facb9b0eda231c92cc223 was expected

... and fetcher suggests that...

If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
SRC_URI[md5sum] = "6aa357175f29cf32710c9677bc7cdaa8"
SRC_URI[sha256sum] = "44c0250e54e11a4b72741226da43d184872f5f97d08edb6645f26c8c0422a5dd"

...if I make the change to SRC_URI[md5sum] then...

File: ' /downloads/firmware-imx-5.4.bin' has md5 checksum dae846ca2fc4504067f725f501491adf when 6aa357175f29cf32710c9677bc7cdaa8 was expected
File: ' /downloads/firmware-imx-5.4.bin' has sha256 checksum c5bd4bff48cce9715a5d6d2c190ff3cd2262c7196f7facb9b0eda231c92cc223 when 44c0250e54e11a4b72741226da43d184872f5f97d08edb6645f26c8c0422a5dd was expected

If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
SRC_URI[md5sum] = "dae846ca2fc4504067f725f501491adf"
SRC_URI[sha256sum] = "c5bd4bff48cce9715a5d6d2c190ff3cd2262c7196f7facb9b0eda231c92cc223"

...  so now the incoming file matched the original SRC_URI[md5sum] but not the new one !!!

Very strange behavior.


Andrew Eckhardt


[-- Attachment #2: Type: text/html, Size: 7151 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: morty build fails firmware_imx fetcher
  2017-03-24 21:22 morty build fails firmware_imx fetcher Eckhardt, Andrew           UTAS
@ 2017-03-24 23:09 ` Max Krummenacher
  2017-03-27 19:50   ` [External] " Eckhardt, Andrew           UTAS
  0 siblings, 1 reply; 4+ messages in thread
From: Max Krummenacher @ 2017-03-24 23:09 UTC (permalink / raw)
  To: Eckhardt, Andrew           UTAS, meta-freescale

Hi Andrew

Am Freitag, den 24.03.2017, 21:22 +0000 schrieb Eckhardt, Andrew           UTAS:
> Hi all,
> 
> Because our proxy server requires http format. I have changed SRC_URI in meta-freescale/recipes
> -bsp/firmware-imx/firmware-imx.inc
> 
> From:
>            git://git.freescale.com/imx/imx-firmware.git;branch=${SRCBRANCH};destsuffix=${S}/git "
> 
> To:
>           
> http://git.freescale.com/git/cgit.cgi/imx/imx-firmware.git;branch=${SRCBRANCH};destsuffix=${S}/git
>  "
> 
> Now bitbake actually gets an html file which start like this...

The leading git:// specifies that you want to download a git repository. If you want to use http in
place of the native git protocol you specify that in a protocol=<protocol> parameter.
So you would change to:

git://git.freescale.com/imx/imx-firmware.git;branch=${SRCBRANCH};destsuffix=${S}/git;protocol=http "

https://www.yoctoproject.org/docs/2.3/bitbake-user-manual/bitbake-user-manual.html#git-fetcher

Max



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [External] Re: morty build fails firmware_imx fetcher
  2017-03-24 23:09 ` Max Krummenacher
@ 2017-03-27 19:50   ` Eckhardt, Andrew           UTAS
  2017-03-27 22:02     ` Otavio Salvador
  0 siblings, 1 reply; 4+ messages in thread
From: Eckhardt, Andrew           UTAS @ 2017-03-27 19:50 UTC (permalink / raw)
  To: Max Krummenacher, meta-freescale

Hi Max,

It gets more interesting.  I have done as you suggested:

SRC_URI = "${FSL_MIRROR}/firmware-imx-${PV}.bin;fsl-eula=true \
           git://git.freescale.com/imx/imx-firmware.git;branch=${SRCBRANCH};destsuffix=${S}/git;protocol=http"

but am now getting "Unable to fetch URL...".

WARNING: firmware-imx-1_5.4-r0 do_fetch: Failed to fetch URL git://git.freescale.com/imx/imx-firmware.git;branch=master;destsuffix=/home/aeckhardt/warp7_morty/build/tmp/work/all-poky-linux/firmware-imx/1_5.4-r0/firmware-imx-5.4/git;protocol=http, attempting MIRRORS if available
ERROR: firmware-imx-1_5.4-r0 do_fetch: Fetcher failure: Fetch command ...<some stuff deleted here>...
git -c core.fsyncobjectfiles=0 clone --bare --mirror http://git.freescale.com/imx/imx-firmware.git /home/aeckhardt/warp7_morty/downloads//git2/git.freescale.com.imx.imx-firmware.git --progress failed with exit code 128, output:
Cloning into bare repository '/home/aeckhardt/warp7_morty/downloads//git2/git.freescale.com.imx.imx-firmware.git'...
fatal: repository 'http://git.freescale.com/imx/imx-firmware.git/' not found

ERROR: firmware-imx-1_5.4-r0 do_fetch: Fetcher failure for URL: 'git://git.freescale.com/imx/imx-firmware.git;branch=master;destsuffix=/home/aeckhardt/warp7_morty/build/tmp/work/all-poky-linux/firmware-imx/1_5.4-r0/firmware-imx-5.4/git;protocol=http'. Unable to fetch URL from any source.
ERROR: firmware-imx-1_5.4-r0 do_fetch: Function failed: base_do_fetch
ERROR: Logfile of failure stored in: /home/aeckhardt/warp7_morty/build/tmp/work/all-poky-linux/firmware-imx/1_5.4-r0/temp/log.do_fetch.5390
ERROR: Task (/home/aeckhardt/warp7_morty/sources/meta-freescale/recipes-bsp/firmware-imx/firmware-imx_5.4.bb:do_fetch) failed with exit code '1'

BTW I have git version 1.9.1 installed here.

Andrew

-----Original Message-----
From: Max Krummenacher [mailto:max.oss.09@gmail.com] 
Sent: Friday, March 24, 2017 7:10 PM
To: Eckhardt, Andrew UTAS; meta-freescale@yoctoproject.org
Subject: [External] Re: [meta-freescale] morty build fails firmware_imx fetcher

Hi Andrew

Am Freitag, den 24.03.2017, 21:22 +0000 schrieb Eckhardt, Andrew           UTAS:
> Hi all,
> 
> Because our proxy server requires http format. I have changed SRC_URI 
> in meta-freescale/recipes -bsp/firmware-imx/firmware-imx.inc
> 
> From:
>            git://git.freescale.com/imx/imx-firmware.git;branch=${SRCBRANCH};destsuffix=${S}/git "
> 
> To:
>           
> https://urldefense.proofpoint.com/v2/url?u=http-3A__git.freescale.com_
> git_cgit.cgi_imx_imx-2Dfirmware.git-3Bbranch-3D-24&d=DwICaQ&c=ilBQI1lupc9Y65XwNblLtw&r=DFws60RUCJytQoFsynENYItS85SMkWbHZCf_kcVUiYY&m=QFDq1PbJ5ytfk2hz1gZ_f7TegaTHNmNYFre9nSCRqcI&s=uZFpBUAZGG1HPVS3E3oxHtQ9kR6FvP6DgIG1MRhNLkY&e= {SRCBRANCH};destsuffix=${S}/git  "
> 
> Now bitbake actually gets an html file which start like this...

The leading git:// specifies that you want to download a git repository. If you want to use http in place of the native git protocol you specify that in a protocol=<protocol> parameter.
So you would change to:

git://git.freescale.com/imx/imx-firmware.git;branch=${SRCBRANCH};destsuffix=${S}/git;protocol=http "

https://urldefense.proofpoint.com/v2/url?u=https-3A__www.yoctoproject.org_docs_2.3_bitbake-2Duser-2Dmanual_bitbake-2Duser-2Dmanual.html-23git-2Dfetcher&d=DwICaQ&c=ilBQI1lupc9Y65XwNblLtw&r=DFws60RUCJytQoFsynENYItS85SMkWbHZCf_kcVUiYY&m=QFDq1PbJ5ytfk2hz1gZ_f7TegaTHNmNYFre9nSCRqcI&s=kLeOPH6xpg4hndfSwOQ1rQQQ0ov7FNNaG3eRNMLDBL4&e= 

Max


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [External] Re: morty build fails firmware_imx fetcher
  2017-03-27 19:50   ` [External] " Eckhardt, Andrew           UTAS
@ 2017-03-27 22:02     ` Otavio Salvador
  0 siblings, 0 replies; 4+ messages in thread
From: Otavio Salvador @ 2017-03-27 22:02 UTC (permalink / raw)
  To: Eckhardt, Andrew UTAS; +Cc: meta-freescale

On Mon, Mar 27, 2017 at 4:50 PM, Eckhardt, Andrew           UTAS
<Andrew.Eckhardt@utas.utc.com> wrote:
> It gets more interesting.  I have done as you suggested:
>
> SRC_URI = "${FSL_MIRROR}/firmware-imx-${PV}.bin;fsl-eula=true \
>            git://git.freescale.com/imx/imx-firmware.git;branch=${SRCBRANCH};destsuffix=${S}/git;protocol=http"
>
> but am now getting "Unable to fetch URL...".
>
> WARNING: firmware-imx-1_5.4-r0 do_fetch: Failed to fetch URL git://git.freescale.com/imx/imx-firmware.git;branch=master;destsuffix=/home/aeckhardt/warp7_morty/build/tmp/work/all-poky-linux/firmware-imx/1_5.4-r0/firmware-imx-5.4/git;protocol=http, attempting MIRRORS if available
> ERROR: firmware-imx-1_5.4-r0 do_fetch: Fetcher failure: Fetch command ...<some stuff deleted here>...
> git -c core.fsyncobjectfiles=0 clone --bare --mirror http://git.freescale.com/imx/imx-firmware.git /home/aeckhardt/warp7_morty/downloads//git2/git.freescale.com.imx.imx-firmware.git --progress failed with exit code 128, output:
> Cloning into bare repository '/home/aeckhardt/warp7_morty/downloads//git2/git.freescale.com.imx.imx-firmware.git'...
> fatal: repository 'http://git.freescale.com/imx/imx-firmware.git/' not found
>
> ERROR: firmware-imx-1_5.4-r0 do_fetch: Fetcher failure for URL: 'git://git.freescale.com/imx/imx-firmware.git;branch=master;destsuffix=/home/aeckhardt/warp7_morty/build/tmp/work/all-poky-linux/firmware-imx/1_5.4-r0/firmware-imx-5.4/git;protocol=http'. Unable to fetch URL from any source.
> ERROR: firmware-imx-1_5.4-r0 do_fetch: Function failed: base_do_fetch
> ERROR: Logfile of failure stored in: /home/aeckhardt/warp7_morty/build/tmp/work/all-poky-linux/firmware-imx/1_5.4-r0/temp/log.do_fetch.5390
> ERROR: Task (/home/aeckhardt/warp7_morty/sources/meta-freescale/recipes-bsp/firmware-imx/firmware-imx_5.4.bb:do_fetch) failed with exit code '1'
>
> BTW I have git version 1.9.1 installed here.

I am not sure Freescale's old server supports http anymore.

Yes, it does not:

% git ls-remote http://git.freescale.com/imx/imx-firmware.git/
                                    fatal: repository
'http://git.freescale.com/imx/imx-firmware.git/' not found


So you need to ask your IT personal to fix the git protocol to work.
You can locally test it using:

% git ls-remote git://git.freescale.com/imx/imx-firmware.git/

951c1363abe95dd75ab3e9447f640d7807240236 HEAD
951c1363abe95dd75ab3e9447f640d7807240236 refs/heads/master
850792327419fee42e24c9fc6bee48d58005281e refs/heads/pico-brillo-20160510
850792327419fee42e24c9fc6bee48d58005281e refs/heads/pico-brillo-20160525
dc0f0c3d70c4e6a6825d5059bf4ddc589a9d586b refs/heads/pico-brillo-20160623
cb224b4dbde8a7f912d5fdd9183c9a11e90284ef refs/heads/pico-brillo-20160721
43627cc213d5192293637933de3aecf1f51b1c22 refs/heads/pico-brillo-20160727
4349a7b346d19e199080c6a710d05c15e8c09679 refs/heads/pico-brillo-20160825
29ced5d4f46273d9753c9e0e3d9296f3103f4bf4 refs/heads/pico-brillo-20160921

So, git protocol is a need.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-27 22:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-24 21:22 morty build fails firmware_imx fetcher Eckhardt, Andrew           UTAS
2017-03-24 23:09 ` Max Krummenacher
2017-03-27 19:50   ` [External] " Eckhardt, Andrew           UTAS
2017-03-27 22:02     ` Otavio Salvador

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.