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.
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.
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
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.
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?
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.
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...
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