|
本帖最后由 2668171712 于 2023-12-2 21:46 编辑
机顶盒型号是h96 max x3 s905x3
emmc标识:/dev/mmcblk2
想把u盘里的armbian安装到emmc上,运行armbian系统自带的install-aml.sh文件之后,开机黑屏,路由器也没有查到机顶盒的ip地址。
想把armbian安装到emmc上只能用u盘的armbian系统运行1.sh文件,然后关机(一定要关机),重新运行u盘的armbian系统运行2.sh文件才能安装到emmc上,
这样把armbian安装到emmc上好麻烦
不知道大神们有没有其他方法能执行一次就能安装到emmc上的方法,
或者帮我把1.sh和2.sh文件给整合成能执行一次就能安装到emmc上的文件
(可有偿)
以下是1.sh文件代码
以下是1.sh文件运行结果
- Start script create MBR and filesystem
- /dev/mmcblk2
- Start backup u-boot default
- 4+0 records in
- 4+0 records out
- 4194304 bytes (4.2 MB, 4.0 MiB) copied, 0.146235 s, 28.7 MB/s
- Start create MBR and partittion
- Start restore u-boot
- 442+0 records in
- 442+0 records out
- 442 bytes copied, 0.00349458 s, 126 kB/s
- 8191+0 records in
- 8191+0 records out
- 4193792 bytes (4.2 MB, 4.0 MiB) copied, 0.236705 s, 17.7 MB/s
- Done
- Start copy system for eMMC.
- Formatting BOOT partition...mkfs.fat 4.1 (2017-01-24)
- done.
- Cppying BOOT...done.
- Edit init config...done.
- Formatting ROOT partition...
- /dev/mmcblk2p2 contains a ext4 file system labelled 'ROOT_EMMC'
- last mounted on /ddbr/install on Sat Dec 2 11:43:15 2023
- e2fsck 1.44.1 (24-Mar-2018)
- ROOT_EMMC: clean, 11/3760128 files, 314897/15034112 blocks
- done.
- Copying ROOTFS.
- Copy BIN
- Create DEV
- Copy ETC
- Copy HOME
- Copy LIB
- Create MEDIA
- Create MNT
- Copy OPT
- Copy patch
- Create PROC
- Copy ROOT
- Create RUN
- Copy SBIN
- Copy SELINUX
- Copy SRV
- Create SYS
- Create TMP
- Copy USR
- Copy VAR
- Copy www
- Copy fstab
- *******************************************
- Complete copy OS to eMMC
- *******************************************
复制代码
以下是2.sh文件代码
以下是2.sh文件运行结果
|
|