一,安装armbian:
建议刷5.91-5.1.15内核版 ,5.94的不稳定,emmc版op建议刷5.6版或者刷直刷版不刷armbian
1. 使用usb image tool刷入armbian镜像,点reset,再格式化U盘,一般会自动弹出格式化窗口,没弹就手动格式化,再点restore刷入镜像。注意:刷完后或者插入电脑后如果弹出格式化窗口,千万不要格式化
2. 修改dtb配置
5.6:无需修改
5.91:
1.刷入U盘后,把meson-gxl-s905d-phicomm-n1-k510-snail.dtb复制到U盘的dtb文件夹
2.把U盘的uEnv.ini的dtb路径替换为dtb_name=/dtb/meson-gxl-s905d-phicomm-n1-k510-snail.dtb
5.94 flippy:
1.刷入U盘后,把meson-gxl-s905d-phicomm-n1-fixload.dtb复制到U盘的dtb文件夹
2.把U盘的uEnv.ini的dtb路径修改为dtb_name=/dtb/meson-gxl-s905d-phicomm-n1-fixload.dtb
二,刷入EMMC:
不刷入可忽略:建议先直接刷入emmc,因为在U盘上安装docker或容器会报错
armbian的ssh登录ip为路由器上看到的aml地址,密码:1234
1.刷入U盘并修改好相应的dtb文件后,N1进线刷模式的瞬间插入U盘启动armbian系统,
2可接屏幕看启动情况,.N1插网线,如果最后显示aml login的字眼,或者在路由器管理页查看有aml的标识,说明启动成功,同时记住aml的ip,注意filppy的5.94初次启动要等待6分钟左右
3.登录ssh,在moba工具设armbian的ip和指定用户名root,初次登录输入密码1234,密码无显示,但实际已输入,提示再次输入密码,然后提示建新密码和再次输入,最后同时按ctrl+c,再按r键重登
4.各版本刷入emmc的命令:
5.6 /boot/create-mbr-linux.sh
/root/install.sh
5.6有错误提示的话请忽略
5.91和5.94或后续新版 /root/install.sh
5.刷入emmc成功后 执行poweroff 即可关机,然后拔U盘开机
三,5.94 flippy版先执行下面步骤1和步骤2,其他版本直接从步骤3开始
1. 逐行回车执行以下指令
cat >> /etc/modprobe.d/99-local.conf <<EOF
blacklist meson_gxbb_wdt
EOF
reboot
2.把附件的sysctl.conf文件替换armbian的etc目录同名文件,然后执行sysctl -p
3.开启BBR加速:
cat >> /etc/sysctl.conf << EOF
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
EOF
sysctl -p
四,更换国内源:
我是学这个换的https://www.right.com.cn/forum/thread-430903-1-1.html,但我用的是XQ7大神给的清华源:
1,先执行nano /etc/apt/sources.list,
2,在自带的源deb前面加上#注释掉,变成紫色。
3,把下面的对应版本的源全部复制粘贴回车,最后按ctrl+x,按Y确定。最后按回车
4,最后执行apt-get update
更新源5.6+5.77 (debian 9):
deb http://mirrors.tuna.tsinghua.edu.cn/debian stretch main contrib non-free
deb http://mirrors.tuna.tsinghua.edu.cn/debian stretch-updates main contrib non-free
deb http://mirrors.tuna.tsinghua.edu.cn/debian-security stretch/updates main contrib non-free
deb http://mirrors.tuna.tsinghua.edu.cn/debian stretch-backports main
5.91 5.94或后续新版(debian10):
deb http://mirrors.tuna.tsinghua.edu.cn/debian buster main contrib non-free
deb http://mirrors.tuna.tsinghua.edu.cn/debian buster-updates main contrib non-free
deb http://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free
deb http://mirrors.tuna.tsinghua.edu.cn/debian buster-backports main
五,安装所有常用包:
5.6/5.77:apt install ipset tcpdump pppoe pppoeconf net-tools git dnsmasq isc-dhcp-server cifs-utils tcptraceroute iftop telnet -y
5.91 5.94或后续新版:可以不用执行上面的命令,因为新版的一般都自带了。
版权声明
1.本站大部分下载资源收集于网络,不保证其完整性以及安全性,请下载后自行测试。
2.本站资源仅供学习和交流使用,版权归资源原作者所有,请在下载后24小时之内自觉删除。
3.若作商业用途,请购买正版,由于未及时购买和付费发生的侵权行为,与本站无关。
4.若内容涉及侵权或违法信息,请联系本站管理员进行下架处理,邮箱ganice520@163.com(本站不支持其他投诉反馈渠道,谢谢合作)
发表评论