Blueendless U35WF does not recognize 1TB internal drive

I want to use the U35WF as a NAS for Time Machine backups of my Apple MacBookPro.
I have been able to install the latest recommended image on my U35WF device, and get everything working (wifi, samba share) but with my drive attached to the USB port on the box. I cannot get the device to recognize the drive when it's attached internally to the SCSI port, which is what I want.
I have tried various combinations of drivers. Does anybody have any guidance on how to proceed?

Thanks for any help!

More details:

  • The drive is a 1TB WD SATA, formatted as ext4

  • lsusb does not "see" the drive

lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=, Driver=hub/4p, 480M
        |__ Port 1: Dev 3, If 0, Class=, Driver=usb-storage, 480M
  • when I attach via USB, I can see the partition /dev/sdb1, but
  • when I attach via the internal SCSI, I can see /dev/sda but no partition:
root@OpenWrt:/# ls -al /dev/sd*
brw-------    1 root     root        8,   0 Dec 31  1969 /dev/sda
  • attempt to (re)format the drive with gdisk fails:
gdisk /dev/sda
GPT fdisk (gdisk) version 1.0.8

Problem opening /dev/sda for reading! Error is 159.

This is the output of dmesg:

root@OpenWrt:/# dmesg
[    0.000000] Linux version 5.10.146 (builder@buildhost) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r19803-9a599fee93) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Fri Oct 14 22:44:41 2022
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7620A ver:2 eco:6
[    0.000000] printk: bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[    0.000000] MIPS: machine is Kimax U35WF
[    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, PIPT, no 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]   Normal zone: 288 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, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Writing ErrCtl register=00019d30
[    0.000000] Readback ErrCtl register=00019d30
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 121328K/131072K available (5642K kernel code, 625K rwdata, 688K rodata, 1228K init, 217K bss, 9744K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] CPU Clock: 580MHz
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] systick: enable autosleep mode
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000012] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.015594] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.087815] pid_max: default: 32768 minimum: 301
[    0.097206] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.111614] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.129586] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.148473] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.167970] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.181559] pinctrl core: initialized pinctrl subsystem
[    0.194652] NET: Registered protocol family 16
[    0.204249] thermal_sys: Registered thermal governor 'step_wise'
[    0.267928] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.290877] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.303499] rt2880_gpio 10000660.gpio: registering 32 gpios
[    0.314515] rt2880_gpio 10000660.gpio: registering 32 irq handlers
[    0.327124] rt2880_gpio 10000688.gpio: registering 1 gpios
[    0.337969] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[    0.361137] clocksource: Switched to clocksource systick
[    0.373111] NET: Registered protocol family 2
[    0.382025] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.397299] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.413921] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.429053] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.443056] TCP: Hash tables configured (established 1024 bind 1024)
[    0.455859] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.468777] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.482932] NET: Registered protocol family 1
[    0.491527] PCI: CLS 0 bytes, default 32
[    0.504817] rt-timer 10000100.timer: maximum frequency is 1220Hz
[    0.520197] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.538671] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.550183] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.571820] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.588844] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.604481] printk: console [ttyS0] disabled
[    0.613012] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[    0.632652] printk: console [ttyS0] enabled
[    0.649223] printk: bootconsole [early0] disabled
[    0.686251] spi spi0.0: force spi mode3
[    0.695374] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
[    0.705765] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.718496] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.733108] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.748263] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.762915] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[    0.777734] Creating 4 MTD partitions on "spi0.0":
[    0.787348] 0x000000000000-0x000000030000 : "u-boot"
[    0.800732] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.812739] 0x000000040000-0x000000050000 : "factory"
[    0.826057] 0x000000050000-0x000001000000 : "firmware"
[    0.837886] 2 uimage-fw partitions found on MTD device firmware
[    0.849786] Creating 2 MTD partitions on "firmware":
[    0.859693] 0x000000000000-0x000000215d55 : "kernel"
[    0.869589] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[    0.889207] 0x000000215d55-0x000000fb0000 : "rootfs"
[    0.899184] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[    0.918763] mtd: device 5 (rootfs) set to be root filesystem
[    0.931405] 1 squashfs-split partitions found on MTD device rootfs
[    0.943804] 0x0000005f4000-0x000000fb0000 : "rootfs_data"
[    0.982250] gsw: setting port4 to ephy mode
[    0.990866] mtk_soc_eth 10100000.ethernet: no mdio-bus child node found
[    1.004104] mtk_soc_eth 10100000.ethernet: mdio-bus disabled
[    1.015617] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[    1.028203] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    1.045396] rt2880_wdt 10000120.watchdog: Initialized
[    1.057061] NET: Registered protocol family 10
[    1.072586] Segment Routing with IPv6
[    1.080034] NET: Registered protocol family 17
[    1.089077] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    1.114918] 8021q: 802.1Q VLAN Support v1.8
[    1.150347] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    1.171501] Freeing unused kernel memory: 1228K
[    1.180521] This architecture does not have kernel memory protection.
[    1.193392] Run /sbin/init as init process
[    1.201551]   with arguments:
[    1.201558]     /sbin/init
[    1.201563]   with environment:
[    1.201569]     HOME=/
[    1.201575]     TERM=linux
[    2.902759] init: Console is alive
[    2.910147] init: - watchdog -
[    6.477370] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.868955] usbcore: registered new interface driver usbfs
[    6.880065] usbcore: registered new interface driver hub
[    6.890793] usbcore: registered new device driver usb
[    6.942310] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.964780] SCSI subsystem initialized
[    6.979537] ehci-fsl: Freescale EHCI Host controller driver
[    6.994183] ehci-platform: EHCI generic platform driver
[    7.015213] phy phy-usbphy.0: remote usb device wakeup disabled
[    7.027032] phy phy-usbphy.0: UTMI 16bit 30MHz
[    7.035891] ehci-platform 101c0000.ehci: EHCI Host Controller
[    7.047372] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    7.063321] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    7.084781] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    7.098481] hub 1-0:1.0: USB hub found
[    7.107010] hub 1-0:1.0: 1 port detected
[    7.121375] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    7.137984] ohci-platform: OHCI generic platform driver
[    7.148954] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    7.162577] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    7.178522] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    7.218059] hub 2-0:1.0: USB hub found
[    7.226625] hub 2-0:1.0: 1 port detected
[    7.247169] usbcore: registered new interface driver usb-storage
[    7.260998] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    7.280015] init: - preinit -
[    7.417834] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    8.355758] hub 1-1:1.0: USB hub found
[    8.367499] hub 1-1:1.0: 4 ports detected
[    8.829255] random: procd: uninitialized urandom read (4 bytes read)
[    9.297210] usb 1-1.1: new high-speed USB device number 3 using ehci-platform
[   10.130707] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[   10.390691] scsi host0: usb-storage 1-1.1:1.0
[   10.409197] random: jshn: uninitialized urandom read (4 bytes read)
[   10.540704] random: jshn: uninitialized urandom read (4 bytes read)
[   10.624740] random: jshn: uninitialized urandom read (4 bytes read)
[   11.461628] scsi 0:0:0:0: Direct-Access     ASMT     2115             0    PQ: 0 ANSI: 6
[   11.596910] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   11.666242] 8021q: adding VLAN 0 to HW filter on device eth0
[   13.578778] mount_root: loading kmods from internal overlay
[   13.632348] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[   13.652985] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[   15.528849] jffs2: notice: (467) jffs2_build_xattr_subsystem: complete building xattr subsystem, 35 of xdatum (32 unchecked, 3 orphan) and 54 of xref (3 dead, 0 orphan) found.
[   15.561760] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   15.597352] block: extroot: not configured
[   16.693114] jffs2: notice: (465) jffs2_build_xattr_subsystem: complete building xattr subsystem, 35 of xdatum (32 unchecked, 3 orphan) and 54 of xref (3 dead, 0 orphan) found.
[   16.734698] mount_root: loading kmods from internal overlay
[   17.077778] kmodloader: loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   17.342177] usbcore: registered new interface driver uas
[   17.355994] kmodloader: done loading kernel modules from /tmp/overlay/upper/etc/modules-boot.d/*
[   18.096774] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[   18.128574] block: extroot: not configured
[   18.144634] mount_root: switching to jffs2 overlay
[   18.159309] overlayfs: upper fs does not support tmpfile.
[   18.191547] urandom-seed: Seeding with /etc/urandom.seed
[   18.567037] procd: - early -
[   18.573242] procd: - watchdog -
[   19.691054] procd: - watchdog -
[   19.706908] procd: - ubus -
[   20.065581] random: ubusd: uninitialized urandom read (4 bytes read)
[   20.094529] random: ubusd: uninitialized urandom read (4 bytes read)
[   20.125429] random: ubusd: uninitialized urandom read (4 bytes read)
[   20.194087] procd: - init -
[   21.663347] random: jshn: uninitialized urandom read (4 bytes read)
[   21.960173] random: ubusd: uninitialized urandom read (4 bytes read)
[   21.973343] random: ubus: uninitialized urandom read (4 bytes read)
[   23.076711] kmodloader: loading kernel modules from /etc/modules.d/*
[   24.048974] urngd: jent-rng init failed, err: 2
[   24.126273] Loading modules backported from Linux version v5.15.58-0-g7d8048d4e064
[   24.141462] Backport generated by backports.git v5.15.58-1-0-g42a95ce7
[   24.344499] PPP generic driver version 2.4.2
[   24.358584] NET: Registered protocol family 24
[   24.426145] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "factory"
[   24.440591] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[   24.456073] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected
[   24.469958] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   24.487137] kmodloader: done loading kernel modules from /etc/modules.d/*
[   41.084788] random: crng init done
[   41.091582] random: 88 urandom warning(s) missed due to ratelimiting
[   59.381774] 8021q: adding VLAN 0 to HW filter on device eth0
[   59.407239] br-lan: port 1(eth0) entered blocking state
[   59.417740] br-lan: port 1(eth0) entered disabled state
[   59.428588] device eth0 entered promiscuous mode
[   59.451190] br-lan: port 1(eth0) entered blocking state
[   59.461686] br-lan: port 1(eth0) entered forwarding state
[   60.395010] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   73.297104] ieee80211 phy0: rt2800_wait_bbp_rf_ready: Error - BBP/RF register access failed, aborting
[   73.315515] ieee80211 phy0: rt2800_loft_iq_calibration: Warning - RF RX busy in LOFT IQ calibration
[   73.585325] ieee80211 phy0: rt2800_wait_bbp_rf_ready: Error - BBP/RF register access failed, aborting
[   73.603741] ieee80211 phy0: rt2800_loft_iq_calibration: Warning - RF RX busy in LOFT IQ calibration
[   73.758454] ieee80211 phy0: rt2800_wait_bbp_rf_ready: Error - BBP/RF register access failed, aborting
[   73.776864] ieee80211 phy0: rt2800_rxiq_calibration: Warning - Timeout waiting for MAC status in RXIQ calibration
[   76.975406] wlan0: authenticate with c2:06:c3:f2:06:8a
[   77.008731] wlan0: send auth to c2:06:c3:f2:06:8a (try 1/3)
[   77.029971] wlan0: authenticated
[   77.046511] wlan0: associate with c2:06:c3:f2:06:8a (try 1/3)
[   77.064007] wlan0: RX AssocResp from c2:06:c3:f2:06:8a (capab=0x1431 status=0 aid=23)
[   77.080343] wlan0: associated
[   77.837864] wlan0: Limiting TX power to 30 (30 - 0) dBm as advertised by c2:06:c3:f2:06:8a
[   77.855746] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
1 Like

Couple more data points:

Firmware installed:
https://downloads.openwrt.org/releases/22.03.2/targets/ramips/mt7620/openwrt-22.03.2-ramips-mt7620-kimax_u35wf-squashfs-sysupgrade.bin

usb and scsi drivers/utils installed:

kmod-usb-core - 5.10.146-1
kmod-usb-ehci - 5.10.146-1
kmod-usb-ohci - 5.10.146-1
kmod-usb-storage - 5.10.146-1
kmod-usb-storage-uas - 5.10.146-1
kmod-usb-xhci-hcd - 5.10.146-1
kmod-usb2 - 5.10.146-1
kmod-usb3 - 5.10.146-1
libusb-1.0-0 - 1.0.24-5
usbutils - 014-1
kmod-scsi-core - 5.10.146-1

Hi, are you certain it’s a scsi interface? Sata would make more sense (ahci)

Did you install file system support?

1 Like

As @psherman questioned - do you have kmod-fs-ext4 installed?

Thank you all!

I did make confusion between SCSI and SATA, I must be tired :slight_smile:
My device is SATA, so i installed kmod-ata-ahci.
I did have kmod-fs-ext4 already installed.

However, after several reboots and a new clean install, the disk is still not recognized. I get the same behavior as before (disk not spinning up, partitions not available in /dev/sda*.)

Any thoughts on what I could try next?

It turns out the SATA interface is on a USB-to-SATA bridge, so it just needs the usb-storage driver.
I had an electrical connection problem since my drive did not fit well in the enclosure (I had to disassemble the box to figure it out.)
All working now, thanks again for your help!

2 Likes

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