OpenWrt Forum Archive

Topic: Kingston Mobilelite G3 (MLWG3)

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

elektroman wrote:

Hi guys

for 5GHz you must enable PCIe in DeviceTree

    pcie@10140000 {
        status = "ok";
    };

and use the mt7610 wifi driver

Where is the driver for 15.05?

axishero wrote:

Where is the driver for 15.05?

You can try building the package from my git repo, it should work
with 3.2+ kernels.

No Progress in hacking ...
Here some info about the GPIOs

# find /usr/ -type f | xargs grep gpio
/usr/shell/udhcpc.sh:        gpio l 37 4000 0 1 0 4000
/usr/shell/udhcpc.script:        gpio l 37 0 4000 0 1 4000
/usr/sbin/auto_connect:gpio l 37 5 5 4000 0 4000
/usr/sbin/auto_connect:gpio l 37 4000 0 1 0 4000
/usr/sbin/auto_connect:gpio l 37 0 4000 0 1 4000
/usr/sbin/pbc_detect:gpio_set_dir_in7140
/usr/sbin/pbc_detect:gpio_read_bit7140
/usr/sbin/pbc_detect:gpio_read_bit
/usr/sbin/pbc_detect:/dev/gpio
/usr/sbin/led:/bin/gpio l %d 4000 0 1 0 4000
/usr/sbin/led:/bin/gpio l %d 0 4000 0 1 4000
/usr/sbin/led:/bin/gpio l %d 5 5 4000 0 4000
/usr/sbin/led:/bin/gpio l %d 5 5 %d 6 4000
/usr/sbin/led:/bin/gpio l %d 2 1 4 4 4000
/usr/sbin/led:/bin/gpio l %d 1 1 4000 0 4000
/usr/sbin/shutdown_check:gpio_read_bit
/usr/sbin/shutdown_check:gpio l 43 0 4000 0 1 4000
/usr/sbin/gt_utils:gpio l 11 4000 0 1 0 4000
/usr/sbin/gt_utils:gpio l 7 0 4000 0 1 4000
/usr/sbin/power_check:gpio_set_dir_in7140
/usr/sbin/power_check:gpio_read_bit7140
/usr/sbin/power_check:gpio_read_bit
/usr/sbin/power_check:/dev/gpio

For the green (aka BATT led)

# gpio r
gpio 95~64 = 0x0
gpio 63~32 = 0x71f
gpio 31~00 = 0xc000243d
# gpio r
gpio 95~64 = 0x0
gpio 63~32 = 0x75f
gpio 31~00 = 0xc000243d

Blue LED aka bridging

gpio l 37 5 5 4000 0 4000

For Reset SW (must kill pbc_detect first)

# gpio r
gpio 95~64 = 0x0
gpio 63~32 = 0x35f
gpio 31~00 = 0xc000243d
# gpio r
gpio 95~64 = 0x0
gpio 63~32 = 0x75f
gpio 31~00 = 0xc000243d

The values for GPIO 32-63 are strange, not 32 bit tough
Don't know why.
Next thing will be to evaluate this with OpenWRT.

switched to LEDE
here is some output

root@lede:/# lsusb 
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
root@lede:/# lspci 
00:00.0 PCI bridge: MEDIATEK Corp. Device 0801 (rev 01)
01:00.0 Network controller: MEDIATEK Corp. Device 7650
01:00.1 Bluetooth: MEDIATEK Corp. Device 8650
01:00.1 0d11: 14c3:8650
    Subsystem: 14c3:8650
    Flags: bus master, fast devsel, latency 0, IRQ 4
    Memory at 20100000 (32-bit, non-prefetchable) [size=1048577]
    Memory at <unassigned> (32-bit, non-prefetchable) [size=2]
    Memory at <unassigned> (32-bit, non-prefetchable) [size=2]
    Memory at <unassigned> (32-bit, non-prefetchable) [size=2]
    Memory at <unassigned> (32-bit, non-prefetchable) [size=2]
    Memory at <unassigned> (32-bit, non-prefetchable) [size=2]
    Expansion ROM at <unassigned> [disabled] [size=2]
    Capabilities: [40] Power Management version 3
    Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [70] Express Endpoint, MSI 00
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [140] Device Serial Number 00-00-ff-ff-ff-ff-ff-ff
    Capabilities: [150] Latency Tolerance Reporting

I've done a verbose output of some device which caught my eye.
Currently no WIFI of any kind is running aka no 2.4GHz no 5GHz

I'm looking to get OpenWRT working on one of these, and I'm at a bit of a loss as to how to get started. I've looked at kmeaw's github page and the project his is based off of, but neither give instructions on compiling. Does anyone have instructions on how to compile or links to a tutorial for a similar platform?

Thank you.

nstephenh, you need to clone openwrt build tree, rewind it to the revision I used back then (e737bc7), clone my repo and apply it as an overlay to the parent tree:

git clone git://git.openwrt.org/openwrt.git
cd openwrt
git checkout e737bc7
git clone https://github.com/kmeaw/kingston-mlwg3-openwrt
rsync -av --exclude .git kingston-mlwg3-openwrt/ ./

It would replace "Download the OpenWrt bleeding edge" step from the OpenWrt build instruction.
Other steps should be proceeded normally, just don't forget to set the correct target ( Ralink RT288x/RT3xxx, MT7628 based boards, MLWG3 ).

Kmeaw,

Thanks! I'm following that guide now, At the configuration step I selected the target and subtarget that you specified, but I was not able to find where to set "MLWG3" anywhere. What option was that? Also, I assumed I set kmod-mt7610e under ralink properties > Drivers, and I enabled all the default items and "LED Support." but I got a
"openwrt/include/toplevel.mk:192: recipe for target 'world' failed error."

I've created a gist of the verbose log but I can't post links.
gist.github.com/nstephenh/6e09c1d07c47887c5e72386ab2d916d9

Any help would be appreciated. Thanks!

nstephenh, it seems you have a newer version of GCC than the one which is supported by OpenWrt build system.
Your build fails at the early preparation stage, in which host tools are built. You can either downgrade your compiler (building openwrt in a docker container with ubuntu:14.04 should be fine) or try working around these errors one-by-one; for instance, this one can be avoided by removing -Werror option  from the glib's Makefile, which treats warnings as fatal errors.

The discussion might have continued from here.