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

lizby wrote:

@trapdragon

Have you tried booting without the serial connected, then connecting it after a minute or so?  That works for some devices which won't boot properly while the serial is connected.

does not work.

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

trapdragon wrote:
gaplee wrote:

@Squonk
I add a new board for this tiny module(Details), it is a 4M/16M device by default, but i change it to 8M/32M, and run luci on it.
This module does not have USB power control things, so I can use the UART full function, but i don't know how to patch it, can you give me some suggestions?
By the way, the mpr-a1 patches work fine on the HLK-RM04, just have some led problems, and now i don't find which pin the module uses.

In mach-mpr-a1.c you use some functions, such as gpio_request_one, rt305x_gpio*** and so on, where can i find the detail descriptions of these functions?

Hi, I have the same, but no luck, I compile on Kubuntu 32bit/64bit in VMware 9.0, got the sysupgrade.bin, I burned uboot into the flash so I got the serial console, and write the option 2 in the uboot menu. I used ft232 usb-serial to work on my laptop, the method works with the  HAME MPR-A1 official image, but on R35629 patched with Squonk files, it stops.

you do the same?

anybody got a clue ?

i don't know why, but you may try

 make kernel_menuconfig 

find kernel hacking , enter and then find(rootfstype=squashfs,jffs2) Default kernel command string
enter again and manually set SDRAM value rootfstype=squashfs,jffs2 mem=16M

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

Given where the crash happens, it looks like an SDRAM-related problem. What does U-boot reports during the early bootstrap?
Can you read the exact SDRAM chip label on the package to make sure there is no mismatch w/r U-Boot/Linux?

here is the log of the flash, it can be the the problem of rootfs, the same with "sysupgrade.bin", which contain fs.

SDRAM: M12L128168A -6T



U-Boot 1.1.3 (Apr  2 2013 - 10:22:08)

Board: Ralink APSoC DRAM:  16 MB
relocate_code Pointer at: 80fb4000
spi_wait_nsec: 42
spi device id: ef 40 16 0 0 (40160000)
find flash: W25Q32BV
raspi_read: from:30000 len:1000
.raspi_read: from:30000 len:1000
.============================================
Ralink UBoot Version: 3.6.0.0
--------------------------------------------
ASIC 5350_MP (Port5<->None)
DRAM_CONF_FROM: Boot-Strapping
DRAM_TYPE: SDRAM
DRAM_SIZE: 256 Mbits
DRAM_WIDTH: 16 bits
DRAM_TOTAL_WIDTH: 16 bits
TOTAL_MEMORY_SIZE: 32 MBytes
Flash component: SPI Flash
Date:Apr  2 2013  Time:10:22:08
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384

##### The CPU freq = 360 MHZ ####
estimate memory size =16 Mbytes

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
2
You choosed 1

0
raspi_read: from:40028 len:6
.

1: System Load Linux to SDRAM via TFTP.
Please Input new ones /or Ctrl-C to discard
        Input device IP (192.168.3.99) ==:192.168.3.99

U-Boot 1.1.3 (Apr  2 2013 - 10:22:08)

Board: Ralink APSoC DRAM:  16 MB
relocate_code Pointer at: 80fb4000
spi_wait_nsec: 42
spi device id: ef 40 16 0 0 (40160000)
find flash: W25Q32BV
raspi_read: from:30000 len:1000
.raspi_read: from:30000 len:1000
.============================================
Ralink UBoot Version: 3.6.0.0
--------------------------------------------
ASIC 5350_MP (Port5<->None)
DRAM_CONF_FROM: Boot-Strapping
DRAM_TYPE: SDRAM
DRAM_SIZE: 256 Mbits
DRAM_WIDTH: 16 bits
DRAM_TOTAL_WIDTH: 16 bits
TOTAL_MEMORY_SIZE: 32 MBytes
Flash component: SPI Flash
Date:Apr  2 2013  Time:10:22:08
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384

##### The CPU freq = 360 MHZ ####
estimate memory size =16 Mbytes

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
3
You choosed 2

0
raspi_read: from:40028 len:6
.

2: System Load Linux Kernel then write to Flash via TFTP.
Warning!! Erase Linux in Flash then burn new one. Are you sure?(Y/N)
Please Input new ones /or Ctrl-C to discard
        Input device IP (192.168.3.99) ==:192.168.3.99
        Input server IP (192.168.3.3) ==:192.168.3.3
        Input Linux Kernel filename (openwrt-ramips-rt305x-mpr-a1-initramfs-uImage.bin) ==:openwrt-ramips-rt305x-mpr-a1-initramfs-uImage.bin

netboot_common, argc= 3

NetTxPacket = 0x80FE5EC0

KSEG1ADDR(NetTxPacket) = 0xA0FE5EC0

NetLoop,call eth_halt !

NetLoop,call eth_init !
Trying Eth0 (10/100-M)

Waitting for RX_DMA_BUSY status Start... done


Header Payload scatter function is Disable !!

ETH_STATE_ACTIVE!!
Using Eth0 (10/100-M) device
TFTP from server 192.168.3.3; our IP address is 192.168.3.99
Filename 'openwrt-ramips-rt305x-mpr-a1-initramfs-uImage.bin'.

TIMEOUT_COUNT=10,Load address: 0x80100000
Loading: checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad
checksum bad

ArpTimeoutCheck
Got ARP REPLY, set server/gtwy eth addr (00:1c:25:99:02:5b)
Got it
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #######################################################
done
Bytes transferred = 2277137 (22bf11 hex)
NetBootFileXferSize= 0022bf11
raspi_erase_write: offs:50000, count:22bf11
raspi_erase: offs:50000 len:220000
..................................
raspi_write: to:50000 len:220000
..................................
raspi_read: from:50000 len:10000
.raspi_read: from:60000 len:10000
.raspi_read: from:70000 len:10000
.raspi_read: from:80000 len:10000
.raspi_read: from:90000 len:10000
.raspi_read: from:a0000 len:10000
.raspi_read: from:b0000 len:10000
.raspi_read: from:c0000 len:10000
.raspi_read: from:d0000 len:10000
.raspi_read: from:e0000 len:10000
.raspi_read: from:f0000 len:10000
.raspi_read: from:100000 len:10000
.raspi_read: from:110000 len:10000
.raspi_read: from:120000 len:10000
.raspi_read: from:130000 len:10000
.raspi_read: from:140000 len:10000
.raspi_read: from:150000 len:10000
.raspi_read: from:160000 len:10000
.raspi_read: from:170000 len:10000
.raspi_read: from:180000 len:10000
.raspi_read: from:190000 len:10000
.raspi_read: from:1a0000 len:10000
.raspi_read: from:1b0000 len:10000
.raspi_read: from:1c0000 len:10000
.raspi_read: from:1d0000 len:10000
.raspi_read: from:1e0000 len:10000
.raspi_read: from:1f0000 len:10000
.raspi_read: from:200000 len:10000
.raspi_read: from:210000 len:10000
.raspi_read: from:220000 len:10000
.raspi_read: from:230000 len:10000
.raspi_read: from:240000 len:10000
.raspi_read: from:250000 len:10000
.raspi_read: from:260000 len:10000
.raspi_read: from:270000 len:10000
.raspi_erase: offs:270000 len:10000
.
raspi_write: to:270000 len:10000
.
raspi_read: from:270000 len:10000
.Done!
## Booting image at bc050000 ...
raspi_read: from:50000 len:40
.   Image Name:   MIPS OpenWrt Linux-3.7.8
   Created:      2013-04-09   9:00:48 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    2277073 Bytes =  2.2 MB
   Load Address: 80000000
   Entry Point:  80000000
raspi_read: from:50040 len:22bed1
...................................   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 16

Starting kernel ...

[    0.000000] Linux version 3.7.8 (brick@dev-mac) (gcc version 4.6.4 20121210 (prerelease) (Linaro GCC 4.6-2012.12) ) #3 Tue Apr 9 17:00:19 HKT 2013
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[    0.000000] Ralink RT5350 id:1 rev:3 running at 360.00 MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
--------------------------------------------------------------------------

STOPS HERE

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

@trapdragon
the RAM of your board is 16M but linux check RAM as 32M for some unknown reason, try the post#427

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

@ Squonk

Volunteers?

, I have a copy of preliminary data sheet of rt5350, if helps, I can email you, it indicates that this SoC has a build-in rom to work in prior to any bootloader external storage, it functions like bootloader but would pass the job on to bootloader when there is.

I have been lucky that on my lost HAME MPR-A1, on the administrative webpage there is a command line box, with allows root access to busybox. : ) , not sure if others would have.

so I guess to solve the problem

The bad thing is: I don't have enough time to write and test that, since I was busy decoding the factory file format so that nobody will require a serial console any more to be able to install OpenWrt on a stock device

and probably you can reverse into the official tools "http://www.hamedata.com/uploadfiles/dow … 573860.rar" the software included tried to write to the devices via RJ45 which is normal on rt5350 routers.

I am bought Hi-Link wireless module HLK-RM04 and working on it, a clone of the board which HAME MPR-A1 copy from, I guess. and we can share the experiences.

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

gaplee wrote:

@trapdragon
the RAM of your board is 16M but linux check RAM as 32M for some unknown reason, try the post#427

thanks no worry the linux have the right size " Giving linux memsize in MB, 16". it is the same when I use the official Hame fireware, and strange that firmware works !

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

I found that premilinary datasheet and now reading it. For rt5350 we (me and my friend) found and partitaly integrated:
1) Led polarity control (critical for dir-320 rev b2, some leds has inverted polarity)
2) Transmit good and bad packet counter
3) Hardware igmp forward from lan to wan (or only to cpu port, WiP)
4) Broadcast storm protection
5) Hardware QoS with 4 queues (classification with 802.11p or ToS, WiP)

Patches already sent to patchwork

433 (edited by bertc3p0 2013-04-12 17:17:38)

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

bertc3p0 wrote:
oschemes wrote:

Hmm. probably.  I will have to go back and check on one of the virgin devices we have around here, but it seems reasonable that if we init the DRAM controller to 32MB it would override the bootstrap load.

If I recall correctly, you already have 32M on your board but bootstrap was limiting you to 16MB.  Have you tried putting the resistor on, or you don't think you'd have any luck in soldering it.  FYI - our first attempt used a little 1/8W leaded resistor that had it's leads bent over and clipped short.  It worked but is kind of a danger of knocking it off and ripping the pads off too.

Do you want to be the guinea pig of just shorting the terminals instead of installing a resistor?  smile

I hate soldering 0402 resistors. Tried hard, but I failed :-(

RT5350 # mm 0x10000300
10000300: d1825282 ? d1825282
10000304: e0110600 ? a0120600
10000308: 00000000 ? 
RT5350 # md 0x10000300 2
10000300: d1825282 e0120600    .R......
RT5350 # bootm bc050000

boom:

[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)

root@OpenWrt:~# free
             total         used         free       shared      buffers
Mem:         29988        15712        14276            0         1528
-/+ buffers:              14184        15804
Swap:            0            0            0

still searching a way to setup the memory controller on uboot automatically ...

Strange, it's even possible to change the DRAM controller on Linux startup to get the appropiate memory:

        printk(KERN_INFO "  mem_detect by memory controller: 0x%08X\n" , ret);
        printk(KERN_INFO "  trying harder ...");
        t = __raw_readl(sysc + MEMC_REG_SDRAM_CFG1);
        save_t = t;
        t = 0xa0120600;
        printk(KERN_INFO "  try 0x%08X instead of 0x%08X\n" , t, save_t);
        __raw_writel(t, sysc + MEMC_REG_SDRAM_CFG1);
        ret = ret << 1;

resulting in:

[    0.000000]   mem_detect by memory controller: 0x01000000
[    0.000000]   trying harder ...
[    0.000000]   try 0xA0120600 instead of 0xE0110600
[    0.000000] Ralink RT5350 id:1 rev:3 running at 360.00 MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
...
root@OpenWrt:~# free
             total         used         free       shared      buffers
Mem:         29988        22160         7828            0         1528
-/+ buffers:              20632         9356
Swap:            0            0            0

smile
Still need to write a memory test code on Linux startup, if the memory is really there and change the memory controller settings accordingly. No more soldering damn small resitors wink

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

xakep666 wrote:

I found that premilinary datasheet and now reading it. For rt5350 we (me and my friend) found and partitaly integrated:
1) Led polarity control (critical for dir-320 rev b2, some leds has inverted polarity)
2) Transmit good and bad packet counter
3) Hardware igmp forward from lan to wan (or only to cpu port, WiP)
4) Broadcast storm protection
5) Hardware QoS with 4 queues (classification with 802.11p or ToS, WiP)

Patches already sent to patchwork

memory mapping:

         Start    End           Size  Description
0000.0000  -  03FF.FFFF  64 M  SDRAM 64MB
0400.0000  -  0FFF.FFFF  192M  Reserved
1000.0000  -  1000.00FF  256  SYSCTL
1000.0100  -  1000.01FF  256  TIMER
1000.0200  -  1000.02FF  256  INTCTL
1000.0300  -  1000.03FF  256  MEM_CTRL (SDR)
1000.0400  -  1000.04FF  256  <<Reserved>>
1000.0500  -  1000.05FF  256  UART
1000.0600  -  1000.06FF  256  PIO
1000.0700  -  1000.07FF  256  Reserved>>
1000.0800  -  1000.08FF  256  Reserved>>
1000.0900  -  1000.09FF  256  I2C
1000.0A00  -  1000.0AFF  256  I2S
1000.0B00  -  1000.0BFF  256  SPI
1000.0C00  -  1000.0CFF  256  UARTLITE
1000.0D00  -  1000.0DFF  256  MIPS CNT
1000.2000  -  1000.27FF  2 K  PCM (up to 16 channel)
1000.2800  -  1000.2FFF  2 K  Generic DMA (up to 64 channel)
1000.3000  -  1000.37FF  2 K  Reserved>>
1000.3800  -  1000.3FFF  2 K  Reserved>>
1000.4000  -  100F.FFFF    <<Reserved>>
1010.0000  -  1010.FFFF  64 K  Frame Engine
1011.0000  -  1011.7FFF  32 K  Ethernet Swtich
1011.8000    1011.BFFF  16 K  ROM
1011.C000  -  1011.FFFF  16 K  <<Reserved>>
1012.0000  -  1012.7FFF  16 K  USB Device
1012.8000  -  1012.FFFF  16 K  <<Reserved>>
1013.0000  -  1013.7FFF  32 K  <<Reserved>>
1013.8000  -  1013.FFFF  32 K  <<Reserved>>
1014.0000  -  1017.FFFF  256 K  Reserved>>
1018.0000  -  101B.FFFF  256 K  802.11n MAC/BBP
101C.0000  -  101F.FFFF  256 K  USB Host
1020.0000  -  1023.FFFF  256 K  <<Reserved>>
1024.0000  -  1027.FFFF  256 K  <<Reserved>>
1028.0000  -  1BFF.FFFF    <<Reserved>>
1C00.0000  -  1C00.3FFF 16KB ROM When system is power on, 16KB internal boot ROM is mapped.

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

trapdragon wrote:
gaplee wrote:

@trapdragon
the RAM of your board is 16M but linux check RAM as 32M for some unknown reason, try the post#427

thanks no worry the linux have the right size " Giving linux memsize in MB, 16". it is the same when I use the official Hame fireware, and strange that firmware works !

This is just the uboot checked the 16MB RAM, and pass it to kernel, but kernel detect 0x02000000(32M), you need do the "make kernel menuconfig" specify mem=16M manually to fix this problem

[    0.000000] Linux version 3.7.8 (brick@dev-mac) (gcc version 4.6.4 20121210 (prerelease) (Linaro GCC 4.6-2012.12) ) #3 Tue Apr 9 17:00:19 HKT 2013
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[    0.000000] Ralink RT5350 id:1 rev:3 running at 360.00 MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
--------------------------------------------------------------------------

memory: 02000000 @ 00000000 (usable) this is the problem,

02000000 means 32M, but your RAM is only 16M.

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

gaplee wrote:
trapdragon wrote:
gaplee wrote:

@trapdragon
the RAM of your board is 16M but linux check RAM as 32M for some unknown reason, try the post#427

thanks no worry the linux have the right size " Giving linux memsize in MB, 16". it is the same when I use the official Hame fireware, and strange that firmware works !

This is just the uboot checked the 16MB RAM, and pass it to kernel, but kernel detect 0x02000000(32M), you need do the "make kernel menuconfig" specify mem=16M manually to fix this problem

[    0.000000] Linux version 3.7.8 (brick@dev-mac) (gcc version 4.6.4 20121210 (prerelease) (Linaro GCC 4.6-2012.12) ) #3 Tue Apr 9 17:00:19 HKT 2013
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[    0.000000] Ralink RT5350 id:1 rev:3 running at 360.00 MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
--------------------------------------------------------------------------

memory: 02000000 @ 00000000 (usable) this is the problem,

02000000 means 32M, but your RAM is only 16M.

let me try and see.

437 (edited by oschemes 2013-04-12 21:27:47)

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

Squonk wrote:

unfortunately, I've never been able to start OpenWRT on Hame MPR-A1, I have a board similar to carambola but rt5350 SOC, w25q32fv. patched with Squonk files no luck, just stop here :


Given where the crash happens, it looks like an SDRAM-related problem. What does U-boot reports during the early bootstrap?
Can you read the exact SDRAM chip label on the package to make sure there is no mismatch w/r U-Boot/Linux?

Agreed.
This is what happens if you set the kernel mem string larger than you really have, I hit it several times during my men upgrade experiments.

If you've really upgraded the dram, just add the extra resistor ( or just short the pads) so the memory controller is initialized properly.

438 (edited by trapdragon 2013-04-15 05:25:41)

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

oschemes wrote:
Squonk wrote:

unfortunately, I've never been able to start OpenWRT on Hame MPR-A1, I have a board similar to carambola but rt5350 SOC, w25q32fv. patched with Squonk files no luck, just stop here :


Given where the crash happens, it looks like an SDRAM-related problem. What does U-boot reports during the early bootstrap?
Can you read the exact SDRAM chip label on the package to make sure there is no mismatch w/r U-Boot/Linux?

Agreed.
This is what happens if you set the kernel mem string larger than you really have, I hit it several times during my men upgrade experiments.

If you've really upgraded the dram, just add the extra resistor ( or just short the pads) so the memory controller is initialized properly.

yes, with the the command-line "mem=16m" the board is going with Openwrt. thanks to you two, and gaplee.


------------------------------------------------

[ 2013 - 4 -15 ] it works, while not going smooth, which is due to the limitation of 16M RAM.

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

Heffer wrote:

I already created a MPR-A1 dts file and also ones for the Poray devices. However a GPIO bug currently prevents LEDs and Buttons from working.

From the ralink RT5350 and RT3050 datasheets, i realize there are some GPIO register differences between RT5350F and RT305x.  Is this what you call it GPIO bug, can we do something to fix it.

I also want to use the second serial on RT5350F, and do not know how to enable it. Ther is a patch about how to enable second serial(trunk\target\linux\ramips\patches-3.7\101-rt288x_serial_driver_hack.patch), but i do not know how to test it.

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

Nope, the bug is somewhere else. It's already fixed and a patch is on it's way in to trunk. Should be there today I guess.

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

I disable the LEDs and USB power control pins of the mpr-a1, and the ttyS0 works on my HI-LINK HLK-RM04, now i have 2 serial ports and several GPIOs in use, even I2C in future. wink
Thanks everyone in this forum, especially @Squonk @Heffer @p1vo and @arteq who make the openwrt support the Hame mpr-a1.

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

Coz of this most active rt5350 topic I post here. I start digging rt5350 wifi performance. Current version of driver is restricted to HT20. Do you measure real wifi speed? I have speeds (with my hack to support HT40)  ~24Mbps wifi-client <-> wifi-client and ~56Mbps wifi-client<->wired-client (I use iperf package). The main problem is atheros wifi-client (I test atheros ar9280 and intel 5150 cards). And what is your result? Intrested in client hardware and speed.

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

lizby wrote:
derrij wrote:
lizby wrote:

The Hame A5 works with openwrt...

Please, share firmware image and instruction how to flash  the Hame A5 with openwrt.
Thank you.

My image is self-built (February 8) with Squonk's patches and the linux command line modification for 16M.

I could upload the image (where best?), but it might not be useful since there's not enough ram to run ipkg or sysupgrade.  My image has little on it except usb serial and storage.  You would do best to build yourself to get exactly what you need.

To flash, you need to solder on a serial connector (GND, TX, RX) and interrupt u-boot to set up a download and flash over ethernet with tftp.

You can send me the file and I can share it via Dropbox or my VPS server. Also I started WIKI page for Hame A5 so please share any info:
http://wiki.openwrt.org/toh/hame/mpr-a5

444 (edited by p1vo 2013-04-21 17:30:45)

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

This is how resistorst should be change to have 32MB in HAME MPR-A1 v2.1 (both are 4.7K)

HAME MPR-A1 v2.1 32RAM/8MB Flash


This is how resistorst should be change to have 32MB in HAME MPR-A1 v1.4 and clones (both are 4.7K)

HAME MPR-A1 v2.1 32RAM/8MB Flash

Blue - Where they were orginaly
Red - Now with working 32MB RAM

Move resistors from blue -> red positions.

PS. of course u have to solder 32MB RAM 4x4x16M chip first smile

445

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

@p1vo

With your resistor modification for 32MB memory configuration, is it still need kernel patches/config to mem=32 ? or no.

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

The EBS-PMA-W1 works good with mem=16M patch to kernel.

However, USB doesn't work: compiled usb support + usb-serial drivers, bun nothing shows up in dmesg when i plug usb-modem or LU-150 modem (usb-cdc-ether) device.

GPIO7 and 12 looks "1" in /sys/class/gpio.

tried different combinations of uhci, ohci, usb2. nothing.

Where to look forward?

This is part of boot log

[   11.140000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   11.160000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   11.170000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   11.190000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   11.200000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   11.220000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   11.600000] usbcore: registered new interface driver usbfs
[   11.610000] usbcore: registered new interface driver hub
[   11.630000] usbcore: registered new device driver usb
[   11.760000] zsmalloc: module is from the staging directory, the quality is unknown, you have been warned.
[   11.790000] zram: module is from the staging directory, the quality is unknown, you have been warned.
[   11.810000] zram: num_devices not specified. Using default: 1
[   11.830000] zram: Creating 1 devices ...
[   13.000000] PPP generic driver version 2.4.2
[   13.060000] tun: Universal TUN/TAP device driver, 1.6
[   13.070000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[   13.100000] PPP MPPE Compression module registered
[   13.290000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.590000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   14.610000] ehci-platform ehci-platform: Generic Platform EHCI Controller
[   14.620000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[   14.670000] ehci-platform ehci-platform: irq 26, io mem 0x101c0000
[   14.700000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[   14.710000] hub 1-0:1.0: USB hub found
[   14.720000] hub 1-0:1.0: 1 port detected
[   14.760000] nf_conntrack version 0.5.0 (211 buckets, 844 max)
[   15.180000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   15.190000] ohci-platform ohci-platform: Generic Platform OHCI Controller
[   15.200000] ohci-platform ohci-platform: new USB bus registered, assigned bus number 2
[   15.220000] ohci-platform ohci-platform: irq 26, io mem 0x101c1000
[   15.290000] hub 2-0:1.0: USB hub found
[   15.300000] hub 2-0:1.0: 1 port detected
[   15.500000] usbcore: registered new interface driver usbserial
[   15.520000] usbcore: registered new interface driver usbserial_generic
[   15.530000] usbserial: USB Serial support registered for generic
[   15.650000] usbcore: registered new interface driver cdc_ether
[   15.730000] usbcore: registered new interface driver rndis_host
[   15.760000] usbcore: registered new interface driver option
[   15.780000] usbserial: USB Serial support registered for GSM modem (1-port)
[   15.810000] usbcore: registered new interface driver qcserial
[   15.820000] usbserial: USB Serial support registered for Qualcomm USB modem

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

123serge123 wrote:

Coz of this most active rt5350 topic I post here. I start digging rt5350 wifi performance. Current version of driver is restricted to HT20. Do you measure real wifi speed? I have speeds (with my hack to support HT40)  ~24Mbps wifi-client <-> wifi-client and ~56Mbps wifi-client<->wired-client (I use iperf package). The main problem is atheros wifi-client (I test atheros ar9280 and intel 5150 cards). And what is your result? Intrested in client hardware and speed.

Hi Serge,
What is your hack to support HT40?  Please show us.

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

olegvekhov wrote:

The EBS-PMA-W1 works good with mem=16M patch to kernel.

However, USB doesn't work: compiled usb support + usb-serial drivers, bun nothing shows up in dmesg when i plug usb-modem or LU-150 modem (usb-cdc-ether) device.

GPIO7 and 12 looks "1" in /sys/class/gpio.

These gpios are in Squonk patch. But problem is -  EBS-PMA-W1 (M1  -perhaps?) is not full Hame clone, USB may use another gpio. Which one? You should find them. Try 6 and 7 like in  - https://forum.openwrt.org/viewtopic.php … 24#p198124

449 (edited by bertc3p0 2013-04-23 17:30:22)

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

@heffer, could you share your dts files, please ? Don't want to reinvent the wheel ...

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

Come on guys, how can I get openwrt on A5 ?!?