Hi folks,
I was referred here from the OpenWRT forums (which are currently down) in the hopes that I might find some guidance here. I am trying to configure OpenWRT on a Hame MPR-A1 router to basically pass packets received over wireless out through USB serial --> use this to control a robot vacuum. I'm trying to follow the tutorial that Julian Tatsch put together on his site. However, I'm pretty far out of my depth here - I'm a mechanical guy, not a software guy, and definitely not a IP config guy!
Here's my current status:
- I have successfully loaded OpenWRT onto the Hame router, using the onekeyRouterUpgrade tool that Jiapeng Li posted here. I can access the Hame router both through the web interface and through SSH.
- Current network configuration: Hame router is plugged into my main home router over Ethernet. My laptop is connected to the main home router via wireless. I can still SSH into the Hame router.
- I've tried to follow Julian Tatsch's instructions to configure the various network interfaces. Here's what I have right now:
** /etc/config/network:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth0.1'
option proto 'dhcp'
option gateway '192.168.181.1'
option dns '8.8.8.8'
config interface 'wwan'
option proto 'dhcp'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
option macaddr '9c:41:7c:40:a2:89'
config switch
option name 'rt305x'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'rt305x'
option vlan '1'
option ports '0 1 2 3 6t'
config switch_vlan
option device 'rt305x'
option vlan '2'
option ports '4 6t'
** /etc/config/wireless (Note: I've turned off wireless temporarily because it makes the router soooper slow...)
config wifi-device radio0
option type mac80211
option channel 11
option hwmode 11g
option path 'platform/rt2800_wmac.0'
option htmode HT20
list ht_capab GF
list ht_capab SHORT-GI-20
list ht_capab SHORT-GI-40
list ht_capab RX-STBC1
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 1
option country US
option txpower 20
option wmm 1
option channel 9
config wifi-iface
option device radio0
option network wwan
option mode sta
option ssid OpenWrt
option encryption psk2
option key <REDACTED>
**/etc/resolv.conf (Tatsch says to change this to a nameserver of your choice - I don't understand what this means! I tried changing it to a different IP address, but it changed back)
search lan
nameserver 127.0.0.1
- I am struggling to perform the sysupgrade step, because of the very low amount of RAM on the Hame router. I am able to start downloading the bin file, but I don't have enough space to complete the download. I don't think that this should prevent me from proceeding, though...
Here's my current problem: I cannot run opkg update
. When I do, I get the following error: wget: server returned error: HTTP/1.1 404 Not Found
. I am confused why this is happening. I can ping 8.8.8.8 successfully, and can get wget to connect to the internet & download packages when I call it directly. I don't think I can proceed without this step - I think I need to be able to update opkg before I can install ser2net.
Any thoughts/suggestions are appreciated! Thanks for your time & patience.