baylibre-acme / ACME

Migrated to gitlab - BayLibre's ACME repo Manifests
https://gitlab.com/baylibre-acme/ACME
2 stars 0 forks source link

repo sync problem #1

Open hpcfapix opened 8 years ago

hpcfapix commented 8 years ago

Hello,

I am trying to checkout the source but came across this problem during "repo sync", the error is showed as follows:

~/acme-bsp$ repo sync Fetching project meta-baylibre Permission denied (publickey). Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts. Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. error: Cannot fetch meta-baylibre

error: Exited sync due to fetch errors

I use Ubuntu 14.04. Could you help me with this?

Best regards, Fangli

superna9999 commented 8 years ago

Hello,

It' s a known issue, the urls in the repo manifest are prefixed with the ssh protocol using the Github account ssh key.

Please try the "next" branch were it has been fixed, along other new features : https://github.com/baylibre-acme/ACME/tree/next

Regards, Neil

hpcfapix commented 8 years ago

Hello,

Thank you very much for your reply.

I am now able to fetch the repo, but when I am trying to build the image with the "make" command, it fails during the following command:

$ source poky/oe-init-build-env && ../poky/scripts/wic create ../meta-baylibre/sdimage-bootpart.wks -e baylibre-acme-image -o /home/fangli/Movidius/acme-bsp/build

The error message is like the following:

Summary: There were 5 ERROR messages shown, returning a non-zero exit code.

Traceback (most recent call last): File "../poky/scripts/wic", line 321, in sys.exit(main(sys.argv[1:])) File "../poky/scripts/wic", line 316, in main return hlp.invoke_subcommand(args, parser, hlp.wic_help_usage, subcommands) File "/home/fangli/Movidius/acme-bsp/poky/scripts/lib/wic/help.py", line 95, in invoke_subcommand subcommands.get(args[0], subcommand_error)[0](args[1:], usage) File "../poky/scripts/wic", line 222, in wic_create_subcommand if not os.path.isdir(rootfs_dir): File "/usr/lib/python2.7/genericpath.py", line 41, in isdir st = os.stat(s) TypeError: coercing to Unicode: need string or buffer, NoneType found

I don't know if the arguments I give are correct as it seems that the rootfs_dir is None, which causing the problem.

Besides, if I want to make the toolchain for other software cross compiling, what should I do?

Best regards, Fangli

----- Original Message ----- From: "Neil Armstrong" notifications@github.com To: "baylibre-acme/ACME" ACME@noreply.github.com Cc: "hpcfapix" fangli.pi@hlrs.de, "Author" author@noreply.github.com Sent: Friday, September 16, 2016 3:36:33 PM Subject: Re: [baylibre-acme/ACME] repo sync problem (#1)

Hello,

It' s a known issue, the urls in the repo manifest are prefixed with the ssh protocol using the Github account ssh key.

Please try the "next" branch were it has been fixed, along other new features : https://github.com/baylibre-acme/ACME/tree/next

Regards, Neil

You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub:

https://github.com/baylibre-acme/ACME/issues/1#issuecomment-247602152

High Performance Computing Center (HLRS)
University of Stuttgart
Nobelstr. 19
D-70569 Stuttgart, Germany

phone: ++49-711-685-60442

superna9999 commented 8 years ago

Hi,

I will try to track the error, but we did not have this behaviour before, this is a Yocto python tool... I will check the parameters for sure.

In the meantime, can you give me your system setup ? version ? and python version ?

Thanks, Neil

superna9999 commented 8 years ago

There is one patch that was not applied in the next branch, can you try it :

baylibre/meta-baylibre@b2e95fff805c077890076ce24202f2f5d42ca657

The wic tool uses the env variable IMAGE_ROOTFS, DEPLOY_DIR_IMAGE and STAGING_DIR_NATIVE to get rootfs_dir, kernel_dir and native_sysroot. forcing bash for the may solve the issue.

Concerning the toolchain, you can run :

$ source poky/oe-init-build-env
$ bitbake meta-toolchain

To generate a compatible toolchain, but this is standard Yocto/OpenEmbedded commands.

hpcfapix commented 8 years ago

Hi,

I am now working under Ubuntu 14.04.1, arch x86_64 GNU/Linux and python version is 2.7.6

I couldn't execute "source" command in the Makefile so I run the commands manually.

Thanks!

Regards, Fangli

----- Original Message ----- From: "Neil Armstrong" notifications@github.com To: "baylibre-acme" ACME@noreply.github.com Cc: "hpcfapix" fangli.pi@hlrs.de, "Author" author@noreply.github.com Sent: Monday, September 19, 2016 2:33:23 PM Subject: Re: [baylibre-acme/ACME] repo sync problem (#1)

Hi,

I will try to track the error, but we did not have this behaviour before, this is a Yocto python tool... I will check the parameters for sure.

In the meantime, can you give me your system setup ? version ? and python version ?

Thanks, Neil

You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub:

https://github.com/baylibre-acme/ACME/issues/1#issuecomment-247980543

High Performance Computing Center (HLRS)
University of Stuttgart
Nobelstr. 19
D-70569 Stuttgart, Germany

phone: ++49-711-685-60442

superna9999 commented 8 years ago

Hi, I merged the fix in the main and next branches, simply running:

$ repo sync

Will update meta-baylibre with the fixed Makefile.

superna9999 commented 8 years ago

Hi,

You can test the b1 release you can find here: https://github.com/baylibre-acme/ACME/releases/tag/b1

Neil

hpcfapix commented 8 years ago

Hi,

Thanks very much for your help. Sorry there is one more question following.

As I am trying to use in one application two acme boards with network connection, I want to change the default hostname before building the new image.

I have found this file "~/acme-bsp/meta-baylibre/meta-baylibre-acme/recipes-bsp/u-boot/uEnv.txt" containing a hostname setting:

hostname=baylibre-acme

Is this the only one I need to change?

Best regards, Fangli

----- Original Message ----- From: "Neil Armstrong" notifications@github.com To: "baylibre-acme" ACME@noreply.github.com Cc: "hpcfapix" fangli.pi@hlrs.de, "Author" author@noreply.github.com Sent: Wednesday, September 21, 2016 11:50:32 AM Subject: Re: [baylibre-acme/ACME] repo sync problem (#1)

Hi,

You can test the b1 release you can find here: https://github.com/baylibre-acme/ACME/releases/tag/b1

Neil

You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub:

https://github.com/baylibre-acme/ACME/issues/1#issuecomment-248564076

High Performance Computing Center (HLRS)
University of Stuttgart
Nobelstr. 19
D-70569 Stuttgart, Germany

phone: ++49-711-685-60442

superna9999 commented 8 years ago

Hi,

Yes this is the line to change, but if you only need to change the hostname between multiple ACME boards, you can simply change this line in the first boot partition of each SD Card.

Note that re-building the entire image is not our target, if you have packages or features missing from the image, we can provide updated images.

Could you clarify your needs ?

Regards, Neil