Hi everyone, I'm new to OpenWrt and I think it's the best solution for my situation.
I'm currently using an old phone on wifi tethering as AP for my "home network" (aka tablet, chromecast and PCs). I was thinking to buy some new gear when I found out about the possibility to use an old router of mine and the smartphone via USB tethering, which is awesome!
I was able to flash OpenWrt on my old D-Link DSL-2750B following this topic so the build is the 19.07.6, and it seems to work fine. My true problem is how to enable the USB tethering; I've read the guide and I've watched some youtube videos, consulted the forum and reddit but I have only the smartphone to access the internet, the router is in fact offline.
So I came to three conclusions:
Build a system from the 19.07.06 with kmod-usb installed by default on a VM and then flash the router
Using the OpenWrt firmware selector to download the 19.07.06 with kmod-usb in it
Somehow connect the router to the internet via the wlan port and then do the installation
Which of these possible solutions would you consider the better way? Will any of my solutions work?
Thanks for any help
You can add usb net drivers to sysupgrade image using firmware-selector? Is it hw rev f1 still supported in24.10?
Absent usb port driver in default set is a bug
@frollic thanks! I ended up connecting the router as a wireless client, I was then able to install via ssh kmod-usb but it doesn't see the usb port. I wll try to upgrade to 24.10, it seems to be supported!!
As mentioned by @frollic you probably need another/different kmod(s).
According to firmware selector, you should have kmod-usb2 kmod-usb-ohci installed (at least).
Run lsmod | grep usb to see what do you have on your router.
After I update to 24.10 I manage to transfer to my D-Link via ssh kmod-usb-net-rndis_6.6.73-r1_mips_mips32.ipk (I used this other guide for your joy) but when I try to install it it gives me this output:
Unknown package 'kmod-usb-net-rndis'.
Collected errors:
* pkg_hash_check_unresolved: cannot find dependency kmod-usb-net for kmod-usb-net-rndis
* pkg_hash_check_unresolved: cannot find dependency kmod-usb-net-cdc-ether for kmod-usb-net-rndis
* pkg_hash_fetch_best_installation_candidate: Packages for kmod-usb-net-rndis found, but incompatible with the architectures configured
* opkg_install_cmd: Cannot install package kmod-usb-net-rndis.
I plan to implement @frollic 's first suggestion, reconfiguring the LAN as a DHCP client. However, I am determined to make the other solution work.
First you will need to configure the device as a full router, not just as an AP. Reinstall OpenWrt with a custom image containing kmod-usb-net-rndis. All necessary packages will be also installed. Reset the settings, or don't keep settings while flashing in order to restart fresh.Than you need to configure a new interface, and add it to the WAN firewall zone. The tether will be configured as a new eth device, that you must assign to the new interface.
rndis works with most or all Android phones. To use an iPhone there is a different package.
As others said the base usb driver should be included by default on any model that has a USB port. All it does is detect a USB device on the bus and register an attachment point to it. This will generate a single log entry "New USB device found." Then some specific higher level driver (such as rndis) is supposed to take control of it.
They need to be installed in this order. In the network interfaces devices it is shown as eth1 not as usb0 as it is said in ""the guide"".
Now from LuCi diagnostic table the router can ping any server, but my laptop when connected to the lan has no access to the internet. I just need to study and understand how to share this connection, but I'll consider my problem as solved.