OpenWrt Forum Archive

Topic: Kingston Mobilelite G2 (MLWG2)

The content of this topic has been archived between 18 Apr 2018 and 6 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Supported in trunk @r43990

(Last edited by ldpinney on 17 Jan 2015, 09:43)

Anyone found a way to read battery data? I assume this would need kernel support but figured I would ask anyway. Also on CC I keep having to run /etc/init.d/dnsmasq restart or it will not hand out ip4 addresses, anyone else have this problem?

Also, the 4 pads near the serial port are those usb pads?

(Last edited by d.wonderful on 22 Jan 2015, 18:51)

d.wonderful wrote:

Anyone found a way to read battery data?

I have not found a way to monitor the battery for the G1 or G2

d.wonderful wrote:

Also, the 4 pads near the serial port are those usb pads?

From the markings I would guess ethernet.

Device Supported in Barrier Breaker @r44160

Works great. Thanks for your effort!

First off thanks for adding in support for this, its basically useless at the moment / stock.
I have DDWRT on my router but still a noob to this flashing business.

I havent been able to find anything that mentions flashing from a file on the SD card? Assume thats not possible.
Is there a / whats the simplest guide / steps to follow to flash the MLWG2?

Any help greatly appreciated.

srosam wrote:

I havent been able to find anything that mentions flashing from a file on the SD card? Assume thats not possible.
Is there a / whats the simplest guide / steps to follow to flash the MLWG2.

Have a look at the mlw221 (G1) user laird.bedore describes a way to flash with USB.
https://forum.openwrt.org/viewtopic.php?id=48401

anyone have a working prebuilt bin file for the MLWG2?

BlInK311 wrote:

anyone have a working prebuilt bin file for the MLWG2?

ldpinney AT gmail

d.wonderful wrote:

Anyone found a way to read battery data? I assume this would need kernel support but figured I would ask anyway

gpio44 on the mlwg2 lets you read the state of the red battery LED.

Not sure if this is where I should post this but I didn't see any place else that looked right.  This is the first device I've put OpenWRT on, so I don't have much experience with it.  I installed the pre-built .bin using a telnet connection and it seemed to work fine until I shut it off and then it started up with the battery and bridged lights both coming on, even though the ethernet was disconnected, and the wireless stayed off, and I couldn't connect.  So, I opened it and connected through terminal to the onboard serial connections and reinstalled OpenWRT through a TFTP server.  Once again it worked fine until I shut it off and then it did the same thing.  Anyone else have this?  I'm not really sure how to go about fixing it.  I guess I don't HAVE to shut it off, but it would be nice to not have to worry about it.

CannGramps : Did you do both the mtd writes ?

mtd_write write /media/USB1/openwrt-ramips-mt7620n-mlwg2-squashfs-sysupgrade.bin KernelA

mtd_write -r write /media/USB1/openwrt-ramips-mt7620n-mlwg2-squashfs-sysupgrade.bin KernelB

Yeah, I followed the instructions carefully, I can try again though just to make sure.  When I installed it over serial I just pointed it to the file however.  Also, I feel incredibly stupid, but I accidentally clicked on report post instead of reply, and sent my response to you to the admins as my reason for reporting.  That's the first time that's happened to me.

Both the mtd writes need to be done....Yes even if you used the serial / tftp method.
Reason...The Factory firmware has a "backup" that must be overwritten.

You could also try the sysupgrade or luci upgrade from Openwrt....might work?

Is it possible to do both writes using the serial/tftp method?

Yes smile

It seems like no matter what I try I can't get it to take.  I tried flashing the original firmware on it as well and it does the same thing.  When I start it on the serial connection without pressing anything it tells me Bad Magic Number,85190320.  Seems like I won't be shutting it down.

Edit: I think I got it.  I got it to take the original firmware and redid the telnet install.  It seems to have worked this time.  I must have missed something the first time.  Thanks for the help ldpinney!

(Last edited by CannGramps on 28 May 2015, 09:56)

markit wrote:

gpio44 on the mlwg2 lets you read the state of the red battery LED.

I can't get that to work, mind telling me how you did it?


Also, I use my G2 as an access point/media share in hotels and it was totally not working well so I made some changes, if anyone is intrested in how let me know.

d.wonderful wrote:

Also, I use my G2 as an access point/media share in hotels and it was totally not working well so I made some changes, if anyone is intrested in how let me know.


OK ... please post your configuration.

Ok, First I have what may not be a standard case so be careful reading the notes on the diffrent parts. Also, I hate vi and use nano so you may have to make so changes or install nano.

I use my router to take with me when I travel and like to use it as an extra layer of protection and also serv as a file server and dlna server (eventually an auto vpn). The problem is that the default install doesn't expect this. When you connect the wifi to a network then move to another network the router tries to reconnect to the old wifi and when it cant it borks out and won't let you connect to the router wifi. Not a big deal but still a pain.

First, connect to router with ethernet and connect to a wifi, then create your private wifi.
next create a file called wifireset, my router has an always is sd card so i put it there:

 root@OpenWrt:~#nano /mnt/sda2/wifireset

#!/bin/sh
mode=$(uci -q get wireless.@wifi-iface[1].mode)
if [ "$mode" = "sta" ]; then
        uci delete wireless.@wifi-iface[1]
        uci commit wireless
        uci commit network
        wifi
fi
ctrl+x to exit y to save then enter
root@OpenWrt:~#chmod +x /mnt/sda2/wifireset

In the router go to System -> Startup and scroll to bottom and in local setup add so it looks like this

# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

/mnt/sda2//wifireset
exit 0

What this will do is every time you power on the router it will delete any old wifi ap you have connected to in the past so you can connect to router without error.
The next thing that was tripping me up is every time I went to connect to a new wifi I forgot to uncheck the box to prevent overwiting the old settings so this might help:

root@OpenWrt:~#nano /usr/lib/lua/luci/model/cbi/admin_network/wifi_add.lua

Find:
if iw and iw.mbssid_support then
        replace = m:field(Flag, "replace", translate("Replace wireless configuration"),
                translate("An additional network will be created if you leave this unchecked."))

        function replace.cfgvalue() return "1" end

change to:
if iw and iw.mbssid_support then
        replace = m:field(Flag, "replace", translate("Replace wireless configuration"),
                translate("An additional network will be created if you leave this unchecked."))

        function replace.cfgvalue() return "0" end
ctrl+x to exit y to save then enter

This will just uncheck the box by default.

If you have questions (I am sure since I am a bad explaner) just ask. I am still working on the smb/dlna/vpn but will post that once I have those done.

--cheers!

d.wonderful wrote:
markit wrote:

gpio44 on the mlwg2 lets you read the state of the red battery LED.

I can't get that to work, mind telling me how you did it?


Also, I use my G2 as an access point/media share in hotels and it was totally not working well so I made some changes, if anyone is intrested in how let me know.

cd /sys/class/gpio
echo 44 > export
cat gpio44/value

########
Red -> 1
Green -> 0

Oh, ok I get it. I was thinking 0=off 1=green or something, I thought I had the wrong one. Still I wonder where the chip gets that value from to know what color to trigger

I am looking to buy one of these units for road warrior duty.  It appears to have the most robust CPU and memory of the group as of now.

I want a box that I can connect either via cable or wireless to a WAN, and be wireless providor to my phone and laptop.  Ultimately would like to layer on OpenVPN.  I run OpenVPN server at home on a PC-Engines ALIX.

I'm a Linux noob, if that.  I can copy and paste, but not following all the tech talk.

The wiki looks like it was updated in early May.  Can some one please summarize the state of things for this device.  I think the questions include:
What is the version of the image (CC 15.05 RC2 or other?).  The issue is the package repository.
If older image, do I hose things upgrading to CC 15.05 RC2?
Is USB working in the package?
I assume the USB drive should be formatted FAT32 for install.
Instrucion 4. - telent to ... is this using a cat5 cable? (not even sure one can do this wirelessly)
The file mlwG2_header.bin does not appear to be used in the instructions.  Do I need to do something with this.
What is the CAT5 connector configured as (WAN or LAN)?
Is there the ability to have both a WAN and LAN side wireless?
The factory docs indicates that the micro to USB can transfer files between a PC and the device.  Will this feature still work with OpenWRT, or will the port only act as a charger?
If all goes right, for what reason do I need to open the box? 
Can i put the wifireset script into the etc\config\scripts\ folder and run it from there? What would that path be for the startup (noob)?

Does anyone have a low\high on the battery time?

Finally, the Kingston website indicates 2 versions (MLWG2 & MLWG2\64SD).  The wiki indicates the unit is 16flash/64ram.  I expect that that is the internal config for both, and the \64SD is just an additional external storage card, not a different RAM size.  Is that correct?

Any OpenVPN bench marks? 

RangerZ

When I did my install I soldered a header and used a serial to usb to transfer the image so that is the only method I could probably help with.
OpenVPN should work fine, I have tested pptp and am playing with tinc and they both work acceptably. I din'y know that the microusb is supposed to be able to transfer files but will try it and let you know. My have to wait till I get home, not sure I can find a cable where I am.
On the image I used to install the cat5 was set up for WAN (I think) but you can configure it for anything. The wireless can be configured as both LAN/WAN at the same time but there are some limitations due to single thansmitter: both have to be on same wifi channel, only supports 2.4GHz. Also DHCP is wonky and I couldn't find a way to make it work if not connected to wan wifi if one is configured. There are several ways to create a startup script but what are you wanting to startup?
I have not run my battery dead and havent figured a way to read the bat % but I was able to stream audio and video to three devices for about 2 hours off battery and it was still alive (think led was still green) if that helps
The /64sd version just has a 64GB SD card plugged in the slot but I think the sd card they use is cheap so I would reccomend the non /64sd version.

I am by far not the most expert on this forum so hopefully someone can answer the rest of your questions (or clarify anything I got wrong).