找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 6955|回复: 10

7620 32M flash 路由宝 不能重启 补丁 M25P80.C

[复制链接]
发表于 2016-12-7 21:38 | 显示全部楼层 |阅读模式
本帖最后由 mike22437120 于 2016-12-7 21:41 编辑

这几日编译优酷路由宝DD LEDE固件,刷了breed。一直是不能重启,必须拔电源才可以。经981213指点,把DD或LEDE的补丁文件发出。我的日志显示15年11月的CC可以的。不知道为什么现在DD LEDE不行了。
补丁复制到以下目录/dd/target/linux/ramips/patches-4.4
  1. --- a/drivers/mtd/devices/m25p80.c        2016-10-22 15:30:19.000000000 +0800
  2. +++ b/drivers/mtd/devices/m25p80.c        2016-12-07 19:40:30.000000000 +0800
  3. @@ -260,6 +260,15 @@
  4. static int m25p_remove(struct spi_device *spi)
  5. {
  6.          struct m25p        *flash = spi_get_drvdata(spi);
  7. +        if ((&flash->spi_nor)->addr_width > 3) {
  8. +        printk(KERN_INFO "m25p80: exit 4-byte address mode\n");
  9. +        flash->command[0] = SPINOR_OP_EX4B;  // exit 4-byte address mode: 0xe9
  10. +        spi_write(flash->spi, flash->command, 1);
  11. +        flash->command[0] = 0x66;  // enable reset
  12. +        spi_write(flash->spi, flash->command, 1);
  13. +        flash->command[0] = 0x99;  // reset
  14. +        spi_write(flash->spi, flash->command, 1);
  15. +        }

  16.          /* Clean up MTD stuff. */
  17.          return mtd_device_unregister(&flash->spi_nor.mtd);
  18. @@ -328,6 +337,7 @@
  19.          .id_table        = m25p_ids,
  20.          .probe        = m25p_probe,
  21.          .remove        = m25p_remove,
  22. +        .shutdown = m25p_remove, // add shutdown method to reset spi flash

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

复制代码



本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
 楼主| 发表于 2016-12-8 08:37 | 显示全部楼层
改了代码要重新内核编译命令如下
make V=99 target/linux/clean
make V=99 target/linux/compile
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-12-8 12:13 | 显示全部楼层
谢谢楼主分享。。。。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-3-5 15:31 | 显示全部楼层
感谢分享。今天有时间试试。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-7-2 15:45 | 显示全部楼层
在路由宝遇到了这个问题,用楼主的方法试试,谢谢!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-17 18:25 | 显示全部楼层
你好, 能不能针对 youku L1 用你的补丁给编译几个固件?  我们都不会啊。 :(
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-1-22 15:44 | 显示全部楼层
谢谢楼主分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-2-13 18:16 | 显示全部楼层
出错 最新的4.9内核
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-10-23 16:05 | 显示全部楼层
感谢楼主,优酷路由宝YK1刷了openwrt官方的lede17.01版本后不能软重启,用了你这个补丁自己编译固件后就正常了。

点评

大神能不能出一下教程,刷818变砖头了  详情 回复 发表于 2020-1-8 21:20
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-1-8 21:20 | 显示全部楼层
kubsb 发表于 2019-10-23 16:05
感谢楼主,优酷路由宝YK1刷了openwrt官方的lede17.01版本后不能软重启,用了你这个补丁自己编译固件后就正 ...

大神能不能出一下教程,刷818变砖头了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2020-12-26 23:05 | 显示全部楼层
感谢分享,我的斐讯HGE712 7620A 也是刷了breed ,只有Padavan能正常重启,openwrt好几个版本都是reboot  起不来,只能拨电源。  看来确实和内核有关。  以后补补重新编译的知识,解决这软重启失败的问题
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-23 17:58

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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