I am trying to manually install rtl8152 related packages in order for networking to work on the TP-Link TL-UE300 USB 3.0 to Gigabit Ethernet Network Adapter attached to my Raspberry Pi 2 flashed with 21.02.3 unfortunately opkg failed with the following errors:
# opkg install kmod-usb-net_5.4.188-1_arm_cortex-a7_neon-vfpv4.ipk Unknown package 'kmod-usb-net'. Collected errors: * pkg_hash_check_unresolved: cannot find dependency kmod-mii for kmod-usb-net * pkg_hash_fetch_best_installation_candidate: Packages for kmod-usb-net found, but incompatible with the architectures configured * opkg_install_cmd: Cannot install package kmod-usb-net.
Tried the same on 22.03.0-rc1 using the kmod packages for the said release/architecture but to no avail. Is there a way to customize the build to include the kmod-usb-net-rtl8152 package for either 21.02.3 or 22.03.0-rc1 so that internet works out of the box? Either release are not available on both https://asu.aparcar.org and https://chef.libremesh.org.
Thanks for the prompt response @dave14305, yes I did download and tried to install the bcm2709 kmods but it failed as mentioned. The below are the packages I am trying to install and as you can see they are all for bcm2709 architecture.
This is now resolved, I failed to look at the package dependency error message thoroughly, it was right there in front of me all this time, the correct order of installation should be as follows:
opkg install kmod-mii_5.4.188-1_arm_cortex-a7_neon-vfpv4.ipk Installing kmod-mii (5.4.188-1) to root... Configuring kmod-mii.
opkg install kmod-usb-net_5.4.188-1_arm_cortex-a7_neon-vfpv4.ipk Installing kmod-usb-net (5.4.188-1) to root... Configuring kmod-usb-net.
opkg install kmod-usb-net-rtl8152_5.4.188-1_arm_cortex-a7_neon-vfpv4.ipk Installing kmod-usb-net-rtl8152 (5.4.188-1) to root... Configuring kmod-usb-net-rtl8152.
The TP-Link TL-UE300 USB 3.0 Gigabit Ethernet Network Adapter is now detected as eth1.