找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 3868|回复: 7

ptpt52给路由宝yk1不能软重启的新补丁固件,有兴趣的人请以此来重新编译

[复制链接]
发表于 2018-3-21 22:47 | 显示全部楼层 |阅读模式
本帖最后由 blackantt 于 2018-3-21 23:05 编辑

1. 我已经试过,软重启很好用。(以前的补丁固件可能不能通用于所有黑色yk1,这个补丁固件可以)在  https://pan.baidu.com/s/1eSrRc7S ... th=%2Fshare%2Fmovie  里找 netcap*.bin 文件刷机密码,及ssh密码见下
https://www.right.com.cn/forum/thread-212965-1-1.html
https://www.right.com.cn/forum/thread-213900-1-1.html
如有不明白的,请至QQ群:131750901  咨询群主

2. 上面的 netcap*.bin 固件内核太新,原来有的软件用不了。 喜欢折腾的 请在此基础上编译出通用的  openwrt 15.05.1 ,  lede17.01 给这个烦人的32m yk1




diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 8548270..9b186b1 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -259,6 +259,21 @@ static int m25p_remove(struct spi_device *spi)
         return mtd_device_unregister(&flash->spi_nor.mtd);
}

+static void m25p_shutdown(struct spi_device *spi)
+{
+        struct m25p        *flash = spi_get_drvdata(spi);
+
+        if ((&flash->spi_nor)->addr_width > 3) {
+                printk(KERN_INFO "m25p80: exit 4-byte address mode\n");
+                flash->command[0] = SPINOR_OP_EX4B;  // exit 4-byte address mode: 0xe9
+                spi_write(flash->spi, flash->command, 1);
+                flash->command[0] = 0x66;  // enable reset
+                spi_write(flash->spi, flash->command, 1);
+                flash->command[0] = 0x99;  // reset
+                spi_write(flash->spi, flash->command, 1);
+        }
+}
+
/*
  * Do NOT add to this array without reading the following:
  *
@@ -329,6 +344,7 @@ static struct spi_driver m25p80_driver = {
         .id_table        = m25p_ids,
         .probe        = m25p_probe,
         .remove        = m25p_remove,
+        .shutdown = m25p_shutdown,

         /* REVISIT: many of these chips have deep power-down modes, which
          * should clearly be entered on suspend() to minimize power use.






点评

经过测试,这个补丁用于换了64M闪存的优酷L1后软重启正常,没打这个补丁一软重启就死。  发表于 2019-2-3 03:16
我的恩山、我的无线 The best wifi forum is right here.
发表于 2018-3-22 11:43 | 显示全部楼层
楼主有 4.14内核可用的补丁吗  ?

点评

我不太懂, 不过你可以直接从第一个链接里下个最新的yk1固件,如果满足你的需求,你就直接用最新的lede-yk1, 我试过,在黑色L1上能reboot  详情 回复 发表于 2018-3-22 13:14
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-3-22 13:14 | 显示全部楼层
13062678135 发表于 2018-3-22 11:43
楼主有 4.14内核可用的补丁吗  ?

我不太懂, 不过你可以直接从第一个链接里下个最新的yk1固件,如果满足你的需求,你就直接用最新的lede-yk1, 我试过,在黑色L1上能reboot
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-6-25 23:17 | 显示全部楼层
谢谢楼主, 正需要这个,  我晚点试试,  有问题再请教你
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-25 12:22 | 显示全部楼层
路由宝yk1不能软重启的新补丁固件
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-4-11 16:26 | 显示全部楼层
怎么找不到补丁啊,在哪呢
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-26 09:04

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表