Help Recognizing PCI Device

I was told to build my OpenWRT with the AACRAID driver which I have done but now I'm stuck as to the next step. I can't tell if my router is detecting it on the PCI-E slot.

Is there a way to connect to and manage the RAID controller?
There is lots of information here:
http://download.adaptec.com/pdfs/user_guides/cli_v1_06_21062_users_guide.pdf

I'm just not sure how to apply it to OpenWRT. They call for installing ARCCONF

root@OpenWrt:~# lspci 
00:00.0 PCI bridge: Qualcomm Device 1001
01:00.0 Network controller: Qualcomm Atheros Device 0056

OK, "I cheated" -- install pciutils

dmesg should also provide clues

[    0.078631] OF: PCI: host bridge /soc/pci@40000000 ranges:
[    0.078667] OF: PCI:    IO 0x40200000..0x402fffff -> 0x40200000
[    0.078686] OF: PCI:   MEM 0x40300000..0x40ffffff -> 0x40300000
[    0.291718] qcom-pcie 40000000.pci: link up
[    0.291869] qcom-pcie 40000000.pci: PCI host bridge to bus 0000:00
[    0.291891] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.291908] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff] (bus address [0x40200000-0x402fffff])
[    0.291922] pci_bus 0000:00: root bus resource [mem 0x40300000-0x40ffffff]
[    0.291963] pci 0000:00:00.0: [17cb:1001] type 01 class 0x060400
[    0.292000] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    0.292058] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.292258] PCI: bus0: Fast back to back transfers disabled
[    0.292462] pci 0000:01:00.0: [168c:0056] type 00 class 0x028000
[    0.292672] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.293341] pci 0000:01:00.0: PME# supported from D0 D3hot
[    0.293632] PCI: bus1: Fast back to back transfers disabled
[    0.293683] pci 0000:00:00.0: BAR 8: assigned [mem 0x40400000-0x405fffff]
[    0.293700] pci 0000:00:00.0: BAR 0: assigned [mem 0x40300000-0x40300fff 64bit]
[    0.293725] pci 0000:01:00.0: BAR 0: assigned [mem 0x40400000-0x405fffff 64bit]
[    0.293801] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    0.293817] pci 0000:00:00.0:   bridge window [mem 0x40400000-0x405fffff]
[    0.294602] pcieport 0000:00:00.0: AER enabled with IRQ 96
1 Like

Well I installed pciutils

root@OpenWrt:~# dmsg
-ash: dmsg: not found
root@OpenWrt:~# lspci
-ash: lspci: not found
root@OpenWrt:~# opkg install pciutils
Package pciutils (3.5.6-1) installed in root is up to date.

Help? :sob:

Coffee suggested, at least for the missing e in dmesg

lspci is more puzzling. On my machine, it shows

root@OpenWrt:~# opkg files pciutils
Package pciutils (3.6.2-1) is installed on root and has the following files:
/usr/sbin/lspci
/usr/sbin/setpci
/usr/sbin/update-pciids
/usr/share/pci.ids.gz
root@OpenWrt:~# opkg files pciutils
Package pciutils (3.5.6-1) is installed on root and has the following files:
/usr/sbin/lspci
/usr/sbin/setpci
/usr/sbin/update-pciids
/usr/share/pci.ids.gz
root@OpenWrt:~# cd /usr/sbin
root@OpenWrt:/usr/sbin# ls
brctl              ip6tables-restore  ntpd-hotplug       ubiformat
chroot             ip6tables-save     odhcp6c            ubimkvol
crond              iptables           odhcpd             ubinfo
dnsmasq            iptables-restore   odhcpd-update      ubinize
dropbear           iptables-save      opkg-key           ubirename
e2fsck             iw                 pppd               ubirmvol
fsck.ext2          lspci              setpci             ubirsvol
fsck.ext3          mke2fs             tgtadm             ubiupdatevol
fsck.ext4          mkfs.ext2          tgtd               uhttpd
fw_printenv        mkfs.ext3          ubiattach          update-pciids
fw_setenv          mkfs.ext4          ubiblock           wpa_supplicant
hostapd            mkfs.f2fs          ubicrc32           wpad
ip6tables          ntpd               ubidetach          xtables-multi
root@OpenWrt:/usr/sbin# lspci
-ash: lspci: not found

:sob::sob::sob::sob::sob::sob:

ha I didn't see the missing e I will try again. Coffee is needed, yes.

1 Like

if you are in the folder you need to use ./lspci it will take lspci in path if not
also use dmesg no dmsg

1 Like

The -ash: lspci: not found error will also happen if you installed the repository package on a non-musl-libc build. Did you build a custom image with glibc or uclibc instead of musl libc? If so, you can't use packages from the online repository.

3 Likes

I had forgotten about that "unhelpful" message from ash, when an executable can't find its link dependencies. It's not the executable that can't be found, but what it needs to run.

@jow This was built with glibc to support what I believe are dependencies for the tgt package. Says "selects 'blah blah blah'" and one of those 'blahs' needs glibc to be selected. Am I mistaken that they are needed to support tgt?

Does this affect all packages meaning I will need to include them in my build to use them/build them myself to add later?

Yes, I use tgt with musl, but AIO must be first enabled, a dumb reverse dependency

Ok cool. There was that one package it selects when enable I thought was required. I'll change back to musl.

Ok my temp build with pciutils is working now. lspci doesn't show any other devices than normal and dmesg shows things I don't know what I'm looking at to be honest. I have 3 PCI-e ports, 2 with wireless cards. The 3rd is an adaptec raid card connected via mini pci-e to x16 riser adapter.

[    0.017887] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.017898] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.017903] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.017909] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.017926] pci 0000:00:01.0: [11ab:6820] type 01 class 0x060400
[    0.018010] pci 0000:00:02.0: [11ab:6820] type 01 class 0x060400
[    0.018082] pci 0000:00:03.0: [11ab:6820] type 01 class 0x060400
[    0.018153] PCI: bus0: Fast back to back transfers disabled
[    0.018159] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.018166] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.018172] pci 0000:00:03.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.018222] pci 0000:01:00.0: [168c:002e] type 00 class 0x028000
[    0.018250] pci 0000:01:00.0: reg 0x10: [mem 0xe8000000-0xe800ffff 64bit]
[    0.018337] pci 0000:01:00.0: supports D1
[    0.018341] pci 0000:01:00.0: PME# supported from D0 D1 D3hot
[    0.018400] PCI: bus1: Fast back to back transfers disabled
[    0.018407] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.018458] pci 0000:02:00.0: [168c:003c] type 00 class 0x028000
[    0.018484] pci 0000:02:00.0: reg 0x10: [mem 0xea000000-0xea1fffff 64bit]
[    0.018512] pci 0000:02:00.0: reg 0x30: [mem 0xea200000-0xea20ffff pref]
[    0.018572] pci 0000:02:00.0: supports D1 D2
[    0.018629] PCI: bus2: Fast back to back transfers disabled
[    0.018636] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    0.018674] PCI: bus3: Fast back to back transfers enabled
[    0.018680] pci_bus 0000:03: busn_res: [bus 03-ff] end is updated to 03
[    0.018699] pci 0000:00:01.0: BAR 8: assigned [mem 0xe0000000-0xe00fffff]
[    0.018705] pci 0000:00:02.0: BAR 8: assigned [mem 0xe0200000-0xe04fffff]
[    0.018712] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe000ffff 64bit]
[    0.018723] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.018729] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    0.018736] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0200000-0xe03fffff 64bit]
[    0.018747] pci 0000:02:00.0: BAR 6: assigned [mem 0xe0400000-0xe040ffff pref]
[    0.018752] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.018757] pci 0000:00:02.0:   bridge window [mem 0xe0200000-0xe04fffff]
[    0.018763] pci 0000:00:03.0: PCI bridge to [bus 03]

Nevermind there is an issue with this adapter I think. I couldn't get it to work in any of my laptops. I'm going to order a new one and try again. I popped a 3rd wireless card in the slot and it shows right up on the router when I do lspci.

1 Like

Why would you want to get AACRAID hardware unless you have ancient SCSI hw? Just go for a LSI controller instead if it's SATA/SAS, they're much better...

1 Like

It's an older Adaptec 8 port SATAII controller w/spindown support I got for about $40. If you could suggest a hardware RAID controller that supports 8 SATA drives and spindown that would easily plug into mini pcie and be easy to configure/manage in OpenWRT, I'm listening. As long as it can be had for $50 or less. I'm a cheapskate :stuck_out_tongue:

1 Like


There are a lot of rebrands etc out there...

Success :slight_smile: It was a bad adapter apparently.

root@OpenWrt:~# lspci
00:01.0 PCI bridge: Marvell Technology Group Ltd. Device 6820 (rev 04)
00:02.0 PCI bridge: Marvell Technology Group Ltd. Device 6820 (rev 04)
00:03.0 PCI bridge: Marvell Technology Group Ltd. Device 6820 (rev 04)
01:00.0 Network controller: Qualcomm Atheros AR9287 Wireless Network Adapter (PCI-Express) (rev 01)
02:00.0 Network controller: Qualcomm Atheros QCA986x/988x 802.11ac Wireless Network Adapter
03:00.0 PCI bridge: Intel Corporation 80333 Segment-A PCIe Express to PCI-X bridge
03:00.2 PCI bridge: Intel Corporation 80333 Segment-B PCIe Express to PCI-X bridge
04:0e.0 RAID bus controller: Adaptec AAC-RAID
1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.