HooToo HT-TM01, HT-TM02, HT-TM03, HT-TM04
- All devices have the same Ralink RT5350F chipset. The difference between the devices is:
- TM01: includes a 6000 mAh battery, charged via USB
- TM02: very small form factor, powered via USB
- TM03: MicroSDHC slot, includes a 3000 mAh battery, charged via USB
- TM04: powered by AC connector
- Status: see OpenWrt Forum Topics below.
- TM01, TM02, TM04: Thanks to Ron Curry / wingspinner for his image 1) which is used by some people out in the wild on TM01, TM02 and TM04. Note that the model number (as example in LuCi) will always be “TM02”, as this is hard coded in the image
- TM03: wingspinner's image does not work out-of-the-box, see https://forum.openwrt.org/viewtopic.php?id=58118 for the modifications.
Supported Versions
Hardware Highlights
OpenWrt Installation
The primary source for the original installation instructions by wingspinner is https://forum.openwrt.org/viewtopic.php?id=53014 or github/wingspinner.
- Switch TM02/TM01 in AP mode on (small switch set to world icon)
- Connect to it by WiFi with PW “11111111”
- Connect to 10.10.10.254
- Close setup wizard
- Insert USB flash drive into the device. It should partitioned, formatted, and have enough empty space
- Wait for a notification dialog about the inserted media (you can check it in “Explorer”)
- Download wingspinners image
- Go to “System” and the upgrade menu and upload the image (it's actually it is a shell script containing a binary image)
- WAIT, “WAIT until the timer popup times out”
- You're done! Restart TM02/TM01.
- Connect your PC by ethernet and go to 192.168.1.1
OpenWrt Images
Official releases
Development branch (trunk)
- OpenWrt trunk images ( which one to pick? what is the difference?)
Back to stock firmware
Images
HT-TM02 Flash Layout
Stock firmware
Partitions from “cat /proc/mtd
”:
dev: size erasesize name mtd0: 00800000 00010000 "ALL" mtd1: 00030000 00010000 "Bootloader" mtd2: 00010000 00010000 "Config" mtd3: 00010000 00010000 "Factory" mtd4: 00180000 00010000 "Kernel_RootFS" mtd5: 00010000 00010000 "params" mtd6: 00010000 00010000 "user_backup" mtd7: 00010000 00010000 "user" mtd8: 00600000 00010000 "Rootfs"
Layer0 | mtd0 ALL 8192KiB |
|||||||
---|---|---|---|---|---|---|---|---|
Layer1 | mtd1 Bootloader 192KiB | mtd2 Config 64KiB | mtd3 Factory 64KiB | mtd4 Kernel_RootFS 1536KiB | mtd5 params 64KiB | mtd6 user_backup 64KiB | mtd7 user 64KiB | mtd8 Rootfs 6144KiB |
OpenWrt firmware
- See flash.layout for a general overview.
- From Kernel boot log:
[ 0.530000] m25p80 spi32766.0: mx25l6405d (8192 Kbytes) [ 0.550000] 4 ofpart partitions found on MTD device spi32766.0 [ 0.560000] Creating 4 MTD partitions on "spi32766.0": [ 0.570000] 0x000000000000-0x000000030000 : "u-boot" [ 0.580000] 0x000000030000-0x000000040000 : "u-boot-env" [ 0.590000] 0x000000040000-0x000000050000 : "factory" [ 0.600000] 0x000000050000-0x000000800000 : "firmware" [ 0.690000] 2 uimage-fw partitions found on MTD device firmware [ 0.700000] 0x000000050000-0x0000001509c8 : "kernel" [ 0.720000] 0x0000001509c8-0x000000800000 : "rootfs" [ 0.730000] mtd: device 5 (rootfs) set to be root filesystem [ 0.740000] 1 squashfs-split partitions found on MTD device rootfs [ 0.750000] 0x000000370000-0x000000800000 : "rootfs_data"
- Flash Partitions from “
cat /proc/mtd
”dev: size erasesize name mtd0: 00030000 00010000 "u-boot" mtd1: 00010000 00010000 "u-boot-env" mtd2: 00010000 00010000 "factory" mtd3: 007b0000 00010000 "firmware" mtd4: 001009c8 00010000 "kernel" mtd5: 006af638 00010000 "rootfs" mtd6: 00490000 00010000 "rootfs_data"
- Mounted devices from
“mount”
:rootfs on / type rootfs (rw) /dev/root on /rom type squashfs (ro,relatime) /dev/mtdblock6 on /overlay type jffs2 (rw,noatime) overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
Consolidated View:
Layer0 | raw flash 8192 KiB | |||||
---|---|---|---|---|---|---|
Layer1 | mtd0: u-boot 192 KiB | mtd1: u-boot-env 64 KiB | mtd2: factory 64 KiB | mtd3: firmware 7872 KiB (= FlashSize-(192+64+64)) |
||
Layer2 | mtd4: kernel about 1 MiB | mtd5: rootfs “ / ”, OverlayFS with /overlay |
||||
Layer3 | /dev/root “ /rom ”, SquashFS around 2 MiB (depends on selected packages) | mtd6: rootfs_data “ /overlay ”, JFFS2 around 4.5 MiB (“free” space) |
Bootlog
OEM bootlog
Use 57600 bps:
U-Boot 1.1.3 (May 14 2014 - 12:41:02) DRAM: 32 MB Initialize usb ehci ohci find flash: MX25L6405D .*** Warning - bad CRC, using default environment ============================================ 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:May 14 2014 Time:12:41:02 ============================================ 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 . Initialize vs configure module .Initialize GPIO Input i key to enter menu 0 ........................## Booting image at 80500000 ... Image Name: Linux Kernel Image Created: 2013-11-01 5:37:54 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1442281 Bytes = 1.4 MB Load Address: 80000000 Entry Point: 80441000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 80441000) ... ## Giving linux memsize in MB, 32 Starting kernel ... LINUX started... THIS IS ASIC PROC INIT OK! enter init Start rootfs mounted echo 6 > /proc/sys/kernel/printk tntfs: module license 'Commercial. For support email ntfs-support@tuxera.com.' taints kernel. init dev files mounted end Sun Jan 1 00:00:00 UTC 2012 Get time information first tz_minuteswest=0 Set time information offset=0 tz.tz_minuteswest=0 Get time information again tz_minuteswest=0 GMT-00:00 arch/mips/rt2880/nvram.c 472: len=0x3ffc, crc_value=0x424e4650, fb[0].env.crc=0x424e4650 arch/mips/rt2880/nvram.c 502: Same CRC Finish the check crc SSID_PREFIX:TripMateNano wireless port last two bytes:-59d4! str_buf=59D4 tmp1 = TripMateNano-59D4! Default SSID:TripMateNanarch/mips/rt2880/nvram.c 423: --> nvram_clear 0 o-59D4! arch/mips/rt2880/nvram.c 445: clear flash from 0x2004 for 0x3ffc bytes arch/mips/rt2880/nvram.c 527: --> nvram_commit 0 init net status=1 arch/mips/rt2880/nvram.c 527: --> nvram_commit 0 phy_tx_ring = 0x00762000, tx_ring = 0xa0762000 phy_rx_ring0 = 0x00763000, rx_ring0 = 0xa0763000 MAC_ADRH -- : 0x0000001c MAC_ADRL -- : 0xc21959d5 RT305x_ESW: Link Status Changed vs_port_link_status=0 RX DESC a0684000 size = 2048 <-- RTMPAllocTxRxRingMemory, Status=0 RTMP_TimerListAdd: add timer obj c0083b68! RTMP_TimerListAdd: add timer obj c0020fe4! RTMP_TimerListAdd: add timer obj c0020bb4! RTMP_TimerListAdd: add timer obj c0020f90! RTMP_TimerListAdd: add timer obj c0020fb8! RTMP_TimerListAdd: add timer obj c0021210! RTMP_TimerListAdd: add timer obj c0024104! RTMP_TimerListAdd: add timer obj c0023cd4! RTMP_TimerListAdd: add timer obj c00240b0! RTMP_TimerListAdd: add timer obj c00240d8! RTMP_TimerListAdd: add timer obj c0024330! RTMP_TimerListAdd: add timer obj c0027224! RTMP_TimerListAdd: add timer obj c0026df4! RTMP_TimerListAdd: add timer obj c00271d0! RTMP_TimerListAdd: add timer obj c00271f8! RTMP_TimerListAdd: add timer obj c0027450! RTMP_TimerListAdd: add timer obj c002a344! RTMP_TimerListAdd: add timer obj c0029f14! RTMP_TimerListAdd: add timer obj c002a2f0! RTMP_TimerListAdd: add timer obj c002a318! RTMP_TimerListAdd: add timer obj c002a570! RTMP_TimerListAdd: add timer obj c002d464! RTMP_TimerListAdd: add timer obj c002d034! RTMP_TimerListAdd: add timer obj c002d410! RTMP_TimerListAdd: add timer obj c002d438! RTMP_TimerListAdd: add timer obj c002d690! RTMP_TimerListAdd: add timer obj c0030584! RTMP_TimerListAdd: add timer obj c0030154! RTMP_TimerListAdd: add timer obj c0030530! RTMP_TimerListAdd: add timer obj c0030558! RTMP_TimerListAdd: add timer obj c00307b0! RTMP_TimerListAdd: add timer obj c00336a4! RTMP_TimerListAdd: add timer obj c0033274! RTMP_TimerListAdd: add timer obj c0033650! RTMP_TimerListAdd: add timer obj c0033678! RTMP_TimerListAdd: add timer obj c00338d0! RTMP_TimerListAdd: add timer obj c00367c4! RTMP_TimerListAdd: add timer obj c0036394! RTMP_TimerListAdd: add timer obj c0036770! RTMP_TimerListAdd: add timer obj c0036798! RTMP_TimerListAdd: add timer obj c00369f0! RTMP_TimerListAdd: add timer obj c005170c! RTMP_TimerListAdd: add timer obj c00512dc! RTMP_TimerListAdd: add timer obj c00516b8! RTMP_TimerListAdd: add timer obj c00516e0! RTMP_TimerListAdd: add timer obj c0051738! RTMP_TimerListAdd: add timer obj c0051764! RTMP_TimerListAdd: add timer obj c0051790! RTMP_TimerListAdd: add timer obj c0084088! RTMP_TimerListAdd: add timer obj c0084060! RTMP_TimerListAdd: add timer obj c0084038! RTMP_TimerListAdd: add timer obj c005a924! RTMP_TimerListAdd: add timer obj c005aa28! RTMP_TimerListAdd: add timer obj c005a94c! RTMP_TimerListAdd: add timer obj c0051c74! RTMP_TimerListAdd: add timer obj c001e468! RTMP_TimerListAdd: add timer obj c0021588! RTMP_TimerListAdd: add timer obj c00246a8! RTMP_TimerListAdd: add timer obj c00277c8! RTMP_TimerListAdd: add timer obj c002a8e8! RTMP_TimerListAdd: add timer obj c002da08! RTMP_TimerListAdd: add timer obj c0030b28! RTMP_TimerListAdd: add timer obj c0033c48! RTMP_TimerListAdd: add timer obj c0051990! Key1Str is Invalid key length(0) or Type(1) 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) 2b:39:24:2f:fa:ec:b9:89:8a:13:f5:bf:4f:f5:ad:e5: 3c:c5:ec:f7:dd:a4:66:7e:16:08:be:a5:e1:23:d7:96: 1. Phy Mode = 9 2. Phy Mode = 9 3. Phy Mode = 9 RTMPSetPhyMode: channel is out of range, use first channel=0 MCS Set = ff 00 00 00 01 SYNC - BBP R4 to 20MHz.l RTMP_TimerListAdd: add timer obj c0052244! Main bssid = 00:1c:c2:19:59:d4 <==== rt28xx_init, Status=0 0x1300 = 00064380 vconfig: ioctl error for rem: Invalid argument eth2.2: Setting MAC address to 00 1c c2 19 59 d5. VLAN (eth2.2): Underlying device (eth2) has same MAC, not checking promiscious mode. ifconfig: SIOCGIFFLAGS: No such device brctl: bridge br0: No such device or address switch reg write offset=14, value=5555 switch reg write offset=40, value=1001 switch reg write offset=44, value=1001 switch reg write offset=48, value=1001 switch reg write offset=4c, value=1 switch reg write offset=50, value=2001 switch reg write offset=70, value=ffffffff switch reg write offset=98, value=7f7f switch reg write offset=e4, value=7f done. ra2880stop()...Done Free TX/RX Ring Memory! Set: phy[0].reg[0] = 3900 Set: phy[4].reg[0] = 3900 Set: phy[1].reg[0] = 3900 Set: phy[2].reg[0] = 3900 Set: phy[3].reg[0] = 3900 udhcpc (v1.12.1) started Set: phy[4].reg[0] = 3100 aaaaa do_cmd_r:mkdir /tmp/led_tmp BEGIN:=======================================2483 to wait child 2486 END:=======================================2483 to wait child 2486 /etc/rc.d/rc1.d/S73ddns start /etc/rc.d/rc1.d/S75fileserv start /etc/rc.d/rc1.d/S80webd start /etc/rc.d/rc1.d/S82upnpd start /etc/rc.d/rc1.d/S99local start
Login
Username | Password |
---|---|
admin | (empty) |
root | : might be the timestamp when the image was created, e.g. “20080826” |
cat /etc/passwd
root:$1$yikWMdhq$cIUPc1dKQYHkkKkiVpM/v/:0:0:root:/root:/bin/sh bin:x:1:1:bin:/bin:/sbin/nologin daemon:x:2:2:daemon:/sbin:/sbin/nologin admin:$1$QlrmwRgO$c0iSI2euV.U1Wx6yBkDBI.:15:0:admin:/data/UsbDisk1/Volume1:/bin/sh mail:*:8:8:mail:/var/mail:/bin/sh nobody:x:65534:65534:Nobody:/data/UsbDisk1/Volume1:/bin/sh
System information
uname -a
Linux TM02 2.6.21 #6 Fri Nov 1 13:37:43 CST 2013 mips unknown
cat /proc/version
Linux version 2.6.21 (hsq@localhost.localdomain) (gcc version 3.4.2) #6 Fri Nov 1 13:37:43 CST 2013
cat /proc/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
cat /proc/meminfo
MemTotal: 28000 kB MemFree: 9272 kB Buffers: 1164 kB Cached: 7496 kB SwapCached: 0 kB Active: 4116 kB Inactive: 6456 kB SwapTotal: 0 kB SwapFree: 0 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 1944 kB Mapped: 1304 kB Slab: 5892 kB SReclaimable: 2296 kB SUnreclaim: 3596 kB PageTables: 260 kB NFS_Unstable: 0 kB Bounce: 0 kB CommitLimit: 14000 kB Committed_AS: 4432 kB VmallocTotal: 1048404 kB VmallocUsed: 1848 kB VmallocChunk: 1046132 kB
mount
rootfs on / type rootfs (rw) /dev/root on / type squashfs (ro) ramfs on /var type ramfs (rw) ramfs on /www/firmware type ramfs (rw) ramfs on /boot/tmp type ramfs (rw) ramfs on /usr/local/samba/var type ramfs (rw) ramfs on /data type ramfs (rw) ramfs on /opt type ramfs (rw) ramfs on /dev type ramfs (rw) ramfs on /tmp type ramfs (rw) /proc on /proc type proc (rw) /sys on /sys type sysfs (rw) none on /proc/bus/usb type usbfs (rw) ramfs on /dev type ramfs (rw) devpts on /dev/pts type devpts (rw) ramfs on /dev/shm type ramfs (rw) ramfs on /dev/mapper type ramfs (rw) ramfs on /etc type ramfs (rw)
cat /proc/devices
Character devices: 1 mem 2 pty 3 ttyp 4 /dev/vc/0 4 tty 4 ttyS 5 /dev/tty 5 /dev/console 5 /dev/ptmx 7 vcs 10 misc 13 input 21 sg 90 mtd 100 vs_pio 108 ppp 128 ptm 136 pts 166 ttyACM 180 usb 188 ttyUSB 189 usb_device 245 ttyHS 251 nvram 253 rdm0 254 usb_endpoint Block devices: 1 ramdisk 7 loop 8 sd 31 mtdblock 65 sd 66 sd 67 sd 68 sd 69 sd 70 sd 71 sd 128 sd 129 sd 130 sd 131 sd 132 sd 133 sd 134 sd 135 sd
cat /proc/bus/usb/devices
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 1 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.21 ohci_hcd S: Product=RT3xxx OHCI Controller S: SerialNumber=rt3xxx-ohci C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1 B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.21 ehci_hcd S: Product=Ralink EHCI Host Controller S: SerialNumber=rt3xxx C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 0mA I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 4 Ivl=256ms
cat /proc/ioports
000003c0-000003df : ega b0000500-b000051f : serial b0000c00-b0000c1f : serial
cat /proc/vmstat
nr_free_pages 2242 nr_active 1651 nr_inactive 1056 nr_anon_pages 490 nr_mapped 332 nr_file_pages 2225 nr_dirty 0 nr_writeback 0 nr_slab_reclaimable 588 nr_slab_unreclaimable 898 nr_page_table_pages 65 nr_unstable 0 nr_bounce 0 nr_vmscan_write 0 pgpgin 3796 pgpgout 0 pswpin 0 pswpout 0 pgalloc_dma 53379 pgalloc_normal 0 pgfree 55621 pgactivate 1278 pgdeactivate 0 pgfault 149540 pgmajfault 93 pgrefill_dma 0 pgrefill_normal 0 pgsteal_dma 0 pgsteal_normal 0 pgscan_kswapd_dma 0 pgscan_kswapd_normal 0 pgscan_direct_dma 0 pgscan_direct_normal 0 pginodesteal 0 slabs_scanned 0 kswapd_steal 0 kswapd_inodesteal 0 pageoutrun 0 allocstall 0 pgrotated 0
ps axuwf
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND root 1 0.8 1.5 3780 444 ? Ss 2011 0:00 /sbin/init root 2 0.0 0.0 0 0 ? SN 2011 0:00 [ksoftirqd/0] root 3 0.0 0.0 0 0 ? S< 2011 0:00 [events/0] root 4 0.1 0.0 0 0 ? S< 2011 0:00 [khelper] root 5 0.0 0.0 0 0 ? S< 2011 0:00 [kthread] root 38 0.0 0.0 0 0 ? S< 2011 0:00 \_ [khubd] root 35 0.0 0.0 0 0 ? S< 2011 0:00 \_ [kblockd/0] root 53 0.0 0.0 0 0 ? S 2011 0:00 \_ [pdflush] root 52 0.0 0.0 0 0 ? S< 2011 0:00 \_ [kswapd0] root 55 0.0 0.0 0 0 ? S< 2011 0:00 \_ [aio/0] root 54 0.0 0.0 0 0 ? S 2011 0:00 \_ [pdflush] root 681 3.5 0.0 0 0 ? S 2011 0:04 [mtdblockd] root 814 2.2 1.3 1204 368 ? S<s 2011 0:02 /usr/sbin/udevd -d root 1864 0.0 0.0 0 0 ? S 00:00 0:00 [RtmpCmdQTask] root 1865 0.0 0.0 0 0 ? S 00:00 0:00 [RtmpWscTask] root 2364 0.0 1.3 2028 376 ? Ss 00:00 0:00 udhcpd /etc/udhcpd.conf root 2474 0.0 1.4 2024 416 ? S 00:00 0:00 udhcpc -i apcli0 -s /sbin/udhcpc.sh -p /var/run/udhcpc.pid root 2488 0.0 1.4 3944 404 ? Ss 00:00 0:00 /usr/sbin/led_control root 2620 0.0 1.4 3944 404 ? S 00:00 0:00 \_ /usr/sbin/led_control root 2622 0.0 1.4 3944 404 ? S 00:00 0:00 \_ /usr/sbin/led_control root 2621 0.0 1.4 3944 404 ? S 00:00 0:00 \_ /usr/sbin/led_control root 2524 0.0 1.5 3784 428 ? S 00:00 0:00 /usr/sbin/vstddns root 2556 0.0 2.1 4888 604 ? SN 00:00 0:00 /usr/sbin/fileserv -f /etc/fileserv/lighttpd.conf -m /usr/lib/files root 2557 0.0 1.3 4888 384 ? RN 00:00 0:00 \_ /usr/sbin/fileserv -f /etc/fileserv/lighttpd.conf -m /usr/lib/f root 2569 0.0 1.3 4888 384 ? RN 00:00 0:00 \_ /usr/sbin/fileserv -f /etc/fileserv/lighttpd.conf -m /usr/lib/f root 2575 0.0 4.1 5472 1164 ? Ss 00:00 0:00 /usr/sbin/ioos root 2580 0.0 4.1 5472 1164 ? S 00:00 0:00 \_ /usr/sbin/ioos root 2581 0.0 4.1 5472 1164 ? S 00:00 0:00 \_ /usr/sbin/ioos root 2583 0.0 4.1 5472 1164 ? S< 00:00 0:00 \_ /usr/sbin/ioos root 2584 0.0 4.1 5472 1164 ? S< 00:00 0:00 \_ /usr/sbin/ioos root 2586 0.0 4.1 5472 1164 ? S< 00:00 0:00 \_ /usr/sbin/ioos root 2587 0.0 4.1 5472 1164 ? S 00:00 0:00 \_ /usr/sbin/ioos root 2596 0.0 1.5 3776 420 ? S 00:00 0:00 /usr/sbin/upnpd root 2615 0.0 0.8 2024 248 ? Ss 00:00 0:00 telnetd admin 2618 0.0 1.7 2036 500 ttyS1 Ss 00:00 0:00 -sh admin 2680 0.0 1.7 1832 484 ttyS1 R+ 00:01 0:00 \_ ps axuwf root 2651 0.0 0.5 1056 152 ? SN 00:00 0:00 owndns 55 root 2654 0.0 0.6 1068 184 ? SN 00:00 0:00 ownhttp 85 10.10.10.254
top
CPU: 0% usr 9% sys 0% nice 90% idle 0% io 0% irq 0% softirq Load average: 0.00 0.04 0.04 PID PPID USER STAT VSZ %MEM %CPU COMMAND 2807 2618 admin R 2032 7% 9% top 2575 1 root S 5528 20% 0% /usr/sbin/ioos 2581 2580 root S 5528 20% 0% /usr/sbin/ioos 2587 2580 root S 5528 20% 0% /usr/sbin/ioos 2584 2580 root S < 5528 20% 0% /usr/sbin/ioos 2586 2580 root S < 5528 20% 0% /usr/sbin/ioos 2580 2575 root S 5528 20% 0% /usr/sbin/ioos 2583 2580 root S < 5528 20% 0% /usr/sbin/ioos 2557 2556 root S N 4888 17% 0% /usr/sbin/fileserv -f /etc/fileserv/l 2556 1 root S N 4888 17% 0% /usr/sbin/fileserv -f /etc/fileserv/l 2569 2556 root S N 4888 17% 0% /usr/sbin/fileserv -f /etc/fileserv/l 2622 2620 root S 3944 14% 0% /usr/sbin/led_control 2620 2488 root S 3944 14% 0% /usr/sbin/led_control 2488 1 root S 3944 14% 0% /usr/sbin/led_control 2621 2620 root S 3944 14% 0% /usr/sbin/led_control 2524 1 root S 3784 14% 0% /usr/sbin/vstddns 1 0 root S 3780 13% 0% /sbin/init 2596 1 root S 3776 13% 0% /usr/sbin/upnpd 2618 1 admin S 2036 7% 0% -sh 2364 1 root S 2028 7% 0% udhcpd /etc/udhcpd.conf
/sbin/lsmod
Module Size Used by Tainted: P tfat 205680 0 texfat 210640 0 tntfs 495024 0
ls -l /
drwxr-xr-x 2 root root 802 Aug 19 2014 bin drwxr-xr-x 3 root root 20 Aug 19 2014 boot drwxr-xr-x 2 root root 0 Jan 1 2000 data drwxr-xr-x 6 root root 0 Jan 1 00:00 dev drwxr-xr-x 14 root root 0 Jan 1 00:00 etc drwxr-xr-x 3 root root 20 Aug 19 2014 etc_ro drwxr-xr-x 2 root root 3 Aug 19 2014 home drwxr-xr-x 6 root root 1035 Aug 19 2014 lib drwxr-xr-x 2 root root 3 Aug 19 2014 media drwxr-xr-x 2 root root 3 Aug 19 2014 mnt drwxr-xr-x 2 root root 0 Jan 1 2000 opt dr-xr-xr-x 50 root root 0 Jan 1 2000 proc drwxr-xr-x 2 root root 701 Aug 19 2014 sbin drwxr-xr-x 11 root root 0 Jan 1 2000 sys drwxr-xr-x 4 root root 0 Jan 1 00:00 tmp drwxr-xr-x 8 root root 80 Aug 19 2014 usr drwxr-xr-x 10 root root 0 Jan 1 00:00 var drwxr-xr-x 8 root root 101 Aug 19 2014 www
ls -l /etc/
-rw-r--r-- 1 root root 10 Jan 1 00:00 TZ drwxr-xr-x 3 root root 0 Aug 19 2014 Wireless -rw-r--r-- 1 root root 84 Oct 23 2013 ddns.conf drwxr-xr-x 2 root root 0 Aug 19 2014 dhcp -rw-r--r-- 1 root root 5933 Aug 19 2014 dlna.png drwxr-xr-x 3 root root 0 Aug 19 2014 fileserv -rw-r--r-- 1 root root 121 Aug 19 2014 firmware -rw-r--r-- 1 root root 424 Oct 23 2013 fstab -rw-r--r-- 1 root root 115 Oct 23 2013 group -rw-r--r-- 1 root root 115 Oct 23 2013 group- -rw-r--r-- 1 root root 18 Oct 23 2013 host.conf -rw-r--r-- 1 root root 5 Aug 19 2014 hostname -rw-r--r-- 1 root root 47 Jan 1 2000 hosts drwxr-xr-x 2 root root 0 Aug 19 2014 init.d -rwxr-xr-x 1 root root 947 Oct 23 2013 initargs -rwxr-xr-x 1 root root 1987 Oct 23 2013 initdisk -rwxr-xr-x 1 root root 737 Nov 12 2013 initnet -rwxr-xr-x 1 root root 1907 May 12 2014 initsh -rwxr-xr-x 1 root root 4333 Oct 23 2013 initsys -rw-r--r-- 1 root root 104 Oct 23 2013 inittab -rwxr-xr-x 1 root root 990 Oct 23 2013 inittime -rw-r--r-- 1 root root 264 Oct 23 2013 iosermap -rwxr-xr-x 1 root root 14 Oct 23 2013 ld.so.conf -rw-r--r-- 1 root root 61 Oct 23 2013 local.conf lrwxrwxrwx 1 root root 42 Jan 1 2000 localtime -> ../usr/share/zoneinfo/(GMT+00:00)Greenwich -rwxr-xr-x 1 root root 1806 Aug 19 2014 minidlna.conf lrwxrwxrwx 1 root root 12 Jan 1 2000 mtab -> /proc/mounts -rw-r--r-- 1 root root 62 Oct 23 2013 nasclient.conf drwxr-xr-x 2 root root 0 Aug 19 2014 newfunction -rw-r--r-- 1 root root 1686 Oct 23 2013 nsswitch.conf drwxr-xr-x 2 root root 0 Aug 19 2014 ntp -rw-r--r-- 1 root root 312 Oct 23 2013 passwd -rw-r--r-- 1 root root 278 Oct 23 2013 passwd- -rw-r--r-- 1 root root 6108 Oct 23 2013 protocols drwxr-xr-x 3 root root 0 Aug 19 2014 rc.d -rwxr-xr-x 1 root root 1501 Oct 23 2013 rc.local -rw-r--r-- 1 root root 50 Oct 23 2013 resolv.conf -rw-r--r-- 1 root root 46 Oct 23 2013 rpcserver.conf drwxr-xr-x 2 root root 0 Aug 19 2014 samba -rw-r--r-- 1 root root 8192 Oct 23 2013 secrets.tdb -rw-r--r-- 1 root root 36 Jan 1 00:00 services -rw-r--r-- 1 root root 222 Oct 23 2013 shadow -rw-r--r-- 1 root root 188 Oct 23 2013 shadow- -rw-r--r-- 1 root root 17 Oct 23 2013 timecache -rw-r--r-- 1 root root 20 Oct 23 2013 timedate -rwxr-xr-x 1 root root 2 Jan 1 2000 tzflag drwxr-xr-x 4 root root 0 Aug 19 2014 udev -rw-r--r-- 1 root root 176 Jan 1 00:00 udhcpd.conf -rw-r--r-- 1 root root 146 Jan 1 00:00 udhcpd.conf_bak drwxr-xr-x 2 root root 0 Aug 19 2014 update drwxr-xr-x 2 root root 0 Aug 19 2014 upnp -rw-r--r-- 1 root root 229 Aug 19 2014 versioninfo -rw-r--r-- 1 root root 2 Oct 23 2013 vs_swapoff_flag -rw-r--r-- 1 root root 210 Aug 11 2014 vshttpd.conf -rw-r--r-- 1 root root 207 Oct 23 2013 vsupload.conf drwxr-xr-x 2 root root 0 Aug 19 2014 webmg lrwxrwxrwx 1 root root 4 Jan 1 2000 www -> /www
set
HOME='/data/UsbDisk1/Volume1' IFS=' ' LOGNAME='admin' PATH='/bin:/usr/bin' PPID='1' PS1='$ ' PS2='> ' PS4='+ ' PWD='/' SHELL='/bin/sh' TERM='vt102' USER='admin' _='/bin:/usr/bin'
Upgrade & OpenWrt bootlog
Serial output when upgrading OEM firmware with wingspinner's openwrt-ramips-rt305x-ht-tm02-squashfs-factory-r42649.bin
(actually a shell script) following his instructions:
[... stock firmware boot output ...] TM02 login: RTMP_TimerListAdd: add timer obj c00996d0! RTMP_TimerListAdd: add timer obj c0099884! AP SETKEYS DONE - WPA2, AuthMode(7)=WPA2PSK, WepStatus(6)=AES, GroupWepStatus(4)=TKIP Allow 16-byte CDBs and thus > 2TB scsi 0:0:0:0: Direct-Access ChipsBnk SD/MMCReader 4081 PQ: 0 ANSI: 2 sda: Spinning up disk... sda: delay 1 second ... SCSI device sda: 1959936 512-byte hdwr sectors (1003 MB) sda: Write Protect is off sda: assuming drive cache: write through SCSI device sda: 1959936 512-byte hdwr sectors (1003 MB) sda: Write Protect is off sda: assuming drive cache: write through sd 0:0:0:0: Attached scsi removable disk sda sd 0:0:0:0: Attached scsi generic sg0 type 0 FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! Allow 16-byte CDBs and thus > 2TB scsi 1:0:0:0: Direct-Access ChipsBnk SD/MMCReader 4081 PQ: 0 ANSI: 2 SCSI device sda: 1959936 512-byte hdwr sectors (1003 MB) sda: Write Protect is off sda: assuming drive cache: write through SCSI device sda: 1959936 512-byte hdwr sectors (1003 MB) sda: Write Protect is off sda: assuming drive cache: write through sd 1:0:0:0: Attached scsi removable disk sda sd 1:0:0:0: Attached scsi generic sg0 type 0 FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! Allow 16-byte CDBs and thus > 2TB scsi 2:0:0:0: Direct-Access ChipsBnk SD/MMCReader 4081 PQ: 0 ANSI: 2 SCSI device sda: 1959936 512-byte hdwr sectors (1003 MB) sda: Write Protect is off sda: assuming drive cache: write through SCSI device sda: 1959936 512-byte hdwr sectors (1003 MB) sda: Write Protect is off sda: assuming drive cache: write through sd 2:0:0:0: Attached scsi removable disk sda sd 2:0:0:0: Attached scsi generic sg0 type 0 AP SETKEYS DONE - WPA2, AuthMode(7)=WPA2PSK, WepStatus(6)=AES, GroupWepStatus(4)=TKIP end_request: I/O error, dev sda, sector 4277 tfat error (device sda1, pid 3354): exfat_bio_end_io_write(): Bio write I/O error (error 5). Buffer I/O error on device sda1, logical block 2479 lost page write due to I/O error on sda1 Buffer I/O error on device sda1, logical block 2480 lost page write due to I/O error on sda1 Buffer I/O error on device sda1, logical block 2481 lost page write due to I/O error on sda1 sd 2:0:0:0: rejecting I/O to offline device sd 2:0:0:0: rejecting I/O to offline device tfat error (device sda1, pid 3354): exfat_bdata_end_io_write(): FAT mirror bio write I/O error (error 5). end_request: I/O error, dev sda, sector 95 tfat error (device sda1, pid 3354): exfat_bio_end_io_write(): Bio write I/O error (error 5). tfat error (device sda1, pid 2541): exfat_write_cluster_chain(): Failed to sync modified FAT region to disk (error 5). tfat error (device sda1, pid 2541): exfat_write_inode(): Failed (error 5). Inode is corrupt. tfat warning (device sda1, pid 2541): exfat_fsync(): Failed to fsync inode 0x106e7 (error 5). sd 2:0:0:0: rejecting I/O to offline device Buffer I/O error on device sda1, logical block 2481 lost page write due to I/O error on sda1 sd 2:0:0:0: rejecting I/O to offline device sd 2:0:0:0: rejecting I/O to offline device printk: 39 messages suppressed. tfat error (device sda1, pid 4886): exfat_bio_end_io_write(): Bio write I/O error (error 5). sd 2:0:0:0: rejecting I/O to offline device sd 2:0:0:0: rejecting I/O to offline device printk: 11 messages suppressed. tfat error (device sda1, pid 4891): exfat_bio_end_io_write(): Bio write I/O error (error 5). sd 2:0:0:0: rejecting I/O to offline device sd 2:0:0:0: rejecting I/O to offline device printk: 54 messages suppressed. tfat error (device sda1, pid 53): exfat_bio_end_io_write(): Bio write I/O error (error 5). sd 2:0:0:0: rejecting I/O to offline device sd 2:0:0:0: rejecting I/O to offline device printk: 25 messages suppressed. tfat error (device sda1, pid 53): exfat_bio_end_io_write(): Bio write I/O error (error 5). sd 2:0:0:0: rejecting I/O to offline device sd 2:0:0:0: rejecting I/O to offline device BUG: at fs/squashfs/uncomp.c:135 sqlzma_un() Call Trace: [<80011c94>] dump_stack+0x8/0x34 [<800d64d0>] sqlzma_un+0x250/0x288 [<800cdc08>] squashfs_read_data+0x6a8/0x88c SQUASHFS error: sb_bread failed reading block 0xa1 SQUASHFS error: Unable to read page, block 22aac, size 5ab7 ... SQUASHFS error: sb_bread failed reading block 0xce SQUASHFS error: Unable to read page, block 2db06, size 5e57 AP SETKEYS DONE - WPA2, AuthMode(7)=WPA2PSK, WepStatus(6)=AES, GroupWepStatus(4)=TKIP AP SETKEYS DONE - WPA2, AuthMode(7)=WPA2PSK, WepStatus(6)=AES, GroupWepStatus(4)=TKIP AP SETKEYS DONE - WPA2, AuthMode(7)=WPA2PSK, WepStatus(6)=AES, GroupWepStatus(4)=TKIP U-Boot 1.1.3 (Sep 1 2012 - 08:34:08) Board: Ralink APSoC DRAM: 32 MB relocate_code Pointer at: 81fb4000 spi_wait_nsec: 42 spi device id: c2 20 17 c2 20 (2017c220) find flash: MX25L6405D 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:Sep 1 2012 Time:08:34: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 =32 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. 0 3: System Boot system code via Flash. ## Booting image at bc050000 ... raspi_read: from:50000 len:40 . Image Name: MIPS OpenWrt Linux-3.14.18 Created: 2014-10-03 0:31:52 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1049649 Bytes = 1 MB Load Address: 80000000 Entry Point: 80000000 raspi_read: from:50040 len:100431 ................. 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.14.18 (recurry@debian) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r42649) ) #1 Thu Oct 2 17:30:54 PDT 2014 [ 0.000000] SoC Type: Ralink RT5350 id:1 rev:3 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 0001964c (MIPS 24KEc) [ 0.000000] MIPS: machine is HOOTOO HT-TM02 [ 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] Writing ErrCtl register=00055cf2 [ 0.000000] Readback ErrCtl register=00055cf2 [ 0.000000] Memory: 29216K/32768K available (2283K kernel code, 119K rwdata, 456K rodata, 140K init, 180K bss, 3552K reserved) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:256 [ 0.000000] CPU Clock: 360MHz [ 0.000000] systick: running - mult: 214748, shift: 32 [ 0.000000] genirq: Flags mismatch irq 7. 00014600 (timer) vs. 00014600 (systick) [ 0.010000] Calibrating delay loop... 479.23 BogoMIPS (lpj=2396160) [ 0.070000] pid_max: default: 32768 minimum: 301 [ 0.070000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.080000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.090000] pinctrl core: initialized pinctrl subsystem [ 0.090000] NET: Registered protocol family 16 [ 0.120000] bio: create slab <bio-0> at 0 [ 0.120000] rt2880_gpio 10000600.gpio: registering 22 gpios [ 0.130000] rt2880_gpio 10000600.gpio: registering 22 irq handlers [ 0.140000] Switched to clocksource systick [ 0.140000] NET: Registered protocol family 2 [ 0.160000] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.180000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.180000] TCP: Hash tables configured (established 1024 bind 1024) [ 0.200000] TCP: reno registered [ 0.210000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.210000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.230000] NET: Registered protocol family 1 [ 0.240000] rt-timer 10000100.timer: maximum frequency is 7324Hz [ 0.260000] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.320000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.320000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.350000] msgmni has been set to 57 [ 0.350000] io scheduler noop registered [ 0.370000] io scheduler deadline registered (default) [ 0.370000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 0.400000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a 16550A [ 0.420000] console [ttyS0] enabled [ 0.420000] console [ttyS0] enabled [ 0.420000] bootconsole [early0] disabled [ 0.420000] bootconsole [early0] disabled [ 0.450000] m25p80 spi32766.0: mx25l6405d (8192 Kbytes) [ 0.470000] 4 ofpart partitions found on MTD device spi32766.0 [ 0.470000] Creating 4 MTD partitions on "spi32766.0": [ 0.490000] 0x000000000000-0x000000030000 : "u-boot" [ 0.500000] 0x000000030000-0x000000040000 : "u-boot-env" [ 0.520000] 0x000000040000-0x000000050000 : "factory" [ 0.520000] 0x000000050000-0x000000800000 : "firmware" [ 0.550000] 0x000000150471-0x000000800000 : "rootfs" [ 0.550000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.590000] mtd: device 4 (rootfs) set to be root filesystem [ 0.590000] mtd: partition "rootfs_data" created automatically, ofs=0x3a0000, len=0x460000 [ 0.620000] 0x0000003a0000-0x000000800000 : "rootfs_data" [ 0.640000] eth0: done loading [ 0.640000] rt3xxx-usbphy usbphy.3: loaded [ 0.660000] rt2880_wdt 10000120.watchdog: Initialized [ 0.660000] TCP: cubic registered [ 0.680000] NET: Registered protocol family 17 [ 0.680000] 8021q: 802.1Q VLAN Support v1.8 [ 0.720000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4. [ 0.720000] Freeing unused kernel memory: 140K (802cd000 - 802f0000) procd: Console is alive procd: - watchdog - [ 7.100000] usbcore: registered new interface driver usbfs [ 7.120000] usbcore: registered new interface driver hub [ 7.120000] usbcore: registered new device driver usb [ 7.160000] SCSI subsystem initialized [ 7.180000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 7.190000] ehci-platform: EHCI generic platform driver [ 7.390000] rt3xxx-usbphy usbphy.3: remote usb device wakeup disabled [ 7.390000] rt3xxx-usbphy usbphy.3: UTMI 16bit 30MHz [ 7.390000] ehci-platform 101c0000.ehci: EHCI Host Controller [ 7.390000] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1 [ 7.390000] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000 [ 7.720000] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00 [ 7.720000] hub 1-0:1.0: USB hub found [ 7.740000] hub 1-0:1.0: 1 port detected [ 7.750000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 7.770000] ohci-platform: OHCI generic platform driver [ 7.770000] ohci-platform 101c1000.ohci: Generic Platform OHCI controller [ 7.790000] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2 [ 7.810000] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000 [ 7.870000] hub 2-0:1.0: USB hub found [ 7.890000] hub 2-0:1.0: 1 port detected [ 7.910000] usbcore: registered new interface driver usb-storage procd: - preinit - [ 9.320000] rt305x-esw 10110000.esw: link changed 0x00 [ 9.620000] random: mktemp urandom read with 93 bits of entropy available Press the [f] key and hit [enter] to enter failsafe mode Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level kmod: ran 1 iterations [ 13.730000] random: nonblocking pool is initialized block: extroot: failed to load /etc/config/fstab: Entry not found jffs2 is not ready - marker found procd: - early - procd: - watchdog - procd: - ubus - procd: - init - Please press Enter to activate this console. [ 17.210000] NET: Registered protocol family 10 [ 17.250000] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 17.290000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea [ 17.310000] Backport generated by backports.git backports-20140320-37-g5c33da0 [ 17.330000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 17.350000] nf_conntrack version 0.5.0 (458 buckets, 1832 max) [ 17.400000] usbcore: registered new interface driver ums-alauda [ 17.420000] usbcore: registered new interface driver ums-cypress [ 17.440000] usbcore: registered new interface driver ums-datafab [ 17.460000] usbcore: registered new interface driver ums-freecom [ 17.460000] usbcore: registered new interface driver ums-isd200 [ 17.490000] usbcore: registered new interface driver ums-jumpshot [ 17.510000] usbcore: registered new interface driver ums-karma [ 17.510000] usbcore: registered new interface driver ums-sddr09 [ 17.540000] usbcore: registered new interface driver ums-sddr55 [ 17.560000] usbcore: registered new interface driver ums-usbat [ 17.580000] usbcore: registered new interface driver usbserial [ 17.580000] usbcore: registered new interface driver usbserial_generic [ 17.610000] usbserial: USB Serial support registered for generic [ 17.650000] xt_time: kernel timezone is -0000 [ 17.710000] cfg80211: Calling CRDA to update world regulatory domain [ 17.740000] usbcore: registered new interface driver ftdi_sio [ 17.770000] cfg80211: World regulatory domain updated: [ 17.790000] cfg80211: DFS Master region: unset [ 17.790000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 17.810000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 17.830000] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 17.850000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A) [ 17.850000] cfg80211: (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A) [ 17.880000] cfg80211: (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s) [ 17.880000] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s) [ 17.880000] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A) [ 17.880000] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A) [ 17.880000] usbserial: USB Serial support registered for FTDI USB Serial Device [ 17.880000] PPP generic driver version 2.4.2 [ 17.880000] NET: Registered protocol family 24 [ 17.880000] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5350, rev 0500 detected [ 17.880000] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5350 detected [ 30.690000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0 [ 30.740000] jffs2_build_filesystem(): unlocking the mtd device... done. [ 30.750000] jffs2_build_filesystem(): erasing all blocks after the end marker... [ 33.300000] device eth0.1 entered promiscuous mode [ 33.320000] device eth0 entered promiscuous mode [ 33.380000] br-lan: port 1(eth0.1) entered forwarding state [ 33.380000] br-lan: port 1(eth0.1) entered forwarding state [ 35.380000] br-lan: port 1(eth0.1) entered forwarding state [ 83.410000] done. [ 83.410000] jffs2: notice: (943) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. procd: - init complete - BusyBox v1.22.1 (2014-10-02 17:15:55 PDT) 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 ----------------------------------------------------- CHAOS CALMER (Bleeding Edge, r42649) ----------------------------------------------------- * 1 1/2 oz Gin Shake with a glassful * 1/4 oz Triple Sec of broken ice and pour * 3/4 oz Lime Juice unstrained into a goblet. * 1 1/2 oz Orange Juice * 1 tsp. Grenadine Syrup -----------------------------------------------------
Hardware
USB to I2C Port Expander (ch341)
Button/Switch
root@hootoo:/# cat /etc/hotplug.d/button/buttons #!/bin/sh logger the button was $BUTTON and the action was $ACTION root@hootoo:/# logread -f Sun Feb 21 12:17:32 2016 user.notice root: the button was BTN_0 and the action was pressed Sun Feb 21 12:17:35 2016 user.notice root: the button was BTN_0 and the action was released
Moving switch to the world icon is “pressed”.
USB to I2C Port Expander (ch341)
It is possible to use the available usb port to add extra peripherals to the box (however it is rather bulky).
Here is an example of how to add an ssd1306 oled display connected through ch341 i2c adapter.
Tags
openwrt-ramips-rt305x-ht-tm02-squashfs-factory-r42649.bin