Hi. I kinda shot myself in the foot by doing sysupgrade yesterday and not adequately taking into account crucial installed packages. One of the key packages I'd installed and that now seems to be missing are some usb modules that are necessary to make my usb-to-ethernet WAN interface/connection (asix, if memory serves) to work. So I've currently got no way to connect my pi4B router to the internet. Which means I can't run opkg to retrieve packages so as to install those needed modules.
So I'm looking for workarounds to get me back on-line. One possibility I can think of would be to download the needed modules to a usb drive, plug that into my rpi4, fire up the device, and install them from there. But I'm not sure from where I could download them, as well as whether there is a way to install the downloaded modules using e.g., opkg. Can anyone offer feedback on doing something like that?
Another possible option I've considered is using a usb wifi adapter I have laying around that I'm pretty sure is supported out-of-box by OpenWRT and temporarily making that the WAN port. Then I could connect the router to a wifi network and download the needed module(s) and install them.
Those are the possible workarounds I can think of ATM. But I'm open to other suggestions as well. Any feedback will be appreciated. Thanks.
if you got console access, move the only port you've got over to wan, and install the files you need over internet.
if you know which packages you're missing, use https://firmware-selector.openwrt.org/?version=24.10.0&target=bcm27xx%2Fbcm2711&id=rpi-4 to customize a sysupgrade image with them included, then simply reflash.
Great suggestions, frollic! I'm going to look into the reflash option. That sounds like it could be the path of least resistance--if I can remember which modules those were! A little lsusb-fu should help with diagnosing that.
reassigning lan port to wan would be a lot quicker, if you got console access, that is
By "console" do you mean via ssh? Or are you talking about serial console/UART? I don't have the latter kind of access.
serial or HDMI.
Since you’re using a raspberry pi, plug in a keyboard and a monitor.
Using firmware selector as suggested by frollic and making a custom firmware that contained the needed module (turns out the key one for my hardware was kmod-usb-net-asix) and reflashing the router with that is what worked for me. Thanks!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.