Code Monkey home page Code Monkey logo

openwrt-rt5350's Introduction

##Details##

These bins were compiled under trunk reversion 35407, MPR-A1 files was compiled by using Squonk42's RT5350 patch. LUCI runs very slowly on 16M SDRAM hardware.

mpr-a1 related bins are in **mpr-a1**.

hlk-rm04 relate bins are in **hlk-rm04**

**u-boot** contains the RT5350 u-boot image.

mpr-a1-16m-luci-usb-mjpg.bin - (openwrt firmware,16M RAM)

mpr-a1-32m-luci-usb-mjpg.bin - (openwrt firmware,32M RAM)

hame-mpr-a1-v22.bin - (hame-mpr-a1 4M Hame origin firmware)
MAC: 9C417CE21C58
WIFI NAME: HAME_A1_21C5
WIFI PASSWORD: 7ce21c58

openwrt-hlk-rm04-4m-16m-luci-usb-mjpg.bin - (HiLink HLK-RM04 4M openwrt bin file with uboot and other all things, 16M SDRAM version)

openwrt-hlk-rm04-4m-32m-luci-usb-mjpg.bin - (HiLink HLK-RM04 4M openwrt bin file with uboot and other all things, 32M SDRAM version)

hlk-rm04-16m-luci-usb-mjpg.bin - (HiLink HLK-RM04 openwrt bin file, 16M SDRAM version only openwrt firmware)

hlk-rm04-32m-luci-usb-mjpg.bin - (HiLink HLK-RM04 openwrt bin file, 32M SDRAM version only openwrt firmware)

Uboot

Self compile uboot image

These two file use 192.168.2.1(device ip) and 192.168.2.2(server ip) by default.
uboot256.img - (RT5350 32M RAM Uboot,support 32M SDRAM)
uboot128.img - (RT5350 16M RAM Uboot,support 16M SDRAM)

Hame offcial mpr-a1 uboot image

hame-mpr-a1-v22-uboot128.bin - (HAME Uboot support 16MRAM, divide from hame-mpr-a1-v22.bin)

SDRAM

If you want to run LUCI on HLK-RM04 or MPR-A1, you may want to expand the 16M SDRAM to 32M, here is some available 32M SDRAM chips.

Micron        32M     mT48LC16m16A2 
EtronTech     32M     EM63A165
ESMT          32M     M12L2561616A
Samsung  	  32M     K4S561632E

RESOURCE

WIKI

Hame MPR-A1

HiLink HLK-RM04

Forum

Hi-Link wireless module HLK-RM04

HAME MPR-A1 - Small and cheap router with built-in battery

OTHERS

Squonk42's RT5350

PATCH for HLK-RM04

This patch is based on Squonk42's RT5350 Patch, include HiLink HLK-RM04 and Hame MPR-A1, and also it doesn't support the current trunk version, only test with version 35407.
Patch include mpr-a1, hlk-rm04, flash and wlan.
Now you only need this one patch to compile openwrt for hlk-rm04.
Note: this patch is a temporary solution, the dts structure patch for hlk-rm04 is on the way, when the serial bug(about uartf) is fixed, i'll publish it here.

Usage:

mkdir openwrt
cd openwrt
svn co svn://svn.openwrt.org/openwrt/trunk@35407 trunk
git clone https://github.com/JiapengLi/OpenWrt-RT5350.git
cd trunk
patch -p0 <../OpenWrt-RT5350/openwrt-hame-mpr-a1_hilink-hlk-rm04.patch
make menuconfig

Note: If you can't see hlk-rm04 option, please try to clear tmp folder, and make menuconfig again.

cd trunk
rm -rf tmp

Contact me if you need help.[email protected]

How To

###Universal way to upgrade Hame-MPR-Ax (By Alexander)

  1. download wireshark from here and install it http://www.wireshark.org/download.

  2. download tftpd32 from here http://tftpd32.jounin.net/tftpd32_download.html.

  3. download openwrt firmware from here https://github.com/JiapengLi/OpenWrt-RT5350/tree/master/mpr-a1 - choose own firmware:

       a) - mpr-a1-16m-luci-usb-mjpg.bin - (openwrt firmware,16M RAM) 
       b) - mpr-a1-32m-luci-usb-mjpg.bin - (openwrt firmware,32M RAM) 
    

Next we need to understand how hame respond on network.

  1. Run wireshark and connect router to USB. If router was bricked we didn't see any packets from it. Disconnect usb from router.
  2. Do not close wireshark, push reset button and connect usb wire (led must become blue) . In wireshark we see this infromation: Hame send ARP request from address 192.168.1.2 and try to know how got ip address 192.168.1.55 we saw what packets repeat. Change ip address of computer to 192.168.1.55 netmask 255.255.255.0.
    Now we see request from Hame to download via tftpd file with name: 9c417c75a478.
  3. create firmware folder on desktop, move owr firmware to new folder
  4. rename firmware name to: 9c417c75a478.
  5. run tftpd and choose firmware folder. After that we saw what firmware downloaded to Hame. It will be restarted automatically.
    New router address: 192.168.1.1.

###Possible way to flash MPR-A1 (without using serial)#### Use the tools(for Windows) in tools/Hame to upgrade Hame.

BE CAREFUL,THESE PROCEDURE IS NOT TESTED.

These tools from hame is in Chinese. Fortunately, however, it's very simple.

-1.Close your Hame device, disconnect your Hame device with your PC.

0.If your OS is WIN7, install vcredist_x86.exe first

1.Set your IP address to 192.168.1.55, sub-mask 255.255.255.0, GateWay NULL

2.Start up OneKeyUpgrade.exe, select your OpenWrt bin file.

3.Checked the "升级Root_uImage".

4.Click the "启动" button.

5.Keep pressing the Reset button, and start your Hame device, you can see the blue LED long bright.

6.Connect your Hame with your PC, connection can be created automatically, and upgrade starts.

7.During the flashing, red LED is always lighting. After Hame device have been flashed, it will restart automatically.

8.After all things, you can see a dialog with these strings "设备写入完成,可以移除" is popped up. This means you are successful.

9.WARNING: because my hame MPR-A1 has been flashed to OpenWrt, so i don't test it.

Last, if someone has tested this, please feed me back no matter failed or successful.

Thank xajialuo from 恩山wifi论坛 for finding these tools.

Note

LUCI runs very slowly with 16M SDRAM. Strongly recommend to upgrade the SDRAM to 32M

openwrt-rt5350's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openwrt-rt5350's Issues

Flashing MPR-A1

Hi,
I am trying to flash the Hame MPR A1, but can't get it to work. When I follow your guide, on Windows, and try to reset the device, the blue led is not blinking. So the actual flash process will not start I think.
Could you advise me?

print RAM size info

i manage to telnet into my router but i am unable to determine the RAM size on the device. the following is the output from cat /proc/meminfo and /proc/cpuinfo.

# cat meminfo
MemTotal: 28616 kB
MemFree: 4104 kB
Buffers: 0 kB
Cached: 17860 kB
SwapCached: 0 kB
Active: 11996 kB
Inactive: 7064 kB
SwapTotal: 0 kB
SwapFree: 0 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 1232 kB
Mapped: 716 kB
Slab: 4224 kB
SReclaimable: 620 kB
SUnreclaim: 3604 kB
PageTables: 200 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 14308 kB
Committed_AS: 3128 kB
VmallocTotal: 1048404 kB
VmallocUsed: 804 kB
VmallocChunk: 1047524 kB

# cat cpuinfo
system type : Ralink SoC
processor : 0
cpu model : MIPS 24K V4.12
BogoMIPS : 239.61
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes
ASEs implemented : mips16 dsp
VCED exceptions : not available
VCEI exceptions : not available

SSH not on WAN Port

Hello,

I am using your image mpr-a1-16m-luci-usb-mjpg.bin on my Hame Clone (http://www.banggood.com/Wholesale-5in1-Mini-150Mbps-3G-WIFI-Mobile-Wireless-Router-Hotspot-1800mAh-Powerbank-p-55364.html?p=PQ0609518847201404EN). I am flashing the image with a TFTP server on IP 10.10.10.3 and with image renamed Kernal.bin.
I do not know which pins are TX/RX on the board and I did not have find any information on this. The board looks different to everything I have found on pictures in e.g. openwrt board.

After flashing the device requests an ip address via dhcp on the ethernet port and is pingable. However ssh and http are not reachable. I suppose this is a firewall issue.

  1. I have tried to modify (edit etc/config/firewall) the image using https://code.google.com/p/firmware-mod-kit/ and upload it again. If I do this the device will not do dhcp requests on boot. Even if I do not change anything and just extract + build the image does not work after that.

  2. I have also tried using the ImageBuilder of openwrt with current trunk versions for hame mpr1. The result is essentially the same as the device does not do DHCP on boot.

Do you have any clue how to rebuild your image with SSH enabled on WAN? Any trick how to access the device without serial console connected?

Thanks in advance!

U-boot source for rt5350?

Do you have the exact source code for your uboot256.img file?

I need to know how bootm command works on this chip. I was unable to make anything work apart from loadb command on my board so I was able to load code ram at 0x80000000. So what I want to do is load a squashfs-initrd.bin image into ram and run it for the first time so I can then do sysupgrade and burn a new image to flash from linux. Maybe you can help me with this?

Image size larger than 3866624!

Hello, congratulations for your job!

I found a problem with file openwrt-hlk-rm04-4m-32m-luci-usb-mjpg.bin.

I have sucess to change ram to 32MB,
I replaced from original chip to a Samsung K4S561632D-TC1L, PC-100 (from DIMM computer memory).

I load the uboot256.img and this is ok.

I try load openwrt-hlk-rm04-4m-32m-luci-usb-mjpg.bin but this not ok.

An error ocurred, the size of bin is larger than 3866624.

Please see the image attached.

Note: I need wifi, luci and ser2net, but I don't use USB and mjpg.

Thankyou!

issue hlk-rm04 04m 32m

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.