paldier 发表于 2021-8-2 14:57:13

华硕修复jffs挂载工具

本帖最后由 paldier 于 2021-8-6 10:22 编辑

针对官方固件出现jffs无法挂载的问题

如果ssh不能连接可以用telnet,经过测试telnet不受jffs无法挂载影响


rt-ac68u rt-ac88u rt-ac3100 rt-ac3200 rt-ac5300
在ssh或ttl或telnet执行以下命令

wget -t 2 -T 20 --dns-timeout=15 --no-check-certificate https://update.paldier.com/tools/fixjffs -O /tmp/fixjffs

chmod +x /tmp/fixjffs
/tmp/fixjffs当提示jffs successfully mounted说明成功了,重启即可

rt-ac86u gt-ac2900 gt-ac5300 rt-ax55 rt-ax56u rt-ax58u rt-ax68u rt-ax82u rt-ax86u rt-ax88u rt-ax92u gt-ax11000 gt-axe11000 tuf-ax3000 tuf-ax5400 gs-ax3000 gs-ax5400 zenwifi-xt8

在ssh或ttl或telnet执行以下命令
wget -t 2 -T 20 --dns-timeout=15 --no-check-certificate https://update.paldier.com/tools/fixjffs_hnd -O /tmp/fixjffs_hnd

chmod +x /tmp/fixjffs_hnd
/tmp/fixjffs_hnd当提示jffs successfully mounted说明成功了,重启即可


已经和华硕开发讨论过这个问题,也指出了代码bug的位置,也用代码证明了梅林的修复是有效且没有其他影响的,至于华硕会不会合并代码就不好说了,毕竟出现这个问题只有两种情况,一种是刷了非官方固件包括但不限于梅林/swrt/openwrt/ddwrt,一种是在官方固件自己手欠非要手动格式化jffs,目前梅林新版已经修复这个bug,本工具为旧版梅林及官方固件提供修复,顺带吐槽一下,如果华硕早把博通按其他芯片那样用ubifs哪还有这坑爹的问题

提供下工具代码,基本就是华硕jffs挂载和格式化加上梅林的修复代码

https://github.com/paldier/fixjffs

以下为修复记录

admin@RT-AX82U-56D8:/tmp/home/root#   /tmp/fixjffs_hnd
start jffs2: 9, 49283072
Skipping bad block at 0x02280000
Unlocking 0x0 - 0x1ffff
Unlocking 0x20000 - 0x3ffff
Unlocking 0x40000 - 0x5ffff
Unlocking 0x60000 - 0x7ffff
Unlocking 0x80000 - 0x9ffff
Unlocking 0xa0000 - 0xbffff
Unlocking 0xc0000 - 0xdffff
Unlocking 0xe0000 - 0xfffff
Unlocking 0x100000 - 0x11ffff
Unlocking 0x120000 - 0x13ffff
Unlocking 0x140000 - 0x15ffff
Unlocking 0x160000 - 0x17ffff
Unlocking 0x180000 - 0x19ffff
Unlocking 0x1a0000 - 0x1bffff
Unlocking 0x1c0000 - 0x1dffff
Unlocking 0x1e0000 - 0x1fffff
Unlocking 0x200000 - 0x21ffff
Unlocking 0x220000 - 0x23ffff
Unlocking 0x240000 - 0x25ffff
Unlocking 0x260000 - 0x27ffff
Unlocking 0x280000 - 0x29ffff
Unlocking 0x2a0000 - 0x2bffff
Unlocking 0x2c0000 - 0x2dffff
Unlocking 0x2e0000 - 0x2fffff
Unlocking 0x300000 - 0x31ffff
Unlocking 0x320000 - 0x33ffff
Unlocking 0x340000 - 0x35ffff
Unlocking 0x360000 - 0x37ffff
Unlocking 0x380000 - 0x39ffff
Unlocking 0x3a0000 - 0x3bffff
Unlocking 0x3c0000 - 0x3dffff
Unlocking 0x3e0000 - 0x3fffff
Unlocking 0x400000 - 0x41ffff
Unlocking 0x420000 - 0x43ffff
Unlocking 0x440000 - 0x45ffff
Unlocking 0x460000 - 0x47ffff
Unlocking 0x480000 - 0x49ffff
Unlocking 0x4a0000 - 0x4bffff
Unlocking 0x4c0000 - 0x4dffff
Unlocking 0x4e0000 - 0x4fffff
Unlocking 0x500000 - 0x51ffff
Unlocking 0x520000 - 0x53ffff
Unlocking 0x540000 - 0x55ffff
Unlocking 0x560000 - 0x57ffff
Unlocking 0x580000 - 0x59ffff
Unlocking 0x5a0000 - 0x5bffff
Unlocking 0x5c0000 - 0x5dffff
Unlocking 0x5e0000 - 0x5fffff
Unlocking 0x600000 - 0x61ffff
Unlocking 0x620000 - 0x63ffff
Unlocking 0x640000 - 0x65ffff
Unlocking 0x660000 - 0x67ffff
Unlocking 0x680000 - 0x69ffff
Unlocking 0x6a0000 - 0x6bffff
Unlocking 0x6c0000 - 0x6dffff
Unlocking 0x6e0000 - 0x6fffff
Unlocking 0x700000 - 0x71ffff
Unlocking 0x720000 - 0x73ffff
Unlocking 0x740000 - 0x75ffff
Unlocking 0x760000 - 0x77ffff
Unlocking 0x780000 - 0x79ffff
Unlocking 0x7a0000 - 0x7bffff
Unlocking 0x7c0000 - 0x7dffff
Unlocking 0x7e0000 - 0x7fffff
Unlocking 0x800000 - 0x81ffff
Unlocking 0x820000 - 0x83ffff
Unlocking 0x840000 - 0x85ffff
Unlocking 0x860000 - 0x87ffff
Unlocking 0x880000 - 0x89ffff
Unlocking 0x8a0000 - 0x8bffff
Unlocking 0x8c0000 - 0x8dffff
Unlocking 0x8e0000 - 0x8fffff
Unlocking 0x900000 - 0x91ffff
Unlocking 0x920000 - 0x93ffff
Unlocking 0x940000 - 0x95ffff
Unlocking 0x960000 - 0x97ffff
Unlocking 0x980000 - 0x99ffff
Unlocking 0x9a0000 - 0x9bffff
Unlocking 0x9c0000 - 0x9dffff
Unlocking 0x9e0000 - 0x9fffff
Unlocking 0xa00000 - 0xa1ffff
Unlocking 0xa20000 - 0xa3ffff
Unlocking 0xa40000 - 0xa5ffff
Unlocking 0xa60000 - 0xa7ffff
Unlocking 0xa80000 - 0xa9ffff
Unlocking 0xaa0000 - 0xabffff
Unlocking 0xac0000 - 0xadffff
Unlocking 0xae0000 - 0xafffff
Unlocking 0xb00000 - 0xb1ffff
Unlocking 0xb20000 - 0xb3ffff
Unlocking 0xb40000 - 0xb5ffff
Unlocking 0xb60000 - 0xb7ffff
Unlocking 0xb80000 - 0xb9ffff
Unlocking 0xba0000 - 0xbbffff
Unlocking 0xbc0000 - 0xbdffff
Unlocking 0xbe0000 - 0xbfffff
Unlocking 0xc00000 - 0xc1ffff
Unlocking 0xc20000 - 0xc3ffff
Unlocking 0xc40000 - 0xc5ffff
Unlocking 0xc60000 - 0xc7ffff
Unlocking 0xc80000 - 0xc9ffff
Unlocking 0xca0000 - 0xcbffff
Unlocking 0xcc0000 - 0xcdffff
Unlocking 0xce0000 - 0xcfffff
Unlocking 0xd00000 - 0xd1ffff
Unlocking 0xd20000 - 0xd3ffff
Unlocking 0xd40000 - 0xd5ffff
Unlocking 0xd60000 - 0xd7ffff
Unlocking 0xd80000 - 0xd9ffff
Unlocking 0xda0000 - 0xdbffff
Unlocking 0xdc0000 - 0xddffff
Unlocking 0xde0000 - 0xdfffff
Unlocking 0xe00000 - 0xe1ffff
Unlocking 0xe20000 - 0xe3ffff
Unlocking 0xe40000 - 0xe5ffff
Unlocking 0xe60000 - 0xe7ffff
Unlocking 0xe80000 - 0xe9ffff
Unlocking 0xea0000 - 0xebffff
Unlocking 0xec0000 - 0xedffff
Unlocking 0xee0000 - 0xefffff
Unlocking 0xf00000 - 0xf1ffff
Unlocking 0xf20000 - 0xf3ffff
Unlocking 0xf40000 - 0xf5ffff
Unlocking 0xf60000 - 0xf7ffff
Unlocking 0xf80000 - 0xf9ffff
Unlocking 0xfa0000 - 0xfbffff
Unlocking 0xfc0000 - 0xfdffff
Unlocking 0xfe0000 - 0xffffff
Unlocking 0x1000000 - 0x101ffff
Unlocking 0x1020000 - 0x103ffff
Unlocking 0x1040000 - 0x105ffff
Unlocking 0x1060000 - 0x107ffff
Unlocking 0x1080000 - 0x109ffff
Unlocking 0x10a0000 - 0x10bffff
Unlocking 0x10c0000 - 0x10dffff
Unlocking 0x10e0000 - 0x10fffff
Unlocking 0x1100000 - 0x111ffff
Unlocking 0x1120000 - 0x113ffff
Unlocking 0x1140000 - 0x115ffff
Unlocking 0x1160000 - 0x117ffff
Unlocking 0x1180000 - 0x119ffff
Unlocking 0x11a0000 - 0x11bffff
Unlocking 0x11c0000 - 0x11dffff
Unlocking 0x11e0000 - 0x11fffff
Unlocking 0x1200000 - 0x121ffff
Unlocking 0x1220000 - 0x123ffff
Unlocking 0x1240000 - 0x125ffff
Unlocking 0x1260000 - 0x127ffff
Unlocking 0x1280000 - 0x129ffff
Unlocking 0x12a0000 - 0x12bffff
Unlocking 0x12c0000 - 0x12dffff
Unlocking 0x12e0000 - 0x12fffff
Unlocking 0x1300000 - 0x131ffff
Unlocking 0x1320000 - 0x133ffff
Unlocking 0x1340000 - 0x135ffff
Unlocking 0x1360000 - 0x137ffff
Unlocking 0x1380000 - 0x139ffff
Unlocking 0x13a0000 - 0x13bffff
Unlocking 0x13c0000 - 0x13dffff
Unlocking 0x13e0000 - 0x13fffff
Unlocking 0x1400000 - 0x141ffff
Unlocking 0x1420000 - 0x143ffff
Unlocking 0x1440000 - 0x145ffff
Unlocking 0x1460000 - 0x147ffff
Unlocking 0x1480000 - 0x149ffff
Unlocking 0x14a0000 - 0x14bffff
Unlocking 0x14c0000 - 0x14dffff
Unlocking 0x14e0000 - 0x14fffff
Unlocking 0x1500000 - 0x151ffff
Unlocking 0x1520000 - 0x153ffff
Unlocking 0x1540000 - 0x155ffff
Unlocking 0x1560000 - 0x157ffff
Unlocking 0x1580000 - 0x159ffff
Unlocking 0x15a0000 - 0x15bffff
Unlocking 0x15c0000 - 0x15dffff
Unlocking 0x15e0000 - 0x15fffff
Unlocking 0x1600000 - 0x161ffff
Unlocking 0x1620000 - 0x163ffff
Unlocking 0x1640000 - 0x165ffff
Unlocking 0x1660000 - 0x167ffff
Unlocking 0x1680000 - 0x169ffff
Unlocking 0x16a0000 - 0x16bffff
Unlocking 0x16c0000 - 0x16dffff
Unlocking 0x16e0000 - 0x16fffff
Unlocking 0x1700000 - 0x171ffff
Unlocking 0x1720000 - 0x173ffff
Unlocking 0x1740000 - 0x175ffff
Unlocking 0x1760000 - 0x177ffff
Unlocking 0x1780000 - 0x179ffff
Unlocking 0x17a0000 - 0x17bffff
Unlocking 0x17c0000 - 0x17dffff
Unlocking 0x17e0000 - 0x17fffff
Unlocking 0x1800000 - 0x181ffff
Unlocking 0x1820000 - 0x183ffff
Unlocking 0x1840000 - 0x185ffff
Unlocking 0x1860000 - 0x187ffff
Unlocking 0x1880000 - 0x189ffff
Unlocking 0x18a0000 - 0x18bffff
Unlocking 0x18c0000 - 0x18dffff
Unlocking 0x18e0000 - 0x18fffff
Unlocking 0x1900000 - 0x191ffff
Unlocking 0x1920000 - 0x193ffff
Unlocking 0x1940000 - 0x195ffff
Unlocking 0x1960000 - 0x197ffff
Unlocking 0x1980000 - 0x199ffff
Unlocking 0x19a0000 - 0x19bffff
Unlocking 0x19c0000 - 0x19dffff
Unlocking 0x19e0000 - 0x19fffff
Unlocking 0x1a00000 - 0x1a1ffff
Unlocking 0x1a20000 - 0x1a3ffff
Unlocking 0x1a40000 - 0x1a5ffff
Unlocking 0x1a60000 - 0x1a7ffff
Unlocking 0x1a80000 - 0x1a9ffff
Unlocking 0x1aa0000 - 0x1abffff
Unlocking 0x1ac0000 - 0x1adffff
Unlocking 0x1ae0000 - 0x1afffff
Unlocking 0x1b00000 - 0x1b1ffff
Unlocking 0x1b20000 - 0x1b3ffff
Unlocking 0x1b40000 - 0x1b5ffff
Unlocking 0x1b60000 - 0x1b7ffff
Unlocking 0x1b80000 - 0x1b9ffff
Unlocking 0x1ba0000 - 0x1bbffff
Unlocking 0x1bc0000 - 0x1bdffff
Unlocking 0x1be0000 - 0x1bfffff
Unlocking 0x1c00000 - 0x1c1ffff
Unlocking 0x1c20000 - 0x1c3ffff
Unlocking 0x1c40000 - 0x1c5ffff
Unlocking 0x1c60000 - 0x1c7ffff
Unlocking 0x1c80000 - 0x1c9ffff
Unlocking 0x1ca0000 - 0x1cbffff
Unlocking 0x1cc0000 - 0x1cdffff
Unlocking 0x1ce0000 - 0x1cfffff
Unlocking 0x1d00000 - 0x1d1ffff
Unlocking 0x1d20000 - 0x1d3ffff
Unlocking 0x1d40000 - 0x1d5ffff
Unlocking 0x1d60000 - 0x1d7ffff
Unlocking 0x1d80000 - 0x1d9ffff
Unlocking 0x1da0000 - 0x1dbffff
Unlocking 0x1dc0000 - 0x1ddffff
Unlocking 0x1de0000 - 0x1dfffff
Unlocking 0x1e00000 - 0x1e1ffff
Unlocking 0x1e20000 - 0x1e3ffff
Unlocking 0x1e40000 - 0x1e5ffff
Unlocking 0x1e60000 - 0x1e7ffff
Unlocking 0x1e80000 - 0x1e9ffff
Unlocking 0x1ea0000 - 0x1ebffff
Unlocking 0x1ec0000 - 0x1edffff
Unlocking 0x1ee0000 - 0x1efffff
Unlocking 0x1f00000 - 0x1f1ffff
Unlocking 0x1f20000 - 0x1f3ffff
Unlocking 0x1f40000 - 0x1f5ffff
Unlocking 0x1f60000 - 0x1f7ffff
Unlocking 0x1f80000 - 0x1f9ffff
Unlocking 0x1fa0000 - 0x1fbffff
Unlocking 0x1fc0000 - 0x1fdffff
Unlocking 0x1fe0000 - 0x1ffffff
Unlocking 0x2000000 - 0x201ffff
Unlocking 0x2020000 - 0x203ffff
Unlocking 0x2040000 - 0x205ffff
Unlocking 0x2060000 - 0x207ffff
Unlocking 0x2080000 - 0x209ffff
Unlocking 0x20a0000 - 0x20bffff
Unlocking 0x20c0000 - 0x20dffff
Unlocking 0x20e0000 - 0x20fffff
Unlocking 0x2100000 - 0x211ffff
Unlocking 0x2120000 - 0x213ffff
Unlocking 0x2140000 - 0x215ffff
Unlocking 0x2160000 - 0x217ffff
Unlocking 0x2180000 - 0x219ffff
Unlocking 0x21a0000 - 0x21bffff
Unlocking 0x21c0000 - 0x21dffff
Unlocking 0x21e0000 - 0x21fffff
Unlocking 0x2200000 - 0x221ffff
Unlocking 0x2220000 - 0x223ffff
Unlocking 0x2240000 - 0x225ffff
Unlocking 0x2260000 - 0x227ffff
Unlocking 0x2280000 - 0x229ffff
Skipping bad block at 0x02280000
Unlocking 0x22a0000 - 0x22bffff
Unlocking 0x22c0000 - 0x22dffff
Unlocking 0x22e0000 - 0x22fffff
Unlocking 0x2300000 - 0x231ffff
Unlocking 0x2320000 - 0x233ffff
Unlocking 0x2340000 - 0x235ffff
Unlocking 0x2360000 - 0x237ffff
Unlocking 0x2380000 - 0x239ffff
Unlocking 0x23a0000 - 0x23bffff
Unlocking 0x23c0000 - 0x23dffff
Unlocking 0x23e0000 - 0x23fffff
Unlocking 0x2400000 - 0x241ffff
Unlocking 0x2420000 - 0x243ffff
Unlocking 0x2440000 - 0x245ffff
Unlocking 0x2460000 - 0x247ffff
Unlocking 0x2480000 - 0x249ffff
Unlocking 0x24a0000 - 0x24bffff
Unlocking 0x24c0000 - 0x24dffff
Unlocking 0x24e0000 - 0x24fffff
Unlocking 0x2500000 - 0x251ffff
Unlocking 0x2520000 - 0x253ffff
Unlocking 0x2540000 - 0x255ffff
Unlocking 0x2560000 - 0x257ffff
Unlocking 0x2580000 - 0x259ffff
Unlocking 0x25a0000 - 0x25bffff
Unlocking 0x25c0000 - 0x25dffff
Unlocking 0x25e0000 - 0x25fffff
Unlocking 0x2600000 - 0x261ffff
Unlocking 0x2620000 - 0x263ffff
Unlocking 0x2640000 - 0x265ffff
Unlocking 0x2660000 - 0x267ffff
Unlocking 0x2680000 - 0x269ffff
Unlocking 0x26a0000 - 0x26bffff
Unlocking 0x26c0000 - 0x26dffff
Unlocking 0x26e0000 - 0x26fffff
Unlocking 0x2700000 - 0x271ffff
Unlocking 0x2720000 - 0x273ffff
Unlocking 0x2740000 - 0x275ffff
Unlocking 0x2760000 - 0x277ffff
Unlocking 0x2780000 - 0x279ffff
Unlocking 0x27a0000 - 0x27bffff
Unlocking 0x27c0000 - 0x27dffff
Unlocking 0x27e0000 - 0x27fffff
Unlocking 0x2800000 - 0x281ffff
Unlocking 0x2820000 - 0x283ffff
Unlocking 0x2840000 - 0x285ffff
Unlocking 0x2860000 - 0x287ffff
Unlocking 0x2880000 - 0x289ffff
Unlocking 0x28a0000 - 0x28bffff
Unlocking 0x28c0000 - 0x28dffff
Unlocking 0x28e0000 - 0x28fffff
Unlocking 0x2900000 - 0x291ffff
Unlocking 0x2920000 - 0x293ffff
Unlocking 0x2940000 - 0x295ffff
Unlocking 0x2960000 - 0x297ffff
Unlocking 0x2980000 - 0x299ffff
Unlocking 0x29a0000 - 0x29bffff
Unlocking 0x29c0000 - 0x29dffff
Unlocking 0x29e0000 - 0x29fffff
Unlocking 0x2a00000 - 0x2a1ffff
Unlocking 0x2a20000 - 0x2a3ffff
Unlocking 0x2a40000 - 0x2a5ffff
Unlocking 0x2a60000 - 0x2a7ffff
Unlocking 0x2a80000 - 0x2a9ffff
Unlocking 0x2aa0000 - 0x2abffff
Unlocking 0x2ac0000 - 0x2adffff
Unlocking 0x2ae0000 - 0x2afffff
Unlocking 0x2b00000 - 0x2b1ffff
Unlocking 0x2b20000 - 0x2b3ffff
Unlocking 0x2b40000 - 0x2b5ffff
Unlocking 0x2b60000 - 0x2b7ffff
Unlocking 0x2b80000 - 0x2b9ffff
Unlocking 0x2ba0000 - 0x2bbffff
Unlocking 0x2bc0000 - 0x2bdffff
Unlocking 0x2be0000 - 0x2bfffff
Unlocking 0x2c00000 - 0x2c1ffff
Unlocking 0x2c20000 - 0x2c3ffff
Unlocking 0x2c40000 - 0x2c5ffff
Unlocking 0x2c60000 - 0x2c7ffff
Unlocking 0x2c80000 - 0x2c9ffff
Unlocking 0x2ca0000 - 0x2cbffff
Unlocking 0x2cc0000 - 0x2cdffff
Unlocking 0x2ce0000 - 0x2cfffff
Unlocking 0x2d00000 - 0x2d1ffff
Unlocking 0x2d20000 - 0x2d3ffff
Unlocking 0x2d40000 - 0x2d5ffff
Unlocking 0x2d60000 - 0x2d7ffff
Unlocking 0x2d80000 - 0x2d9ffff
Unlocking 0x2da0000 - 0x2dbffff
Unlocking 0x2dc0000 - 0x2ddffff
Unlocking 0x2de0000 - 0x2dfffff
Unlocking 0x2e00000 - 0x2e1ffff
Unlocking 0x2e20000 - 0x2e3ffff
Unlocking 0x2e40000 - 0x2e5ffff
Unlocking 0x2e60000 - 0x2e7ffff
Unlocking 0x2e80000 - 0x2e9ffff
Unlocking 0x2ea0000 - 0x2ebffff
Unlocking 0x2ec0000 - 0x2edffff
Unlocking 0x2ee0000 - 0x2efffff
"misc2" successfully unlocked.
jffs successfully mounted
admin@RT-AX82U-56D8:/tmp/home/root# mount
/dev/root on / type squashfs (ro,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=255936k,nr_inodes=63984,mode=755)
proc on /proc type proc (rw,relatime)
tmpfs on /var type tmpfs (rw,relatime)
tmpfs on /tmp/mnt type tmpfs (rw,relatime,size=16k,mode=755)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
ubi1:data on /data type ubifs (rw,relatime)
tmpfs on /tmp/mnt type tmpfs (rw,relatime,size=16k,mode=755)
tmpfs on /tmp type tmpfs (rw,relatime)
/dev/mtdblock9 on /jffs type jffs2 (rw,noatime)


Dr.Antenna 发表于 2021-8-3 21:11:04

谢谢分享

lingk6305 发表于 2021-8-9 14:51:01

谢谢分享~~~~

Gemini4422335 发表于 2021-8-10 16:01:55

谢谢分享~

scqiuji 发表于 2021-9-6 10:20:50

必须支持一下,好东西,路由器一直挂载不了jffs

hzwp 发表于 2021-9-10 17:43:01

感谢分享,支持。

steele 发表于 2021-9-18 15:27:53


感谢分享

yudi126 发表于 2021-9-23 13:57:29

感谢分享!

sunday229 发表于 2021-11-12 23:54:38

华硕修复jffs挂载工具真棒

Frank980723 发表于 2021-11-27 17:53:33

谢谢分享:lol
页: [1] 2
查看完整版本: 华硕修复jffs挂载工具