0

I have built Yocto AGL(6.0.0) image for RCar-salvator-xs board and flashed its hyperflash memory. Now, I want to perform PCIe related investigation, for that I want to use lspci command. But, After ligging in as a root in flashed AGL image and executing lspci command it gives command not found.

How can I include pciutils in AGL source code and build it to use lspci command.

I am new to Yocto and AGL.

Any help will be much appreciated.

  • You can add `IMAGE_INSTALL += pciutils` or `IMAGE_INSTALL_append = pciutils` in `conf/local.conf` or in your image recipe. – Parthiban Oct 26 '18 at 08:05
  • Thank you Parthiban for reply. I tried adding it in local.conf but I am getting error while bitbake build ERROR: ParseError at /home/cac32793/workspace_agl/build/conf/local.conf:2: unparsed line: 'IMAGE_INSTALL += pciutils' Can Please tell me in which meta-layer and .bb file I have to add this. – user10561367 Oct 26 '18 at 08:39
  • I will copy this as answer now – Parthiban Oct 26 '18 at 08:40
  • Dear Parthiban san, Could you help me in the above comment problem? – user10561367 Oct 26 '18 at 08:44
  • I have missed the double quotes across the string. Check the answer now. You can add in local.conf or image recipe. What is the image recipe which you are trying to build? – Parthiban Oct 26 '18 at 08:46
  • I am building agl-demo-platform – user10561367 Oct 26 '18 at 08:52
  • https://git.automotivelinux.org/AGL/meta-agl-demo/tree/recipes-platform/images/agl-demo-platform.bb?h=master#n13 You can add "pciutils" in Line 14 – Parthiban Oct 26 '18 at 08:52
  • got it .Thank you very much Parthiban san. – user10561367 Oct 26 '18 at 08:56

1 Answers1

0

You can add

IMAGE_INSTALL += "pciutils"

or

IMAGE_INSTALL_append = "pciutils"

in conf/local.conf or in your image recipe.

Parthiban
  • 2,130
  • 2
  • 14
  • 27
  • Hi Parthiban san, Thank you for your continuous support. I build with above option (added in local.conf). Build was successful but when I flashed it on board same error occurs. (lspci command not found) Even I am getting error for PCIe - PCIe link down. Could you please help me with that. – user10561367 Oct 30 '18 at 08:28
  • @user10561367: Do you have `ls /sbin/lspci` in your target? – Parthiban Oct 30 '18 at 09:08
  • 1
    no its not there. but bitbake -s | grep -i pciutils command shows the pciutils. Is there any other method to add lspci in bin or sbin? – user10561367 Oct 30 '18 at 09:58
  • If you have compiled the with `bitbake pciutils`, you can find the binary in `tmp/work/armXXX/pciutils//image/` directory or `deploy-ipk/rpm` should have the package. You can manually copy this to target and try it. – Parthiban Oct 30 '18 at 10:33
  • Thank you I will try likewise. – user10561367 Oct 30 '18 at 10:38