失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > 路由宝刷华硕rt-n14u_如何在取消硬砖路由器的砖块化(以华硕RT-N16为例)

路由宝刷华硕rt-n14u_如何在取消硬砖路由器的砖块化(以华硕RT-N16为例)

时间:2023-01-26 17:45:11

相关推荐

路由宝刷华硕rt-n14u_如何在取消硬砖路由器的砖块化(以华硕RT-N16为例)

路由宝刷华硕rt-n14u

If your network router is bricked, and you cannot recover it using any technique, provided by a manufacturer, chances are that it is hard-bricked. In my case, the power light was not going on, just network port lights. No serial console output at all. No recovery method of 30/30/30 would work.

如果您的网络路由器是砖砌的,并且您无法使用制造商提供的任何技术来恢复它,那么它很可能很难使用。 以我为例,电源指示灯不亮,仅网络端口指示灯亮。 根本没有串行控制台输出。 30/30/30的恢复方法无效。

In this case, you have a chance to de-brick the device using JTAG. To access this feature, you will need:

在这种情况下,您将有机会使用JTAG对设备进行解砖。 要使用此功能,您需要:

Raspberry Pi (our example showcases Raspberry PI 3 B);Raspberry Pi(我们的示例展示了Raspberry PI 3 B); Jumpers or an IDE bus from your old computer’s IDE drives;旧计算机的IDE驱动器上的跳线或IDE总线; A solder or spring-loaded connector with the wire to contact the printed board;焊锡或带有弹簧的连接器,其导线与印刷电路板接触; A screwdriver to disassemble and reassemble the device;用螺丝刀拆卸和重新组装设备; 6 100-Ohm resistors of about 1/8 Watt power;6个约1/8瓦功率的100欧姆电阻;

First, let us open the router and locate a JTAG connector. You can find online where JTAG is for your specific router. Sometimes you should solder to different places on the motherboard to collect its signals.

首先,让我们打开路由器并找到一个JTAG连接器。 您可以在线找到特定路由器的JTAG。 有时您应该焊接到主板上的不同位置以收集其信号。

In the case of the famous RT-N16 router, the connector is in one location, placed conveniently, and is marked as J1.

对于著名的RT-N16路由器,该连接器位于一个位置,放置方便,并标记为J1。

Now choose the means to make a connection. In my case, I did not have a spring loaded connector handy, so decided to go for a soldering solution. The board is based on an aluminium sheet, so tends to get hot whenever you solder, be careful.

现在选择建立连接的方式。 就我而言,我没有方便的弹簧加载连接器,因此决定选择一种焊接解决方案。 该板基于铝板,因此在焊接时容易变热,请小心。

Remember, JTAG does not tolerate long cables, so try to limit yourself to 20 cm. In case you already use a 20-30 cm. IDE bus, the solution will still work even if you attach another 10 cm. cable /jumper wires, leading to the board. Maybe the reason is IDE bus has all wires inline so they do not interfere much.

请记住,JTAG不能承受较长的电缆,因此请尽量将其限制为20厘米。 如果您已经使用了20-30厘米。 IDE总线,即使您再连接10厘米,该解决方案仍然可以使用。 电缆/跳线,通向电路板。 可能是因为IDE总线的所有线都串联,所以它们不会造成太大干扰。

The signals of the connector are on the left, whereas ground sits on the right. First I was wondering if I should solder the ground to one pin and connect all ground pins additionally, but in fact, you need to only solder to a single ground pin. All the rest are already connected by the aluminium board, using a common ground.

连接器的信号在左侧,而地线在右侧。 首先,我想知道是否应该将接地点焊接到一个引脚上,并另外连接所有接地引脚,但是实际上,您只需要焊接到单个接地引脚上。 其余所有部件均已通过铝板使用公共接地连接。

Another important thing would be to turn the router on and check voltage levels on soldered/connected wires. It should show 3.3V on most pins, occasionally one pin can show 2.7V and the nSRST is usually around 0V.

另一个重要的事情是打开路由器并检查焊接/连接的电线上的电压水平。 大多数引脚上应显示3.3V,偶尔一个引脚可显示2.7V,nSRST通常约为0V。

If you see lower or jumping values, be sure to check your soldering or quality of the JTAG connection. I have managed to get a proper connection only from the third try, despite all looking like they were properly attached.

如果看到较低或跳跃的值,请确保检查焊接或JTAG连接的质量。 尽管所有人似乎都已正确连接,但我仅从第三次尝试就获得了正确的连接。

If you have managed to reach that far, then you are very close to the result.

如果您设法达到了这一目标,那么您将非常接近结果。

Connect Raspberry PI 3 B:

连接Raspberry PI 3 B

Via IDE cable通过IDE电缆

Make sure your IDE cable looks inwards on the 40-pin connector of PI, rather than outwards. If it looks outwards, all your header pins will be mirrored left to right and you will have to account for that. You can place resistors into the pin holes on the other end of IDE. Pliers can help to bend the leads of resistors and compress them into a sicker wire for proper contact.

确保您的IDE电缆在PI的40针连接器上朝内而不是朝外。 如果从外部看,则所有插头插针都会从左到右镜像,您必须考虑到这一点。 您可以将电阻器放入IDE另一端的针Kong中。 钳子可以帮助弯曲电阻器的导线,并将其压缩为更平整的导线,以便正确接触。

2.Via jumper wires;

2.通过跨接线

A 100 Ohm resistor must be connected sequentially to every signal, except for the ground. You can test the pin numbers via a LED light script of Raspberry.

必须将100 Ohm电阻器顺序连接到每个信号(接地除外)。 您可以通过Raspberry的LED灯脚本来测试引脚号。

Next, compileopenocdutility on raspberry. Installing by apt will not help, because the utility will lack the functionality we require here:

接下来,在树莓派上编译openocd实用程序。 通过apt安装将无济于事,因为该实用程序将缺少我们在此处需要的功能:

sudo apt-get updatesudo apt-get install -y git autoconf libtool libftdi-dev libusb-1.0-0-devmkdir -p ~/src; cd ~/srcgit clone --recursive git://git./p/openocd/code openocd-gitcd openocd-git./bootstrap && \./configure --enable-sysfsgpio \--enable-maintainer-mode \--disable-werror \--enable-ftdi \--enable-ep93xx \--enable-at91rm9200 \--enable-usbprog \--enable-presto_libftdi \--enable-jlink \--enable-vsllink \--enable-rlink \--enable-arm-jtag-ew \--enable-dummy \--enable-buspirate \--enable-ulink \--enable-usb_blaster_libftdi \--prefix=/usr \&&make&&make install

Pin numbers you have to connect will be mentioned in openocd config file:

您必须连接的引脚号将在openocd配置文件中提及:

/usr/share/openocd/scripts/interface/sysfsgpio-raspberrypi.cfg

For convenience, I show them here.

为了方便起见,我在这里显示它们。

RPI HEADER JTAG CONNECTOR6 GROUND GROUND (one of right pins)19 TDI21 TDO22 TMS23 TCK26 nTRST

At this point you can list the partitions on the router, dump or delete them. I recommend to dump and store your CFE just in case (do it twice to ensure there is no error in final files).

此时,您可以列出路由器上的分区,转储或删除它们。 我建议转储您的CFE,以防万一(重复两次以确保最终文件中没有错误)。

To dump CFE (a “BIOS” of router):

要转储CFE(路由器的“ BIOS”):

cd /usr/share/openocd/scripts; sudo openocd -f interface/sysfsgpio-raspberrypi.cfg -f tools/firmware-recovery.tcl -c "board asus-rt-n16; dump_part CFE /root/cfe.0.bin; shutdown"

To list partitions:

列出分区:

sudo openocd -f interface/sysfsgpio-raspberrypi.cfg -f tools/firmware-recovery.tcl -c "board asus-rt-n16; list_partitions; shutdown"

To de-brick:

消除砖块:

sudo openocd -f interface/sysfsgpio-raspberrypi.cfg -f tools/firmware-recovery.tcl -c "board asus-rt-n16; erase_part nvram; shutdown"

Usually, to de-brick a hard-bricked router, only NVRAM partition has to be erased. Then, after a power-cycle, your router will be ready for a firmware flash.

通常,要使硬路由器路由器砖化,只需擦除NVRAM分区即可。 然后,在重启后,您的路由器将准备进行固件刷新。

I have done it using a tftp Linux utility. For the moment, the best supported 3rd party firmware for RT-N16 I found, was AdvancedTomato. But if you go for a stock firmware, it is also not that bad nowadays.

我已经使用tftp Linux实用程序完成了它。 目前,我找到的最受支持的RT-N16第三方固件是AdvancedTomato。 但是,如果您购买库存固件,那么现在也还不错。

In case anything goes wrong, just double- and triple-check your contacts and voltage levels on JTAG.

万一出问题,只需仔细检查您的触点和JTAG上的电压电平即可。

If these steps have saved you from the need of purchasing new hardware, please endorse this article.

如果这些步骤使您不必再购买新硬件,请认可本文。

翻译自: https://www.experts-/articles/33411/How-to-de-brick-a-hard-bricked-router-in--on-the-example-of-Asus-RT-N16.html

路由宝刷华硕rt-n14u

如果觉得《路由宝刷华硕rt-n14u_如何在取消硬砖路由器的砖块化(以华硕RT-N16为例)》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。