8 Replies Latest reply on Apr 15, 2016 10:11 AM by PabloM_Intel

    PCI problems after custom build

    DanielFitzgerald

      have built new kernel and have the galileo board all working and booting up.  

      uname -a

      Linux quark 3.14.28-ltsi-yocto-standard #1 Mon Mar 28 17:51:30 AEST 2016 i586 GNU/Linux

      Using BSP_Sources_and_Docs_for_Intel_Quark_v1.2.1

       

      I have tried looking at dmsg output, lspci, lsmod, etc, but nothing is showing up for the PCI card.

      i can't see any detection on the pci bus that an intel wifi card is detected or in dmsg output either (i have that plugged on the board also).

       

      lspci gives me:

      00:00.0 Class 0600: 8086:0958

      00:14.0 Class 0805: 8086:08a7

      00:14.1 Class 0700: 8086:0936

      00:14.2 Class 0c03: 8086:0939

      00:14.3 Class 0c03: 8086:0939

      00:14.4 Class 0c03: 8086:093a

      00:14.5 Class 0700: 8086:0936

      00:14.6 Class 0200: 8086:0937

      00:14.7 Class 0200: 8086:0937

      00:15.0 Class 0c80: 8086:0935

      00:15.1 Class 0c80: 8086:0935

      00:15.2 Class 0c80: 8086:0934

      00:17.0 Class 0604: 8086:11c3

      00:17.1 Class 0604: 8086:11c4

      00:1f.0 Class 0601: 8086:095e

      01:00.0 Class 0280: 8086:08b1

       

      which to me seems like nothing has been detected on the pci bus.

       

      one other strange thing is that the lspci version or whatever it is i have, doesn't seem to have the normal lspci options from linux.  see below:

      root@quark:~# lspci --help

      BusyBox v1.22.1 (2016-03-28 18:15:41 AEST) multi-call binary.

      Usage: lspci [-mk]

       

      This is really strange.  No idea what BusyBox is, etc.

       

      Please help - thanks!

       

      Daniel

        • 1. Re: PCI problems after custom build
          DanielFitzgerald

          ok, so BusyBox is a utility for embedded linux that includes a bunch of known commands.

          the full output (using -k option) is below for lspci

           

          root@quark:~# lspci -k

          00:00.0 Class 0600: 8086:0958 iosf_mbi_pci

          00:14.0 Class 0805: 8086:08a7 sdhci-pci

          00:14.1 Class 0700: 8086:0936 intel_quark_hsuart_dma

          00:14.2 Class 0c03: 8086:0939 pch_udc

          00:14.3 Class 0c03: 8086:0939 ehci-pci

          00:14.4 Class 0c03: 8086:093a ohci-pci

          00:14.5 Class 0700: 8086:0936 intel_quark_hsuart_dma

          00:14.6 Class 0200: 8086:0937 stmmaceth

          00:14.7 Class 0200: 8086:0937

          00:15.0 Class 0c80: 8086:0935 pxa2xx_spi_pci

          00:15.1 Class 0c80: 8086:0935 pxa2xx_spi_pci

          00:15.2 Class 0c80: 8086:0934 intel_qrk_gip

          00:17.0 Class 0604: 8086:11c3 pcieport

          00:17.1 Class 0604: 8086:11c4 pcieport

          00:1f.0 Class 0601: 8086:095e lpc_sch

          01:00.0 Class 0280: 8086:08b1

           

          still not looking like it's detecting the wifi card on the PCI bus.  Nothing on the dmesg as my previous post.    I'm really struggling here with this.  Any help for me to sort out the PCI properly from the build I mentioned above I would really appreciate.

          Some other information is that my system is booting from the following grub menu config:

           

          title Quark X1000 kernel-MassStorage initrd-MassStorage RootFS-MassStorage IMR-On IO-APIC/HPET NoEMU debug

              root (hd0,0)

              kernel /bzImage root=/dev/ram0 console=ttyS1,115200n8 earlycon=uart8250,mmio32,$EARLY_CON_ADDR_REPLACE,115200n8 reboot=efi,warm apic=debug rw LABEL=boot debugshell=5 rootimage=image-full-quark.ext3

              initrd /core-image-minimal-initramfs-quark.cpio.gz

           

           

          thanks

          Daniel

          • 2. Re: PCI problems after custom build
            DanielFitzgerald

            update:   the last line of the lspci output i believe actually is the card (starting with 01:00.0)

             

            01:00.0 Class 0280: 8086:08b1



            • 3. Re: PCI problems after custom build
              PabloM_Intel

              Hi DanielFitzgerald,

               

              Is it working now? Why don’t you try to enable the WiFi in your board to determine if the card is indeed being recognized? Have you tried that before?

              For instructions on this, follow this guide: https://software.intel.com/en-us/get-started-galileo-linux-step4.

               

              Regards,

              Pablo

              • 4. Re: PCI problems after custom build
                DanielFitzgerald

                Hi Pablo,

                 

                No it's not working.  Not sure if you read my post or my other post correctly.

                 

                I tried the very simple steps at the url you provided and here's the output:

                 

                root@quark:~# connmanctl

                connmanctl> enable wifi

                Error wifi: Method "SetProperty" with signature "sv" on interface "net.connman.Technology" doesn't exist

                 

                connmanctl> services

                connmanctl>

                --

                 

                so no output on "Services" and the error as above.   the  pci -v output is:

                root@quark:~# lspci -k

                00:00.0 Class 0600: 8086:0958 iosf_mbi_pci

                00:14.0 Class 0805: 8086:08a7 sdhci-pci

                00:14.1 Class 0700: 8086:0936 intel_quark_hsuart_dma

                00:14.2 Class 0c03: 8086:0939 pch_udc

                00:14.3 Class 0c03: 8086:0939 ehci-pci

                00:14.4 Class 0c03: 8086:093a ohci-pci

                00:14.5 Class 0700: 8086:0936 intel_quark_hsuart_dma

                00:14.6 Class 0200: 8086:0937 stmmaceth

                00:14.7 Class 0200: 8086:0937

                00:15.0 Class 0c80: 8086:0935 pxa2xx_spi_pci

                00:15.1 Class 0c80: 8086:0935 pxa2xx_spi_pci

                00:15.2 Class 0c80: 8086:0934 intel_qrk_gip

                00:17.0 Class 0604: 8086:11c3 pcieport

                00:17.1 Class 0604: 8086:11c4 pcieport

                00:1f.0 Class 0601: 8086:095e lpc_sch

                01:00.0 Class 0280: 8086:08b1

                root@quark:~#

                 

                so the last line i think detects the card but there is not output of "intel wirelss device"...    or anything like that.

                there is something wrong.

                • 5. Re: PCI problems after custom build
                  PabloM_Intel

                  Hi Daniel,

                   

                  Have you used any of the default images provided in the Download website? I would like to know if you’re having this issue with every image you use or only with your custom build. Also, could you please provide the changes that you made to your kernel? We would like to see if there’s something specific triggering the issue with the PCI driver.

                   

                  Regards,

                  Pablo

                  • 6. Re: PCI problems after custom build
                    DanielFitzgerald

                    Hi Pablo,

                     

                    Yes I've used the latest default SD card images provided by Intel (search for my other post) but there's MORE issues with that.  The kernel is so old (3.8.7) and doesn't support the latest wifi cards.

                    With the intel image i can see the wifi card detected on the PCI, but the kernel module can't load the latest firmware (refer other post).

                    If i use a later kernel from the provided intel dowload links (linux v3.14) (all described in this post) and i followed the exact instructions in the document i referenced above, I have the issue i've described here.

                    only kernel config is as follows (to enable support for the wifi card):

                    • Device Drivers -> Network device support -> Wireless LAN -> Intel Wireless Wifi MVM Firmware support


                    I have been able to get everything working with someone else's linux v3.19 build.  Not sure what modifications he did from the standard one.

                     

                    The point is that the downloads and setup scripts and build provided by latest files from intel and BSP listed above don't work.

                    • 7. Re: PCI problems after custom build
                      PabloM_Intel

                      Hi Daniel,

                       

                      Unfortunately, not all features have been tested with the most recent kernel releases. The instructions have been written for various embedded devices and as you can see the image builds successfully, but some features might give some troubles like the one you’re having now. The document was developed around the Quark SoC, not exclusively around the Galileo board. Kernel 3.8.7 is the one fully tested with the Galileo, so that’s the one that will work with every feature of the board.

                      Regarding your WiFi card, which one are you using? Are you sure that the card is not supported at all by the Galileo board? (Using the 3.8.7 kernel that is)

                       

                      Regards,

                      Pablo

                      • 8. Re: PCI problems after custom build
                        PabloM_Intel

                        Hi Daniel,

                         

                        Have you kept investigating about the WiFi card or about the kernel implementation?

                         

                        Regards,

                        Pablo