I resently bought NAS Dock for NanoPi Neo2. I want to use hard drive and USB port from that dock. But don't know how to make this possible. I thin i need edit uboot config or configure GPIO.
Hi, your post is seriously lacking in information, however if the device you have is this;
https://wiki.friendlyelec.com/wiki/index.php/1-bay_NAS_Dock_v1.2_for_NanoPi_NEO/NEO2
Then it connects to the 'Neo2' device via usb. Could be as easy as installing the usb support kmods and modules for drive support (filesystems etc) to have it up and running.
Also recommend installing lsusb so you can see what usb devices are connected.
Yes, this dock. Already installed all of this usb modules, system builded by imagebuilder.
base-files busybox ca-bundle dnsmasq dropbear e2fsprogs firewall fstools ip6tables iptables kmod-ipt-offload libc libgcc libustream-wolfssl logd luci mkf2fs mtd netifd odhcp6c odhcpd-ipv6only opkg partx-utils ppp ppp-mod-pppoe procd uboot-envtools ucert uci uclient-fetch urandom-seed urngd libiwinfo libiwinfo-data libiwinfo-lua liblua liblucihttp liblucihttp-lua libubus-lua lua luci-app-firewall luci-app-opkg luci-base luci-lib-base luci-lib-ip luci-lib-jsonc luci-lib-nixio luci-mod-admin-full luci-mod-network luci-mod-status luci-mod-system luci-proto-ipv6 luci-proto-ppp luci-ssl luci-theme-bootstrap px5g-wolfssl rpcd rpcd-mod-file rpcd-mod-iwinfo rpcd-mod-luci rpcd-mod-rrdns uhttpd uhttpd-mod-ubus kmod-fs-f2fs kmod-usb-core block-mount kmod-usb-storage kmod-usb-storage-extras kmod-usb-storage-uas kmod-usb-uhci kmod-usb-serial-qualcomm kmod-usb-ohci kmod-usb2 kmod-usb-net-rndis kmod-usb-net-huawei-cdc-ncm kmod-usb-net-ipheth kmod-usb-net-qmi-wwan kmod-usb-net-cdc-mbim kmod-usb-net-cdc-ether kmod-usb-net-cdc-ncm kmod-usb-net-cdc-subset kmod-usbmon kmod-usb-net kmod-gpio-dev kmod-gpio-mcp23s08 kmod-fs-ntfs kmod-fs-vfat kmod-fs-ext4 kmod-scsi-core kmod-scsi-cdrom kmod-scsi-tape kmod-usb3 luci-proto-3g luci-proto-hnet luci-proto-modemmanager luci-proto-ncm luci-proto-qmi luci-proto-relay wwan kmod-mt7601u kmod-mac80211 wireless-tools kmod-mac80211 iw wpad
Ok, what do lspci and lsusb show?
Bus 003 Device 002: ID 148f:7601 MediaTek 802.11 n WLAN
Bus 002 Device 001: ID 1d6b:0001 Linux 5.4.188 ohci_hcd Generic Platform OHCI controller
Bus 004 Device 001: ID 1d6b:0001 Linux 5.4.188 ohci_hcd Generic Platform OHCI controller
Bus 001 Device 001: ID 1d6b:0002 Linux 5.4.188 ehci_hcd EHCI Host Controller
Bus 003 Device 001: ID 1d6b:0002 Linux 5.4.188 ehci_hcd EHCI Host Controller
Bus 005 Device 001: ID 1d6b:0002 Linux 5.4.188 musb-hcd MUSB HDRC host driver
I think last one is my dock
i founded this. but how to make this possible with openwrt?
This is from armbian:
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 152d:0578 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 1221:3234 Unknown manufacturer Disk (Thumb drive)
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Which command is that the output of?
Can you post a dmesg output as well?
Basically you don’t have the needed kmod packages installed.
To try and identify which modules are missing, compare the output of lsmod between Openwrt and Armbian. Then look for those in the opkg repository for your device.
lsusb.
a person from the armbian forum advised me to compare openwrt and armbian kernels. is it even possible?
No, not in any meaningful way.
So we also need lspci and lsmod output from both armbian and openwrt. Post both and label them
ARMBIAN:
lspci:
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
lsmod:
Module Size Used by
rfkill 28672 1
sun8i_mbus 20480 0
sunxi_cedrus 49152 0
videobuf2_dma_contig 24576 1 sunxi_cedrus
v4l2_mem2mem 36864 1 sunxi_cedrus
videobuf2_memops 20480 1 videobuf2_dma_contig
videobuf2_v4l2 24576 2 sunxi_cedrus,v4l2_mem2mem
videobuf2_common 49152 5 sunxi_cedrus,videobuf2_dma_contig,videobuf2_v4l2,v4l2_mem2mem,videobuf2_memops
videodev 204800 4 sunxi_cedrus,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem
mc 49152 5 sunxi_cedrus,videodev,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem
cpufreq_dt 20480 0
zram 32768 3
sch_fq_codel 28672 2
usb_f_acm 20480 1
u_serial 32768 3 usb_f_acm
g_serial 16384 0
libcomposite 61440 2 g_serial,usb_f_acm
nfsd 368640 13
auth_rpcgss 65536 1 nfsd
nfs_acl 20480 1 nfsd
lockd 98304 1 nfsd
grace 20480 2 nfsd,lockd
sunrpc 290816 18 nfsd,auth_rpcgss,lockd,nfs_acl
realtek 32768 1
dwmac_sun8i 28672 0
mdio_mux 16384 1 dwmac_sun8i
uas 28672 0
Openwrt
Therer is no answer for lspci
lsmod
af_alg 24576 4 algif_skcipher,algif_rng,algif_hash,algif_aead
algif_aead 16384 0
algif_hash 16384 0
algif_rng 16384 0
algif_skcipher 16384 0
arc4 16384 0
asn1_decoder 16384 1 nf_nat_snmp_basic
authenc 16384 0
cdc_ether 16384 1 rndis_host
cdc_mbim 16384 0
cdc_ncm 28672 2 cdc_mbim,huawei_cdc_ncm
cdc_subset 16384 0
cdc_wdm 24576 3 cdc_mbim,qmi_wwan,huawei_cdc_ncm
cdrom 45056 1 sr_mod
cfg80211 356352 2 mt7601u,mac80211
compat 16384 3 mt7601u,mac80211,cfg80211
crc_ccitt 16384 1 ppp_async
crypto_user 16384 0
cryptodev 57344 0
ecb 16384 0
ehci_fsl 16384 0
fsl_mph_dr_of 16384 0
huawei_cdc_ncm 16384 0
ip_set 45056 16 xt_set,ip_set_list_set,ip_set_hash_netportnet,ip_set_hash_netport,ip_set_hash_netnet,ip_set_hash_netiface,ip_set_hash_net,ip_set_hash_mac,ip_set_hash_ipportnet,ip_set_hash_ipportip,ip_set_hash_ipport,ip_set_hash_ipmark,ip_set_hash_ip,ip_set_bitmap_port,ip_set_bitmap_ipmac,ip_set_bitmap_ip
ip_set_bitmap_ip 20480 0
ip_set_bitmap_ipmac 20480 0
ip_set_bitmap_port 20480 0
ip_set_hash_ip 36864 0
ip_set_hash_ipmark 36864 0
ip_set_hash_ipport 36864 0
ip_set_hash_ipportip 36864 0
ip_set_hash_ipportnet 40960 0
ip_set_hash_mac 24576 0
ip_set_hash_net 40960 0
ip_set_hash_netiface 40960 0
ip_set_hash_netnet 40960 0
ip_set_hash_netport 40960 0
ip_set_hash_netportnet 45056 0
ip_set_list_set 20480 0
ip_tables 24576 5 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
ipheth 16384 0
ipt_REJECT 16384 2
iptable_filter 16384 1
iptable_mangle 16384 0
iptable_nat 16384 1
iptable_raw 16384 1
mac80211 610304 1 mt7601u
macvlan 24576 0
mt7601u 65536 0
nf_conntrack 102400 27 xt_FULLCONENAT,xt_state,xt_nat,xt_conntrack,xt_REDIRECT,xt_MASQUERADE,xt_CT,nf_nat_tftp,nf_nat_snmp_basic,nf_nat_sip,nf_nat_pptp,nf_nat_irc,nf_nat_h323,nf_nat_ftp,nf_nat_amanda,nf_nat,nf_flow_table,nf_conntrack_tftp,nf_conntrack_snmp,nf_conntrack_sip,nf_conntrack_pptp,nf_conntrack_netlink,nf_conntrack_irc,nf_conntrack_h323,nf_conntrack_ftp,nf_conntrack_broadcast,nf_conntrack_amanda
nf_conntrack_amanda 16384 2 nf_nat_amanda
nf_conntrack_broadcast 16384 1 nf_conntrack_snmp
nf_conntrack_ftp 16384 2 nf_nat_ftp
nf_conntrack_h323 49152 3 nf_nat_h323
nf_conntrack_irc 16384 2 nf_nat_irc
nf_conntrack_netlink 40960 0
nf_conntrack_pptp 16384 2 nf_nat_pptp
nf_conntrack_sip 32768 3 nf_nat_sip
nf_conntrack_snmp 16384 2 nf_nat_snmp_basic
nf_conntrack_tftp 16384 2 nf_nat_tftp
nf_defrag_ipv4 16384 1 nf_conntrack
nf_defrag_ipv6 16384 1 nf_conntrack
nf_flow_table 24576 2 xt_FLOWOFFLOAD,nf_flow_table_hw
nf_flow_table_hw 16384 1
nf_log_common 16384 1 nf_log_ipv4
nf_log_ipv4 16384 0
nf_nat 40960 12 xt_FULLCONENAT,iptable_nat,xt_nat,xt_REDIRECT,xt_MASQUERADE,nf_nat_tftp,nf_nat_sip,nf_nat_pptp,nf_nat_irc,nf_nat_h323,nf_nat_ftp,nf_nat_amanda
nf_nat_amanda 16384 0
nf_nat_ftp 16384 0
nf_nat_h323 20480 0
nf_nat_irc 16384 0
nf_nat_pptp 16384 0
nf_nat_sip 20480 0
nf_nat_snmp_basic 16384 0
nf_nat_tftp 16384 0
nf_reject_ipv4 16384 1 ipt_REJECT
nfnetlink 16384 2 nf_conntrack_netlink,ip_set
nls_utf8 16384 0
ntfs 102400 0
option 57344 0
pinctrl_mcp23s08 24576 0
ppp_async 24576 0
ppp_generic 45056 4 pppoe,ppp_async,pppox,ppp_mppe
ppp_mppe 16384 0
pppoe 24576 0
pppox 16384 1 pppoe
qcserial 20480 0
qmi_wwan 32768 0
rndis_host 16384 0
slhc 16384 1 ppp_generic
sr_mod 24576 0
st 57344 0
tcp_bbr 20480 0
ts_bm 16384 0
ts_fsm 16384 0
ts_kmp 16384 6
uas 24576 0
uhci_hcd 36864 0
ums_alauda 20480 0
ums_cypress 16384 0
ums_datafab 16384 0
ums_freecom 16384 0
ums_isd200 16384 0
ums_jumpshot 16384 0
ums_karma 16384 0
ums_sddr09 20480 0
ums_sddr55 16384 0
ums_usbat 20480 0
usb_wwan 20480 2 qcserial,option
usbmon 36864 0
usbnet 32768 7 cdc_mbim,rndis_host,qmi_wwan,huawei_cdc_ncm,cdc_subset,cdc_ncm,cdc_ether
usbserial 32768 3 qcserial,option,usb_wwan
x_tables 32768 23 xt_FULLCONENAT,xt_state,xt_nat,xt_conntrack,xt_REDIRECT,xt_MASQUERADE,xt_FLOWOFFLOAD,xt_CT,ipt_REJECT,xt_time,xt_tcpudp,xt_multiport,xt_mark,xt_mac,xt_limit,xt_comment,xt_TCPMSS,xt_LOG,iptable_raw,iptable_mangle,iptable_filter,ip_tables,xt_set
xhci_hcd 147456 2 xhci_plat_hcd,xhci_pci
xhci_pci 16384 0
xhci_plat_hcd 16384 0
xt_CT 16384 10
xt_FLOWOFFLOAD 16384 1
xt_FULLCONENAT 36864 2
xt_LOG 16384 0
xt_MASQUERADE 16384 0
xt_REDIRECT 16384 1
xt_TCPMSS 16384 0
xt_comment 16384 64
xt_conntrack 16384 9
xt_limit 16384 1
xt_mac 16384 0
xt_mark 16384 0
xt_multiport 16384 0
xt_nat 16384 0
xt_set 16384 0
xt_state 16384 0
xt_tcpudp 16384 15
xt_time 16384 0
Hey, you would need to install lspci to use it in Openwrt.
The error form armbian looks like it wasn't run as root (or via sudo).
In lsmod none of the xhci modules are attaching to anything, so that would indicate they're not seeing the gpio connected usb devices. Can you see the usb controllers activate in the bootlog? or dmesg?
I expect you have a dts issue, with the gpio being incomplete or missing altogether, fixing that and rebuilding Openwrt is beyond the help I'm willing to give you.