月度归档:2020年08月

关于nanopi R2S的一些记录

这个机器看似网上资料很多,实际上要找的东西还是很难找到。这里记录一下。方便自己,方便他人。

首先,ubuntu的固件,root密码是fa,普通用户的用户名是pi,密码也是pi

另外这个机器的下载资源在这里。https://dl.friendlyarm.com/nanopir2s

rk3328-sd-friendlycore-bionic-5.4-arm64-20200707.img这个文件名就是ubuntu 18.04系统

下载后解压,烧写到TF卡里面,插上R2S,启动。路由器网口插在R2S的WAN即可,等待几分钟,去路由器里面看NanoPi-R2S分配的IP就是它,通过ssh登录。

这个机器自带的源有问题,下载不了,我已经更换为中科大的源。

deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse

 

 

维修师收到一台4G-AC68U维修,来看看和常见的AC68U版本有何硬件上的不同

对于华硕的RT-AC68U,相信大家即便是没有使用过也会对这个型号非常的熟悉,因为在梅林路由器里面,这个路由器可以说是最出名的。从2016年开始,这台设备至今仍然在许多家庭服役。但是你们可曾见过4G-AC68U这个型号的路由器?猫猫无线今天也是第一次收到这样的实物维修,来看看它和AC68U有哪些本质不同吧。

 

 

记录一下ubnt SDK的编译

首先需要安装32位linux环境,注意64位系统是不行的。原因也很简单,UBNT释放出SDK的时候,大概是在2011年左右,那个时候32位系统还是主流,64位系统非常少见。所以UBNT的SDK当时是在32位系统上运行的。根本没有考虑过兼容64位系统。

我使用的是ubuntu-14.04 32位版本。

如果使用更新的版本比如16.04会报错,原因不明。避开就好。

安装好后,需要安装下列包。

bash make gcc quilt bison flex autoconf libtool libncurses5-dev subversion wget g++ gawk zlib1g-dev cvs yui-compressor

然后解压缩SDK,运行make即可,如果有遗漏的包,系统会提示你的。

结果,还是不行,会报错。

quilt requires at least version 2.4 of GNU patch. You can download

无奈退回到ubuntu12.04

经过一番安装,终于进入系统。

问题来了,发现系统自带的源早已无法使用了。

我把源更新为阿里云的ubuntu14(参考网址https://www.jianshu.com/p/3fd50eaf9b6c)

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse

然后安装bash make gcc quilt bison flex autoconf libtool libncurses5-dev subversion wget g++ gawk zlib1g-dev cvs yui-compressor

然后make,目前暂时没发现问题。

error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.

今天在复制一个代码库的时候报错。

error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was received.
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

系统使用的是 Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-111-generic x86_64)

解决办法。

$ sudo apt-get purge git
$ sudo apt-get install git

问题解决。

更新,以上似乎不能根治,下次还会出现。

实际上,由于git默认缓存大小不足导致的。
解决方法是:使用下面的命令增加缓存大小。

git config –global http.postBuffer 2000000000

乐歌升降桌显示AST或者RST,无法升起的问题解决

乐歌升降桌,一次拔电后再插电,控制面板显示AST或者RST字样,无法上升也无法下降。

其实个人认为是RST,因为显示屏使用的是数码管,只能以数字的形式显示字符,所以R和A分不清。

解决方案
RST其实是提醒你升降桌需要还原。
而还原操作其实就是简单的把桌子一直摁着下降按钮,降到最低就可以了。
降到最低之后,你会发现桌子已经恢复了正常。