Newifi D1 - Unable to reboot

Firmware : LEDE 17.01.4

After enter "reboot" command,the router will not reboot and it just crash until the power is reset in person.

Newifi D1 has 32M flash and the problem is similar to these link:

https://forum.openwrt.org/viewtopic.php?id=46034

http://blog.csdn.net/manfeel/article/details/43530817

I hope that someone can fix this problem for which all this model's devices are in 32M flash and cannot softly reboot. And other kind of firmware has fix this issue.

Thank you!

A corresponding patch seems to have been merged into master (snapshots) in April, but apparently it wasn't backported to the 17.01.x branch. Can you confirm that recent snapshots are working for you?

Thanks,

I download the snapshots firmware today and simply find that it still doesn't work..

And then it crash. Cannot ping, front LED dies out and swich led of WAN and LAN1 bright.

Flash: Macronix MX25L25635E @ 19MHz (32MB)

Thank you!

Hello, I find a solution that seems to solve the problem. But I don't know how to change the source code.
Thank you.

http://m.blog.csdn.net/yubing_615/article/details/52649489 (Fix soft reset fail of MT7621 ,
openwrt, in Chinese)

1 Like

Does anyone know whether the latest snapshot has fixed the soft reboot problem?

This patch from @ffee may solve the soft reboot problem on the snapshot build.

--- a/drivers/mtd/spi-nor/spi-nor.c	2018-01-22 19:58:05.000000000 +0800
+++ b/drivers/mtd/spi-nor/spi-nor.c	2018-01-22 20:03:10.716812400 +0800
@@ -1070,7 +1070,7 @@
 	{ "mx25u6435f",  INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
 	{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
 	{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
-	{ "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, 0) },
+	{ "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_4B_READ_OP) },
 	{ "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_4B_OPCODES) },
 	{ "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) },
 	{ "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_QUAD_READ) },

Put the patch file into /target/linux/ramips/patches-4.9

It works, Thanks!

For kernel 4.14, a different patch:

--- a/drivers/mtd/spi-nor/spi-nor.c
+++ b/drivers/mtd/spi-nor/spi-nor.c
@@ -1075,7 +1075,7 @@ static const struct flash_info spi_nor_i
 	{ "mx25u6435f",  INFO(0xc22537, 0, 64 * 1024, 128, SECT_4K) },
 	{ "mx25l12805d", INFO(0xc22018, 0, 64 * 1024, 256, 0) },
 	{ "mx25l12855e", INFO(0xc22618, 0, 64 * 1024, 256, 0) },
-	{ "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
+	{ "mx25l25635e", INFO(0xc22019, 0, 64 * 1024, 512, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ | SPI_NOR_4B_READ_OP) },
 	{ "mx25u25635f", INFO(0xc22539, 0, 64 * 1024, 512, SECT_4K | SPI_NOR_4B_OPCODES) },
 	{ "mx25l25655e", INFO(0xc22619, 0, 64 * 1024, 512, 0) },
 	{ "mx66l51235l", INFO(0xc2201a, 0, 64 * 1024, 1024, SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },

With 18.06 RC2 and its u-boot untouched, I still can not reboot the router.
While poweroff works though.

Hello,
You need to build your firmware with the patch above. The official 18.06 rc2 cannot reboot the router.

Hi mrning,

I know i have to put the patch file into /target/linux/ramips/patches-4.9.
Can you tell me how should I name the patch file? Can I give it any name or I have to put a specific name for it?

Please help me out,
Thank you,
Tony

Hello,

I am not clear about the rules naming it, but I just named it like other patches in that folder like "0123-reboot.patch" and it works.

I hope it can help you.

Hi easyteacher,

Do you have any patch for kernel 4.4?

Hi morning,
It was working for the patch for kernel 4.14. Thank you.

Thank you,
Tony

my Newifi D2 also frequently facing the issue if generating medium to large size rom (> 16MB) on latest official build 19.07.1 with kernel version 4.14.167. Can anyone investigating the issue?