{"id":87,"date":"2026-12-06T10:53:15","date_gmt":"2026-12-06T02:53:15","guid":{"rendered":"https:\/\/wp.xybcm.cn\/?p=87"},"modified":"2026-12-06T11:39:23","modified_gmt":"2026-12-06T03:39:23","slug":"mercury-d121g-openwrt","status":"publish","type":"post","link":"https:\/\/wp.xybcm.cn\/?p=87","title":{"rendered":"\u6c34\u661f D121G \u79fb\u690d OpenWrt\uff1a\u6269\u5bb9\u3001\u7f16\u8bd1\u4e0e\u4e09\u53e3\u9a8c\u8bc1"},"content":{"rendered":"<p>\u79fb\u690d\u6e90\u7801\u4e0e\u6253\u5305\u5de5\u5177\u89c1 <a href=\"https:\/\/github.com\/Huang22333\/openwrt-mercury-d121g\" rel=\"nofollow\">openwrt-mercury-d121g<\/a>\uff08GPL-2.0\uff09\u3002<\/p>\n<p>\u6c34\u661f D121G \u8fd9\u5757\u677f\u5b50\u7528 MT7620DA\uff08\u5185\u7f6e 64 MB DDR2\uff09\u3001RTL8367S \u5343\u5146\u4ea4\u6362\u673a\u548c MT7612EN 5 GHz \u65e0\u7ebf\u82af\u7247\uff0c<strong>\u4e09\u4e2a\u5343\u5146\u7f51\u53e3<\/strong>\uff08\u4e0d\u662f\u5e38\u89c1\u7684 4 \u53e3\uff09\u3002\u539f\u88c5 SPI NOR \u53ea\u6709 2 MB\uff0c\u800c OpenWrt 24.10 \u7684 sysupgrade \u5728 5.5\u20135.7 MB\u2014\u2014<strong>\u7269\u7406\u4e0a\u88c5\u4e0d\u4e0b<\/strong>\uff0c\u6240\u4ee5\u6574\u4ef6\u4e8b\u7684\u8d77\u70b9\u4e0d\u662f\u300c\u600e\u4e48\u5237\u300d\uff0c\u800c\u662f\u300c\u5148\u6362\u7247\u300d\u3002<\/p>\n<p>\u8fd9\u7bc7\u628a\u5b83\u62c6\u6210\u4e09\u6bb5\uff1a\u8bfb\u4e24\u4efd\u539f\u5382\u5907\u4efd \u2192 \u6784\u5efa D121G \u4e13\u7528\u56fa\u4ef6 \u2192 \u5408\u6210 16 MiB \u6574\u7247\u70e7\u5f55\u5e76\u9010\u9879\u9a8c\u6536\u3002\u4e2d\u95f4\u90a3\u4e9b\u300c\u4e3a\u4ec0\u4e48\u5fc5\u987b\u8fd9\u4e48\u6539\u300d\uff0c\u624d\u662f\u8fd9\u6761\u8def\u771f\u6b63\u7684\u6210\u672c\u3002<\/p>\n<h2>\u4e00\u3001\u786c\u4ef6\u8eab\u4efd\uff1a\u4e09\u4e2a\u7ec6\u8282\u4f1a\u51b3\u5b9a\u540e\u9762\u6240\u6709\u914d\u7f6e<\/h2>\n<ul>\n<li><strong>\u4e09\u4e2a\u7f51\u53e3<\/strong>\u3002\u5e38\u89c1 D12G \u662f 4 \u53e3\uff0cD121G \u662f 3 \u53e3\u53d8\u4f53 \u21d2 RTL8367S \u7684\u7aef\u53e3\u6620\u5c04<strong>\u5fc5\u987b\u91cd\u65b0\u63a8\u5bfc<\/strong>\uff0c\u7167\u6284 Archer C5v4 \u7684 4 \u53e3\u914d\u7f6e\u4f1a\u5f97\u5230\u300c\u53ea\u6709\u4e00\u4e2a\u53e3\u80fd\u901a\u300d\u3002<\/li>\n<li><strong>U-Boot \u4e32\u53e3\u6ce2\u7279\u7387\u662f 57600<\/strong>\uff0c\u4e0d\u662f 115200\u3002\u4e32\u53e3\u63a5\u4e0a\u6ca1\u8f93\u51fa\uff0c\u5148\u6000\u7591\u8fd9\u4e2a\u3002<\/li>\n<li><strong>\u539f\u5382\u56fa\u4ef6\u662f VxWorks\uff0c\u4e0d\u662f Linux<\/strong>\u3002\u5168\u7247\u641c\u4e0d\u5230 DTB \u9b54\u6570\uff08<code>D00DFEED<\/code> \u4e0e\u53cd\u5e8f <code>EDFE0DD0<\/code> \u5404 0 \u547d\u4e2d\uff09\uff0c\u4e5f\u6ca1\u6709 uImage \/ squashfs \/ JFFS2 \u7684 magic \u21d2 \u300c\u63d0\u53d6\u539f\u5382 DTB \u590d\u7528\u300d\u4e0d\u5b58\u5728\uff0cOpenWrt \u7684 dts \u53ea\u80fd\u81ea\u5df1\u5199\u3002<\/li>\n<\/ul>\n<p>U-Boot \u73af\u5883\u5b9e\u6d4b\uff1a<code>ethaddr<\/code> \u4e3a\u5382\u5546\u9ed8\u8ba4\u503c\uff08\u5b9e\u9645\u503c\u7565\uff09\u3001<code>ipaddr=192.168.1.2<\/code>\u3001<code>serverip=192.168.1.10<\/code>\uff08\u8fd9\u4e24\u4e2a\u662f U-Boot \u5185\u7f6e\u9ed8\u8ba4\u503c\uff0c\u4e0d\u662f\u672c\u9879\u76ee\u7279\u5b9a\u914d\u7f6e\uff09\u3001<code>baudrate=57600<\/code>\u3001<code>bootcmd=tftp<\/code>\u3002\u677f\u578b\u4e32\u91cc\u5199\u7684\u662f <code>2.4gChip:MT7620A, 5gChip:MT7612E, switch:RTL8367S-CG, hwVer:1.0, devModel:D121G<\/code>\u3002<\/p>\n<p>U-Boot \u91cc\u80fd\u627e\u5230 <code>## Booting image at<\/code> \/ <code>Bad Magic<\/code> \/ <code>LZMA ERROR<\/code> \/ <code>Bad Data CRC<\/code> \/ <code>Uncompressing<\/code> \/ <code>Starting kernel<\/code>\uff0c\u8bf4\u660e\u5b83\u542b\u6709 uImage\u3001CRC \u4e0e LZMA \u7684\u5904\u7406\u903b\u8f91\u3002\u26a0\ufe0f \u4f46\u8fd9<strong>\u4e0d\u7b49\u4e8e\u6807\u51c6 OpenWrt uImage \u62ff\u6765\u5c31\u80fd\u8d77<\/strong>\u2014\u2014\u8fd9\u5757\u677f\u8fd8\u8981\u5148\u89e3\u51b3\u7b2c\u4e94\u8282\u7684\u5927\u5c0f\u9650\u5236\u4e0e\u52a0\u8f7d\u5730\u5740\u9519\u4f4d\u4e24\u4ef6\u4e8b\u3002<\/p>\n<h2>\u4e8c\u3001\u8bfb\u4e24\u4efd\u539f\u5382\u5907\u4efd\uff0c\u9010\u5b57\u8282\u6bd4\u5bf9<\/h2>\n<p>\u539f\u7247\u662f <strong>Eon EN25QH16<\/strong>\uff0c2048 kB = 2 MB = 16 Mbit\uff08\u53e3\u8bed\u91cc\u7684\u300c16 \u5146\u300d\u5728\u8fd9\u91cc\u6307 16 Mbit\uff0c\u4e0d\u662f 16 MB\uff09\u3002<\/p>\n<p>\u65ad\u7535\uff0c\u6838\u5bf9\u7f16\u7a0b\u5668\u4e0e SPI NOR \u7684\u5de5\u4f5c\u7535\u538b\uff1b\u5728\u677f\u8bfb\u53d6\u4e0d\u7a33\u5b9a\u5c31\u62c6\u7247\u518d\u8bfb\u3002<strong>\u72ec\u7acb\u8bfb\u53d6\u4e24\u6b21<\/strong>\uff1a<\/p>\n<pre><code>wc -c stock-1.bin stock-2.bin     # \u90fd\u8981 2097152\ncmp stock-1.bin stock-2.bin       # \u5fc5\u987b\u9010\u5b57\u8282\u76f8\u540c\uff0c\u65e0\u8f93\u51fa\nsha256sum stock-1.bin stock-2.bin\n# \u5b9e\u6d4b\u503c eed4d989e298ad8592ee05aa1184105fc5d741e973c68e503377ddb13edc8fe2<\/code><\/pre>\n<p>\u4e24\u6b21\u4e0d\u4e00\u81f4\u65f6\u4e0d\u8981\u300c\u53d6\u5e73\u5747\u300d\u6216\u300c\u91cd\u8bfb\u4e00\u6b21\u5c31\u4fe1\u300d\u2014\u2014\u5148\u6392\u67e5\u63a5\u89e6\u4e0e\u4f9b\u7535\uff0c\u518d\u505a\u7b2c\u4e09\u6b21\u3002\u82af\u7247\u5065\u5eb7\u987a\u624b\u786e\u8ba4\uff1aJEDEC ID \u81ea\u5199\u8bfb\u51fa <code>1C 70 15<\/code>\uff080x9F\uff09\u3001<code>1C 14<\/code>\uff080x90\uff09\uff1bRDSR1=0x00\uff08\u4e0d\u5fd9\u3001\u65e0\u5199\u4fdd\u62a4\uff09\u3001RDSR2=0xFF\u3002<\/p>\n<h3>\u5fc5\u987b\u642c\u8d70\u7684\u4e24\u6bb5\u6821\u51c6<\/h3>\n<ul>\n<li><code>0xF800<\/code> = 2.4G EEPROM\uff08MT7620\uff09\uff0c<code>0x200B<\/code>\uff0c\u5934 <code>20 76<\/code> = \u82af\u7247 ID 0x7620\uff1b<\/li>\n<li><code>0xFC00<\/code> = 5G EEPROM\uff08MT7612\uff09\uff0c<code>0x200B<\/code>\uff0c\u5934 <code>62 76<\/code> = 0x7662\uff08MT7612 \u7cfb\uff09\u3002<\/li>\n<\/ul>\n<p>\u4e24\u6bb5\u90fd\u5728<strong>\u7b2c\u4e00\u4e2a 64 KiB \u4e4b\u5185<\/strong>\uff08\u4e0d\u662f\u60ef\u4f8b\u7684 0x40000\uff09\uff0c\u504f\u79fb <code>0x1FE<\/code> \u5904\u6709 <code>34 12<\/code> \u5c3e\u5df4 \u21d2 \u6709\u6548\u957f\u5ea6\u5404 0x200\uff0c<code>0xFE00\u20130x10000<\/code> \u5168 FF\u3002\u9a71\u52a8\u4fa7 <code>MT7662_EEPROM_SIZE=512<\/code>\uff08=0x200\uff09\u4e0e dts \u7684 <code>&lt;0x400 0x200&gt;<\/code> \u6b63\u597d\u5bf9\u4e0a\u3002<\/p>\n<p>\u539f\u5382\u5e03\u5c40\uff1a<code>0x0\u20130xF800<\/code> U-Boot 1.1.3\uff08Mar 22 2018 20:37:32\uff0c\u73af\u5883\u53d8\u91cf\u4ece 0xD0F0 \u8d77\uff09\uff1b<code>0xF800\u20130x10000<\/code> \u6821\u51c6\uff1b<code>0x10000<\/code> \u4e00\u4e2a MINIFS \u5bb9\u5668\uff08\u88c5\u7740 MAC OUI \u54c1\u724c\u5e93 JSON\uff0c\u7528\u4e8e\u7ec8\u7aef\u54c1\u724c\u8bc6\u522b\uff09\uff1b<code>0x20000\u20130x1B0000<\/code> \u538b\u7f29\u56fa\u4ef6\u4f53\uff08\u7ea6 1.7 MB\uff09\uff1b<code>0x1C0000\u20130x1E0000<\/code> \u7a7a\uff1b<code>0x1F8000<\/code> \u53e6\u4e00\u4e2a MINIFS\u3002<\/p>\n<h2>\u4e09\u3001\u4e3a\u4ec0\u4e48\u5fc5\u987b\u6362\u7247\uff1a\u628a\u8d26\u7b97\u6e05\u695a<\/h2>\n<p>\u5404\u7248\u672c ramips\/mt7620 \u6700\u5c0f sysupgrade \u4f53\u79ef\uff1a18.06.4 \/ 19.07.6 \u2248 3.6 MB\u300121.02.5 \u2248 4.8\u20135.0 MB\u300122.03.3 \u2248 5.4 MB\u300124.10.2 \u2248 5.5\u20135.7 MB\uff0c\u5168\u662f 2 MB \u7684 1.8\u20132.8 \u500d\u3002\u780d\u6389 LuCI \u53ea\u505a\u6700\u7cbe\u7b80\u3001\u53ea\u7528 initramfs \u4e5f\u8fc7\u4e0d\u53bb\u2014\u2014kernel \u538b\u7f29\u540e\u7ea6 1.4 MB\u3001squashfs \u7ea6 2.5 MB\uff0c\u800c\u8fd9\u5757\u677f\u7684 firmware \u533a\u53ea\u6709\u7ea6 1.7 MB\uff0c\u539f\u5382\u56fa\u4ef6\u672c\u8eab\u5df2\u63a5\u8fd1\u6781\u9650\u3002<\/p>\n<p>\u4e24\u4e2a\u9644\u5e26\u963b\u788d\u51b3\u5b9a\u4e86\u300c\u6362\u7247\u4e4b\u540e\u8fd8\u8981\u81ea\u5df1\u5199\u591a\u5c11\u4e1c\u897f\u300d\uff1a<\/p>\n<ul>\n<li>mainline \u7684 <code>rtl8365mb<\/code> DSA \u9a71\u52a8<strong>\u8df3\u8fc7 MT7620A<\/strong>\uff08\u4e0a\u6e38\u53ea\u8986\u76d6 RTL8367C \u5bb6\u65cf\u7684\u4e00\u90e8\u5206\uff09\uff0c\u6240\u4ee5\u672c\u79fb\u690d\u8d70\u7684\u662f\u914d\u5957 DTS + <code>rtl8367b<\/code> \u7684 swconfig \u914d\u7f6e\uff0c\u800c\u4e0d\u662f DSA\u3002<\/li>\n<li>\u66ff\u6362 bootloader \u524d\uff0c\u5fc5\u987b\u5148\u5355\u72ec\u9a8c\u8bc1\u5b83\u80fd\u5426\u521d\u59cb\u5316\u677f\u4e0a\u7684 RTL8367S \u5e76\u5efa\u7acb\u8054\u7f51\u901a\u8def\u3002\u672c\u6559\u7a0b\u59cb\u7ec8\u91c7\u7528<strong>\u7f16\u7a0b\u5668\u5199\u5165\u6574\u7247\u955c\u50cf<\/strong>\uff0c\u4e0d\u4f9d\u8d56\u7f51\u9875\u5237\u673a\u3002<\/li>\n<\/ul>\n<p>\u4e0d\u6362 flash \u7684\u552f\u4e00\u6b6a\u8def\u662f U-Boot \u8d70 TFTP \u7f51\u7edc\u542f\u52a8 initramfs\uff0c\u91cd\u542f\u5373\u4e22\u3001\u914d\u7f6e\u4e0d\u6301\u4e45\uff0c\u53ea\u9002\u5408\u9a8c\u8bc1\u3002<\/p>\n<h2>\u56db\u3001\u7f16\u8bd1\uff1a\u51e0\u6761\u786c\u89c4\u5b9a<\/h2>\n<p>\u7f16\u8bd1\u673a\u522b\u7528\u5c0f\u5185\u5b58\u673a\u5668\uff1a\u5b8c\u6574\u6784\u5efa\u5cf0\u503c\u8981\u5341\u51e0 GB \u78c1\u76d8\u3001\u6570 GB \u5185\u5b58\u3002\u5efa\u8bae\u7528 <code>debian:bookworm-slim<\/code> \u5bb9\u5668\uff0c<code>--memory=8g --memory-swap=16g<\/code>\uff0c8 \u6838\u4ee5\u4e0a\u8dd1 <code>make -j4<\/code>\u3002<\/p>\n<p>\u4e24\u4e2a\u73af\u5883\u9650\u5236\u5148\u8bf4\uff1a<\/p>\n<ul>\n<li>\u90e8\u5206 NAS\/\u865a\u62df\u5316\u5e73\u53f0\u7684\u5bbf\u4e3b\u5185\u6838\u4e0d\u652f\u6301 CFS\uff0cdocker \u7684 <code>--cpus<\/code> \u4f1a\u76f4\u63a5\u62a5\u9519 \u21d2 <strong>\u53ea\u9650\u5236\u5185\u5b58\uff0c\u4e0d\u8981\u9650\u5236 CPU<\/strong>\u3002<\/li>\n<li>\u5982\u679c\u4f60\u7684\u7f51\u7edc\u73af\u5883\u5728 <code>git clone<\/code> \u5927\u4ed3\u5e93\u65f6\u4f1a\u62a5 <code>fatal: expected flush after ref listing<\/code>\uff08\u62c9\u53d6\u5f15\u7528\u5217\u8868\u88ab\u4e2d\u9014\u622a\u65ad\uff09\uff0c\u6539\u7528 codeload tarball \u66f4\u7a33\uff1a<code>curl -L https:\/\/codeload.github.com\/openwrt\/openwrt\/tar.gz\/refs\/tags\/v24.10.2 | tar xz<\/code>\u3002\u6b63\u5e38\u7f51\u7edc\u4e0b <code>git clone<\/code> \u6ca1\u95ee\u9898\u3002<\/li>\n<\/ul>\n<pre><code>git clone https:\/\/github.com\/Huang22333\/openwrt-mercury-d121g.git\ngit clone --branch v24.10.2 --depth 1 https:\/\/github.com\/openwrt\/openwrt.git openwrt-d121g\ncd openwrt-d121g\n.\/scripts\/feeds update -a\n.\/scripts\/feeds install -a\nfor p in ..\/openwrt-mercury-d121g\/patches\/*.patch; do patch -p1 &lt; \"$p\" || exit 1; done\ncp ..\/openwrt-mercury-d121g\/dts\/mt7620a_mercury_d121g.dts target\/linux\/ramips\/dts\/\ncp ..\/openwrt-mercury-d121g\/configs\/d121g_defconfig .config\nmake defconfig\ngrep '^CONFIG_TARGET_ramips_mt7620_DEVICE_mercury_d121g=y' .config\nmake -j4<\/code><\/pre>\n<p>\u26a0\ufe0f <strong>\u4e0d\u80fd\u53ea\u8dd1 <code>make target\/linux\/compile<\/code><\/strong>\uff1a\u4f1a\u8df3\u8fc7\u5de5\u5177\u94fe\uff0c\u62a5 <code>mipsel-openwrt-linux-musl-gcc: not found<\/code> + <code>m4 failed<\/code>\u3002\u5fc5\u987b\u5b8c\u6574 <code>make<\/code>\uff0c\u6309 tools \u2192 toolchain \u2192 kernel \u987a\u5e8f\u30028 \u6838\u73af\u5883\u4e0b <code>nice -n 10 make -j4<\/code>\uff0c\u9996\u6b21\u5b8c\u6574\u7f16\u8bd1\u7ea6 1 \u5c0f\u65f6\u3002\u4ea7\u7269\u987a\u5e8f\uff1a\u5148\u51fa <code>initramfs-kernel.bin<\/code>\uff0c\u7528 TFTP \u8f7d\u5165\u5185\u5b58\u786e\u8ba4\u5185\u6838\u80fd\u8dd1\uff1b\u901a\u8fc7\u540e\u518d\u9a8c\u8bc1 squashfs \u955c\u50cf\u3002<strong>\u5185\u5b58\u542f\u52a8\u4e0d\u5199 Flash<\/strong>\uff0c\u4f46\u955c\u50cf\u4ecd\u8981\u6ee1\u8db3\u7b2c\u4e94\u8282\u7684\u5927\u5c0f\u9650\u5236\u4e0e\u52a0\u8f7d\u5730\u5740\u6761\u4ef6\u3002<\/p>\n<h3>\u4e09\u5904\u5fc5\u6539\uff0c\u7f3a\u4e00\u4e0d\u53ef<\/h3>\n<p><strong>\u2460 LZMA \u5206\u533a\u62c6\u5206\u5fc5\u987b\u5f00<\/strong>\u3002<code>CONFIG_MTD_SPLIT_LZMA_FW=y<\/code>\uff1amt7620 \u9ed8\u8ba4\u53ea\u5f00 UIMAGE\/JIMAGE\uff0cLZMA \u53ea\u6709 rt288x \u5b50\u76ee\u6807\u624d\u6709\u3002\u4e0d\u5f00\u5c31\u6ca1\u6709 rootfs \u5206\u533a \u21d2 <code>MTD: Couldn't look up ''<\/code> + VFS panic\u3002\u5224\u636e\uff1a\u6784\u5efa\u76ee\u5f55\u751f\u6210\u4e86 <code>mtdsplit\/mtdsplit_lzma.o<\/code>\uff0c\u4e14\u5185\u6838\u91cc\u80fd\u641c\u5230 <code>lzma-fw<\/code>\u3002<\/p>\n<p><strong>\u2461 firmware \u5206\u533a\u5fc5\u987b 4 K \u5bf9\u9f50<\/strong>\u3002W25Q128 \u7684 <code>erasesize=64K<\/code> \/ <code>erasesize_minor=4K<\/code>\uff0c<code>mtdpart.c<\/code> \u5148\u67e5 <code>mod 64K<\/code> \u518d\u67e5 <code>mod 4K<\/code>\u3002\u82e5 firmware \u4ece <code>0x15200<\/code> \u8d77\uff0c<code>0x15200 mod 4K = 0x200<\/code> \u21d2 \u5206\u533a\u88ab <code>force read-only<\/code>\uff0coverlay \u5e9f\u3001sysupgrade \u5199\u4e0d\u8fdb\u3002\u4fee\u6cd5\u662f\u8ba9 firmware \u56de <code>0x15000<\/code>\uff08mod 4K = 0\uff09\u3002<\/p>\n<p><strong>\u2462 02_network \u5fc5\u987b\u52a0\u5206\u652f<\/strong>\u3002rtl8367b\uff08swconfig\uff09\u673a\u578b\u5982\u679c\u4e0d\u5728 <code>target\/linux\/ramips\/mt7620\/base-files\/etc\/board.d\/02_network<\/code> \u52a0\u5206\u652f\uff0c<strong>LAN\/WAN \u63a5\u53e3\u6839\u672c\u4e0d\u4f1a\u521b\u5efa<\/strong>\u2014\u2014\u4ea4\u6362\u9a71\u52a8\u52a0\u8f7d\u6210\u529f\u4e5f\u7167\u6837\u4e0d\u901a\u3002\u4e09\u53e3\u6ce8\u5165\uff1a<\/p>\n<pre><code>ucidef_add_switch \"switch1\" \"2:lan:2\" \"3:lan:1\" \"4:wan\" \"7@eth0\"<\/code><\/pre>\n<p><code>switch0<\/code> \u662f\u5185\u5efa mt7620-gsw\uff0c\u88ab <code>enable 0<\/code> \u5173\u6389\uff08C5v4 \u4e5f\u8fd9\u4e48\u505a\uff09\uff0c<code>switch1<\/code> \u624d\u662f RTL8367S\u3002<\/p>\n<h2>\u4e94\u3001\u4e24\u4e2a\u6839\u56e0\uff1aU-Boot \u786c\u7f16\u7801 2 MB\uff0c\u4ee5\u53ca\u52a0\u8f7d\u5730\u5740\u9519\u4f4d<\/h2>\n<h3>\u6839\u56e0\u2460\uff1aU-Boot \u8ba4\u4e3a flash \u53ea\u6709 2 MB<\/h3>\n<p><code>bc002338<\/code> \u5904 <code>lui v0,0x1e; ori v0,0xb001<\/code> \u2192 \u9650\u5236 <code>0x1EB001 = 0x200000 - 0x15000 + 1<\/code>\u3002\u6240\u4ee5 OpenWrt \u5185\u6838 2.6 MB \/ initramfs 6.4 MB \u5fc5\u62a5 <code>Abort: bootloader size too big<\/code>\uff0c\u800c\u539f\u5382 VxWorks \u8f7d\u8377 1.1 MB\uff08<code>0x112E02<\/code>\uff09\u6070\u5728\u9650\u5185\u3002<\/p>\n<p>\u8865\u4e01<strong>\u53ea\u6539 1 \u5b57\u8282<\/strong>\uff1a<code>@0x2338<\/code> \u7684 <code>3c 02 00 1e<\/code> \u2192 <code>3c 02 00 fe<\/code>\uff0c\u9650\u5236\u53d8\u6210 <code>0xFEB001<\/code> = 15.92 MB\u3002\u8865\u4e01\u540e U-Boot \u53ea\u6709 62 KB\uff0c\u80fd\u901a\u8fc7 U-Boot \u81ea\u5df1\u7684 option 9 \u5237\u5165\uff0c\u4e14\u53ea\u8986\u76d6 u-boot \u5206\u533a\u3001\u4e0d\u78b0 factory\u3002<\/p>\n<p>\u26a0\ufe0f <strong>\u8fd9\u4e2a\u504f\u79fb\u662f\u7248\u672c\u76f8\u5173\u7684<\/strong>\uff0c\u53ea\u5bf9 <code>U-Boot 1.1.3 (Mar 22 2018 20:37:32)<\/code> \u6210\u7acb\u3002<\/p>\n<h3>\u6839\u56e0\u2461\uff1a\u5185\u6838\u52a0\u8f7d\u5730\u5740\u9519\u4f4d\u5bfc\u81f4\u65e0\u58f0\u6b7b\u673a<\/h3>\n<p>\u6b7b\u673a\u94fe\uff1aU-Boot \u56fa\u5b9a\u4ece <code>0xBC015200<\/code> \u5f15\u5bfc\uff0c\u628a\u5185\u6838\u89e3\u538b\u5230 <strong>0x80001000<\/strong>\uff1b\u800c OpenWrt \u5185\u6838 link \u5728 0x80000000 \u21d2 \u89e3\u538b\u540e <code>0x80001400<\/code> \u90a3\u6761 <code>j kernel_entry<\/code> \u843d\u5230\u524d\u9762 0x1000 \u5b57\u8282\u7684\u5783\u573e\u6307\u4ee4\u4e0a\uff0c\u7ed3\u679c\u662f<strong>\u5361\u5728 <code>## Booting image at bc015200<\/code> \u4e4b\u540e\u5b8c\u5168\u65e0\u58f0<\/strong>\u3002\u6ca1\u6709\u62a5\u9519\uff0c\u6781\u6613\u8bef\u5224\u6210\u300c\u5185\u6838\u914d\u7f6e\u4e0d\u5bf9\u300d\u3002<\/p>\n<p>\u4fee\u590d\u53ea\u52a8\u955c\u50cf\u4fa7\uff0cbootloader \u4e00\u4e2a\u5b57\u8282\u90fd\u4e0d\u6539\uff1a<\/p>\n<pre><code>KERNEL := kernel-bin | append-dtb | relocate-kernel 0x80000000 | lzma | uImage lzma<\/code><\/pre>\n<p>\u6869\u5e03\u5c40\u662f <code>[0x10000 64KB nop \u6ed1\u69fd][351B \u6869][u32 \u5185\u6838\u957f\u5ea6][\u5185\u6838 + DTB]<\/code>\uff0c\u89e3\u538b\u5230 0x80001000 \u540e\u7531\u6869\u628a\u5185\u6838\u642c\u5230 0x80000000 \u518d\u8df3\u8f6c\u3002<\/p>\n<h2>\u516d\u3001\u5408\u6210 16 MiB \u6574\u7247\u5e76\u70e7\u5f55<\/h2>\n<pre><code>python3 tools\/make_full_flash.py stock-1.bin \\\n  openwrt-ramips-mt7620-mercury_d121g-squashfs-sysupgrade.bin\nwc -c d121g_full_16m.bin          # \u5fc5\u987b 16777216<\/code><\/pre>\n<p>\u5199\u8fdb\u65b0\u7684 W25Q128\uff0c<strong>\u8bfb\u56de\u6bd4\u5bf9\u901a\u8fc7<\/strong>\u518d\u88c5\u56de\u901a\u7535\u3002\u4e32\u53e3 57600 8N1\uff0c\u6309\u677f\u4e0a\u7535\u5e73\u63a5\u7ebf\uff0cTX\/RX \u4ea4\u53c9\u5e76\u5171\u5730\u3002<\/p>\n<h2>\u4e03\u3001\u542f\u52a8\u540e\u9010\u9879\u9a8c\u6536<\/h2>\n<pre><code>ubus call system board\ncat \/proc\/mtd\nmount | grep overlay\nswconfig dev switch1 show\nlogread | grep -Ei 'mt76|rt2800|rtl8367|jffs2'<\/code><\/pre>\n<p>\u5b9e\u6d4b\u901a\u8fc7\u7684\u5224\u636e\uff08\u4e09\u4fee\u590d\u5168\u751f\u6548\u7684\u6837\u5b50\uff09\uff1a<\/p>\n<ul>\n<li>\u65e0 <code>force read-only<\/code>\uff1b<\/li>\n<li><code>2 lzma-fw partitions found<\/code> \u2192 kernel\/rootfs\uff0c\u518d\u4e00\u6761 <code>1 squashfs-split<\/code> \u2192 rootfs_data \u5efa\u51fa\uff1b<\/li>\n<li>\u65e0 VFS panic\uff0c\u4e00\u8def\u5230 procd\uff1b<\/li>\n<li><code>RTL8367S \u8ba4\u5230 (num:6367 ver:00a0, cpu_port:7 extif2)<\/code>\uff1b<\/li>\n<li><code>5G mt76x2e Firmware running!<\/code> + <code>2.4G rt2800 RT6352\/RF7620<\/code>\uff08\u8bf4\u660e factory \u6821\u51c6\u8bfb\u5230\u4e86\uff09\uff1b<\/li>\n<li>\u7f51\u53e3 <code>VLAN 1: Ports: '237t', members=008c, untag=000c<\/code>\uff08\u7aef\u53e3 2\u30013 = LAN untagged\uff0cCPU \u7aef\u53e3 7 \u5e26 tag\uff09\u3002<\/li>\n<\/ul>\n<p>\u6620\u5c04\u662f <strong>WAN = port4 \/ LAN1 = port3 \/ LAN2 = port2<\/strong>\u3002\u4e24\u4e2a\u5e38\u89c1\u9519\u6cd5\u503c\u5f97\u8bb0\uff1a<\/p>\n<ul>\n<li>\u628a <code>\"4:wan\"<\/code> \u5199\u6210 <code>\"4:lan\"<\/code>\uff1aWAN \u4f1a\u88ab\u5e76\u8fdb LAN \u7684 VLAN 1\uff0c\u6b63\u786e\u505a\u6cd5\u662f\u7ed9\u5b83\u5355\u72ec\u5efa VLAN 2\uff0c\u6240\u4ee5 <code>swconfig dev switch1 show<\/code> \u91cc LAN \u7684 VLAN 1 \u5e94\u8be5\u53ea\u6709 <code>237t<\/code>\uff0c\u51fa\u73b0 <code>2347t<\/code> \u5c31\u662f\u6ca1\u5206\u5f00\u3002<\/li>\n<li>\u7528\u300c\u5168 LAN\u300d\u7684\u9632\u5fa1\u6027\u914d\u7f6e\uff08<code>\"0:lan:3\" \"1:lan:2\" \"2:lan:1\" \"7@eth0\"<\/code>\uff09\uff1a\u770b\u8d77\u6765\u66f4\u4fdd\u9669\uff0c\u5b9e\u9645\u53ea\u6709 LAN2 \u901a\uff0cLAN1\/WAN \u53d8\u6210\u6b7b\u53e3\u3002\u7aef\u53e3\u6620\u5c04\u5fc5\u987b\u6309\u5b9e\u9645\u786c\u4ef6\u586b\uff0c\u4e0d\u80fd\u731c\u3002<\/li>\n<\/ul>\n<p>\u26a0\ufe0f \u4e00\u4e2a\u5bb9\u6613\u8fc7\u5ea6\u62c5\u5fc3\u7684\u70b9\uff1aRTL8367B \u9a71\u52a8\u91cc <code>cpu_port\u2192extif<\/code> \u7684\u6620\u5c04<strong>\u968f\u82af\u7247\u578b\u53f7\u53d8<\/strong>\uff08S-VB \u7248 <code>id=cpu_port-6<\/code>\uff0c\u666e\u901a S \u7248 <code>id=cpu_port-5<\/code>\uff09\uff0c\u4ece C5v4 \u6284 <code>realtek,extif=&lt;7 \u2026&gt;<\/code> \u4e0d\u80fd\u5047\u8bbe extif \u76f8\u540c\u3002\u8fd9\u5757\u677f\u662f\u666e\u901a 8367S\uff0cport7 \u2192 extif2\uff0c\u5b9e\u6d4b\u6b63\u5e38<strong>\u4e0d\u7528\u6539<\/strong>\u3002<code>rtl8367b_extif_set_mode<\/code> \u53ea\u5728 <code>id&lt;=1<\/code> \u65f6\u914d RGMII \u65f6\u5e8f\u5bc4\u5b58\u5668\uff0cid=2 \u65f6\u4e0d\u914d\uff0c\u5b9e\u6d4b\u4e5f\u6ca1\u4e8b\u3002\u6ce8\u610f\uff1a<strong>SPI NOR \u7684\u8bc6\u522b ID \u4e0e\u4ea4\u6362\u82af\u7247\u7684 extif \u9009\u62e9\u662f\u4e24\u56de\u4e8b<\/strong>\uff0c\u79fb\u690d DTS \u65f6\u8981\u6309\u4ea4\u6362\u82af\u7247\u7684\u5177\u4f53\u578b\u53f7\u6838\u5bf9 <code>realtek,extif<\/code>\u2014\u2014\u540c\u4e3a RTL8367S \u5c31\u6709 S \u4e0e S-VB \u4e24\u4e2a\u7248\u672c\u3002<\/p>\n<h2>\u516b\u3001\u6700\u7ec8\u6001\u4e0e\u65e5\u5e38\u7ef4\u62a4<\/h2>\n<p>\u5e03\u5c40\uff1au-boot\uff08\u5e26 2 MB \u8865\u4e01\uff09\/ factory \/ minifs \/ firmware\uff08\u524d 13 B \u5047 LZMA \u5934 + \u539f\u5382\u5546\u5934\u5176\u4f59\uff09\/ <code>0x15200<\/code> \u88f8 LZMA\uff08\u6869 + \u5185\u6838 + DTB\uff09\/ <code>0x295000<\/code> squashfs\u3002flash \u5229\u7528\u7387 <strong>99.39%<\/strong>\uff0c\u53ea\u6d6a\u8d39 99 KiB\uff1boverlay \u62ff\u5230 9.5 MiB \u7684 jffs2\u3002<\/p>\n<p><code>\/proc\/mtd<\/code>\uff1afirmware <code>0xfeb000<\/code> \/ kernel <code>0x280000<\/code> \/ rootfs <code>0xd6b000<\/code> \/ rootfs_data <code>0x980000<\/code>\uff08erasesize \u5168 64K\uff09\u3002\u7cfb\u7edf OpenWrt 24.10.2 r28739 \/ ramips mt7620 \/ mipsel_24kc \/ <strong>opkg\uff08\u4e0d\u662f apk\uff09<\/strong>\uff0c<code>ca-bundle<\/code> + <code>libustream-mbedtls<\/code> + <code>uclient-fetch<\/code> \u9f50\u5168 \u21d2 https feed \u53ef\u7528\u3002\u5185\u5b58 54.98 MB \u603b \/ 11.45 MB available\u3002<\/p>\n<p><strong>\u65e5\u5e38\u5347\u7ea7\u4e0d\u9700\u8981\u4e32\u53e3<\/strong>\uff1a\u4ea4\u4ed8\u955c\u50cf\u672c\u8eab\u5c31\u662f\u7cfb\u7edf\u5185 sysupgrade \u80fd\u5403\u7684\uff08<code>PART_NAME=firmware<\/code> + <code>platform_check_image(){return 0;}<\/code> + <code>REQUIRE_IMAGE_METADATA=1<\/code>\uff09\uff0cLuCI \u70b9\u4e00\u4e0b\u6216 <code>sysupgrade -n<\/code> \u90fd\u884c\u3002\u5fc5\u987b\u63a5\u4e32\u53e3\u7684\u53ea\u6709\u4e09\u79cd\u573a\u666f\uff1a\u5237\u574f\u8d77\u4e0d\u6765\u3001\u8981\u6539 U-Boot\u3001\u7ed9\u522b\u7684 D121G \u5237\u673a\u3002\u7f51\u7edc\u4fa7\u6062\u590d\u8d70\u590d\u4f4d\u952e\u8fdb failsafe\uff08OpenWrt \u9ed8\u8ba4 <code>192.168.1.1<\/code>\uff09\u3002<\/p>\n<p>\u5907\u4efd\uff1a<code>cat \/dev\/mtd0 &gt; uboot.bin<\/code>\u3001<code>cat \/dev\/mtd1 &gt; factory.bin<\/code>\u3002\u26a0\ufe0f <strong>\u522b cat \/dev\/mtd3<\/strong>\u2014\u201416.7 MB \u4f1a\u6491\u7206 27 MB \u7684 tmpfs\u3002<\/p>\n<h2>\u4e5d\u3001\u5728\u7ebf\u7f16\u8bd1\uff08\u7ed9\u522b\u4eba\u7528\uff09<\/h2>\n<p>\u601d\u8def\uff1a\u522b\u4eba fork \u4ed3\u5e93 \u2192 \u6539 <code>configs\/d121g_defconfig<\/code> \u2192 GitHub Actions \u7f16\u51fa\u56fa\u4ef6\u3002<\/p>\n<p>\u2b50 \u8fd9\u91cc\u7528 <strong>config \u79cd\u5b50\u800c\u4e0d\u662f\u5b8c\u6574 <code>.config<\/code><\/strong>\uff1a\u79cd\u5b50\u53ea\u5199 <code>CONFIG_TARGET_ramips{,_mt7620,_mt7620_DEVICE_mercury_d121g}=y<\/code> + <code>ROOTFS_{SQUASHFS,INITRAMFS}=y<\/code> + <code>PACKAGE_luci=y<\/code>\uff0c\u9760 <code>make defconfig<\/code> \u8865\u5168\u5230 7000 \u884c\u3002\u7406\u7531\u662f\u5b8c\u6574 <code>.config<\/code> \u8ddf\u7740 OpenWrt \u5c0f\u7248\u672c\u8d70\u4f1a\u70c2\u3002\u5b9e\u6d4b\u6709\u6548\uff1a1546 B \u7684\u79cd\u5b50\u8dd1 <code>make defconfig<\/code> \u51fa 7054 \u884c\uff0cprofile\u3001LuCI\u3001\u53cc rootfs \u5168\u5bf9\u3002<\/p>\n<p>\u26a0\ufe0f <strong>workflow \u5fc5\u987b\u5148\u6e05\u76d8<\/strong>\uff1aOpenWrt \u4ece\u96f6\u7f16\u8981\u7ea6 25 GB\uff0crunner \u9ed8\u8ba4\u4e0d\u591f\uff0c\u8981\u5220 <code>\/usr\/share\/dotnet<\/code>\u3001<code>\/usr\/local\/lib\/android<\/code>\u3001<code>\/opt\/ghc<\/code>\u3001<code>\/usr\/lib\/jvm<\/code> \u7b49\u3002\u6784\u5efa\u547d\u4ee4\u7528 <code>make -j$(nproc) || make -j1 V=s<\/code>\uff08\u5e76\u884c\u5931\u8d25\u9000\u5355\u7ebf\u7a0b\u9ad8\u8be6\u7ec6\u5ea6\uff0c\u5426\u5219\u770b\u4e0d\u51fa\u9519\u5728\u54ea\uff09\uff0ctimeout 350 min\u3002<\/p>\n<p>\u26a0\ufe0f \u770b CI \u522b\u6bcf\u5c0f\u65f6\u8f6e\u8be2\uff0c\u6784\u5efa 2\u20134 \u5c0f\u65f6\uff1b\u8981\u770b\u5c31\u770b<strong>\u5931\u8d25\u6b65\u9aa4\u7684\u65e5\u5fd7<\/strong>\uff08job \u672a\u7ed3\u675f\u65f6 logs \u63a5\u53e3\u8fd4\u56de 404\uff09\u3002<\/p>\n<h2>\u5341\u3001\u5751\u4e0e\u8fb9\u754c<\/h2>\n<ul>\n<li>\u26a0\ufe0f squashfs magic \u662f <code>__le32<\/code>\uff0c\u8bfb\u6210 <code>&gt;I<\/code> \u4f1a\u5f97 <code>0x68737173<\/code>\uff0c\u767d\u6298\u817e\u3002<\/li>\n<li>\u26a0\ufe0f rootfs_data \u7684 size \u8981\u7528 <strong>rootfs \u5206\u533a<\/strong>\u5927\u5c0f\u7b97\uff0c\u4e0d\u80fd\u7528 firmware \u5927\u5c0f\uff08\u4f1a\u8d8a\u5230 flash \u672b\u5c3e\uff09\u3002<\/li>\n<li>\u26a0\ufe0f U-Boot \u91cc <code>## Booting image at<\/code> \u90a3\u4e9b\u5b57\u7b26\u4e32\u662f <strong>gp \u76f8\u5bf9\u5bfb\u5740<\/strong>\uff08gp=0xBC010000\uff09\uff0c\u6309 lui+addiu \u7684\u7acb\u5373\u6570\u53bb\u641c\u641c\u4e0d\u5230\u3002<\/li>\n<li>\u26a0\ufe0f <strong>\u4ee5\u7f16\u8bd1\u6811\u91cc\u7684 dts \u4e3a\u51c6<\/strong>\uff0c\u4e0d\u8981\u62ff\u672c\u5730\u526f\u672c\u8986\u76d6\u56de\u53bb\u30024 K \u5bf9\u9f50\u4fee\u590d\uff08firmware \u4ece <code>0x15000<\/code> \u8d77\uff09\u5982\u679c\u88ab\u4e00\u4efd <code>0x15200<\/code> \u7684\u65e7\u526f\u672c\u8986\u76d6\uff0coverlay \u4f1a\u76f4\u63a5\u9000\u5316\u6210 tmpfs\u3002<\/li>\n<li>\u65e0\u5bb3\u566a\u97f3\u4e0d\u7528\u7ba1\uff1a<code>pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]<\/code>\uff08MT7620 PCIe \u6839\u53e3\u8981 2 GB\uff0c32 \u4f4d\u7a7a\u95f4\u653e\u4e0d\u4e0b\uff0c\u5168 mt7620 \u90fd\u8fd9\u6837\uff0c\u4e0d\u5f71\u54cd MT7612\uff09\u3001<code>urandom-seed: Seed file not found<\/code>\u3001<code>spi spi0.0: force spi mode3<\/code>\u3001<code>gpio_button_hotplug taints kernel<\/code>\u3002<\/li>\n<li>\u26a0\ufe0f <strong>\u66ff\u6362\u73b0\u6709 <code>.config<\/code> \u524d\u5148\u5907\u4efd\uff0c\u5e76\u628a\u8fd8\u539f\u52a8\u4f5c\u653e\u8fdb <code>EXIT<\/code> trap<\/strong>\u3002\u5982\u679c\u53ea\u5199 <code>set -e<\/code> \u800c\u4e0d\u52a0 trap\uff0c\u4efb\u4f55\u4e00\u5904\u5931\u8d25\u90fd\u4f1a\u8ba9\u811a\u672c\u63d0\u524d\u9000\u51fa\u3001<code>.config<\/code> \u505c\u5728\u534a\u6539\u72b6\u6001\u3002\u53e6\u6ce8\u610f <code>make<\/code> \u62a5 <code>command not found<\/code> \u65f6\uff0c\u5148\u786e\u8ba4\u6784\u5efa\u547d\u4ee4\u786e\u5b9e\u5728\u88c5\u6709\u5de5\u5177\u94fe\u7684\u5bb9\u5668\u5185\u6267\u884c\u3002<\/li>\n<li><strong>\u8fd9\u53f0\u673a\u5668\u8dd1\u4e0d\u52a8\u4ee3\u7406\u672c\u4f53<\/strong>\uff1aflash overlay \u53ef\u7528 9 MB\uff0c\u4e3b\u6d41\u5ba2\u6237\u7aef\u88c5\u5b8c 15\u201344 MB\uff08xray-core 29.6\u3001v2ray-core 35.4\u3001sing-box 43.7 MB\uff09\uff1bRAM available \u7ea6 10 MB\uff0cGo \u5ba2\u6237\u7aef\u5e38\u9a7b\u8981 20\u201330 MB\uff0c\u5fc5 OOM\u3002CPU \u5355\u6838 580 MHz \u65e0 FPU\/AES \u786c\u4ef6\u52a0\u901f\uff0c\u8f6f\u52a0\u89e3\u5bc6\u541e\u5410\u53ea\u6709\u4e2a\u4f4d\u6570\u5230\u5341\u51e0 Mbps\u3002\u6b63\u89e3\u662f\u4ee3\u7406\u8dd1\u5728 NAS\/VPS\uff0c\u8fd9\u53f0\u53ea\u505a iptables\/route \u5206\u6d41\u3002<\/li>\n<li>\u60f3\u8dd1 zram \u4e5f\u4e0d\u884c\uff1a<code>\/proc\/modules<\/code> \u4e0e <code>\/lib\/modules<\/code> \u6ca1\u6709 zram\/zsmalloc\uff0c24.10.2 feed \u53ea\u6709 <code>zram-swap<\/code>\uff08\u4f9d\u8d56 kmod-zram\uff09\u800c\u6ca1\u6709 <code>kmod-zram<\/code> \u5305\uff0c\u5185\u6838\u4e5f\u6ca1\u7f16\u8fdb\u53bb\u3002\u4e5f\u65e0\u5916\u7f6e\u5b58\u50a8\uff08dmesg \u53ea\u6709 usbcore \u901a\u7528\u6ce8\u518c\uff0c\u65e0 ehci\/ohci\uff0c\u63d2 U \u76d8\/extroot\/swap \u90fd\u4e0d\u884c\uff09\u3002<\/li>\n<\/ul>\n<p>\u672c\u6587\u6240\u6709\u6570\u5b57\u90fd\u6765\u81ea\u8fd9\u4e00\u53f0\u4e09\u53e3 D121G + OpenWrt 24.10.2\u3002\u540c\u4e00 SoC \u7684 TP-Link AP120GI-CT \u7528\u7684\u662f<strong>\u5b8c\u5168\u4e0d\u540c\u7684\u4ea4\u6362\u65b9\u6848<\/strong>\uff08\u6ca1\u6709\u4ea4\u6362\u82af\u7247\u3001\u4e24\u4e2a\u72ec\u7acb RGMII \u5343\u5146 PHY\uff09\uff0cdts \u4e0e\u4ea7\u7269\u4e92\u4e0d\u901a\u7528\uff0c\u90a3\u6761\u8def\u7684\u7ec6\u8282\u89c1<a href=\"\/?p=97\">TL-AP120GI-CT \u79fb\u690d\u6559\u7a0b<\/a>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ece 2 MiB SPI NOR \u6269\u5bb9\u5230 16 MiB\uff0c\u6784\u5efa D121G \u4e13\u7528 OpenWrt\uff0c\u5e76\u9010\u9879\u9a8c\u8bc1\u542f\u52a8\u3001\u7f51\u53e3\u3001\u53cc\u9891\u548c\u914d\u7f6e\u6301\u4e45\u5316\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[45,35,47],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-openwrt","tag-d121g","tag-openwrt","tag-spi-nor"],"_links":{"self":[{"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=87"}],"version-history":[{"count":7,"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":158,"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=\/wp\/v2\/posts\/87\/revisions\/158"}],"wp:attachment":[{"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.xybcm.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}