找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 5929|回复: 9

优酷路由宝xcloudos固件修改

[复制链接]
发表于 2018-8-9 08:06 | 显示全部楼层 |阅读模式
XCLOUDOS固件

请大神帮忙把此固件加入对优酷路由宝SD卡的支持!看了好多,但是搞不懂,谢谢帮忙!


查论坛里说是dts未对tf卡支持,说是在tools/ramips/dts里找到联想Y1的dts文件,添加以下代码进去即可。

sdhci@10130000 {
                compatible = "ralink,mt7620-sdhci";
                reg = <0x10130000 4000>;

                interrupt-parent = <&intc>;
                interrupts = <14>;

                status = "okay";
        };

然后在menuconfig里添加sd mmc的驱动,在kernel moudle下的other moudle里

    kmod-mmc
    kmod-sdhci
    kmod-sdhci-mt7620

然后添加以下几个文件选项,这样就可以看到路由宝的tf卡了。
kmod-nls-cp437
kmod-nls-iso8859-1
kmod-nls-utf8
我的恩山、我的无线 The best wifi forum is right here.
发表于 2018-8-12 00:44 来自手机 | 显示全部楼层
如意云固件有什么好,早在cc15.05时代就已经有人将yk1搜索一下openwrt yk1 patch应该能搜索到,只是那个patch确实有意无意的导致tf卡无法识别,自己比对一下吧,只是一个字符的事情。
现在的openwrt 18.06.0更是解决了reboot问题,但是无线应该还是有问题了。yk1早就受openwrt支持了,没必要用这些不提供imagebuilder的第三方系统。
编译了一个解决开源驱动的版本,在公司已经替换掉潘多拉,2.4G应该是相当稳定。
http://192.243.113.43:8080/18060/yk1.18.06.0.tar.gz

点评

大神,我刷了你发编译的18.06固件,优酷路由宝SD卡已经重新分区识别到,并开机挂载了.请教下,如何把软件都安装到SD卡上呢? 正常安装软件 overlay会提示空间不足的.怎么挂载到SD卡上呢? 就想搭个ONMP,跑个小博客啥的.只  详情 回复 发表于 2018-8-13 10:24
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-12 10:02 来自手机 | 显示全部楼层
本帖最后由 13062678135 于 2018-8-12 10:04 编辑

个人使用体验发现mac80211(backport2017-11-01)配合hostapd(2016-12-19)版本这个组合来使用,youku-yk1的无线非常好。我使用了cc3.18.23,3.18.109,lede17.01.0,17.01.2这4个版本使用的。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-12 10:40 | 显示全部楼层
这个是根据最新的lede 17.01.5提出的修复,仅适合cc 15.05.5系列,还没尝试在cc 15.05.5编译过,应该没什么问题。openwrt 18.06.0 版本的推出,解决了mtk7620 硬件nat这个可以让pppoe-want接口跑满100mbps,虽然看起来还是跟很多kmod功能有冲突,另外解决了长期以来针对32M flash的reboot问题。所以18.06.0版本还是值得使用,最关键它是openwrt的官方版本。第三方的版本总是搞一些不兼容在线的版本,如果对方不提供imagebuilder sdk包,自己想解决有代码也是没有办法的。
关于mac80211驱动,从cc 15.05.5用到openwrt 18.06.0不打补丁没有任何一个版本2.4G稳定,表现在通过windows共享全速拷贝文件有95%的机率会导致无线立刻异常只能重启解决。特别在公司环境异常情况更明显。然后因为开放源代码吗,总是有意无意的引入新的bug,而在17.01.05版本的一个patch竟然回退到cc 15.05.5时代。目前针对mtk7620还是打了2个patch,目前测试下来应该是可以达到99%的正常1%在公司环境可能配置特殊基本通过wifi down;wifi也是能解决的。


  1. /dts-v1/;

  2. /include/ "mt7620a.dtsi"

  3. / {
  4.         compatible = "YOUKU-YK1", "ralink,mt7620a-soc";
  5.         model = "YOUKU YK1";

  6.         palmbus@10000000 {

  7.                 gpio0: gpio@600 {
  8.                         status = "okay";
  9.                 };

  10.                 gpio1: gpio@638 {
  11.                 status = "okay";
  12.                 };

  13.                 gpio2: gpio@660 {
  14.                         status = "okay";
  15.                 };

  16.                 gpio3: gpio@688 {
  17.                         status = "okay";
  18.                 };

  19.                 spi@b00 {
  20.                         status = "okay";

  21.                         m25p80@0 {
  22.                                 #address-cells = <1>;
  23.                                 #size-cells = <1>;
  24.                                 compatible = "w25q256";
  25.                                 #compatible = "jedec,spi-nor";
  26.                                 reg = <0 0>;
  27.                                 linux,modalias = "m25p80", "w25q256";
  28.                                 spi-max-frequency = <10000000>;

  29.                                 partition@0 {
  30.                                         label = "u-boot";
  31.                                         reg = <0x0 0x30000>;
  32.                                         read-only;
  33.                                 };

  34.                                 partition@30000 {
  35.                                         label = "u-boot-env";
  36.                                         reg = <0x30000 0x10000>;
  37.                                         read-only;
  38.                                 };

  39.                                 factory: partition@40000 {
  40.                                         label = "factory";
  41.                                         reg = <0x40000 0x10000>;
  42.                                         read-only;
  43.                                 };

  44.                                 partition@50000 {
  45.                                         label = "firmware";
  46.                                         reg = <0x50000 0x1fb0000>;
  47.                                 };
  48.                         };
  49.                 };
  50.         };

  51.         pinctrl {
  52.                 state_default: pinctrl0 {
  53.                         default {
  54.                                 ralink,group = "i2c", "rgmii1", "ephy", "wled";
  55.                                 ralink,function = "gpio";
  56.                         };
  57.                 };
  58.         };

  59.         ethernet@10100000 {
  60.                 pinctrl-names = "default";
  61.                 mtd-mac-address = <&factory 0x4>;
  62.                 ralink,port-map = "llllw";
  63.         };

  64.         wmac@10180000 {
  65.                 ralink,mtd-eeprom = <&factory 0>;
  66.         };

  67.         sdhci@10130000 {
  68.                 status = "okay";
  69.         };

  70.         ehci@101c0000 {
  71.                 status = "okay";
  72.         };

  73.         ohci@101c1000 {
  74.                 status = "okay";
  75.         };

  76.         gpio-leds {
  77.                 compatible = "gpio-leds";

  78.         wan {
  79.                 label = "youku-yk1:blue:wan";
  80.                 gpios = <&gpio2 4 1>;                
  81.         };

  82.         air {
  83.                 label = "youku-yk1:blue:air";
  84.                 gpios = <&gpio3 0 1>;
  85.                 };
  86.         usb {
  87.                 label = "youku-yk1:blue:usb";
  88.                 gpios = <&gpio1 11 1>;
  89.                 };
  90.         power {
  91.                 label = "youku-yk1:blue:power";
  92.                 gpios = <&gpio1 5 1>;
  93.                 };
  94.         };

  95.         gpio-keys-polled {
  96.                 compatible = "gpio-keys-polled";
  97.                 #address-cells = <1>;
  98.                 #size-cells = <0>;
  99.                 poll-interval = <20>;

  100.                 reset {
  101.                         label = "reset";
  102.                         gpios = <&gpio0 1 1>;
  103.                         linux,code = <0x198>;
  104.                 };
  105.         };
  106. };

复制代码



我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-12 12:17 来自手机 | 显示全部楼层
你会发现18.06.0的无线是mac80211-backports2017-11-01配hostapd-2018版本的。而无线掉线都是因为hostapd引起的。使用hostapd2016的就正常。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-12 19:13 | 显示全部楼层
这是在公司环境生成的kernel log其中最经典的就是下面这个错误,如果不打补丁这个错误一出,除了重启没有任何办法。而且这个错误基本可以100%复现,简单到全速拷贝文件就可以立刻让mtk7620无线挂掉。18.06.0依然没有解决这个问题,但是注意到17.01.5提出了一个patch,这个patch回退到cc15.05.5版本,也不知道是否是这个patch的作用,又或者dts有部分更新似乎通过wifi off;wifi也能解决问题,当然公司里的配置用了virtual**接口可能并不一定是wifi问题导致的。从cc15.05.5到openwrt 18.06.0就一直应用这个999-rt2x00-queue-update.patch,没这个补丁mtk7620随时就挂。

ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
  1. Firmware Version        OpenWrt 18.06.0 r7188-b0b5c64c22 / LuCI openwrt-18.06 branch (git-18.212.17881-e290fe9)
  2. Uptime        11d 10h 17m 52s

  3. [11226.849943] mtk_soc_eth 10100000.ethernet eth0: port 0 link up (100Mbps/Full duplex)
  4. [11762.829925] ieee80211 phy0: rt2800mmio_watchdog_tx_dma: Warning - TX queue 2 DMA timed out, invoke forced reset
  5. [11762.855167] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  6. [11763.316501] ieee80211 phy0: rt2800mmio_watchdog_tx_dma: Warning - TX queue 2 DMA timed out, invoke forced reset
  7. [11763.340303] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  8. [11764.145005] ieee80211 phy0: rt2800mmio_watchdog_tx_dma: Warning - TX queue 2 DMA timed out, invoke forced reset
  9. [11765.811734] ieee80211 phy0: rt2800mmio_watchdog_tx_dma: Warning - TX queue 2 DMA timed out, invoke forced reset
  10. [11767.060518] ieee80211 phy0: rt2800mmio_watchdog_tx_dma: Warning - TX queue 2 DMA timed out, invoke forced reset
  11. [11767.893192] ieee80211 phy0: rt2800mmio_watchdog_tx_dma: Warning - TX queue 2 DMA timed out, invoke forced reset
  12. [79074.285802] mtk_soc_eth 10100000.ethernet eth0: port 0 link up (100Mbps/Full duplex)
  13. [79597.214388] ieee80211 phy0: rt2800mmio_watchdog_tx_dma: Warning - TX queue 2 DMA timed out, invoke forced reset
  14. [79597.266159] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  15. [79597.284661] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  16. [79597.303679] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  17. [79601.974448] ieee80211 phy0: rt2800mmio_watchdog_tx_dma: Warning - TX queue 2 DMA timed out, invoke forced reset
  18. [79604.017642] ieee80211 phy0: rt2800mmio_watchdog_tx_dma: Warning - TX queue 2 DMA timed out, invoke forced reset
  19. [103522.931191] mtk_soc_eth 10100000.ethernet eth0: port 1 link down
  20. [103525.846467] mtk_soc_eth 10100000.ethernet eth0: port 1 link up (100Mbps/Full duplex)
  21. [110018.065089] ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
  22. [110018.083752] ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
  23. [110018.102348] ieee80211 phy0: rt2x00queue_write_tx_frame: Error - Dropping frame due to full tx queue 2
  24. [171145.860433] mtk_soc_eth 10100000.ethernet eth0: port 0 link down
  25. [171147.022054] mtk_soc_eth 10100000.ethernet eth0: port 0 link up (100Mbps/Full duplex)
  26. [276692.686736] mtk_soc_eth 10100000.ethernet eth0: port 0 link down
  27. [276703.839253] mtk_soc_eth 10100000.ethernet eth0: port 0 link up (100Mbps/Full duplex)
  28. [281289.538876] ieee80211 phy0: rt2800mmio_watchdog_tx_dma: Warning - TX queue 2 DMA timed out, invoke forced reset
  29. [281291.159015] ieee80211 phy0: rt2800mmio_watchdog_tx_dma: Warning - TX queue 2 DMA timed out, invoke forced reset
  30. [315278.742668] mtk_soc_eth 10100000.ethernet eth0: port 0 link down
  31. [315280.552354] mtk_soc_eth 10100000.ethernet eth0: port 0 link up (100Mbps/Full duplex)
  32. [316235.461007] ieee80211 phy0: rt2800mmio_watchdog_tx_dma: Warning - TX queue 2 DMA timed out, invoke forced reset
  33. [316235.491370] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  34. [316238.674398] ieee80211 phy0: rt2800mmio_watchdog_tx_dma: Warning - TX queue 2 DMA timed out, invoke forced reset
  35. [316238.706308] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  36. [316238.725271] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  37. [316238.761792] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  38. [316238.781103] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  39. [316238.846423] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  40. [316238.866683] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  41. [316238.896984] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  42. [316238.920739] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  43. [316238.941621] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  44. [316238.962672] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  45. [316238.996440] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  46. [316239.019502] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  47. [316239.041292] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  48. [316239.061903] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  49. [316239.082552] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  50. [316239.102969] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  51. [316239.125487] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  52. [316239.144410] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  53. [316239.167451] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  54. [316239.186802] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  55. [316239.207060] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  56. [316239.248064] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
  57. [316239.316837] ieee80211 phy0: rt2800mmio_txdone: Warning - Got TX status for an empty queue 2, dropping
复制代码




我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-12 19:21 来自手机 | 显示全部楼层
哦,我没碰到过这个报错。。。。。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-8-13 10:24 | 显示全部楼层
dato 发表于 2018-8-12 00:44
如意云固件有什么好,早在cc15.05时代就已经有人将yk1搜索一下openwrt yk1 patch应该能搜索到,只是那个pat ...

大神,我刷了你发编译的18.06固件,优酷路由宝SD卡已经重新分区识别到,并开机挂载了.请教下,如何把软件都安装到SD卡上呢? 正常安装软件 overlay会提示空间不足的.怎么挂载到SD卡上呢? 就想搭个ONMP,跑个小博客啥的.只要路由开着,就可以访问.

本帖子中包含更多资源

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

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-13 14:17 | 显示全部楼层
好久没用overlay,以前的日记应该这样就可以了
把sda2替换成mmcblk0
  1. 8,在u盘上使用/overlay分区,这样可以极大的扩充软件包安装
  2. mkdir /system
  3. mount /dev/sda2 /system
  4. cp -a /overlay/* /system

  5. 查询uuid
  6. root@OpenWrt:/etc# block info
  7. /dev/mtdblock5: UUID="fe512aca-5dbca57e-76d74a92-9edce276" VERSION="1024.0" TYPE="squashfs"
  8. /dev/mtdblock6: TYPE="jffs2"
  9. /dev/sda: VERSION="2" TYPE="swap"
  10. /dev/sda1: VERSION="2" TYPE="swap"
  11. /dev/sda2: UUID="37ed93f4-03f1-4525-8b41-67801b96eb81" VERSION="1.0" TYPE="ext2"

  12. 修改/etc/config/fstab
  13. ----------------------------------
  14. config mount
  15.         option target '/overlay' #注意有时候可能是'/overlay/'
  16.         option uuid '37ed93f4-03f1-4525-8b41-67801b96eb81'
  17.         option enabled '1'
  18.         option fstype 'ext2'
  19.         option options 'rw,sync'

  20. config swap
  21.         option enabled '1'
  22.         option device '/dev/sda1'
  23. ----------------------------------

  24. 然后reboot重启,这样一个基本的openwrt系统已经完成
复制代码


我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-13 14:18 | 显示全部楼层
好久没用overlay,以前的日记应该这样就可以了
把sda2替换成mmcblk0
  1. 8,在u盘上使用/overlay分区,这样可以极大的扩充软件包安装
  2. mkdir /system
  3. mount /dev/sda2 /system
  4. cp -a /overlay/* /system

  5. 查询uuid
  6. root@OpenWrt:/etc# block info
  7. /dev/mtdblock5: UUID="fe512aca-5dbca57e-76d74a92-9edce276" VERSION="1024.0" TYPE="squashfs"
  8. /dev/mtdblock6: TYPE="jffs2"
  9. /dev/sda: VERSION="2" TYPE="swap"
  10. /dev/sda1: VERSION="2" TYPE="swap"
  11. /dev/sda2: UUID="37ed93f4-03f1-4525-8b41-67801b96eb81" VERSION="1.0" TYPE="ext2"

  12. 修改/etc/config/fstab
  13. ----------------------------------
  14. config mount
  15.         option target '/overlay' #注意有时候可能是'/overlay/'
  16.         option uuid '37ed93f4-03f1-4525-8b41-67801b96eb81'
  17.         option enabled '1'
  18.         option fstype 'ext2'
  19.         option options 'rw,sync'

  20. config swap
  21.         option enabled '1'
  22.         option device '/dev/sda1'
  23. ----------------------------------

  24. 然后reboot重启,这样一个基本的openwrt系统已经完成
复制代码


我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-3-29 22:18

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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