Guest User

MPC-WF1 Hack Memo

a guest
Sep 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. MPC-WF1 Hack Memo
  2.  
  3. ■製品情報:https://www.maxell.jp/consumer/mpc-wf1.html
  4. ■発売日:2014/4/25
  5. ■OEM元:AirDisk NW73
  6. ■内部写真:https://www.cnblogs.com/k1two2/p/7241131.html (同じOEMのLenovo PWR-G60)
  7. ■HW Spec:SoC:AR9331,Flash:8MB,DRAM:64MB,FEx1,2.4GHz 11n 1T1R,USB2.0x1,SDXC Slotx1,5000mAh Battery
  8. ■UARTアクセス:基板裏面(NW73とプリントされている側)の中央の3つのランドが GND/TX/RX, 3.3v TTL , 115200bps
  9. ■rootパスワード: ifconfig
  10.  
  11. ■log
  12. root@AirMV:~# cat /proc/mtd
  13. dev: size erasesize name
  14. mtd0: 00020000 00001000 "u-boot"
  15. mtd1: 00150000 00001000 "kernel"
  16. mtd2: 00680000 00001000 "rootfs"
  17. mtd3: 000a6000 00001000 "rootfs_data"
  18. mtd4: 00010000 00001000 "art"
  19. mtd5: 007d0000 00001000 "firmware"
  20. root@AirMV:~#
  21. root@AirMV:~# cat /proc/cpuinfo
  22. system type : Atheros AR9330 rev 1
  23. machine : TP-LINK TL-WR703N v1
  24. processor : 0
  25. cpu model : MIPS 24Kc V7.4
  26. BogoMIPS : 265.42
  27. wait instruction : yes
  28. microsecond timers : yes
  29. tlb_entries : 16
  30. extra interrupt vector : yes
  31. hardware watchpoint : yes, count: 4, address/irw mask: [0x0000, 0x0ff8, 0x0ff8, 0x0ff8]
  32. ASEs implemented : mips16
  33. shadow register sets : 1
  34. kscratch registers : 0
  35. core : 0
  36. VCED exceptions : not available
  37. VCEI exceptions : not available
  38.  
  39.  
  40. ■u-boot改造
  41. u-bootへのログインができないので、
  42. AR9331のU-Boot 1.1.4 modification に入れ替え
  43. https://github.com/pepe2k/u-boot_mod
  44. (HTTPでの書き換えや、nc での network コンソールにも対応!)
  45.  
  46. (Using DD-WRTに準拠して実施)
  47.  
  48. ・まずbackup
  49. SD or USB を取り付け
  50. cd /tmp/mnt/USB-disk-a1 または cd /tmp/mnt/SD-disk-b1
  51.  
  52. ・dd でbackup
  53. dd if=/dev/mtd0 of=mtd0.dd
  54. dd if=/dev/mtd1 of=mtd1.dd
  55. dd if=/dev/mtd2 of=mtd2.dd
  56. dd if=/dev/mtd3 of=mtd3.dd
  57. dd if=/dev/mtd4 of=mtd4.dd
  58. dd if=/dev/mtd5 of=mtd5.dd
  59.  
  60. ・u-boot のバックアップデータとしてコピー
  61. cp mtd0.dd uboot_factory.bin
  62.  
  63. ・Flash全体のバックアップデータ生成
  64. cat mtd0.dd mtd5.dd mtd4.dd >backup_fullflash.bin
  65.  
  66. ・u-boot_mod入手
  67. http://projects.dymacz.pl/?dir=u-boot_mod から
  68. flashメモリ構成が近いTP-LINK TL-WR710N v1 の u-bootをdownload
  69.  
  70. wget http://projects.dymacz.pl/u-boot_mod/u-boot_mod__tp-link_tl-wr710n_v1__20180223__git_master-7a540a78.bin
  71. md5sum u-boot_mod__tp-link_tl-wr710n_v1__20180223__git_master-7a540a78.bin
  72. 95efb7d8be8b48d3bf7b412f122a47e8
  73.  
  74. ・データ長をあわせる
  75. dd if=uboot_factory.bin of=uboot_rest.bin bs=1 skip=$(wc -c < u-boot_mod__tp-link_tl-wr710n_v1__20180223__git_master-7a540a78.bin)
  76. cat u-boot_mod__tp-link_tl-wr710n_v1__20180223__git_master-7a540a78.bin uboot_rest.bin > uboot_new.bin
  77.  
  78. ・【危険】u-boot書き換え 【危険】
  79. mtd write uboot_factory.bin "u-boot"
  80. dd if=/dev/mtd0 of=uboot_diff.bin
  81.  
  82. diff uboot_factory.bin uboot_diff.bin で差分がないことを確認
  83.  
  84. ・resetして以下のようなメッセージで起動してくることを確認
  85.  
  86. ***************************************
  87. * U-Boot 1.1.4-7a540a78-clean *
  88. * Build: 2018-02-23 *
  89. ***************************************
  90.  
  91. ** Warning: bad env CRC, using default,
  92. use 'saveenv' to save it in FLASH
  93.  
  94. BOARD: TP-Link TL-WR710N v1
  95. SOC: AR9330 rev. 1
  96. CPU: MIPS 24Kc
  97. RAM: 64 MB DDR2 16-bit CL3-4-4-10
  98. FLASH: 8 MB Winbond W25Q64
  99. MAC: 84:5D:D7:01:AF:B3
  100. CLOCKS: CPU/RAM/AHB/SPI/REF
  101. 400/400/200/ 25/ 25 MHz
  102.  
  103. Hit any key to stop booting: 0
  104.  
  105. Booting image from 0x9F020000...
  106.  
  107. Vendor/image name: OpenWrt r1267
  108. Hardware ID: 0x7030101
  109. Whole image size: 7.8 MB (8126464 bytes)
  110. Kernel size: 859.8 kB (880393 bytes)
  111. Rootfs size: 5.9 MB (6160388 bytes)
  112. Kernel load address: 0x80060000
  113. Kernel entry point: 0x80060000
  114.  
  115. Header CRC... skipped
  116. Data CRC... skipped
  117.  
  118. Stopping network... OK!
  119. Uncompressing Kernel... OK!
  120. Starting kernel...
  121.  
  122.  
  123.  
  124. ■類似機種
  125. Soundmate M1 (root passwordのhash が同じ)
  126.  
  127. ■参考URL
  128. https://www.modlog.net/?p=1002
  129. https://forum.archive.openwrt.org/viewtopic.php?id=50512
  130. http://astronomycomputers.blogspot.com/2015/04/the-soundmate-m1.html
Add Comment
Please, Sign In to add comment