Noob here. I have netgear r6120, wanted to use usb storage. I am not sure why lusb command is not working after installing and rebooting router. Log is here:
root@OpenWrt:~# opkg update
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/packages/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_core
Downloading https://downloads.openwrt.org/releases/23.05.4/targets/ramips/mt76x8/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/mipsel_24kc/base/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_base
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/mipsel_24kc/base/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/mipsel_24kc/luci/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_luci
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/mipsel_24kc/luci/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/mipsel_24kc/packages/Packages.gzUpdated list of available packages in /var/opkg-lists/openwrt_packages
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/mipsel_24kc/packages/Packages.sig
Signature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/mipsel_24kc/routing/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_routing
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/mipsel_24kc/routing/Packages.sigSignature check passed.
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/mipsel_24kc/telephony/Packages.gz
Updated list of available packages in /var/opkg-lists/openwrt_telephony
Downloading https://downloads.openwrt.org/releases/23.05.4/packages/mipsel_24kc/telephony/Packages.sig
Signature check passed.
root@OpenWrt:~# opkg install usbutils
Package usbutils (014-1) installed in root is up to date.
root@OpenWrt:~# opkg list-installed usb
kmod-usb-core - 5.15.162-1
kmod-usb-ehci - 5.15.162-1
kmod-usb-ohci - 5.15.162-1
kmod-usb-storage - 5.15.162-1
kmod-usb-storage-uas - 5.15.162-1
kmod-usb2 - 5.15.162-1
libusb-1.0-0 - 1.0.26-3
usbutils - 014-1
root@OpenWrt:~# dmesg
[ 0.000000] Linux version 5.15.162 (builder@buildhost) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 12.3.0 r24012-d8dd03c46f) 12.3.0, GNU ld (GNU Binutils) 2.40.0) #0 Mon Jul 15 22:14:18 2024
[ 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 MT7628AN ver:1 eco:2
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[ 0.000000] MIPS: machine is Netgear R6120
[ 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-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=132768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.000000] Writing ErrCtl register=0007e000
[ 0.000000] Readback ErrCtl register=0007e000
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 56020K/65536K available (5980K kernel code, 605K rwdata, 748K rodata, 1232K init, 217K bss, 9516K 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] intc: using register map from devicetree
[ 0.000000] CPU Clock: 580MHz
[ 0.000000] timer_probe: no matching timers found
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[ 0.000002] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[ 0.015479] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[ 0.087661] pid_max: default: 32768 minimum: 301
[ 0.097962] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.112324] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.137113] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.156524] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.170177] pinctrl core: initialized pinctrl subsystem
[ 0.182675] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.195032] thermal_sys: Registered thermal governor 'step_wise'
[ 0.464894] PCI host bridge to bus 0000:00
[ 0.484742] pci_bus 0000:00: root bus resource [mem 0x20000000-0x2fffffff]
[ 0.498338] pci_bus 0000:00: root bus resource [io 0x10160000-0x1016ffff]
[ 0.511918] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.527628] pci 0000:00:00.0: [14c3:0801] type 01 class 0x060400
[ 0.539455] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 0.551828] pci 0000:00:00.0: reg 0x14: [mem 0x20200000-0x2020ffff]
[ 0.564295] pci 0000:00:00.0: supports D1
[ 0.572110] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 0.585709] pci 0000:01:00.0: [14c3:7662] type 00 class 0x028000
[ 0.597561] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[ 0.610941] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 0.624316] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 0.637970] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 0.650966] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[ 0.664037] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 0.677078] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 0.690838] pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]
[ 0.704256] pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]
[ 0.718532] pci 0000:00:00.0: BAR 1: assigned [mem 0x20200000-0x2020ffff]
[ 0.731957] pci 0000:01:00.0: BAR 0: assigned [mem 0x20000000-0x200fffff 64bit]
[ 0.746412] pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2010ffff pref]
[ 0.760672] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.770467] pci 0000:00:00.0: bridge window [mem 0x20000000-0x200fffff]
[ 0.783888] pci 0000:00:00.0: bridge window [mem 0x20100000-0x201fffff pref]
[ 0.798726] clocksource: Switched to clocksource MIPS
[ 0.810563] NET: Registered PF_INET protocol family
[ 0.820432] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.835872] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.852560] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.867788] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.882930] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.896863] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.909615] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.922492] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.936677] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.947917] PCI: CLS 0 bytes, default 32
[ 0.960534] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 0.980576] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.992061] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 1.013276] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[ 1.031302] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 1.042721] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 1.054090] mt7621_gpio 10000600.gpio: registering 32 gpios
[ 1.065844] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 1.082031] printk: console [ttyS0] disabled
[ 1.090523] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[ 1.108348] printk: console [ttyS0] enabled
[ 1.124836] printk: bootconsole [early0] disabled
[ 1.145454] spi-mt7621 10000b00.spi: sys_freq: 193333333
[ 1.180580] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
[ 1.190924] 5 fixed-partitions partitions found on MTD device spi0.0
[ 1.203577] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[ 1.218110] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[ 1.233270] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[ 1.247860] OF: Bad cell count for /palmbus@10000000/spi@b00/flash@0/partitions
[ 1.262601] Creating 5 MTD partitions on "spi0.0":
[ 1.272148] 0x000000000000-0x000000040000 : "u-boot"
[ 1.286418] 0x000000040000-0x000000060000 : "factory"
[ 1.297935] 0x000000060000-0x000000090000 : "nvram"
[ 1.311232] 0x000000090000-0x000000ff0000 : "firmware"
[ 1.323014] 2 uimage-fw partitions found on MTD device firmware
[ 1.334856] Creating 2 MTD partitions on "firmware":
[ 1.344701] 0x000000000000-0x000000240000 : "kernel"
[ 1.357850] 0x000000240000-0x000000f60000 : "rootfs"
[ 1.369126] mtd: setting mtd5 (rootfs) as root device
[ 1.380283] 1 squashfs-split partitions found on MTD device rootfs
[ 1.392633] 0x0000005e0000-0x000000f60000 : "rootfs_data"
[ 1.404869] 0x000000ff0000-0x000001000000 : "reserved"
[ 1.450950] rt3050-esw 10110000.esw: mediatek esw at 0xb0110000, irq 25 initialized
[ 1.467322] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 1.486483] NET: Registered PF_INET6 protocol family
[ 1.504137] Segment Routing with IPv6
[ 1.511629] In-situ OAM (IOAM) with IPv6
[ 1.519604] NET: Registered PF_PACKET protocol family
[ 1.529721] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 1.555768] 8021q: 802.1Q VLAN Support v1.8
[ 1.569007] clk: Disabling unused clocks
[ 1.584489] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 1.605346] Freeing unused kernel image (initmem) memory: 1232K
[ 1.617108] This architecture does not have kernel memory protection.
[ 1.629877] Run /sbin/init as init process
[ 1.637977] with arguments:
[ 1.637984] /sbin/init
[ 1.637991] with environment:
[ 1.637998] HOME=/
[ 1.638004] TERM=linux
[ 2.235083] init: Console is alive
[ 2.242645] init: - watchdog -
[ 3.285674] kmodloader: loading kernel modules from /etc/modules-boot.d/
[ 3.366048] usbcore: registered new interface driver usbfs
[ 3.377170] usbcore: registered new interface driver hub
[ 3.387845] usbcore: registered new device driver usb
[ 3.407210] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.423856] fsl-ehci: Freescale EHCI Host controller driver
[ 3.436959] ehci-platform: EHCI generic platform driver
[ 3.458018] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[ 3.471342] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[ 3.481700] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 3.493117] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 3.509020] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 3.548746] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 3.562508] hub 1-0:1.0: USB hub found
[ 3.570959] hub 1-0:1.0: 1 port detected
[ 3.587363] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 3.601457] ohci-platform: OHCI generic platform driver
[ 3.612345] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 3.625881] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 3.641712] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 3.724015] hub 2-0:1.0: USB hub found
[ 3.732528] hub 2-0:1.0: 1 port detected
[ 3.751533] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 3.776632] init: - preinit -
[ 4.023954] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 4.499088] random: procd: uninitialized urandom read (4 bytes read)
[ 5.200448] rt3050-esw 10110000.esw: port 4 link up
[ 5.281142] random: jshn: uninitialized urandom read (4 bytes read)
[ 5.461214] random: jshn: uninitialized urandom read (4 bytes read)
[ 5.733661] random: jshn: uninitialized urandom read (4 bytes read)
[ 5.817099] random: jshn: uninitialized urandom read (4 bytes read)
[ 5.967453] random: jshn: uninitialized urandom read (4 bytes read)
[ 6.267655] rt3050-esw 10110000.esw: port 4 link down
[ 8.695204] jffs2: notice: (336) jffs2_build_xattr_subsystem: complete building xattr subsystem, 23 of xdatum (19 unchecked, 4 orphan) and 29 of xref (4 dead, 0 orphan) found.
[ 8.729603] mount_root: switching to jffs2 overlay
[ 8.743800] overlayfs: upper fs does not support tmpfile.
[ 8.764308] urandom-seed: Seeding with /etc/urandom.seed
[ 8.899563] procd: - early -
[ 8.905709] procd: - watchdog -
[ 9.785998] procd: - watchdog -
[ 9.793811] procd: - ubus -
[ 9.887984] rt3050-esw 10110000.esw: port 4 link up
[ 9.927591] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.943966] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.957362] random: ubusd: uninitialized urandom read (4 bytes read)
[ 9.974978] procd: - init -
[ 11.441880] kmodloader: loading kernel modules from /etc/modules.d/*
[ 12.238334] SCSI subsystem initialized
[ 12.331356] Loading modules backported from Linux version v6.1.97-0-g7753af06eebfb
[ 12.346469] Backport generated by backports.git v6.1.97-1-0-g2431d56e
[ 12.467438] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 12.509207] scsi host0: usb-storage 1-1:1.0
[ 12.518456] usbcore: registered new interface driver usb-storage
[ 13.063301] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[ 13.092911] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[ 13.104735] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[ 13.168740] mt76_wmac 10300000.wmac: firmware init done
[ 13.354817] mt76_wmac 10300000.wmac: registering led 'mt76-phy0'
[ 13.368976] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 13.451332] mt76x2e 0000:01:00.0: card - bus=0x1, slot = 0x0 irq=4
[ 13.464006] mt76x2e 0000:01:00.0: ASIC revision: 76120044
[ 13.590105] scsi 0:0:0:0: Direct-Access Kingston DataTraveler2.0 1.00 PQ: 0 ANSI: 2
[ 13.693526] sd 0:0:0:0: [sda] 1956735 512-byte logical blocks: (1.00 GB/955 MiB)
[ 13.728777] sd 0:0:0:0: [sda] Write Protect is off
[ 13.738311] sd 0:0:0:0: [sda] Mode Sense: 0b 00 00 08
[ 13.748799] sd 0:0:0:0: [sda] No Caching mode page found
[ 13.759377] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 13.827772] sda: sda1
[ 13.853547] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 13.972354] random: jshn: uninitialized urandom read (4 bytes read)
[ 14.190652] mt76x2e 0000:01:00.0: ROM patch build: 20141115060606a
[ 14.270813] mt76x2e 0000:01:00.0: Firmware Version: 0.0.00
[ 14.281779] mt76x2e 0000:01:00.0: Build: 1
[ 14.289912] mt76x2e 0000:01:00.0: Build Time: 201607111443____
[ 14.448746] mt76x2e 0000:01:00.0: Firmware running!
[ 14.458649] mt76x2e 0000:01:00.0: registering led 'mt76-phy1'
[ 14.472193] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[ 14.782404] PPP generic driver version 2.4.2
[ 14.840040] NET: Registered PF_PPPOX protocol family
[ 14.909105] usbcore: registered new interface driver uas
[ 14.976749] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 15.411304] urngd: v1.0.2 started.
[ 20.646586] random: crng init done
[ 20.653445] random: 41 urandom warning(s) missed due to ratelimiting
[ 28.330208] rt3050-esw 10110000.esw: port 4 link down
[ 31.958880] rt3050-esw 10110000.esw: port 4 link up
[ 38.397052] br-lan: port 1(eth0.1) entered blocking state
[ 38.407878] br-lan: port 1(eth0.1) entered disabled state
[ 38.418995] device eth0.1 entered promiscuous mode
[ 38.428499] device eth0 entered promiscuous mode
[ 38.506530] br-lan: port 1(eth0.1) entered blocking state
[ 38.517325] br-lan: port 1(eth0.1) entered forwarding state
[ 39.429304] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 46.392543] br-lan: port 2(phy0-ap0) entered blocking state
[ 46.403705] br-lan: port 2(phy0-ap0) entered disabled state
[ 46.415172] device phy0-ap0 entered promiscuous mode
[ 46.737143] IPv6: ADDRCONF(NETDEV_CHANGE): phy0-ap0: link becomes ready
[ 46.750594] br-lan: port 2(phy0-ap0) entered blocking state
[ 46.761703] br-lan: port 2(phy0-ap0) entered forwarding state
[ 48.023564] br-lan: port 3(phy1-ap0) entered blocking state
[ 48.034709] br-lan: port 3(phy1-ap0) entered disabled state
[ 48.046177] device phy1-ap0 entered promiscuous mode
[ 48.056259] br-lan: port 3(phy1-ap0) entered blocking state
[ 48.067365] br-lan: port 3(phy1-ap0) entered forwarding state
[ 48.082310] br-lan: port 3(phy1-ap0) entered disabled state
[ 48.882508] IPv6: ADDRCONF(NETDEV_CHANGE): phy1-ap0: link becomes ready
[ 48.896023] br-lan: port 3(phy1-ap0) entered blocking state
[ 48.907139] br-lan: port 3(phy1-ap0) entered forwarding state
root@OpenWrt:~# lusb
-ash: lusb: not found
root@OpenWrt:~#