找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 33050|回复: 35

【荒野无灯Padavan固件】优酷路由宝L1内存卡扩展SWAP缓存+v2瑞设置详解

  [复制链接]
发表于 2018-7-17 14:22 | 显示全部楼层 |阅读模式
本帖最后由 speedturtle 于 2018-8-8 19:10 编辑

刷入固件第一件事很多人都会第一时间开启隐藏功能?


荒野无灯开启隐藏功能的三条命令(可在Telnet/SSH输入)
nvram set google_fu_mode=0xDEADBEEF      #开启google-fu(s-s)
nvram set ext_show_lse=1                            #开启KMS(可选功能,微软office认证)
nvram commit                                              #写入固件


然后接下来说下利用自带的内存卡开启SWAP分区。有啥作用,请看官方说明。 (说人话就是,设置了swap缓存,你可以用很多软件都不卡)
You may need a SWAP partition if you intend to use applications like BitTorrent-clients or applications that require large amounts of memory (download managers, 'tiny servers', etc.). Also, the presence of the SWAP partition is recommended when using a media server UPnP/DLNA, which is in the process of database creation of media content consumed a large amount of RAM.
Important note! It is not recommended to create swap files or partitions on USB hard drives. There is a risk of a system crash if the USB disk is unplugged incorrectly (for example, if router is powered off suddenly, or some other reason).


!!!以下操作有可能会导致内存卡报废,请酌情使用!!!


BusyBox v1.24.2 (2018-06-06 01:13:02 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.


[YOUKU-L1 /home/root]# nvram set google_fu_mode=0xDEADBEEF
[YOUKU-L1 /home/root]# nvram set ext_show_lse=1
[YOUKU-L1 /home/root]# nvram commit
[YOUKU-L1 /home/root]# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
tmpfs on /dev type tmpfs (rw,relatime,size=8k)
tmpfs on /etc type tmpfs (rw,noatime,size=4096k)
tmpfs on /home type tmpfs (rw,relatime,size=1024k)
tmpfs on /media type tmpfs (rw,relatime,size=8k)
tmpfs on /mnt type tmpfs (rw,relatime,size=8k)
tmpfs on /tmp type tmpfs (rw,relatime,size=32768k)
tmpfs on /var type tmpfs (rw,relatime,size=4096k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mmcblk0p1 on /media/AiCard_01 type vfat (rw,noatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp866,iocharset=utf8,shortname=winnt,errors=remount-ro)
/dev/mmcblk0p2 on /media/AiCard_02 type vfat (rw,noatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp866,iocharset=utf8,shortname=winnt,errors=remount-ro)
/dev/mmcblk0p3 on /media/AiCard_03 type vfat (rw,noatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp866,iocharset=utf8,shortname=winnt,errors=remount-ro)
/dev/mmcblk0p5 on /media/AiCard_05 type vfat (rw,noatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp866,iocharset=utf8,shortname=winnt,errors=remount-ro)
/dev/mmcblk0p6 on /media/AiCard_06 type vfat (rw,noatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp866,iocharset=utf8,shortname=winnt,errors=remount-ro)
/dev/mmcblk0p7 on /media/AiCard_07 type vfat (rw,noatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=cp866,iocharset=utf8,shortname=winnt,errors=remount-ro)


[YOUKU-L1 /home/root]# df -a
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                   12288     12288         0 100% /
/dev/root                12288     12288         0 100% /
proc                         0         0         0   0% /proc
sysfs                        0         0         0   0% /sys
usbfs                        0         0         0   0% /proc/bus/usb
tmpfs                        8         0         8   0% /dev
tmpfs                     4096       692      3404  17% /etc
tmpfs                     1024         4      1020   0% /home
tmpfs                        8         0         8   0% /media
tmpfs                        8         0         8   0% /mnt
tmpfs                    32768        76     32692   0% /tmp
tmpfs                     4096       228      3868   6% /var
devpts                       0         0         0   0% /dev/pts
/dev/mmcblk0p1          129053       448    128605   0% /media/AiCard_01
/dev/mmcblk0p2          129053         4    129049   0% /media/AiCard_02
/dev/mmcblk0p3         2093060   1640824    452236  78% /media/AiCard_03
/dev/mmcblk0p5         2093060   1757068    335992  84% /media/AiCard_05
/dev/mmcblk0p6         2093060   1758576    334484  84% /media/AiCard_06
/dev/mmcblk0p7         1209024    761108    447916  63% /media/AiCard_07


[YOUKU-L1 /home/root]# umount /dev/mmcblk0p1
[YOUKU-L1 /home/root]# umount /dev/mmcblk0p2
[YOUKU-L1 /home/root]# umount /dev/mmcblk0p3
[YOUKU-L1 /home/root]# umount /dev/mmcblk0p5
[YOUKU-L1 /home/root]# umount /dev/mmcblk0p6
[YOUKU-L1 /home/root]# umount /dev/mmcblk0p7
[YOUKU-L1 /home/root]# cat /proc/partitions


major minor  #blocks  name
  31        0        192 mtdblock0
  31        1         64 mtdblock1
  31        2         64 mtdblock2
  31        3       1222 mtdblock3
  31        4      30201 mtdblock4
  31        5       1024 mtdblock5
  31        6      31424 mtdblock6
179        0    7769088 mmcblk0
179        1     131072 mmcblk0p1
179        2     131072 mmcblk0p2
179        3    2097152 mmcblk0p3
179        4                1 mmcblk0p4
179        5    2097152 mmcblk0p5
179        6    2097152 mmcblk0p6
179        7    1211389 mmcblk0p7


[YOUKU-L1 /home/root]# fdisk -u /dev/mmcblk0


The number of cylinders for this disk is set to 242784.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)


Command (m for help): m
Command Action
a       toggle a bootable flag
b       edit bsd disklabel
c       toggle the dos compatibility flag
d       delete a partition
l       list known partition types
n       add a new partition
o       create a new empty DOS partition table
p       print the partition table
q       quit without saving changes
s       create a new empty Sun disklabel
t       change a partition's system id
u       change display/entry units
v       verify the partition table
w       write table to disk and exit
x       extra functionality (experts only)


Command (m for help): d
Partition number (1-7): 1


Command (m for help): d
Partition number (1-7): 2


Command (m for help): d
Partition number (1-7): 3


Command (m for help): d
Partition number (1-7): 5


Command (m for help): d
Partition number (1-6): 6


Command (m for help): d
Partition number (1-5): 7
Value is out of range
Partition number (1-5): d
Partition number (1-5): 5


Command (m for help): d
Selected partition 4


Command Action
a       toggle a bootable flag
b       edit bsd disklabel
c       toggle the dos compatibility flag
d       delete a partition
l       list known partition types
n       add a new partition
o       create a new empty DOS partition table
p       print the partition table
q       quit without saving changes
s       create a new empty Sun disklabel
t       change a partition's system id
u       change display/entry units
v       verify the partition table
w       write table to disk and exit
x       extra functionality (experts only)


Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First sector (2048-15538175, default 2048): Using default value 2048
Last sector or +size or +sizeM or +sizeK (2048-15538175, default 15538175): +256M


Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 2
First sector (502049-15538175, default 502049): Using default value 502049
Last sector or +size or +sizeM or +sizeK (502049-15538175, default 15538175): Using default value 15538175


Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): 82
Changed system type of partition 1 to 82 (Linux swap)


Command (m for help): p


Disk /dev/mmcblk0: 7955 MB, 7955546112 bytes
4 heads, 16 sectors/track, 242784 cylinders, total 15538176 sectors
Units = sectors of 1 * 512 = 512 bytes


        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1            2048      502048      250000+ 82 Linux swap
Partition 1 does not end on cylinder boundary
/dev/mmcblk0p2          502049    15538175     7518063+ 83 Linux


Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table
[YOUKU-L1 /home/root]# ejusb
[YOUKU-L1 /home/root]# mkfs.ext4 -m 0 -L Main /dev/mmcblk0p2
mke2fs 1.42.8 (20-Jun-2013)
Filesystem label=Main
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
485760 inodes, 1942272 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1992294400
60 block groups
32768 blocks per group, 32768 fragments per group
8096 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632


Allocating group tables: done                           
Writing inode tables: done                           
Creating journal (32768 blocks):




done
Writing superblocks and filesystem accounting information: done


[YOUKU-L1 /home/root]# mkswap /dev/mmcblk0p1
Setting up swapspace version 1, size = 7955542016 bytes


[YOUKU-L1 /home/root]# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
usbfs on /proc/bus/usb type usbfs (rw,relatime)
tmpfs on /dev type tmpfs (rw,relatime,size=8k)
tmpfs on /etc type tmpfs (rw,noatime,size=4096k)
tmpfs on /home type tmpfs (rw,relatime,size=1024k)
tmpfs on /media type tmpfs (rw,relatime,size=8k)
tmpfs on /mnt type tmpfs (rw,relatime,size=8k)
tmpfs on /tmp type tmpfs (rw,relatime,size=32768k)
tmpfs on /var type tmpfs (rw,relatime,size=4096k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
[YOUKU-L1 /home/root]# reboot

重启成功之后就能利用里面的8G卡安装ENTWARE环境,再装上各种插件。 具体教程可以参考Pandavan官网的说明。

最后要讲的是部署v2瑞:
1,从v2瑞官网下载对应的CORE压缩包,优酷L1 用的是v2瑞-linux-mipsle.zip大家别下错了
2,进入路由,解压v2瑞-linux-mipsle.zip解压完了以后配置config.json文件, 注意把默认生成的Listen IP地址127.0.0.1 改成优酷路由的本地IP 192.168.11.1
3,浏览器设置SwichyOmega,Socks5代理,IP 192.168.11.1, 端口XXXX。 配置没错可链接国际网络。

评分

参与人数 1恩山币 +1 收起 理由
papagogo + 1 不错,支持下

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2018-7-17 14:30 | 显示全部楼层
前排支持,学习学习
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-7-17 15:07 | 显示全部楼层
请问在优酷YK-L1刷了灯大Padavan固件之后,在哪里输入这些命令?

点评

下载个Xshell 建立 SSH或者telnet 链接  详情 回复 发表于 2018-7-17 15:35
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-7-17 15:35 | 显示全部楼层
ytzr 发表于 2018-7-17 15:07
请问在优酷YK-L1刷了灯大Padavan固件之后,在哪里输入这些命令?

下载个Xshell 建立 SSH或者telnet 链接

点评

是不是可以将原路由宝中的8G卡当作aria2下载存放目录?  详情 回复 发表于 2018-7-17 15:55
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-7-17 15:55 | 显示全部楼层
speedturtle 发表于 2018-7-17 15:35
下载个Xshell 建立 SSH或者telnet 链接

是不是可以将原路由宝中的8G卡当作aria2下载存放目录?

点评

是的。分区格式化完成之后。 等于是挂在上面的一个分区了。  详情 回复 发表于 2018-7-17 16:01
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-7-17 16:01 | 显示全部楼层
ytzr 发表于 2018-7-17 15:55
是不是可以将原路由宝中的8G卡当作aria2下载存放目录?

是的。分区格式化完成之后。 等于是挂在上面的一个分区了。

点评

你写的命令是不是都要输入进去?小白一枚,谢谢回复  详情 回复 发表于 2018-7-17 16:57
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-7-17 16:57 | 显示全部楼层
speedturtle 发表于 2018-7-17 16:01
是的。分区格式化完成之后。 等于是挂在上面的一个分区了。

你写的命令是不是都要输入进去?小白一枚,谢谢回复

点评

梅林Merlin:Asus RT-AC88U 石像鬼Gargoyle:Netgear WNDR4300 v1 荒野无灯Pavadan:Youku L1(转手中,有意者请论坛消息) 荒野无灯Pavandan:友华WR1200JS 你签名写那么多路由器,跟我说是小白。忽悠谁呢。  详情 回复 发表于 2018-7-17 17:25
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-7-17 17:25 | 显示全部楼层
ytzr 发表于 2018-7-17 16:57
你写的命令是不是都要输入进去?小白一枚,谢谢回复

梅林Merlin:Asus RT-AC88U
石像鬼Gargoyle:Netgear WNDR4300 v1
荒野无灯Pavadan:Youku L1(转手中,有意者请论坛消息)
荒野无灯Pavandan:友华WR1200JS

你签名写那么多路由器,跟我说是小白。忽悠谁呢。 自己慢慢琢磨去。

点评

这些路由器都是买回来后自己刷的新固件。作为一个没有接触过linux的文科生,没有把他们刷成砖,算是幸运的了。关键的原因是多用搜索,多看帖子,最重要的是向各位高手大神虚心请教,这样做既不会走弯路,又增长了知  详情 回复 发表于 2018-7-17 17:33
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-7-17 17:33 | 显示全部楼层
speedturtle 发表于 2018-7-17 17:25
梅林Merlin:Asus RT-AC88U
石像鬼Gargoyle:Netgear WNDR4300 v1
荒野无灯Pavadan:Youku L1(转手中 ...

这些路由器都是买回来后自己刷的新固件。作为一个没有接触过linux的文科生,没有把他们刷成砖,算是幸运的了。关键的原因是多用搜索,多看帖子,最重要的是向各位高手大神虚心请教,这样做既不会走弯路,又增长了知识。正所谓“书山有路勤为径,学海无涯苦作舟”。感谢你回复我的帖子!

点评

俺也是文科生,英语专八路过  详情 回复 发表于 2018-7-17 17:37
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-7-17 17:37 | 显示全部楼层
ytzr 发表于 2018-7-17 17:33
这些路由器都是买回来后自己刷的新固件。作为一个没有接触过linux的文科生,没有把他们刷成砖,算是幸运 ...

俺也是文科生,英语专八路过

点评

那佩服你~英语专八水平,玩路由器玩这么溜。  详情 回复 发表于 2018-7-17 20:09
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-7-17 20:09 | 显示全部楼层
speedturtle 发表于 2018-7-17 17:37
俺也是文科生,英语专八路过

那佩服你~英语专八水平,玩路由器玩这么溜。

点评

看看官网的说明就行了  详情 回复 发表于 2018-7-17 22:46
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-7-17 22:46 | 显示全部楼层
ytzr 发表于 2018-7-17 20:09
那佩服你~英语专八水平,玩路由器玩这么溜。

看看官网的说明就行了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-7-20 12:24 | 显示全部楼层
这个很有用  记号一个~~~~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-7-27 17:32 | 显示全部楼层
是否后期出的路由宝都是配这种卡的?
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-9 22:55 | 显示全部楼层
浏览器需设置SwichyOmega才能用V2Ray没什么意思,不如在电脑端运行V2RayN

点评

有浏览器插件会方便很多的  详情 回复 发表于 2018-8-22 08:40
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-3-28 16:58

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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

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