N1盒子解決安卓TV系統(tǒng)卡畫面不進系統(tǒng)重刷最新armbian鏡像安裝方法

root@armbian:~# uname -a
Linux armbian 5.15.123-ophub #1 SMP PREEMPT Thu Jul 27 10:33:04 EDT 2023 aarch64 aarch64 aarch64 GNU/Linux
準備鏡像
前提是N1盒子已經(jīng)更改過系統(tǒng)能通過ADB命令 獲取IP地址和執(zhí)行操作,
Armbian_23.08.0_amlogic_s905d_lunar_5.15.123_server_2023.08.01.img
1. 燒錄U盤
使用usb image tool或者Rufus將下載下來的鏡像解壓后寫到U盤,過程比較簡單。
什么都不用改,能直接使用。
1. u盤啟動N1
adb命令:
準備好adb WIN端程序
制作好的U盤可以直接插入N1,插入后執(zhí)行;
D:\1_MYTOOL\2_軟件\N1刷機\1308 adb>adb connect 192.168.1.118
connected to 192.168.1.118:5555
D:\1_MYTOOL\2_軟件\N1刷機\1308 adb>adb reboot update
如果一切順利,三分鐘左右,Armbian 就啟動起來了。主路由器如果開啟 DHCP,IP 可能會有變化,進去主路由器后臺看看 IP 地址,然后就可以 SSH 登錄進去。(用戶名 root,密碼 1234)
設置:
Creating a new user account. Press <Ctrl-C> to abort
Please provide a username (eg. your first name): ubuntu
Create user (ubuntu) password: ***********
Repeat user (ubuntu) password: ***********
Please provide your real name: Ubuntu
寫入emmc系統(tǒng)
刷 Armbian 到 eMMC
執(zhí)行如下命令即可刷入:
nand-sata-install
完成后 關(guān)機拔掉U盤,重新上電即可。
如果想重刷 Armbian 系統(tǒng),插U盤啟動 Armbian,重新執(zhí)行 nand-sata-install 即可完整覆蓋 eMMC 數(shù)據(jù)。
參考
https://cyhour.com/1333/
寫入EMMC過程選選項:
101? ?s905d? ? ? Phicomm-N1? ? ? ? ? ? ? ? ? ? ? ? ? meson-gxl-s905d-phicomm-n1.? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 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? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
108? ?s905x? ? ? T95,XiaoMI-3S,X96? ? ? ? ? ? ? ? ? ?meson-gxl-s905x-p212.dtb? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
109? ?s905x? ? ? TBee? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? meson-gxl-s905x-tbee.dtb? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
110? ?s905w? ? ? TX3-Mini? ? ? ? ? ? ? ? ? ? ? ? ? ? meson-gxl-s905w-tx3-mini.dt? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? b
--------------------------------------------------------------------------------? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ------
111? ?s905w? ? ? W95? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?meson-gxl-s905w-p281.dtb? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
112? ?s905w? ? ? X96-Mini? ? ? ? ? ? ? ? ? ? ? ? ? ? me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? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
118? ?s905l3? ? ?UNT400G1? ? ? ? ? ? ? ? ? ? ? ? ? ? meson-gxl-s905l2-x7-5g.dtb? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
119? ?s905l3? ? ?CM211-1? ? ? ? ? ? ? ? ? ? ? ? ? ? ?meson-gxl-s905l3b-m302a.dtb? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
120? ?s905l3b? ? E900V22D,TY1608? ? ? ? ? ? ? ? ? ? ?meson-gxl-s905l2-x7-5g.dtb? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
--------------------------------------------------------------------------------? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ------
121? ?s905l3b? ? E900V21E,E900V22E? ? ? ? ? ? ? ? ? ?meson-gxl-s905l3b-e900v22e.? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? dtb
122? ?s905l3b? ? M302A,M304A,CM211-1,CM311-1? ? ? ? ?meson-gxl-s905l3b-m302a.dtb? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
123? ?s905l3b? ? IP103H,TY1608,ZXV10-BV310? ? ? ? ? ?meson-gxl-s905l3b-m302a.dtb? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
124? ?s905lb? ? ?BesTV-R3300L,SumaVision-Q7,MG101? ? meson-gxl-s905x-p212.dtb? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
125? ?s905lb? ? ?Q96-mini? ? ? ? ? ? ? ? ? ? ? ? ? ? meson-gxl-s905x-p212.dtb? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
126? ?s905l? ? ? UNT402A,M201-S? ? ? ? ? ? ? ? ? ? ? meson-gxl-s905l3b-m302a.dtb? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
0? ? ?Other? ? ? Customize? ? ? ? ? ? ? ? ? ? ? ? ? ?Enter-custom-dtb-name? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ??
--------------------------------------------------------------------------------? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ------
[ OPTIONS ] Please Input ID:101
[ OPTIONS ] Please Input ID: 101
[ INFO ] Input Box ID: [ 101 ]
[ INFO ] Model Name: [ Phicomm-N1 ]
[ INFO ] FDTFILE: [ meson-gxl-s905d-phicomm-n1.dtb ]
[ INFO ] MAINLINE_UBOOT: [? ]
[ INFO ] BOOTLOADER_IMG:? [ u-boot-2015-phicomm-n1.bin ]
[ INFO ] UBOOT_OVERLOAD: [ u-boot-n1.bin ]
[ INFO ] NEED_OVERLOAD: [ no ]
[ STEPS ] Which type of filesystem do you want for your root?
-----------------------------------------------
? ID? ?TYPE
-----------------------------------------------
? 1? ? ext4
? 2? ? btrfs
-----------------------------------------------
[ OPTIONS ] Please Input ID (1/2): 1
網(wǎng)卡配置修改
網(wǎng)卡模式為改為 auto,固定網(wǎng)卡 mac 地址(據(jù)說不指定每次重啟會有不一樣的 mac 地址)
vi /etc/network/interfaces
參考:
source /etc/network/interfaces.d/*
# Wired adapter #1
#allow-hotplug eth0
auto eth0
no-auto-down eth0
iface eth0 inet dhcp
hwaddress fc:7b:07:87:44:33
#address 192.168.0.100
#netmask 255.255.255.0
修改時區(qū)、自動同步時間
執(zhí)行 date 可以獲取系統(tǒng)當前時間,如:Thu May 7 15:17:10 CST 2020
執(zhí)行命令更改為中國上海時區(qū):
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
提示 cp: overwrite ‘/etc/localtime’? 時,輸入 y 按回車確認即可。
[root@rd ~]# cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
cp: overwrite ‘/etc/localtime’? y
設置時間自動同步
sudo apt -y install ntp
sudo apt -y install ntpdate
ntpdate -u ntp.aliyun.com #阿里云 ntp 服務器
crontab -e #設置定時同步
crontab 定時任務(每20分鐘同步)
*/20 * * * * /sbin/ntpdate -u ntp.aliyun.com > /dev/null 2>&1
安裝/配置 docker
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh --mirror Aliyun #調(diào)用阿里云鏡像
使用上述命令安裝會調(diào)用阿里云鏡像,安裝速度更快。
配置 docker 使用阿里云鏡像加速
N1 Armbian 網(wǎng)絡沒有科學工具加持,pull OpenWrt 鏡像速度可能會很慢,改阿里云 docker 鏡像可以加速。
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
? "registry-mirrors": ["https://ooxxooxx.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
阿里云鏡像加速器地址獲?。篽ttps://cr.console.aliyun.com/cn-beijing/instances/mirrors,用你的實際加速地址,替換上面的 https://ooxxooxx.mirror.aliyuncs.com