OpenWrt Forum Archive

Topic: Kimax BS-U25CWF - MT7620N Travel Router with Wifi / no LAN USB3

The content of this topic has been archived between 27 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.

this is all so as not to become attached to RS232 ... and use only the wifi ...

looked travelmate. very interesting, but not in my case.
I just need to make the buttons work.
and most importantly - I do not understand why this does not work ..

do you update the firmware?
please ... well, I beg you ..
to 4.9.87
because the ,any package can not be found on the 77 version.
87 package is not installing over the 77... and the last in the forum is only the 77th.
Well, I beg you ..
and if there is still and immediately when the build new will be disabled IPV6, then I will be completely insanely happy ...

(Last edited by recent on 29 Mar 2018, 12:53)

can someone explain to me why this is happening to me?
I create the directory: /etc/hotplug.d/button
in it the file 00-buttonlog
in which
    logger the button ->
pushing the reset - there is no reaction
click on the button on the side - the first click hangs the system, the second press - reboot.

nothing appears in the log

in / etc there are no files hotplug2-common.rules and hotplug2-init.rules

how does the button call happen?

For reset button no functionnality ( not found documentation for programming GPIO )

For start button is only for WIFI without USB3 connected
:

(Last edited by F5BJR on 29 Mar 2018, 14:05)

hotplug ?
rc.button ?

this all does not work?

so, for my understanding.
in openwrt the reset button is not recognized at all! in any way. and i can not pester her? smile
on the side button did not quite understand the purpose. I have USB3 not included. only power is supplied.


somehow it should work in GPIO ...?
in the native firmware both buttons worked. then we do not understand something?

for buttons, I do not know ...
for me the functionality of the power button is sufficient

git clone https://github.com/openwrt/openwrt.git

for compilation i use this files ( decompress and overrite the git source code )

http://www.mediafire.com/file/70yd264v8 … CWF.tar.gz

After :
scripts/feeds uninstall freeswitch
git pull
scripts/feeds update -a
scripts/feeds install -a
make menuconfig

Quick Image Builder :
https://openwrt.org/docs/guide-develope … ild-images


For original buttons functionnality you can see after decompress the original firmware KIMAX-H1-1.5.2-95cb78ec634c4da22d47d9c818216ae2-R.bin

I have not tried because there is no cable network and it is very risky to touch the buttons source code

my last build :
http://www.mediafire.com/file/1g8qzv2f5 … pgrade.bin

(Last edited by F5BJR on 31 Mar 2018, 10:09)

updated to the 87th version. Thank you...

I'll dig further ...
all the same it is not clear why the buttons are not processed .. the controller is the same. pins for sure, too, so the standard survey should be ..

So ... what happened?

the reset button was found on gpiochip1 pin 3, with a shift of 43
team
echo 43> / sys / class / gpio / export
get the button in the devices
/ sys / class / gpio / gpio43

the button is polled by the command
cat / sys / class / gpio / gpio43 / value

pressed = 0, released = 1


apparently, the side button is on gpiochip0 pin 13
In the / sys / class / gpio / directory, it appears as gpiochip0

LEDs respectively
gpiochip1 pin 4
gpiochip2 pin 0
in the / sys / class / gpio / directory are visible as
gpiochip40
gpiochip72

after reboot is reset. runs the session.

but then I do not know what to do ... I'm not strong in linux

I think that functionnality is in original firmware :  /include/ "mt7620n.dtsi"

--

/dts-v1/;

/include/ "mt7620n.dtsi"

/ {
    compatible = "u25cwf", "ralink,mt7620n-soc";
    model = "Kimax U25CWF";

    palmbus@10000000 {
                gpio0: gpio@600 {
                        status = "okay";
                };

                gpio1: gpio@638 {
                        status = "okay";
                };

                gpio2: gpio@660 {
                        status = "okay";
                };

                gpio3: gpio@688 {
                        status = "okay";
                };

        spi@b00 {
            status = "okay";

            m25p80@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "mx25l12805d";
                reg = <0 0>;
                linux,modalias = "m25p80", "m25p128";
                spi-max-frequency = <10000000>;

                partition@0 {
                    label = "u-boot";
                    reg = <0x0 0x30000>;
                    read-only;
                };

                partition@30000 {
                    label = "u-boot-env";
                    reg = <0x30000 0x10000>;
                    read-only;
                };

                factory: partition@40000 {
                    label = "factory";
                    reg = <0x40000 0x10000>;
                    read-only;
                };

                partition@50000 {
                    label = "firmware";
                    reg = <0x50000 0xfb0000>;
                };
            };
        };
    };

    ehci@101c0000 {
        status = "okay";
    };

    ohci@101c1000 {
        status = "okay";
    };

    ethernet@10100000 {
        mtd-mac-address = <&factory 0x4>;
        ralink,port-map = "wllll";
    };

    wmac@10180000 {
        ralink,mtd-eeprom = <&factory 0>;
    };

    pinctrl {
        state_default: pinctrl0 {
            default {
                ralink,group = "wled", "ephy";
                ralink,function = "gpio";
            };
        };
    };

    gpio-keys-polled {
        compatible = "gpio-keys-polled";
        #address-cells = <1>;
        #size-cells = <0>;
        poll-interval = <20>;
        reset {
            label = "reset";
            gpios = <&gpio2 3 1>;
            linux,code = <0x198>;
        };
    };

        gpio-leds {
                compatible = "gpio-leds";
        wifi {
            label = "u25cwf:blue:wifi";
            gpios = <&gpio3 0 1>;
        };

        lan {
            label = "u25cwf:green:eth";
            gpios = <&gpio2 4 1>;
        };
    };
};

(Last edited by F5BJR on 18 Apr 2018, 19:02)

Hello ff5bjr
I just bought one of these KIMAX U25AWF-H1 and I am waiting shipping time to Brazil (takes a lot)
Meanwhile could you share the sources file you used to compile to KIMAX U25AWF-H1 so i could prepare a version that would maybe work with kmod packages  from official repositories?

If you send for others models I could prepare for them also (but I will need help for testing)

Thanks.
Arvati

Thanks a lot. I will post back when work done.

The discussion might have continued from here.