OpenWrt Forum Archive

Topic: Files and install instructions for HooToo HT-TM02 and HT-TM04(RT5350)

The content of this topic has been archived between 29 Mar 2018 and 7 May 2018. Unfortunately there are posts – most likely complete pages – missing.

jacknweems wrote:

I appreciate how helpfull everyone has been on this thread. Work has been crazy so I'm just now getting back to this. I think uploading an image via TFTP is going to be my only way back in. I have a TFTP server set up but I'm not clear on what file I need upload.

In my experience, connecting a serial console will be easier given all the hassle it is to get a TFTP server running and all the IP addresses set correctly.

Thanks for the very prompt reply. I've broken the 'built in' bridging between LAN and WAN, reset the firewall rules appropriately (I think) and basically followed all the steps I followed to get this working successfully in BB on the TP-Link device. I'm not getting as far as the OpenVPN installation and configuration stage, as I'm getting stalled when obtaining a DHCP lease on the WAN interface. I'll try a hard reset and start again from scratch - I just wanted to be sure I wasn't missing some essential patch or package. I'll keep you posted.

(Last edited by TravelingMan on 2 Feb 2015, 09:16)

OK. Moving slowly ahead - I'm now able to access the internet via wifi lan/cabled wan (the problem was caused by a vlan issue), but am unable to install the current trunk OpenVPN package due to a kernel dependency.

Update - Installed latest trunk release and packages (3 Feb 2015 openwrt-ramips-rt305x-ht-tm02-squashfs-sysupgrade.bin). So far so good - at least for the OpenVPN functionality that I need. I haven't tried the USB port functionality or added any packages other than Wingspinner's base packages plus wget, unzip and openvpn-openssl. I'll update if I detect any interesting or funky behaviour with the build over time. If all works well, I'll stay with this build until a stable version of CC is released.

(Last edited by TravelingMan on 4 Feb 2015, 05:39)

TravelingMan

Could you please be more specific on the steps you have taken to get things going, maybe even share your config files for this.

I also would like to confirm that you are using the VPN client on the WAN side to a remote OpenVPN server (possibly at home).  If so, what is the server end device and what kind of performance are you able to achieve?

I have both a TUN and TAP server running.  The TUN is for my Phone, but ts sloooow.  Wondering if I connect my iPhone to the LAN side, if I then can access my network over the TAP interface.

Cheers.... RangerZ

Hi

I have loaded the r42649.  The upgrade appeared to have gone fine, however I can not get internet or the LAN.

My primary router is 192.168.1.1 and it's AP is 192.168.11.1 with it's own guest LAN at 192.168.3.1.  The guest LAN has it's own DHCP.  The AP's 192.168.11.1 does not do DHCP, but gets IP from the router. (All DD-WRT)

I did not see a WAN interface so I started to create on, but soon found the WIFI tab and learned that scanning and selecting a network would create one.  I deleted the WAN I created.

I attached to my Wireless AP (DD-WRT AP) and selected the LAN zone during config, expecting that this would allow me access to the LAN for the attached client on this particular Network Connection.

I was getting an IP for the WWAN.  On the primary router I did validate that the WWAN is connected.  Ping and traceroute silimarly fail.  I have changed the router IP and gateway in and out of the subnet.   After some more "cycles"  am not able to hold an IP.  I can see it coming and going from the AP's status screen.

I have tried both the default subnet for the TM02 and a separate subnet.  Not clear on how the TM02 IP should be configured, but expect that the Routing should allow the LAN access and it should be on a different subnet than my primary router.

I can however connect to the Guest network on my AP and can access the internet.  The Guest connection cannot access the LAN.

Any ideas?

What does the reset switch do?

Thanks for your help... RangerZ

(Last edited by RangerZ on 8 Feb 2015, 04:44)

Today's Issues and Solutions

PACKAGES DIRECTORY
OPENWRT THEME
SSID KEY
LAN ACCESS
RESET BUTTON

PACKAGES DIRECTORY
------------------
It appears that the default path to the packages as of 2/8/15 no longer matches the path in the 42649 image file.  The GENERIC folder is missing.  The new paths are as follows:

src/gz chaos_calmer_base http://downloads.openwrt.org/snapshots/ … kages/base
src/gz chaos_calmer_luci http://downloads.openwrt.org/snapshots/ … kages/luci
src/gz chaos_calmer_management http://downloads.openwrt.org/snapshots/ … management
src/gz chaos_calmer_packages http://downloads.openwrt.org/snapshots/ … s/packages
src/gz chaos_calmer_routing http://downloads.openwrt.org/snapshots/ … es/routing
src/gz chaos_calmer_telephony http://downloads.openwrt.org/snapshots/ … /telephony

OPENWRT THEME
-------------
I prefer tabs so I downloaded the OpenWRT.org theme and got the following message when I tried to navigate to any page.  I had not even changed the system to use the theme.

/usr/lib/lua/luci/dispatcher.lua:448: Failed to execute template dispatcher target for entry '/admin/status/overview'.
The called action terminated with an exception:
/usr/lib/lua/luci/template.lua:120: Failed to execute template 'admin_status/index'.
A runtime error occured: /usr/lib/lua/luci/template.lua:120: Failed to execute template 'header'.
A runtime error occured: /usr/lib/lua/luci/template.lua:120: Failed to execute template 'themes/openwrt.org/header'.
A runtime error occured: [string "/usr/lib/lua/luci/view/themes/openwrt.org/h..."]:8: attempt to call field 'ubus' (a nil value)
stack traceback:
    [C]: in function 'assert'
    /usr/lib/lua/luci/dispatcher.lua:448: in function 'dispatch'
    /usr/lib/lua/luci/dispatcher.lua:195: in function </usr/lib/lua/luci/dispatcher.lua:194>
   
I know HTML so I commented out the offending lines and got the GUI back, however when I selected the OpenWRT Theme it did not change the GUI.

SSID KEY
---------
This was a bugger, and the reason that I was having connection issues yesterday.

If one goes Network=>  WIFI
Select the Scan Button
Select The Join Network Button
There is a field called "WPA passphrase".
One might assume that filling in this field would then update the value in
    option key 'passphrase'
after entereing submit, but it does not.  Indeed nothing gets updated until on the bottom of the second page one hits the "Save & Apply" at which time the system appears to update the
    option ssid 'sationname'
    option bssid 'mac address'
but not the key value.

The Key Value must be entered (again) at the bottom, on the unselected tab, Wireless Security, after which one then needs to hit the Save & Apply.  This is not at all intuitive. 

I think a user generally expects that entering the value for the field labeled WPA passphrase (better called Passphrase) and pressing "Submit" should connect them to the device.  The Details pages should only be required for config changes.

FYI:  This is the first wireless device that I have used with OpenWRT in any mode.

Possibly related is an occasional error message:  "Some fields are invalid, Unable To Update".  As yet I have not been able to generate this on demand.  I have generally rebooted to get by this.

RESET
-----
How does the reset work.   Specifically when does one engage it, for how long or until what set of LED flashes, and what is the expected results.

Cheers.... RangerZ

I cannot reproduce your "SSID KEY" issues, they key value is properly filled in here. What version of LuCI was that?

ccr42649 \ luci svn-r10532

I also notice that the header on the 'Wireless Network: Client "Client Name" (wlan0)' is not always reflecting the correct "Client Name" value.  This sometimes occurs when changing wireless networks.  After clicking Join for wireless network ABCD, the header on the page may have the old Wireless Network name instead of ABCD.

(Last edited by RangerZ on 9 Feb 2015, 06:28)

TravelingMan wrote:

OK. Moving slowly ahead - I'm now able to access the internet via wifi lan/cabled wan (the problem was caused by a vlan issue), but am unable to install the current trunk OpenVPN package due to a kernel dependency.

Update - Installed latest trunk release and packages (3 Feb 2015 openwrt-ramips-rt305x-ht-tm02-squashfs-sysupgrade.bin). So far so good - at least for the OpenVPN functionality that I need. I haven't tried the USB port functionality or added any packages other than Wingspinner's base packages plus wget, unzip and openvpn-openssl. I'll update if I detect any interesting or funky behaviour with the build over time. If all works well, I'll stay with this build until a stable version of CC is released.

I'm currently using two 3020 to achieve the OpenVPN-AP-as-WiFi-Client setup (connect to a Hotspot and provide my private one that is bridged to the OpenVPN tunnell), due to the 3020's 4 MB flash limitation. I stumbled upon the HT-TM02, bought one, installed it with r42649 as provided by wingspinner. (BTW: Big thanks for your work!) So far, so good. Installing openvpn-openssl fails with dependency to "kernel (= 3.14.32-1-e369d5ff88fd33b943822e13d515ee88)", "opkg install kernel" yields: "Package kernel (3.14.18-1-22d955a3a14c316ed6c91aaac9331312) installed in root is up to date." As there's no package repository for r42649, I tried to upgrade with today's sysupgrade file from http://downloads.openwrt.org/snapshots/ … pgrade.bin, but, via Luci or sysupgrade, this does not lead to a working system. According to U-Boot's LED usage, the kernel isn't booted (both LED stay on). Powering up with reset pressed I was able to tftp-flash sysupgrade.bin of r42649 again, but there it ends sad

TravelingMan, did you do anything fancy to upgrade to the version of Thursday last week? Can you give me the version number so I could check out that one and try to rebuild that seems-to-be-working version locally?

wingspinner, is there a way (besides soldering pins for the Serial onto the TM02's board) to debug this, i. e. does the U-Boot contain netconsole by chance? And what needs to be put into /etc/config/ubootenv to make fw_printenv (uboot-envtools) work?

I just installed the r42649 supplied by wingspinner on an HT-TM04 and Ethernet, WAN and USB disk access seems to be working.  I haven't tried to charge anything yet, but I don't expect there to be an issue.  I took a chance using wingspinner's directions as I haven't figured out how to get inside the unit yet, but judging from the success I guess the internal hardware is identical with the addition of the 6000 mAh battery.

BUMP

I am a OpenWRT noob.  I have installed OpenWRT as per instructions and have this running, but would like to change the config to a basic router.  I am afraid to begin just hacking as I do not want to get locked out when I change the LAN to WAN.

I expect to config via SCP

Could some one please help with some specific config and sequence of steps to set as a router?

Best Regards.... RangerZ

RangerZ wrote:

Today's Issues and Solutions

PACKAGES DIRECTORY
[...]
PACKAGES DIRECTORY
------------------
It appears that the default path to the packages as of 2/8/15 no longer matches the path in the 42649 image file.  The GENERIC folder is missing.  The new paths are as follows:

src/gz chaos_calmer_base http://downloads.openwrt.org/snapshots/ … kages/base
src/gz chaos_calmer_luci http://downloads.openwrt.org/snapshots/ … kages/luci
src/gz chaos_calmer_management http://downloads.openwrt.org/snapshots/ … management
src/gz chaos_calmer_packages http://downloads.openwrt.org/snapshots/ … s/packages
src/gz chaos_calmer_routing http://downloads.openwrt.org/snapshots/ … es/routing
src/gz chaos_calmer_telephony http://downloads.openwrt.org/snapshots/ … /telephony
[...]

  • installed openwrt-ramips-rt305x-ht-tm02-squashfs-factory-r42649.bin

  • Could not add any packages so I updated /etc/opkg.conf with source paths above

  • Able to install nano with opkg but trying to install any kernel module failes

# opkg install kmod-fs-ext4
Installing kmod-fs-ext4 (3.18.7-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/generic/packages/base/kmod-fs-ext4_3.18.7-1_ramips_24kec.ipk.
Multiple packages (kmod-crypto-core and kmod-crypto-core) providing same name marked HOLD or PREFER. Using latest.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-fs-ext4:
 *     kernel (= 3.18.7-1-ec1a21bbe43e2a54410447b46dd21edc) *     kernel (= 3.18.7-1-ec1a21bbe43e2a54410447b46dd21edc) *     kernel (= 3.18.7-1-ec1a21bbe43e2a54410447b46dd21edc) * 
 * opkg_install_cmd: Cannot install package kmod-fs-ext4.
  • I would really like to be able to install kernel modules. Any help would be greatly appreciated

vernonjvs wrote:
RangerZ wrote:

Today's Issues and Solutions

PACKAGES DIRECTORY
[...]
PACKAGES DIRECTORY
------------------
It appears that the default path to the packages as of 2/8/15 no longer matches the path in the 42649 image file.  The GENERIC folder is missing.  The new paths are as follows:

src/gz chaos_calmer_base http://downloads.openwrt.org/snapshots/ … kages/base
src/gz chaos_calmer_luci http://downloads.openwrt.org/snapshots/ … kages/luci
src/gz chaos_calmer_management http://downloads.openwrt.org/snapshots/ … management
src/gz chaos_calmer_packages http://downloads.openwrt.org/snapshots/ … s/packages
src/gz chaos_calmer_routing http://downloads.openwrt.org/snapshots/ … es/routing
src/gz chaos_calmer_telephony http://downloads.openwrt.org/snapshots/ … /telephony
[...]

  • installed openwrt-ramips-rt305x-ht-tm02-squashfs-factory-r42649.bin

  • Could not add any packages so I updated /etc/opkg.conf with source paths above

  • Able to install nano with opkg but trying to install any kernel module failes

# opkg install kmod-fs-ext4
Installing kmod-fs-ext4 (3.18.7-1) to root...
Downloading http://downloads.openwrt.org/snapshots/trunk/ramips/generic/packages/base/kmod-fs-ext4_3.18.7-1_ramips_24kec.ipk.
Multiple packages (kmod-crypto-core and kmod-crypto-core) providing same name marked HOLD or PREFER. Using latest.
Collected errors:
 * satisfy_dependencies_for: Cannot satisfy the following dependencies for kmod-fs-ext4:
 *     kernel (= 3.18.7-1-ec1a21bbe43e2a54410447b46dd21edc) *     kernel (= 3.18.7-1-ec1a21bbe43e2a54410447b46dd21edc) *     kernel (= 3.18.7-1-ec1a21bbe43e2a54410447b46dd21edc) * 
 * opkg_install_cmd: Cannot install package kmod-fs-ext4.
  • I would really like to be able to install kernel modules. Any help would be greatly appreciated

This happens because you are using a trunk image that is compiled every day, as all the packages, so when you want to install a new package after a few days, the trunk image that was in your device is outdated and opkg fails with the broken dependencies errors.

The only alternatives that you have is downloading the source and compiling your own version of OpenWRT, with all the packages that you need, or flashing a new precompiled trunk version and downloading all the packages of that version, so you can set your own repository with a "snapshot" of all the packages at the same image compilation time.

Regards!

(Last edited by frikinet on 22 Feb 2015, 13:45)

frikinet wrote:

[...]

This happens because you are using a trunk image that is compiled every day, as all the packages, so when you want to install a new package after a few days, the trunk image that was in your device is outdated and opkg fails with the broken dependencies errors.

The only alternatives that you have is downloading the source and compiling your own version of OpenWRT, with all the packages that you need, or flashing a new precompiled trunk version and downloading all the packages of that version, so you can set your own repository with a "snapshot" of all the packages at the same image compilation time.

Regards!

Thanks very much for your quick reply. I am a complete OpenWrt Noob and this helped get me on the right track and have success. I upgraded the firmware using the command line sysupgrade intructions. The February 22 build worked great for me. I then used opkg to re-install most of the packages wingspinner listed except nano and samba. I prefer nfs and joe instead.

wingspinner wrote:

define Profile/HT-TM02
    NAME:=HOOTOO HT-TM02
    PACKAGES:=\
        wpad-mini \
        kmod-ledtrig-netdev kmod-ledtrig-timer kmod-leds-gpio kmod-ledtrig-default-on \
        kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-net usbutils \
        kmod-scsi-core kmod-scsi-generic kmod-fs-ext4 \
        kmod-usb-storage kmod-usb-storage-extras block-mount \
        kmod-usb-serial kmod-usb-serial-ftdi kmod-gpio-button-hotplug \
        kmod-nls-cp437 kmod-nls-iso8859-1 kmod-nls-utf8 luci luci-mod-admin-full \
        kmod-app-samba luci-theme-openwrt luci-proto-relay relayd nano \
        fstools
endef

In my opinion, it is helpful to ensure that the TM-02 has a working Internet connection before attempting the upgrade. Otherwise, you will have to follow the Luci instructions on how to install apps offline.  The command line sysupgrade saved my settings so I did not have to reconfigure the network after firmware upgrade.

I just want to thank wingspinner for all his great work getting openwrt to work on the TM-02. I was looking for a way to serve my 2TB ext4 formatted portable hard drive to my Android tablet running Kodi/XBMC over nfs while travelling. Note that Android Kodi/XBMC supports nfs natively so you don't heed to root your tablet.

  • I connect my 2TB ext4 formatted portable USB hard drive to the TM-02

  • I connect my battery pack to the TM-02

  • I connect the Android Tablet to the TM-02 wireless access point

I don't need an Internet connection for this.

I was able to get nfs working on OpenWrt by simply installing the nfs-kernel-server package. I did not have to alter any firewall rules. By default, the nfs-kernel-server package exports /mnt. I had to export the usb hard drive mount point, on my OpenWrt configuration, /mnt/sda1 instead. Otherwise, I would get an access denied.

Thanks to everyone that worked on this!

(Last edited by vernonjvs on 23 Feb 2015, 10:50)

HooTooJunkie wrote:

I manually looked using a browser at all the paths mentioned by the other member showing the new paths for them.

I may simply use the mini-DLNA instead, if this kmod-app-samba can't be found smile

I was considering downloading the OpenWRT package to compile everything into a new firmware file.  It may be easier that way.

Have you considered doing that?

When my TM-02 has Internet access, I can see all available packages in Luci. You can install packages from Luci as well.

Unfortunately, I don't know anything about the OpenWrt Samba package or if it automatically installs all the dependencies needed for a working samba server.

I wanted to try giving the TM02 Internet access from my original routers WiFi out,
by having the TM02 connect to that routers WiFi and send it to a port on the TM02,
so I can get Internet access when the TM02 Ethernet port is connected to my PC instead of the original router.

Is it possible to configure the LuCI interface to this?

I did a Google search to find the OpenWRT link that explains this.  Is it called Bridging?
https://www.google.com/#q=bridging+with+openwrt

If I'm on the right "track" with this, which google search link should I try?

Or can someone explain the procedure?

HooTooJunkie wrote:

I wanted to try giving the TM02 Internet access from my original routers WiFi out,
by having the TM02 connect to that routers WiFi and send it to a port on the TM02,
so I can get Internet access when the TM02 Ethernet port is connected to my PC instead of the original router.

Is it possible to configure the LuCI interface to this?

[...]

Yes. You need to change the wireless interface from an AP (Access Point) to a client.

rayknight wrote:

I just installed the r42649 supplied by wingspinner on an HT-TM04 and Ethernet, WAN and USB disk access seems to be working.  I haven't tried to charge anything yet, but I don't expect there to be an issue.  I took a chance using wingspinner's directions as I haven't figured out how to get inside the unit yet, but judging from the success I guess the internal hardware is identical with the addition of the 6000 mAh battery.

Same experience than yours with a HT-TM01... All models (HT-TM01, HTM02, HT-TM04) seem to have the same hardware.

vernonjvs wrote:
HooTooJunkie wrote:

I wanted to try giving the TM02 Internet access from my original routers WiFi out,
by having the TM02 connect to that routers WiFi and send it to a port on the TM02,
so I can get Internet access when the TM02 Ethernet port is connected to my PC instead of the original router.

Is it possible to configure the LuCI interface to this?

[...]

Yes. You need to change the wireless interface from an AP (Access Point) to a client.

Actually, my files are already configured as a client.....

Newbie ALERT!! I did something stupid!

I had the TM02 working with Luci and then followed a post here about updating the Trunk.

I assumed I could then just access the router via the browser and 192.168.1.1 as I had Luci, then when it didn't work I started reading others problems with the same thing and the wiki says I could add Luci back in.

However, I have no idea how to do that. It shows scripts. With what and where do I use them to reinstate Luci? I am using windows 8.1 and do not have linux or know anything about it.

The HooToo boots and seems to be doing all the right things via the LEDs.

How can I get back into the HooToo? I really don't care if I go back to the original Luci install of OpenWrt as it was working fine. If it ain't broke, aaaaaaarrrgggghhh.

impatiens wrote:

Here's the relevant page for anybody else who gets stuck on this:
http://wiki.openwrt.org/doc/recipes/routedclient

OK, I am still stuck. I now have Ubuntu set up and running on an old laptop. I do not know what to do next.

I am trying to follow the linked page but the script shows

uci del wireless.@wifi-device[0].disabled

When I try to do that in a terminal I get and "unknown command "uci"

Can someone please help with getting me started trying to access the Router now that I have used a trunk update to the original LUCI.

What do I need to install into Ubuntu in order to make things work, like...

uci del wireless.@wifi-device[0].disabled

*Please Delete*

(Last edited by Monsterenergy22 on 11 Mar 2015, 01:12)

I'm trying to get mjpeg-streamer working on this, but there seems to be an issue with the "binding" of mjpg-streamer.

Using the default configuration for the OpenWRT install on the router, with the following result:
Wired port = LAN with DHCP, 192.168.1.1
Wireless = WAN, 159.48.xx.xxx (IP assigned by the wifi network it is connected to)
PC connected to LAN port, with IP address 192.168.1.234 (IP assigned by the router)


mjpg-streamer is running.  The System Log in Luci reports that MJPG-Streamer is serving client 192.168.1.234 (the PC connected to the wired LAN port).  This doesn't make sense, this isn't what I want, and it also doesn't work (can't see the mjpg-streamer page from anywhere, I tried a second PC on the LAN to no avail).  I want to view the mjpg-streamer page served up on the WAN address, not the PC connected to the WAN.   Does anyone know how to force mjpg-streamer to "bind" to the address I want?  (The WAN address in this case).  Thanks! 

PS Great work to get this running on this neat piece of hardware!

Further info - I disconnected everything from the LAN (wires) and connected via wifi.  I was able to get a mjpg-streamer login, but once there I get a page titled "MJPG-Streamer - Stream Example" with nothing but a tiny image of a computer with an "X" on the screen..