最近捡了几个盒子 准备打算拿来刷armbian玩一服务器把 本站目前还是挂载玩客云这种废物上的。。 看还能坚持多久。。。
盒子一般就是 运营商送的 Iptv盒子 方案多种多样 ,但比较多的是 晶晨S905序列和 海思
我手里都有 但S905的比较多
就用这个把。。 RAM+ROM从1+8到 4+32都有。。。下面的是一个2+8的和一个 2+32的 不要喷 标签是16 但刷机出来它是 32G的不知啥问题。。
这种盒子刷机一般要 双工USB线。 和短接主板某个位置 不一样的型号位置不一样 这里不一一讲了。 比较推荐的是你去买个HDMI短接的 基本上都通用。。。找个带ROOT的包直接烧录就就完了。。每序列 包不一样 具体其他地方搜索来刷
刷完android联网后找一下它的IP 我这里就不直接插数据线了, 用网络adb 重启一下进入U盘系统就行 插线的话装好驱动
在 adb 下 直接 adb reboot update即可
如果是网络还要找它现在的Ip 然后通过 adb connect ip:5555 连接 上的话 下面会显示 成功的英文 然后 输入 adb reboot update 或者 adb shell 进去安卓
在 reboot update 就可以插入U盘等它 进去U盘的系统了。。 有些包有可能会导致进不了。。 多试几次 不行换包。。
下面是刷 armbian的
上面是 这个盒子进去armbian U盘后的IP
ssh root@22.22.22.232 后 输入密码 1234 就来到设置向导 设置root的密码 和默认 shell 然后在设置 个个人用户名字 就完成设置。
然我还要写入 emmc里面 不要每次 用U盘 我也不要U盘..
根据自己型号 选择对应 编号 写入 emmc
-----------------------------------------------
ID TYPE
-----------------------------------------------
1 ext4
2 btrfs
这个是系统盘格式 你想选那个就那个。。
root@armbian:~# armbian-install
[ STEPS ] Installing Armbian to internal eMMC...
[ STEPS ] Checking dependencies...
[ INFO ] Dependency check completed. Proceeding installation...
[ STEPS ] Initializing the environment...
[ INFO ] Use mainline u-boot: [ no ]
[ INFO ] Using ampart tool: [ yes ]
[ INFO ] Show all lists: [ no ]
[ INFO ] Internal eMMC : [ /dev/mmcblk2 ]
[ STEPS ] Start selecting device...
--------------------------------------------------------------------------------------
ID SOC MODEL DTB
--------------------------------------------------------------------------------------
101 s905d Phicomm-N1 meson-gxl-s905d-phicomm-n1.dtb
102 s905d Phicomm-N1(DMA-thresh) meson-gxl-s905d-phicomm-n1-thresh.dtb
103 s905d MECOOL-KI-Pro meson-gxl-s905d-mecool-ki-pro.dtb
104 s905d SML-5442TW meson-gxl-s905d-sml5442tw.dtb
105 s905x HG680P meson-gxl-s905x-p212.dtb
106 s905x B860H meson-gxl-s905x-b860h.dtb
107 s905x Nexbox-a95x meson-gxl-s905x-nexbox-a95x.dtb
108 s905x TX9 meson-gxl-s905x-tx9.dtb
109 s905x T95,XiaoMI-3S,X96 meson-gxl-s905x-p212.dtb
110 s905x TBee meson-gxl-s905x-tbee.dtb
--------------------------------------------------------------------------------------
111 s905w TX3-Mini meson-gxl-s905w-tx3-mini.dtb
112 s905w W95 meson-gxl-s905w-p281.dtb
113 s905w X96-Mini meson-gxl-s905w-x96-mini.dtb
114 s905w X96W,FunTV,MXQ-Pro-4K meson-gxl-s905w-x96w.dtb
115 s905l UNT402A,M201-S meson-gxl-s905l3b-m302a.dtb
116 s905l2 MGV2000,MGV3000,M301A meson-gxl-s905l2-x7-5g.dtb
117 s905l2 E900v21E meson-gxl-s905l2-x7-5g.dtb
118 s905l2 Wojia-TV-IPBS9505 meson-gxl-s905l2-ipbs9505.dtb
119 s905l3 CM311-1,HG680-LC,M401A,UNT402A meson-gxl-s905l2-x7-5g.dtb
120 s905l3 UNT400G1 meson-gxl-s905l2-x7-5g.dtb
--------------------------------------------------------------------------------------
121 s905l3 CM211-1 meson-gxl-s905l3b-m302a.dtb
122 s905l3b E900V22D,TY1608 meson-gxl-s905l2-x7-5g.dtb
123 s905l3b E900V21E,E900V22E,MGV2000 meson-gxl-s905l3b-e900v22e.dtb
124 s905l3b M302A,M304A,CM211-1,CM311-1 meson-gxl-s905l3b-m302a.dtb
125 s905l3b IP103H,TY1608,BV310,B860AV-2.1M meson-gxl-s905l3b-m302a.dtb
126 s905lb BesTV-R3300L,SumaVision-Q7,MG101 meson-gxl-s905x-p212.dtb
127 s905lb Q96-mini meson-gxl-s905x-p212.dtb
128 s905mb S65 meson-gxl-s905x-p212.dtb
0 Other Customize Enter-custom-dtb-name
--------------------------------------------------------------------------------------
[ OPTIONS ] Please Input ID:
[1]+ Stopped armbian-install
root@armbian:~# armbian-install
[ STEPS ] Installing Armbian to internal eMMC...
[ STEPS ] Checking dependencies...
[ INFO ] Dependency check completed. Proceeding installation...
[ STEPS ] Initializing the environment...
[ INFO ] Use mainline u-boot: [ no ]
[ INFO ] Using ampart tool: [ yes ]
[ INFO ] Show all lists: [ no ]
[ INFO ] Internal eMMC : [ /dev/mmcblk2 ]
[ STEPS ] Start selecting device...
--------------------------------------------------------------------------------------
ID SOC MODEL DTB
--------------------------------------------------------------------------------------
101 s905d Phicomm-N1 meson-gxl-s905d-phicomm-n1.dtb
102 s905d Phicomm-N1(DMA-thresh) meson-gxl-s905d-phicomm-n1-thresh.dtb
103 s905d MECOOL-KI-Pro meson-gxl-s905d-mecool-ki-pro.dtb
104 s905d SML-5442TW meson-gxl-s905d-sml5442tw.dtb
105 s905x HG680P meson-gxl-s905x-p212.dtb
106 s905x B860H meson-gxl-s905x-b860h.dtb
107 s905x Nexbox-a95x meson-gxl-s905x-nexbox-a95x.dtb
108 s905x TX9 meson-gxl-s905x-tx9.dtb
109 s905x T95,XiaoMI-3S,X96 meson-gxl-s905x-p212.dtb
110 s905x TBee meson-gxl-s905x-tbee.dtb
--------------------------------------------------------------------------------------
111 s905w TX3-Mini meson-gxl-s905w-tx3-mini.dtb
112 s905w W95 meson-gxl-s905w-p281.dtb
113 s905w X96-Mini meson-gxl-s905w-x96-mini.dtb
114 s905w X96W,FunTV,MXQ-Pro-4K meson-gxl-s905w-x96w.dtb
115 s905l UNT402A,M201-S meson-gxl-s905l3b-m302a.dtb
116 s905l2 MGV2000,MGV3000,M301A meson-gxl-s905l2-x7-5g.dtb
117 s905l2 E900v21E meson-gxl-s905l2-x7-5g.dtb
118 s905l2 Wojia-TV-IPBS9505 meson-gxl-s905l2-ipbs9505.dtb
119 s905l3 CM311-1,HG680-LC,M401A,UNT402A meson-gxl-s905l2-x7-5g.dtb
120 s905l3 UNT400G1 meson-gxl-s905l2-x7-5g.dtb
--------------------------------------------------------------------------------------
121 s905l3 CM211-1 meson-gxl-s905l3b-m302a.dtb
122 s905l3b E900V22D,TY1608 meson-gxl-s905l2-x7-5g.dtb
123 s905l3b E900V21E,E900V22E,MGV2000 meson-gxl-s905l3b-e900v22e.dtb
124 s905l3b M302A,M304A,CM211-1,CM311-1 meson-gxl-s905l3b-m302a.dtb
125 s905l3b IP103H,TY1608,BV310,B860AV-2.1M meson-gxl-s905l3b-m302a.dtb
126 s905lb BesTV-R3300L,SumaVision-Q7,MG101 meson-gxl-s905x-p212.dtb
127 s905lb Q96-mini meson-gxl-s905x-p212.dtb
128 s905mb S65 meson-gxl-s905x-p212.dtb
0 Other Customize Enter-custom-dtb-name
--------------------------------------------------------------------------------------
[ OPTIONS ] Please Input ID: 119
[ INFO ] Input Box ID: [ 119 ]
[ INFO ] Model Name: [ CM311-1,HG680-LC,M401A,UNT402A ]
[ INFO ] FDTFILE: [ meson-gxl-s905l2-x7-5g.dtb ]
[ INFO ] MAINLINE_UBOOT: [ ]
[ INFO ] BOOTLOADER_IMG: [ ]
[ INFO ] UBOOT_OVERLOAD: [ u-boot-p212.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): 2
[ INFO ] Input Type ID: [ 2 ]
[ INFO ] Type of filesystem: [ btrfs ]
[ STEPS ] Partitioning eMMC...
[ INFO ] Start backing up the default bootloader.
4+0 records in
4+0 records out
4194304 bytes (4.2 MB, 4.0 MiB) copied, 1.54853 s, 2.7 MB/s
[ STEPS ] Successfully partitioned internal eMMC with amaprt.
[ INFO ] Start create MBR and partittion.
[ INFO ] 03. Write the mybox bootloader: [ /usr/lib/u-boot/mybox-bootloader.img ]
444+0 records in
444+0 records out
444 bytes copied, 0.00470888 s, 94.3 kB/s
8191+0 records in
8191+0 records out
4193792 bytes (4.2 MB, 4.0 MiB) copied, 0.377242 s, 11.1 MB/s
[ STEPS ] Processing BOOTFS partition...
[ INFO ] Formatting BOOTFS partition...
mkfs.fat 4.2 (2021-01-31)
[ INFO ] Copying BOOTFS ...
[ INFO ] Update the [ uEnv.txt ] file.
[ STEPS ] Start processing the rootfs partition...
[ INFO ] Formatting ROOTFS ...
btrfs-progs v6.2
See http://btrfs.wiki.kernel.org for more information.
Performing full device TRIM /dev/mmcblk2p2 (6.86GiB) ...
-----------------------------------------------
ID TYPE
-----------------------------------------------
1 ext4
2 btrfs
NOTE: several default settings have changed in version 5.15, please make sure
this does not affect your deployments:
- DUP for metadata (-m dup)
- enabled no-holes (-O no-holes)
- enabled free-space-tree (-R free-space-tree)
Label: ROOTFS_EMMC
UUID: d3ff2b13-e6bc-45a7-887d-dddcb7fc5e61
Node size: 16384
Sector size: 4096
Filesystem size: 6.86GiB
Block group profiles:
Data: single 8.00MiB
Metadata: single 8.00MiB
System: single 4.00MiB
SSD detected: yes
Zoned device: no
Incompat features: extref, skinny-metadata, no-holes
Runtime features: free-space-tree
Checksum: crc32c
Number of devices: 1
Devices:
ID SIZE PATH
1 6.86GiB /dev/mmcblk2p2
[ INFO ] Copying ROOTFS ...
[ INFO ] Copying [ etc ] ...
[ INFO ] Copying [ home ] ...
[ INFO ] Copying [ lib64 ] ...
[ INFO ] Copying [ opt ] ...
[ INFO ] Copying [ root ] ...
[ INFO ] Copying [ selinux ] ...
[ INFO ] Copying [ srv ] ...
[ INFO ] Copying [ usr ] ...
[ INFO ] Copying [ var ] ...
[ INFO ] Generate the new fstab file.
[ INFO ] Update the relevant parameters.
[ SUCCESS ] Installation successful. Run [ poweroff ], remove the installation media then re-insert the power supply to boot new system.
root@armbian:~# -----------------------------------------------
刷完 后 poweroff 然后 等十几秒在拔电拔U盘 在开机。。。开始你的折腾之路吧。。
链接上去 看了一下系统信息。。
一般够用。。。 哈
完!
PS:刚链接的时候 由于系统语言问题 没设置完整 导致了Sudo丢失 如果会玩还能修复一下 不然就的重整了。。 记得千万 用EN 设置
第一个软件我就装个 zerotierone 比较自己网络环境有点复杂。。 装完贴个标签 丢一边。。 啥时候想起来了 在连上去完完。。