OpenWrt Forum Archive

Topic: Is it possible to install LuCi to a chinese router with custom ui?

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

I have a chinese router with openwrt installed 'out of the box'. Its web ui is terrible. I couldnt found any port forwarding and had to manually add it in html code editor (it was with style display none). I wonder if it's possible to install standart luci to it. Router is unknown brand. I'm a noob in openwrt, but i know how to connect to it using PuTTY (i determined its openwrt that way).

Read the paste for additional info about router

ghostbin . com / paste / 9p5x6

(0 links allowed, so remove spaces)

Sorry for any mistakes. I'm a newbie and i'm Russian

You can try accessing the root shell through SSH, if you can, and check the files in the /etc/opkg/ folder to see where this build downloads additional packages from.

If the URL points to a manufacturer's website or downloads area, then it is possible that the packages there are custom-made, and do not contain the default LuCI web interface. But if they point to the 'downloads.openwrt.org' site, then you might be able to install the default OpenWRT LuCI web interface. You might also need some additional tuning to fix the web server's configuration so it loads the default LuCI correctly.

----

If you want to get more involved in the process, and if I read the bootlog correctly, then the router has 64MB of RAM and 8MB of flash memory. The SoC is AR9330. A short Google search reveals the following page from OpenWRT Wiki: https://wiki.openwrt.org/toh/tp-link/tl-wr740n

The TP-Link TL-WR740N's hardware and bootlog seem to be very close to your router's, the primary differences seem to be in RAM size and the flash memory size. Based on these, you could consider fetching the OpenWRT buildroot environment for yourself, and building a minimal ramdisk-variant for the TL-WR740N. Then attempt to run this ramdisk version directly from memory by accessing the bootloader through a serial console, and using tftpboot and bootm commands to upload and run the ramdisk version.

Try out different things with the ramdisk variant, and see how it works. You can always safely return to the original firmware by powering off the router, and powering it back on again. If the ramdisk variant seems to work nicely, then it should be a simple process to create a copy of the device profile, and adjust the flash region ranges of the new device profile to match those in the current firmware so that things align correctly.

Do not, under any circumstances, flash the TL-WR740N's firmware onto the device. The bootlogs show that this firmware uses different region ranges for the flash memory, and these differences may cause the flash process to overwrite crucial data such as the bootloader or the ART region.

The discussion might have continued from here.