Hame MPR-A2
Small device with a 5200mAh Li-polymer rechargeable_battery. Size: 96.5(L) x 44.7(W) x 29.8(H) mm
Supported Versions
Hardware Highlights
Installation
→ Install OpenWrt (generic explanation)
OpenWrt image can be downloaded to HAME MPR-A2 simply by using the factory Web UI.
- First download the
initramfs
version and install it using the factory Web UI. This is a one time only step. Once it is done the normal update procedure works. - After the initramfs version is installed one can flash the permanent version of OpenWrt. Download the
sysupgrade
image as shown above.
Building custom firmware
Here is the detailed procedure:
Download the latest OpenWrt trunk sources to PC from svn:
mkdir openwrt cd openwrt svn co svn://svn.openwrt.org/openwrt/trunk cd trunk
If you plan to use OpenWrt with LuCI Web UI, additionally download the packages as follows:
./scripts/feeds update -a ./scripts/feeds install luci ./scripts/feeds install luci-proto-ppp ./scripts/feeds install luci-proto-3g
Empty the openwrt/trunk/tmp folder.
Run configuration menu:
make menuconfig
In the configuration menu, select the following options:
- Target System: Ralink RT288x/RT3xxx
- Subtarget: RT3x5x/RT5350 based boards
- Target Profile: HAME MPR-A2
To install OpenWrt for the first time on a router with factory firmware you will need OpenWrt image in the standard “uImage” format. To compile such image, when performing “make menuconfig” select Target Images - ramdisk:
- Target Images: ramdisk
If you plan to use OpenWrt with LuCI Web UI, additionally select following options:
- LuCI -→ Collections -→ luci
- LuCI -→ Protocols -→ luci-proto-3g
After all the needed options are selected, exit the menu, save the configuration, and proceed to build:
make
After the build completes the firmware file will be located in the openwrt/trunk/bin/ramips/ folder, file name:
openwrt-ramips-rt305x-mpr-a2-initramfs-uImage.bin
To install the image, in the factory Web UI go to the firmware download page and download the above file.
After OpenWrt is successfully installed, it is recommended to perform sysupgrade to squashfs firmware. To compile such image, when performing “make menuconfig” instead of “initramfs” select the default “squashfs” option:
- Target Images: squashfs
After the build completes the firmware file will be located in the openwrt/trunk/bin/ramips/ folder, file name:
openwrt-ramips-rt305x-mpr-a2-squashfs-sysupgrade.bin
Debrick hints
Should the install go awry, you can get a tftp server running, then copy the openwrt-ramips-rt305x-mpr-a2-initramfs-uImage.bin to the root of the tftpserver.
The IP of the server should be 192.168.1.55 (the Hame will come up at 192.168.1.2), then look for a file the same as the serial number. For instance, the lower case of MAC (on the back) is 9c417c333ed7. Create a link from the openwrt bin file to this file name:
ln -s openwrt-ramips-rt305x-mpr-a2-initramfs-uImage.bin 9c417c333ed7
Then power off the Hame, press reset at the same time as power on, and the unit should try to receive the file and install it. Grep the syslog to debug, if it doesn't:
grep tftp /var/log/syslog
Hardware
Info
- SoC: RT5350f (360MHz)
- Flash: 8 MB, m25p80, s25fl064k
- RAM: 32 MB
- 4 LED indicator: show the current power
Serial port
The serial port pads are located under the internal battery and are clearly labeled.
Serial port settings: 57600n8
Original firmware
- Boot loader: Ralink UBoot Version: 3.6.0.0
- Kernel: 2.6.21
- BusyBox v1.12.1
Original firmware Boot log
U-Boot 1.1.8 (Mar 13 2012 - 16:24:24) Board: Ralink APSoC DRAM: 32 MB relocate_code Pointer at: 81fb0000 spi_wait_nsec: 42 spi device id: ef 40 17 0 0 (40170000) find flash: W25Q64BV raspi_read: from:30000 len:1000 .*** Warning - bad CRC, using default environment ============================================ 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:Mar 13 2012 Time:16:24:24 ============================================ 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 =32 Mbytes raspi_read: from:40028 len:6 . raspi_read: from:0 len:30004 ....[ff ff] Init Plat A1 *************Is_update = 0 plat = 1************** No lcd plat Disable usb Usb ok 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. You choosed 3 0 3: System Boot system code via Flash. ## Booting image at bc050000 ... raspi_read: from:50000 len:40 . Image Name: Linux Kernel Image Created: 2012-07-30 7:18:26 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 5538252 Bytes = 5.3 MB Load Address: 80000000 Entry Point: 803a0000 raspi_read: from:50040 len:5481cc ..................................................................................... Verifying Checksum ... OK Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 803a0000) ... ## Giving linux memsize in MB, 32 Starting kernel ... LINUX started... THIS IS ASIC Linux version 2.6.21 (root@localhost.localdomain) (gcc version 3.4.2) #178 Fri Jul 27 13:47:46 CST 2012 The CPU frequency set to 360 MHz CPU revision is: 0001964c Determined physical RAM map: memory: 02000000 @ 00000000 (usable) Built 1 zonelists. Total pages: 8128 Kernel command line: console=ttyS1,57600n8 root=/dev/mtdblock5 Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes. Primary data cache 16kB, 4-way, linesize 32 bytes. Synthesized TLB refill handler (20 instructions). Synthesized TLB load handler fastpath (32 instructions). Synthesized TLB store handler fastpath (32 instructions). Synthesized TLB modify handler fastpath (31 instructions). Cache parity protection disabled cause = c0808040, status = 11000000 PID hash table entries: 128 (order: 7, 512 bytes) calculating r4koff... 0015f900(1440000) CPU frequency 360.00 MHz Using 180.000 MHz high precision timer. Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) Memory: 28560k/32768k available (3051k kernel code, 4208k reserved, 656k data, 116k init, 0k highmem) Mount-cache hash table entries: 512 NET: Registered protocol family 16 usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb NET: Registered protocol family 2 Time: MIPS clocksource has been installed. IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 1024 (order: 1, 8192 bytes) TCP bind hash table entries: 1024 (order: 0, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP reno registered deice id : ef 40 17 0 0 (40170000) W25Q64BV(ef 40170000) (8192 Kbytes) mtd .name = raspi, .size = 0x00800000 (8M) .erasesize = 0x00010000 (64K) .numeraseregions = 0 Creating 7 MTD partitions on "raspi": 0x00000000-0x00800000 : "ALL" 0x00000000-0x00030000 : "Bootloader" 0x00030000-0x00040000 : "Config" 0x00040000-0x00050000 : "Factory" 0x00050000-0x0018220c : "Kernel" mtd: partition "Kernel" doesn't end on an erase block -- force read-only 0x0018220c-0x01000000 : "RootFS" mtd: partition "RootFS" extends beyond the end of device "raspi" -- size truncated to 0x67ddf4 mtd: partition "RootFS" doesn't start on an erase block boundary -- force read-only 0x00050000-0x01000000 : "Kernel_RootFS" mtd: partition "Kernel_RootFS" extends beyond the end of device "raspi" -- size truncated to 0x7b0000 RT3xxx EHCI/OHCI init. squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher squashfs: LZMA suppport for slax.org by jro fuse init (API version 7.8) io scheduler noop registered (default) Hame plat 1 Ralink gpio driver initialized [003c7f01] HDLC line discipline: version $Revision: 1.1.1.1 $, maxframe=4096 N_HDLC line discipline registered. Serial: 8250/16550 driver $Revision: 1.8 $ 2 ports, IRQ sharing disabled serial8250: ttyS0 at I/O 0xb0000500 (irq = 37) is a 16550A serial8250: ttyS1 at I/O 0xb0000c00 (irq = 12) is a 16550A loop: loaded (max 8 devices) rdm_major = 253 eth2 mii.o query= phy_id:0, address:1 retval:7849 Ralink APSoC Ethernet Driver Initilization. v2.1 256 rx/tx descriptors allocated, mtu = 1500! MAC_ADRH -- : 0x00009c41 MAC_ADRL -- : 0x7c73a210 PROC INIT OK! PPP generic driver version 2.4.2 PPP BSD Compression module registered NET: Registered protocol family 24 PPPoL2TP kernel driver, V0.17 PPTP driver version 0.8.1 === pAd = c0019000, size = 628392 === <-- RTMPAllocAdapterBlock, Status=0 block2mtd: version $Revision: 1.1.1.1 $ usbcore: registered new interface driver cdc_acm drivers/usb/class/cdc-acm.c: v0.25:USB Abstract Control Model driver for USB modems and ISDN adapters nf_conntrack version 0.5.0 (256 buckets, 2048 max) ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Restricted Cone arp_tables: (C) 2002 David S. Miller TCP cubic registered NET: Registered protocol family 1 NET: Registered protocol family 10 NET: Registered protocol family 17 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com> All bugs added by David S. Miller <davem@redhat.com> VFS: Mounted root (squashfs filesystem) readonly. Freeing unused kernel memory: 116k freed init started: BusyBox v1.12.1 (2011-11-21 13:19:18 CST) starting pid 14, tty '': '/etc_ro/rcS' Algorithmics/MIPS FPU Emulator v1.5 devpts: called with bogus options ------------------------------------------- Welcome to __ __ __ __ __ ______ | | | | / \ | \ / | | ____| | |_| | / /\ \ | |\\//| | | |___ | _ | |_/__\ \ | | \/ | | | |___| | | | | | | | | | | | | | |___ |_| |_| |_| |_| |_| |_| |_____| HameData Technology Co., Ltd ------------------------------------------- killall: goahead: no process killed rt3xxx-ohci rt3xxx-ohci: RT3xxx OHCI Controller rt3xxx-ohci rt3xxx-ohci: new USB bus registered, assigned bus number 1 rt3xxx-ohci rt3xxx-ohci: irq 18, io mem 0x101c1000 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected rt3xxx-ehci rt3xxx-ehci: Ralink EHCI Host Controller rt3xxx-ehci rt3xxx-ehci: new USB bus registered, assigned bus number 2 rt3xxx-ehci rt3xxx-ehci: irq 18, io mem 0x101c0000 rt3xxx-ehci rt3xxx-ehci: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected usbcore: registered new interface driver ipheth starting pid 47, tty '/dev/ttyS1': '/bin/sh' BusyBox v1.12.1 (2011-11-21 13:19:18 CST) built-in shell (ash) Enter 'help' for a list of built-in commands. # Start gpio 0 monitor g_iplat = 1 killall: udhcpc: no process killed killall: udhcpc: no process killed apcli0 no private ioctls. ifconfig: ioctl 0x8913 failed: No such device internet.sh Password for 'hame' changed /sbin/internet.sh: line 278: can't create /proc/sys/kernel/hotplug: nonexistent directory rmmod: ralink_wdt: No such file or directory rmmod: cls: No such file or directory rmmod: hw_nat: No such file or directory rmmod: raeth: No such file or directory insmod: bridge.ko: module not found insmod: mii.ko: module not found insmod: raeth.ko: module not found phy_tx_ring = 0x01ffe000, tx_ring = 0xa1ffe000 phy_rx_ring0 = 0x01fff000, rx_ring0 = 0xa1fff000 MAC_ADRH -- : 0x00009c41 MAC_ADRL -- : 0x7c73a210 RT305x_ESW: Link Status Changed ##### disable 1st wireless interface ##### rmmod: rt2860v2_ap_net: No such file or directory rmmod: rt2860v2_ap: No such file or directory rmmod: rt2860v2_ap_util: No such file or directory rmmod: rt2860v2_sta_net: No such file or directory rmmod: rt2860v2_sta: No such file or directory rmmod: rt2860v2_sta_util: No such file or directory insmod: rt2860v2_ap_util.ko: module not found insmod: rt2860v2_ap.ko: module not found insmod: rt2860v2_ap_net.ko: module not found rmmod: nf_nat_pptp: No such file or directory rmmod: nf_conntrack_pptp: No such file or directory rmmod: nf_nat_proto_gre: No such file or directory rmmod: nf_conntrack_proto_gre: No such file or directory RX DESC a1807000 size = 2048 <-- RTMPAllocTxRxRingMemory, Status=0 RTMP_TimerListAdd: add timer obj c00838b0! RTMP_TimerListAdd: add timer obj c0021014! RTMP_TimerListAdd: add timer obj c0020be4! RTMP_TimerListAdd: add timer obj c0020fc0! RTMP_TimerListAdd: add timer obj c0020fe8! RTMP_TimerListAdd: add timer obj c00210cc! RTMP_TimerListAdd: add timer obj c00210f8! RTMP_TimerListAdd: add timer obj c00212a4! RTMP_TimerListAdd: add timer obj c00519bc! RTMP_TimerListAdd: add timer obj c005158c! RTMP_TimerListAdd: add timer obj c0051968! RTMP_TimerListAdd: add timer obj c0051990! RTMP_TimerListAdd: add timer obj c0051a74! RTMP_TimerListAdd: add timer obj c0051aa0! RTMP_TimerListAdd: add timer obj c00519e8! RTMP_TimerListAdd: add timer obj c0051a14! RTMP_TimerListAdd: add timer obj c0051a40! RTMP_TimerListAdd: add timer obj c0083dd0! RTMP_TimerListAdd: add timer obj c0083da8! RTMP_TimerListAdd: add timer obj c0083d80! RTMP_TimerListAdd: add timer obj c005a66c! RTMP_TimerListAdd: add timer obj c005a770! RTMP_TimerListAdd: add timer obj c005a694! RTMP_TimerListAdd: add timer obj c0051f84! RTMP_TimerListAdd: add timer obj c001e4d8! RTMP_TimerListAdd: add timer obj c0051ca4! Key1Str is Invalid key length(0) or Type(0) Key2Str is Invalid key length(0) or Type(0) Key3Str is Invalid key length(0) or Type(0) Key4Str is Invalid key length(0) or Type(0) 1. Phy Mode = 9 2. Phy Mode = 9 3. Phy Mode = 9 RTMP_TimerListAdd: add timer obj c001e0e0! RTMPSetPhyMode: channel is out of range, use first channel=0 MCS Set = ff 00 00 00 01 SYNC - BBP R4 to 20MHz.l Main bssid = 9c:41:7c:73:a2:18 <==== rt28xx_init, Status=0 0x1300 = 00064380 vconfig: ioctl error for rem: Invalid argument vconfig: ioctl error for rem: Invalid argument rmmod: 8021q: No such file or directory insmod: 8021q.ko: module not found eth2.2: Setting MAC address to 9c 41 7c 73 a2 17. device eth2 entered promiscuous mode VLAN (eth2.2): Setting underlying device (eth2) to promiscious mode. ifconfig: ioctl 0x8913 failed: No such device brctl: bridge br0: No such device or address iptables v1.4.0rc1: can't initialize iptables table `mangle': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded. ##### config Ralink ESW vlan partition (WLLLL) ##### switch reg write offset=14, value=405555 switch reg write offset=50, value=2001 switch reg write offset=98, value=7f3f switch reg write offset=e4, value=3f switch reg write offset=40, value=1002 switch reg write offset=44, value=1001 switch reg write offset=48, value=1001 switch reg write offset=70, value=ffff417e done. device ra0 entered promiscuous mode eth2 mii.o query= phy_id:1, address:4 retval:5e1 eth2 mii.o query= phy_id:1, address:0 retval:3100 eth2 mii.o query= phy_id:1, address:5 retval:0 eth2.1: dev_set_promiscuity(master, 1) device eth2.1 entered promiscuous mode ##### start wan ##### ##### start lan ##### br0: port 2(eth2.1) entering learning state br0: port 1(ra0) entering learning state ifconfig: ioctl 0x8914 failed: Cannot assign requested address ifconfig: ioctl 0x8914 failed: Cannot assign requested address br0: topology change detected, propagating br0: port 2(eth2.1) entering forwarding state br0: topology change detected, propagating br0: port 1(ra0) entering forwarding state killall: udhcpd: no process killed Set: phy[0].reg[0] = 3900 Set: phy[1].reg[0] = 3900 Set: phy[2].reg[0] = 3900 Set: phy[3].reg[0] = 3900 Set: phy[4].reg[0] = 3900 Set: phy[0].reg[0] = 3100 ifconfig: ioctl 0x8913 failed: No such device ##### start nat ##### ##### finish nat ##### killall rt2860apd 1>/dev/null 2>&1 iptables -F -t filter 1>/dev/null 2>&1 iptables -D FORWARD -j macipport_filter 1>/dev/null 2>&1 iptables -F macipport_filter 1>/dev/null 2>&1 iptables -D FORWARD -j web_filter 1>/dev/null 2>&1 iptables -F web_filter 1>/dev/null 2>&1 iptables -D FORWARD -j malicious_filter 1>/dev/null 2>&1 iptables -F malicious_filter 1>/dev/null 2>&1 iptables -D INPUT -j malicious_input_filter 1>/dev/null 2>&1 iptables -F malicious_input_filter 1>/dev/null 2>&1 iptables -P INPUT ACCEPT iptables -P OUTPUT ACCEPT iptables -P FORWARD ACCEPT iptables -t filter -N web_filter 1>/dev/null 2>&1 iptables -t filter -N macipport_filter 1>/dev/null 2>&1 iptables -t filter -N malicious_filter 1>/dev/null 2>&1 iptables -t filter -N synflood_filter 1>/dev/null 2>&1 iptables -t filter -N malicious_input_filter 1>/dev/null 2>&1 iptables -t filter -N synflood_input_filter 1>/dev/null 2>&1 iptables -t filter -A FORWARD -j web_filter 1>/dev/null 2>&1 iptables -t filter -A FORWARD -j macipport_filter 1>/dev/null 2>&1 iptables -t filter -A FORWARD -j malicious_filter 1>/dev/null 2>&1 iptables -t filter -A malicious_filter -p tcp --syn -j synflood_filter 1>/dev/null 2>&1 iptables -t filter -A INPUT -j malicious_input_filter 1>/dev/null 2>&1 iptables -t filter -A malicious_input_filter -p tcp --syn -j synflood_input_filter 1>/dev/null 2>&1 iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu 1>/dev/null 2>&1 iptables -A malicious_input_filter -i -m state --state RELATED,ESTABLISHED -j ACCEPT Bad argument `state' Try `iptables -h' or 'iptables --help' for more information. iptables -A malicious_input_filter -i -m state -p tcp --dport 80 --state NEW,INVALID -j DROP Bad argument `state' Try `iptables -h' or 'iptables --help' for more information. /bin/super_dmz -f sh: /bin/super_dmz: not found iptables -t nat -D PREROUTING -j port_forward 1>/dev/null 2>&1 iptables -t nat -F port_forward 1>/dev/null 2>&1; iptables -t nat -X port_forward 1>/dev/null 2>&1 iptables -t nat -D PREROUTING -j DMZ 1>/dev/null 2>&1 iptables -t nat -F DMZ 1>/dev/null 2>&1; iptables -t nat -X DMZ 1>/dev/null 2>&1 iptables -t nat -F POSTROUTING 1>/dev/null 2>&1 iptables -t nat -N port_forward 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 1 -j port_forward 1>/dev/null 2>&1 iptables -t nat -N DMZ 1>/dev/null 2>&1; iptables -t nat -I PREROUTING 2 -j DMZ 1>/dev/null 2>&1 iptables -t nat -A POSTROUTING -o -s 192.168.169.1/255.255.255.0 -j MASQUERADE 1>/dev/null 2>&1 ntp.sh pool.ntp.org: Unknown host ddns.sh kill -9 `cat /var/run/wscd.pid.ra0` cat: can't open '/var/run/wscd.pid.ra0': No such file or directory kill: you need to specify whom to kill iwpriv ra0 set WscConfMode=0 1>/dev/null 2>&1 route delete 239.255.255.250 1>/dev/null 2>&1 killall -q klogd killall -q syslogd syslogd -C8 1>/dev/null 2>&1 klogd 1>/dev/null 2>&1 killall -q zebra killall -q ripd webs: Listening for HTTP requests at address 192.168.169.1 # cat /proc/meminfo MemTotal: 28676 kB MemFree: 17084 kB Buffers: 1188 kB Cached: 3880 kB SwapCached: 0 kB Active: 2940 kB Inactive: 3236 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 1140 kB Mapped: 1224 kB Slab: 4072 kB SReclaimable: 556 kB SUnreclaim: 3516 kB PageTables: 192 kB NFS_Unstable: 0 kB Bounce: 0 kB CommitLimit: 14336 kB Committed_AS: 2844 kB VmallocTotal: 1048404 kB VmallocUsed: 1008 kB VmallocChunk: 1047340 kB # mount rootfs on / type rootfs (rw) /dev/root on / type squashfs (ro) proc on /proc type proc (rw) none on /var type ramfs (rw) none on /etc type ramfs (rw) none on /tmp type ramfs (rw) none on /media type ramfs (rw) none on /sys type sysfs (rw) none on /dev/pts type devpts (rw) none on /proc/bus/usb type usbfs (rw) # ifconfig br0 Link encap:Ethernet HWaddr 9C:41:7C:73:A2:10 inet addr:192.168.169.1 Bcast:192.168.169.255 Mask:255.255.255.0 inet6 addr: fe80::9e41:7cff:fe73:a210/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:546 (546.0 B) eth2 Link encap:Ethernet HWaddr 9C:41:7C:73:A2:10 inet6 addr: fe80::9e41:7cff:fe73:a210/64 Scope:Link UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1 RX packets:23 errors:0 dropped:0 overruns:0 frame:0 TX packets:21 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:6021 (5.8 KiB) TX bytes:1690 (1.6 KiB) Interrupt:3 eth2.1 Link encap:Ethernet HWaddr 9C:41:7C:73:A2:10 inet6 addr: fe80::9e41:7cff:fe73:a210/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:10 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:808 (808.0 B) eth2.2 Link encap:Ethernet HWaddr 9C:41:7C:73:A2:17 inet6 addr: fe80::9e41:7cff:fe73:a217/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:23 errors:0 dropped:0 overruns:0 frame:0 TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:5699 (5.5 KiB) TX bytes:492 (492.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) ra0 Link encap:Ethernet HWaddr 9C:41:7C:73:A2:18 inet6 addr: fe80::9e41:7cff:fe73:a218/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1168 errors:0 dropped:0 overruns:0 frame:0 TX packets:18 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:261802 (255.6 KiB) TX bytes:0 (0.0 B) Interrupt:4 # busybox BusyBox v1.12.1 (2011-11-21 13:19:18 CST) multi-call binary Copyright (C) 1998-2008 Erik Andersen, Rob Landley, Denys Vlasenko and others. Licensed under GPLv2. See source distribution for full notice. Usage: busybox [function] [arguments]... or: function [arguments]... BusyBox is a multi-call binary that combines many common Unix utilities into a single executable. Most people will create a link to busybox for each function they wish to use and BusyBox will act like whatever it was invoked as! Currently defined functions: [, [[, ash, basename, brctl, cat, chmod, chpasswd, cp, date, echo, eject, expr, fdisk, free, grep, halt, hostname, ifconfig, init, init, insmod, kill, killall, klogd, ln, logger, login, logread, ls, lsmod, mdev, mkdir, mknod, mount, ping, ping6, poweroff, printf, ps, pwd, reboot, rm, rmmod, route, sed, sh, sleep, syslogd, telnetd, test, top, touch, udhcpc, udhcpd, umount, uptime, vconfig, wc, wget, xargs
Services
- Telnet (login: hame, password: hame)
- dnsmasq
- ...
OpenWrt firmware Boot log
U-Boot 1.1.8 (Mar 13 2012 - 16:24:24) Board: Ralink APSoC DRAM: 32 MB relocate_code Pointer at: 81fb0000 spi_wait_nsec: 42 spi device id: ef 40 17 0 0 (40170000) find flash: W25Q64BV 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:Mar 13 2012 Time:16:24:24 ============================================ 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 =32 Mbytes raspi_read: from:40028 len:6 . raspi_read: from:0 len:30004 ....[ff ff] Init Plat A1 *************Is_update = 0 plat = 1************** No lcd plat Disable usb Usb ok 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. 0 3: System Boot system code via Flash. ## Booting image at bc050000 ... raspi_read: from:50000 len:40 . Image Name: Linux Kernel Image Created: 2013-05-15 9:26:19 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 955932 Bytes = 933.5 kB Load Address: 80000000 Entry Point: 80000000 raspi_read: from:50040 len:e961c ............... Verifying Checksum ... OK Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 80000000) ... ## Giving linux memsize in MB, 32 Starting kernel ... [ 0.000000] Linux version 3.8.12 (dmitry@ubuntu) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2012.12 r36638) ) #1 Wed May 15 13:25:48 MSK 2013 [ 0.000000] SoC Type: Ralink RT5350 id:1 rev:3 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU revision is: 0001964c (MIPS 24KEc) [ 0.000000] MIPS: machine is HAME MPR-A2 [ 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] [ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128 [ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2 [ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes) [ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] __ex_table already sorted, skipping sort [ 0.000000] Writing ErrCtl register=0004e15c [ 0.000000] Readback ErrCtl register=0004e15c [ 0.000000] Memory: 29424k/32768k available (2087k kernel code, 3344k reserved, 515k data, 212k init, 0k highmem) [ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:128 [ 0.000000] CPU Clock: 360MHz [ 0.000000] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080) [ 0.070000] pid_max: default: 32768 minimum: 301 [ 0.070000] Mount-cache hash table entries: 512 [ 0.080000] NET: Registered protocol family 16 [ 0.120000] bio: create slab <bio-0> at 0 [ 0.130000] rt2880_gpio 10000600.gpio: registering 24 gpios [ 0.140000] Switching to clocksource MIPS [ 0.150000] NET: Registered protocol family 2 [ 0.160000] TCP established hash table entries: 512 (order: 0, 4096 bytes) [ 0.180000] TCP bind hash table entries: 512 (order: -1, 2048 bytes) [ 0.190000] TCP: Hash tables configured (established 512 bind 512) [ 0.200000] TCP: reno registered [ 0.210000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.220000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.230000] NET: Registered protocol family 1 [ 0.240000] rt-timer 10000100.timer: maximum frequncy is 7324Hz [ 0.290000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.300000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.320000] msgmni has been set to 57 [ 0.330000] io scheduler noop registered [ 0.340000] io scheduler deadline registered (default) [ 0.350000] gpio-export gpio_export.3: 2 gpio(s) exported [ 0.360000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 0.380000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20) is a 16550A [ 0.390000] console [ttyS0] enabled, bootconsole disabled [ 0.390000] console [ttyS0] enabled, bootconsole disabled [ 0.430000] m25p80 spi0.0: s25fl064k (8192 Kbytes) [ 0.440000] 4 ofpart partitions found on MTD device spi0.0 [ 0.450000] Creating 4 MTD partitions on "spi0.0": [ 0.460000] 0x000000000000-0x000000030000 : "u-boot" [ 0.470000] 0x000000030000-0x000000040000 : "u-boot-env" [ 0.480000] 0x000000040000-0x000000050000 : "factory" [ 0.500000] 0x000000050000-0x000000800000 : "firmware" [ 0.510000] found squashfs behind kernel [ 0.520000] Creating 2 MTD partitions on "spi0.0": [ 0.530000] 0x000000050000-0x00000013965c : "kernel" [ 0.540000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.570000] 0x00000013965c-0x000000800000 : "rootfs" [ 0.580000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.610000] mtd: partition "rootfs" set to be root filesystem [ 0.620000] mtd: partition "rootfs_data" created automatically, ofs=350000, len=4B0000 [ 0.630000] 0x000000350000-0x000000800000 : "rootfs_data" [ 0.650000] rt305x-esw 10110000.esw: link changed 0x00 [ 0.670000] eth0: done loading [ 0.680000] TCP: cubic registered [ 0.680000] NET: Registered protocol family 17 [ 0.690000] 8021q: 802.1Q VLAN Support v1.8 [ 0.720000] VFS: Mounted root (squashfs filesystem) readonly on device 31:5. [ 0.740000] Freeing unused kernel memory: 212k freed [ 5.620000] input: gpio-keys-polled.2 as /devices/gpio-keys-polled.2/input/input0 [ 5.760000] Button Hotplug driver version 0.4.1 - preinit - Press the [f] key and hit [enter] to enter failsafe mode - regular preinit - [ 9.580000] jffs2: notice: (412) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 10 of xref (0 dead, 2 orphan) found. switching to jffs2 - init - Please press Enter to activate this console. [ 13.080000] compat-drivers backport release: compat-drivers-2013-03-28-5 [ 13.090000] Backport based on wireless-testing.git master-2013-04-16 [ 13.100000] compat.git: wireless-testing.git [ 13.150000] cfg80211: Calling CRDA to update world regulatory domain [ 13.170000] cfg80211: World regulatory domain updated: [ 13.180000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 13.190000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 13.210000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 13.230000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 13.240000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 13.260000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 13.890000] NET: Registered protocol family 10 [ 14.820000] usbcore: registered new interface driver usbfs [ 14.830000] usbcore: registered new interface driver hub [ 14.850000] usbcore: registered new device driver usb [ 15.630000] rt2800_wmac 10180000.wmac: failed to load eeprom property [ 15.650000] phy0 -> rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'soc_wmac.eeprom'. [ 15.670000] phy0 -> rt2x00_set_rt: Info - RT chipset 5350, rev 0500 detected [ 15.680000] phy0 -> rt2x00_set_rf: Info - RF chipset 5350 detected [ 15.770000] PPP generic driver version 2.4.2 [ 16.070000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 16.350000] NET: Registered protocol family 24 [ 16.390000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 16.420000] ehci-platform: EHCI generic platform driver [ 17.430000] ehci-platform 101c0000.ehci: EHCI Host Controller [ 17.440000] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1 [ 17.460000] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000 [ 17.490000] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00 [ 17.500000] hub 1-0:1.0: USB hub found [ 17.510000] hub 1-0:1.0: 1 port detected [ 17.550000] nf_conntrack version 0.5.0 (463 buckets, 1852 max) [ 18.060000] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 18.300000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 18.320000] ohci-platform 101c1000.ohci: Generic Platform OHCI Controller [ 18.330000] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2 [ 18.340000] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000 [ 18.420000] hub 2-0:1.0: USB hub found [ 18.430000] hub 2-0:1.0: 1 port detected [ 18.520000] usbcore: registered new interface driver cdc_acm [ 18.530000] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters [ 18.600000] usbcore: registered new interface driver usbserial [ 18.610000] usbcore: registered new interface driver usbserial_generic [ 18.620000] usbserial: USB Serial support registered for generic [ 18.660000] usbcore: registered new interface driver asix [ 18.700000] usbcore: registered new interface driver cdc_ether [ 18.920000] usbcore: registered new interface driver rndis_host [ 18.960000] usbcore: registered new interface driver option [ 18.980000] usbserial: USB Serial support registered for GSM modem (1-port) [ 25.120000] device eth0.1 entered promiscuous mode [ 25.130000] device eth0 entered promiscuous mode [ 25.150000] br-lan: port 1(eth0.1) entered forwarding state [ 25.160000] br-lan: port 1(eth0.1) entered forwarding state [ 26.140000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready [ 27.160000] br-lan: port 1(eth0.1) entered forwarding state [ 28.340000] ralink-wdt: timeout value 60 must be 0 < timeout <= 35, using 30 [ 31.850000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 31.870000] device wlan0 entered promiscuous mode [ 31.960000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 31.990000] br-lan: port 2(wlan0) entered forwarding state [ 32.000000] br-lan: port 2(wlan0) entered forwarding state [ 32.010000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready [ 34.000000] br-lan: port 2(wlan0) entered forwarding state BusyBox v1.19.4 (2013-05-15 12:52:59 MSK) built-in shell (ash) Enter 'help' for a list of built-in commands. _______ ________ __ | |.-----.-----.-----.| | | |.----.| |_ | - || _ | -__| || | | || _|| _| |_______|| __|_____|__|__||________||__| |____| |__| W I R E L E S S F R E E D O M ----------------------------------------------------- BARRIER BREAKER (Bleeding Edge, r36638) ----------------------------------------------------- * 1/2 oz Galliano Pour all ingredients into * 4 oz cold Coffee an irish coffee mug filled * 1 1/2 oz Dark Rum with crushed ice. Stir. * 2 tsp. Creme de Cacao ----------------------------------------------------- root@OpenWrt:/# cat /proc/meminfo MemTotal: 29636 kB MemFree: 10640 kB Buffers: 2008 kB Cached: 5984 kB SwapCached: 0 kB Active: 4440 kB Inactive: 5116 kB Active(anon): 1604 kB Inactive(anon): 56 kB Active(file): 2836 kB Inactive(file): 5060 kB Unevictable: 0 kB Mlocked: 0 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 1580 kB Mapped: 1424 kB Shmem: 96 kB Slab: 5440 kB SReclaimable: 1000 kB SUnreclaim: 4440 kB KernelStack: 296 kB PageTables: 248 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 14816 kB Committed_AS: 4660 kB VmallocTotal: 1048372 kB VmallocUsed: 680 kB VmallocChunk: 1044276 kB