Can't get USB (NAS) storage to work

I'm following the guide to add a USB drive, but I'm not having much luck. I've formatted the external drive as ext4, and I can read it with no problems when it's connected to my Linux desktop.

However when plugged into the router, I run ls -al /dev/sd* when connected to the router via SSH and I get "No such file or directory".

My router is an TP-LINK Archer C7 v5, and I'm running OpenWrt 18.06.1 r7258-5eb055306f. The USB drive is a KESU 120GB, Type C USB3.1.

I'm not sure what to do next - any help would be most welcome!

Try to install some additional packages:

  • kmod-usb-storage-extras
  • kmod-usb-storage-uas

Just tried that but no luck I'm afraid, still get "No such file or directory"...

Post the kernel log here (dmesg).

P.S. I now remember encountering a similar error with an OCZ Intrepid 3700 SSD which simply demanded more power than the router could supply.

The output from dmesg:

[    0.000000] Linux version 4.9.120 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7102-3f3a2c9) ) #0 Thu Aug 16 07:51:15 2018
[    0.000000] MyLoader: sysp=996e7d83, boardp=50d78a6b, parts=c1371835
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 80442044, node_mem_map 81000020
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line:  board=ARCHER-C7-V5 mtdparts=spi0.0:128k(factory-uboot)ro,128k(u-boot)ro,64k@0x50000(art)ro,1536k@0xc0000(kernel),13824k(rootfs),15360k@0xc0000(firmware) console=ttyS0,115200 rootfstype=squashfs noinitrd
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 124996K/131072K available (3363K kernel code, 172K rwdata, 444K rodata, 300K init, 219K bss, 6076K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:775.000MHz, DDR:650.000MHz, AHB:258.333MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008223] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.071034] pid_max: default: 32768 minimum: 301
[    0.075988] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.082967] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.092724] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.103125] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.110598] NET: Registered protocol family 16
[    0.116607] MIPS: machine is TP-LINK Archer C7 v5
[    0.124327] registering PCI controller with io_map_base unset
[    0.370648] Can't analyze schedule() prologue at 803a5594
[    0.385468] PCI host bridge to bus 0000:00
[    0.389797] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[    0.397077] pci_bus 0000:00: root bus resource [io  0x0001]
[    0.402942] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.410099] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.418468] pci 0000:00:00.0: [168c:003c] type 00 class 0x028000
[    0.418505] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.418553] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.418618] pci 0000:00:00.0: supports D1 D2
[    0.418794] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.418817] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.426562] pci 0000:00:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pref]
[    0.434178] pci 0000:00:00.0: using irq 40 for pin 1
[    0.442164] clocksource: Switched to clocksource MIPS
[    0.448379] NET: Registered protocol family 2
[    0.453813] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.461167] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.467912] TCP: Hash tables configured (established 1024 bind 1024)
[    0.474699] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.480862] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.487721] NET: Registered protocol family 1
[    0.492378] PCI: CLS 0 bytes, default 32
[    0.494787] Crashlog allocated RAM at address 0x3f00000
[    0.501210] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.513933] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.520076] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.538539] io scheduler noop registered
[    0.542713] io scheduler deadline registered (default)
[    0.548497] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.557384] console [ttyS0] disabled
[    0.581217] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.590315] console [ttyS0] enabled
[    0.597864] bootconsole [early0] disabled
[    0.611678] m25p80 spi0.0: found w25q128, expected m25p80
[    0.626552] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.631442] 6 cmdlinepart partitions found on MTD device spi0.0
[    0.637571] Creating 6 MTD partitions on "spi0.0":
[    0.642530] 0x000000000000-0x000000020000 : "factory-uboot"
[    0.649902] 0x000000020000-0x000000040000 : "u-boot"
[    0.656792] 0x000000050000-0x000000060000 : "art"
[    0.663387] 0x0000000c0000-0x000000240000 : "kernel"
[    0.670222] 0x000000240000-0x000000fc0000 : "rootfs"
[    0.676745] mtd: device 4 (rootfs) set to be root filesystem
[    0.682684] 1 squashfs-split partitions found on MTD device rootfs
[    0.689071] 0x0000004c0000-0x000000fc0000 : "rootfs_data"
[    0.696431] 0x0000000c0000-0x000000fc0000 : "firmware"
[    0.704357] libphy: Fixed MDIO Bus: probed
[    0.723432] switch0: Atheros AR8337 rev. 2 switch registered on ag71xx-mdio.0
[    1.448866] libphy: ag71xx_mdio: probed
[    2.083783] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    2.095344] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:SGMII
[    2.103722] NET: Registered protocol family 10
[    2.112385] NET: Registered protocol family 17
[    2.117024] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.130515] 8021q: 802.1Q VLAN Support v1.8
[    2.136417] hctosys: unable to open rtc device (rtc0)
[    2.147196] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    2.156144] Freeing unused kernel memory: 300K
[    2.160729] This architecture does not have kernel memory protection.
[    2.582178] random: fast init done
[    2.762073] init: Console is alive
[    2.765836] init: - watchdog -
[    3.620965] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.666614] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.675418] init: - preinit -
[    4.753027] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    4.777649] random: procd: uninitialized urandom read (4 bytes read)
[    5.803804] eth0: link up (1000Mbps/Full duplex)
[    5.808777] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.084355] jffs2: notice: (432) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    8.112135] mount_root: loading kmods from internal overlay
[    8.497288] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[    8.625909] usbcore: registered new interface driver usbfs
[    8.631654] usbcore: registered new interface driver hub
[    8.637271] usbcore: registered new device driver usb
[    8.920031] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.989478] SCSI subsystem initialized
[    9.010948] ehci-platform: EHCI generic platform driver
[    9.016471] ehci-platform ehci-platform.0: EHCI Host Controller
[    9.022629] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[    9.033088] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[    9.130952] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[    9.138637] hub 1-0:1.0: USB hub found
[    9.142965] hub 1-0:1.0: 1 port detected
[    9.147344] ehci-platform ehci-platform.1: EHCI Host Controller
[    9.153529] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[    9.163993] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[    9.192183] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[    9.199725] hub 2-0:1.0: USB hub found
[    9.204057] hub 2-0:1.0: 1 port detected
[    9.286876] usbcore: registered new interface driver usb-storage
[    9.293754] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[    9.513654] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    9.532257] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    9.543016] block: extroot: not configured
[    9.548107] mount_root: switching to jffs2 overlay
[    9.575530] urandom-seed: Seeding with /etc/urandom.seed
[    9.679444] eth0: link down
[    9.695401] procd: - early -
[    9.698461] procd: - watchdog -
[   10.331583] procd: - watchdog -
[   10.335099] procd: - ubus -
[   10.440933] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.449353] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.456350] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.463835] procd: - init -
[   10.789916] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.800839] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.816524] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   10.824834] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   10.834257] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.847165] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   10.902233] xt_time: kernel timezone is -0000
[   11.067989] PPP generic driver version 2.4.2
[   11.074546] NET: Registered protocol family 24
[   11.099841] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   11.105903] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   11.386605] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[   11.397696] ath10k_pci 0000:00:00.0: Falling back to user helper
[   11.465818] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[   11.476919] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-6.bin failed with error -2
[   11.488012] ath10k_pci 0000:00:00.0: Falling back to user helper
[   11.635980] firmware ath10k!QCA988X!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[   11.650219] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[   11.659787] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   11.672761] ath10k_pci 0000:00:00.0: firmware ver 10.2.4-1.0-00033 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 c41417d0
[   11.766943] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[   11.777779] ath10k_pci 0000:00:00.0: Falling back to user helper
[   11.848072] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[   11.877289] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   13.124438] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1
[   13.263624] ath: EEPROM regdomain: 0x0
[   13.263631] ath: EEPROM indicates default country code should be used
[   13.263634] ath: doing EEPROM country->regdmn map search
[   13.263645] ath: country maps to regdmn code: 0x3a
[   13.263649] ath: Country alpha2 being used: US
[   13.263652] ath: Regpair used: 0x3a
[   13.324031] ath: EEPROM regdomain: 0x0
[   13.324039] ath: EEPROM indicates default country code should be used
[   13.324041] ath: doing EEPROM country->regdmn map search
[   13.324053] ath: country maps to regdmn code: 0x3a
[   13.324058] ath: Country alpha2 being used: US
[   13.324061] ath: Regpair used: 0x3a
[   13.334425] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   13.338016] ieee80211 phy1: Atheros AR9561 Rev:0 mem=0xb8100000, irq=47
[   13.411526] kmodloader: done loading kernel modules from /etc/modules.d/*
[   14.832903] urandom_read: 5 callbacks suppressed
[   14.832910] random: jshn: uninitialized urandom read (4 bytes read)
[   22.957118] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   22.965048] eth0: link up (1000Mbps/Full duplex)
[   22.969847] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   22.994643] br-lan: port 1(eth0.1) entered blocking state
[   23.000226] br-lan: port 1(eth0.1) entered disabled state
[   23.006273] device eth0.1 entered promiscuous mode
[   23.011224] device eth0 entered promiscuous mode
[   23.078868] br-lan: port 1(eth0.1) entered blocking state
[   23.084490] br-lan: port 1(eth0.1) entered forwarding state
[   23.090385] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   23.962413] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   29.263425] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   31.115939] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   31.122229] br-lan: port 2(wlan1) entered blocking state
[   31.127715] br-lan: port 2(wlan1) entered disabled state
[   31.133523] device wlan1 entered promiscuous mode
[   31.166801] br-lan: port 3(wlan0) entered blocking state
[   31.172348] br-lan: port 3(wlan0) entered disabled state
[   31.178235] device wlan0 entered promiscuous mode
[   32.151764] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   32.158534] br-lan: port 2(wlan1) entered blocking state
[   32.164062] br-lan: port 2(wlan1) entered forwarding state
[   32.529416] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   32.536819] br-lan: port 3(wlan0) entered blocking state
[   32.542372] br-lan: port 3(wlan0) entered forwarding state
[   57.057201] random: crng init done
[100781.426830] kmodloader: loading kernel modules from /etc/modules.d/*
[100781.437149] usbcore: registered new interface driver ums-alauda
[100781.445533] usbcore: registered new interface driver ums-cypress
[100781.454186] usbcore: registered new interface driver ums-datafab
[100781.462738] usbcore: registered new interface driver ums-freecom
[100781.471127] usbcore: registered new interface driver ums-isd200
[100781.479348] usbcore: registered new interface driver ums-jumpshot
[100781.487748] usbcore: registered new interface driver ums-karma
[100781.496359] usbcore: registered new interface driver ums-sddr09
[100781.504690] usbcore: registered new interface driver ums-sddr55
[100781.513253] usbcore: registered new interface driver ums-usbat
[100781.520428] kmodloader: done loading kernel modules from /etc/modules.d/*

I would need some help interpreting this :wink:

Could you please confirm or deny that the USB disk was already connected when you powered on the router? Does this message reappear when you unplug and replug it?

[    9.513654] usb 1-1: new high-speed USB device number 2 using ehci-platform

Other than that, sorry, no advice except to reboot the router. Sometimes it helps due to wrong module load order from package installation. And yes, please reboot the router with the disk unplugged, wait 2 minutes, plug it, and post a new dmesg.

And don't forget about kmod-usb-storage-uas, I have to remind because I don't see this line:

[   13.378795] usbcore: registered new interface driver uas

Sorry, I'm a bit of a noob with these things :slight_smile:

Yes, if I unplug the USB disk and plug it in again these messages appear in dmesg:

[160550.291740] usb 1-1: USB disconnect, device number 2
[160550.980573] usb 1-1: new high-speed USB device number 3 using ehci-platform

(thank you very much for helping me by the way!)

Unfortunately we need to put the router in a known state. Otherwise I can't help. To do so:

  1. Install the kmod-usb-storage-uas package.
  2. Reboot the router. This is very important.
  3. Post a new dmesg, in full.
[    0.000000] Linux version 4.9.120 (buildbot@builds-03.infra.lede-project.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7102-3f3a2c9) ) #0 Thu Aug 16 07:51:15 2018
[    0.000000] MyLoader: sysp=996e7d83, boardp=50d78a6b, parts=c1371835
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] SoC: Qualcomm Atheros QCA956X ver 1 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat 80442044, node_mem_map 81000020
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line:  board=ARCHER-C7-V5 mtdparts=spi0.0:128k(factory-uboot)ro,128k(u-boot)ro,64k@0x50000(art)ro,1536k@0xc0000(kernel),13824k(rootfs),15360k@0xc0000(firmware) console=ttyS0,115200 rootfstype=squashfs noinitrd
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 124996K/131072K available (3363K kernel code, 172K rwdata, 444K rodata, 300K init, 219K bss, 6076K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:775.000MHz, DDR:650.000MHz, AHB:258.333MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 4932285024 ns
[    0.000007] sched_clock: 32 bits at 387MHz, resolution 2ns, wraps every 5541893118ns
[    0.008223] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.071034] pid_max: default: 32768 minimum: 301
[    0.075989] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.082967] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.092724] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.103126] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.110606] NET: Registered protocol family 16
[    0.116607] MIPS: machine is TP-LINK Archer C7 v5
[    0.124327] registering PCI controller with io_map_base unset
[    0.370646] Can't analyze schedule() prologue at 803a5594
[    0.385471] PCI host bridge to bus 0000:00
[    0.389797] pci_bus 0000:00: root bus resource [mem 0x12000000-0x13ffffff]
[    0.397076] pci_bus 0000:00: root bus resource [io  0x0001]
[    0.402942] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.410099] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.418468] pci 0000:00:00.0: [168c:003c] type 00 class 0x028000
[    0.418505] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[    0.418552] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    0.418617] pci 0000:00:00.0: supports D1 D2
[    0.418793] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    0.418816] pci 0000:00:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.426562] pci 0000:00:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pref]
[    0.434178] pci 0000:00:00.0: using irq 40 for pin 1
[    0.442163] clocksource: Switched to clocksource MIPS
[    0.448379] NET: Registered protocol family 2
[    0.453814] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.461167] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.467911] TCP: Hash tables configured (established 1024 bind 1024)
[    0.474699] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.480862] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.487723] NET: Registered protocol family 1
[    0.492386] PCI: CLS 0 bytes, default 32
[    0.494799] Crashlog allocated RAM at address 0x3f00000
[    0.501232] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.513961] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.520101] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.538534] io scheduler noop registered
[    0.542705] io scheduler deadline registered (default)
[    0.548488] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.557377] console [ttyS0] disabled
[    0.581218] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.590315] console [ttyS0] enabled
[    0.597863] bootconsole [early0] disabled
[    0.611689] m25p80 spi0.0: found w25q128, expected m25p80
[    0.626568] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.631458] 6 cmdlinepart partitions found on MTD device spi0.0
[    0.637588] Creating 6 MTD partitions on "spi0.0":
[    0.642547] 0x000000000000-0x000000020000 : "factory-uboot"
[    0.649923] 0x000000020000-0x000000040000 : "u-boot"
[    0.656802] 0x000000050000-0x000000060000 : "art"
[    0.663401] 0x0000000c0000-0x000000240000 : "kernel"
[    0.670235] 0x000000240000-0x000000fc0000 : "rootfs"
[    0.676762] mtd: device 4 (rootfs) set to be root filesystem
[    0.682702] 1 squashfs-split partitions found on MTD device rootfs
[    0.689087] 0x0000004c0000-0x000000fc0000 : "rootfs_data"
[    0.696450] 0x0000000c0000-0x000000fc0000 : "firmware"
[    0.704370] libphy: Fixed MDIO Bus: probed
[    0.723438] switch0: Atheros AR8337 rev. 2 switch registered on ag71xx-mdio.0
[    1.448866] libphy: ag71xx_mdio: probed
[    2.083781] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    2.095343] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:SGMII
[    2.103725] NET: Registered protocol family 10
[    2.112404] NET: Registered protocol family 17
[    2.117043] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.130532] 8021q: 802.1Q VLAN Support v1.8
[    2.136428] hctosys: unable to open rtc device (rtc0)
[    2.147219] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[    2.156170] Freeing unused kernel memory: 300K
[    2.160756] This architecture does not have kernel memory protection.
[    2.582175] random: fast init done
[    2.762079] init: Console is alive
[    2.765846] init: - watchdog -
[    3.620915] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.666613] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.675421] init: - preinit -
[    4.755306] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    4.779925] random: procd: uninitialized urandom read (4 bytes read)
[    5.803807] eth0: link up (1000Mbps/Full duplex)
[    5.808777] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.079285] jffs2: notice: (432) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    8.107413] mount_root: loading kmods from internal overlay
[    8.562032] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[    8.691879] usbcore: registered new interface driver usbfs
[    8.697695] usbcore: registered new interface driver hub
[    8.703303] usbcore: registered new device driver usb
[    8.987848] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.124308] SCSI subsystem initialized
[    9.144973] ehci-platform: EHCI generic platform driver
[    9.150442] ehci-platform ehci-platform.0: EHCI Host Controller
[    9.156621] ehci-platform ehci-platform.0: new USB bus registered, assigned bus number 1
[    9.167079] ehci-platform ehci-platform.0: irq 48, io mem 0x1b000000
[    9.202200] ehci-platform ehci-platform.0: USB 2.0 started, EHCI 1.00
[    9.209787] hub 1-0:1.0: USB hub found
[    9.214128] hub 1-0:1.0: 1 port detected
[    9.218508] ehci-platform ehci-platform.1: EHCI Host Controller
[    9.224689] ehci-platform ehci-platform.1: new USB bus registered, assigned bus number 2
[    9.235152] ehci-platform ehci-platform.1: irq 49, io mem 0x1b400000
[    9.262188] ehci-platform ehci-platform.1: USB 2.0 started, EHCI 1.00
[    9.269731] hub 2-0:1.0: USB hub found
[    9.274064] hub 2-0:1.0: 1 port detected
[    9.355968] usbcore: registered new interface driver usb-storage
[    9.367977] usbcore: registered new interface driver uas
[    9.374408] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[    9.594264] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    9.612509] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[    9.623802] block: extroot: not configured
[    9.628885] mount_root: switching to jffs2 overlay
[    9.655809] urandom-seed: Seeding with /etc/urandom.seed
[    9.781991] eth0: link down
[    9.797917] procd: - early -
[    9.800982] procd: - watchdog -
[    9.862517] scsi host0: uas
[    9.869145] scsi 0:0:0:0: Direct-Access     Phi      H1               4101 PQ: 0 ANSI: 6
[   10.431279] procd: - watchdog -
[   10.434811] procd: - ubus -
[   10.535866] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.544319] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.551545] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.559015] procd: - init -
[   10.892670] kmodloader: loading kernel modules from /etc/modules.d/*
[   10.903663] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.919684] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   10.928002] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   10.937483] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.950417] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   10.997097] usbcore: registered new interface driver ums-alauda
[   11.005705] usbcore: registered new interface driver ums-cypress
[   11.013590] usbcore: registered new interface driver ums-datafab
[   11.021305] usbcore: registered new interface driver ums-freecom
[   11.029182] usbcore: registered new interface driver ums-isd200
[   11.037451] usbcore: registered new interface driver ums-jumpshot
[   11.045344] usbcore: registered new interface driver ums-karma
[   11.053315] usbcore: registered new interface driver ums-sddr09
[   11.061098] usbcore: registered new interface driver ums-sddr55
[   11.069053] usbcore: registered new interface driver ums-usbat
[   11.090402] xt_time: kernel timezone is -0000
[   11.260640] PPP generic driver version 2.4.2
[   11.267297] NET: Registered protocol family 24
[   11.293654] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   11.299660] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
[   11.576786] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
[   11.587883] ath10k_pci 0000:00:00.0: Falling back to user helper
[   11.657147] firmware ath10k!pre-cal-pci-0000:00:00.0.bin: firmware_loading_store: map pages failed
[   11.668243] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-6.bin failed with error -2
[   11.679336] ath10k_pci 0000:00:00.0: Falling back to user helper
[   11.819020] firmware ath10k!QCA988X!hw2.0!firmware-6.bin: firmware_loading_store: map pages failed
[   11.973725] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
[   11.983279] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 1 testmode 1
[   11.996307] ath10k_pci 0000:00:00.0: firmware ver 10.2.4-1.0-00033 api 5 features no-p2p,raw-mode,mfp,allows-mesh-bcast crc32 c41417d0
[   12.093800] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
[   12.104638] ath10k_pci 0000:00:00.0: Falling back to user helper
[   12.178796] firmware ath10k!QCA988X!hw2.0!board-2.bin: firmware_loading_store: map pages failed
[   12.208105] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 bebc7c08
[   13.073644] sd 0:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/112 GiB)
[   13.081396] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   13.098246] sd 0:0:0:0: [sda] Write Protect is off
[   13.103246] sd 0:0:0:0: [sda] Mode Sense: 5f 00 00 08
[   13.107998] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.154029]  sda: sda1
[   13.164127] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.398314] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal file max-sta 128 raw 0 hwcrypto 1
[   13.533820] ath: EEPROM regdomain: 0x0
[   13.533828] ath: EEPROM indicates default country code should be used
[   13.533830] ath: doing EEPROM country->regdmn map search
[   13.533842] ath: country maps to regdmn code: 0x3a
[   13.533846] ath: Country alpha2 being used: US
[   13.533849] ath: Regpair used: 0x3a
[   13.587663] ath: EEPROM regdomain: 0x0
[   13.587671] ath: EEPROM indicates default country code should be used
[   13.587674] ath: doing EEPROM country->regdmn map search
[   13.587686] ath: country maps to regdmn code: 0x3a
[   13.587690] ath: Country alpha2 being used: US
[   13.587693] ath: Regpair used: 0x3a
[   13.598275] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[   13.602057] ieee80211 phy1: Atheros AR9561 Rev:0 mem=0xb8100000, irq=47
[   13.618401] kmodloader: done loading kernel modules from /etc/modules.d/*
[   14.058103] urandom_read: 5 callbacks suppressed
[   14.058109] random: ubusd: uninitialized urandom read (4 bytes read)
[   22.929374] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   22.937306] eth0: link up (1000Mbps/Full duplex)
[   22.942090] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   22.976358] br-lan: port 1(eth0.1) entered blocking state
[   22.981946] br-lan: port 1(eth0.1) entered disabled state
[   22.987909] device eth0.1 entered promiscuous mode
[   22.992902] device eth0 entered promiscuous mode
[   23.056861] br-lan: port 1(eth0.1) entered blocking state
[   23.062481] br-lan: port 1(eth0.1) entered forwarding state
[   23.068369] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   23.962451] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   31.697290] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   31.718409] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   31.748541] br-lan: port 2(wlan0) entered blocking state
[   31.754261] br-lan: port 2(wlan0) entered disabled state
[   31.760112] device wlan0 entered promiscuous mode
[   31.785295] br-lan: port 3(wlan1) entered blocking state
[   31.790791] br-lan: port 3(wlan1) entered disabled state
[   31.796675] device wlan1 entered promiscuous mode
[   32.721528] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   32.728315] br-lan: port 3(wlan1) entered blocking state
[   32.733853] br-lan: port 3(wlan1) entered forwarding state
[   33.130002] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   33.136870] br-lan: port 2(wlan0) entered blocking state
[   33.142403] br-lan: port 2(wlan0) entered forwarding state
[   49.309920] random: crng init done

Ah now ls -al /dev/sd* is showing the device:

root@OpenWrt:~# ls -al /dev/sd*
brw-------    1 root     root        8,   0 Mar 18 17:02 /dev/sda
brw-------    1 root     root        8,   1 Mar 18 17:02 /dev/sda1

Does that mean it's working now (and I can continue with the quick start guide)?

Yes, it's working.

1 Like

Thank you so much for your help! I've been through the guide and now I've got it working. :smiley:

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