##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)
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-mpr-a1-v22-uboot128.bin - (HAME Uboot support 16MRAM, divide from hame-mpr-a1-v22.bin)
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
Hi-Link wireless module HLK-RM04
HAME MPR-A1 - Small and cheap router with built-in battery
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.gapleehit@gmail.com
###Universal way to upgrade Hame-MPR-Ax (By Alexander)
-
download wireshark from here and install it http://www.wireshark.org/download.
-
download tftpd32 from here http://tftpd32.jounin.net/tftpd32_download.html.
-
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.
- Run wireshark and connect router to USB. If router was bricked we didn't see any packets from it. Disconnect usb from router.
- 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. - create firmware folder on desktop, move owr firmware to new folder
- rename firmware name to: 9c417c75a478.
- 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.
LUCI runs very slowly with 16M SDRAM. Strongly recommend to upgrade the SDRAM to 32M