|
楼主我是昨天群里找你的那位,
我今天有按照你的一模一样来了一遍
- root@OpenWrt:~# dd if=/boot/lib/u-boot/hk1box-bootloader.img of=/dev/mmcblk2 bs=1M count=4 conv=fsync
- 4+0 records in
- 4+0 records out
- root@OpenWrt:~# cd /root
- root@OpenWrt:~# ./install-to-emmc.sh
- /dev/mmcblk2
- mmcblk2 : 31268536320 bytes
- ROOTFS: sda2
- BOOT: sda1
- 接下来的步骤将会覆盖 EMMC 的原始数据, 请确认是否要继续!
- 选择 y 开始安装到 EMMC, 请择 n 则退出 y/n [y]
- -------------------
- 请选择盒子型号:
- 1. X96-Max+(S905x3) 注意:若选择本型号,将会刷入新的bootloader!
- 2. X96-Max+(S905x3) 超频版 注意:若选择本型号,将会刷入新的bootloader!
- 3. HK1 Box(S905x3)
- 4. HK1 Box(S905x3) 超频版
- 5. H96 Max X3(S905x3)
- 6. H96 Max X3(S905x3) 超频版
- 0. 其它
- -------------------
- 请选择: 1
- 备份原始 bootloader -> bootloader_backup.img ... 4+0 records in
- 4+0 records out
- 完成
- EMMC 上共有 0 个旧的分区会被删除
- Welcome to fdisk (util-linux 2.35.1).
- Changes will remain in memory only, until you decide to write them.
- Be careful before using the write command.
- Device does not contain a recognized partition table.
- Created a new DOS disklabel with disk identifier 0x2800dec2.
- Command (m for help): Partition type
- p primary (0 primary, 0 extended, 4 free)
- e extended (container for logical partitions)
- Select (default p): Partition number (1-4, default 1): First sector (2048-61071359, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (139264-61071359, default 61071359):
- Created a new partition 1 of type 'Linux' and of size 160 MiB.
- Command (m for help): Partition type
- p primary (1 primary, 0 extended, 3 free)
- e extended (container for logical partitions)
- Select (default p): Partition number (2-4, default 2): First sector (2048-61071359, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (466944-61071359, default 61071359):
- Created a new partition 2 of type 'Linux' and of size 960 MiB.
- Command (m for help): Partition type
- p primary (2 primary, 0 extended, 2 free)
- e extended (container for logical partitions)
- Select (default p): Partition number (3,4, default 3): First sector (2048-61071359, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2764800-61071359, default 61071359):
- Created a new partition 3 of type 'Linux' and of size 960 MiB.
- Command (m for help): Partition type
- p primary (3 primary, 0 extended, 1 free)
- e extended (container for logical partitions)
- Select (default e):
- Selected partition 4
- First sector (2048-61071359, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (4730880-61071359, default 61071359):
- Created a new partition 4 of type 'Linux' and of size 26.9 GiB.
- Command (m for help): Partition number (1-4, default 4): Hex code (type L to list all codes):
- Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.
- Command (m for help): Partition number (1-4, default 4): Hex code (type L to list all codes):
- Changed type of partition 'Linux' to 'Linux'.
- Command (m for help): Partition number (1-4, default 4): Hex code (type L to list all codes):
- Changed type of partition 'Linux' to 'Linux'.
- Command (m for help): Partition number (1-4, default 4): Hex code (type L to list all codes):
- Changed type of partition 'Linux' to 'Linux'.
- Command (m for help): The partition table has been altered.
- Calling ioctl() to re-read partition table.
- Syncing disks.
- 分区完成
- 1+0 records in
- 1+0 records out
- 1+0 records in
- 1+0 records out
- 1+0 records in
- 1+0 records out
- 1+0 records in
- 1+0 records out
- 开始创建文件系统 ...
- 创建boot文件系统 ...
- mkfs.fat 4.1 (2017-01-24)
- 创建 rootfs1 文件系统 ...
- btrfs-progs v5.6
- See http://btrfs.wiki.kernel.org for more information.
- Label: EMMC_ROOTFS1
- UUID: ad8b9527-c80b-475c-a41b-b7e72ff23417
- Node size: 16384
- Sector size: 4096
- Filesystem size: 960.00MiB
- Block group profiles:
- Data: single 8.00MiB
- Metadata: single 8.00MiB
- System: single 4.00MiB
- SSD detected: yes
- Incompat features: extref, skinny-metadata
- Checksum: crc32c
- Number of devices: 1
- Devices:
- ID SIZE PATH
- 1 960.00MiB /dev/mmcblk2p2
- 创建 rootfs2 文件系统 ...
- btrfs-progs v5.6
- See http://btrfs.wiki.kernel.org for more information.
- Label: EMMC_ROOTFS2
- UUID: 97b037e3-4cce-437f-ad0d-93f1128274e7
- Node size: 16384
- Sector size: 4096
- Filesystem size: 960.00MiB
- Block group profiles:
- Data: single 8.00MiB
- Metadata: single 8.00MiB
- System: single 4.00MiB
- SSD detected: yes
- Incompat features: extref, skinny-metadata
- Checksum: crc32c
- Number of devices: 1
- Devices:
- ID SIZE PATH
- 1 960.00MiB /dev/mmcblk2p3
- 等待 boot 文件系统挂载 ...
- 挂载成功
- 拷贝 boot ...done
- Write uEnv.txt ... 完成.
- 完成
- 等待 rootfs 文件系统挂载 ...
- 挂载成功
- 创建文件夹 ... 完成
- 拷贝数据 ...
- 拷贝 root ... 完成
- 拷贝 etc ... 完成
- 拷贝 bin ... 完成
- 拷贝 sbin ... 完成
- 拷贝 lib ... 完成
- 拷贝 opt ... 完成
- 拷贝 usr ... 完成
- 拷贝 www ... 完成
- 拷贝完成
- 编辑配置文件 ... 完成
- 创建共享文件系统 ...
- 请选择共享文件系统的类型:
- ------------------------------------------
- 1. ext4 (默认的选项,适合一般用途)
- 2. btrfs (对 ssd/mmc 有一定优化,
- 可延长 ssd/mmc 使用寿命,
- 具有众多现代文件系统特性,
- 但速度稍慢)
- 3. f2fs (对 ssd/mmc 有专门的优化,
- 读写速度快,
- 且可延长 ssd/mmc 使用寿命,
- 但空间利用率稍低,
- 且兼容性稍差)
- 4. xfs (非常优秀的文件系统,ext4的替代品)
- ------------------------------------------
- [1]
- mke2fs 1.45.6 (20-Mar-2020)
- Creating filesystem with 7042560 4k blocks and 1761280 inodes
- Filesystem UUID: 96b12160-cb25-4734-a34b-9066435d38b5
- Superblock backups stored on blocks:
- 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
- 4096000
- Allocating group tables: done
- Writing inode tables: done
- Creating journal (32768 blocks): done
- Writing superblocks and filesystem accounting information: done
- 完成
- 注意:原版 bootloader 已导出到 /root/backup-bootloader.img , 请注意下载并保存!
- 所有步骤均已完成, 请用 poweroff 命令关机,拔除SD卡(或U盘)之后再开机!
- root@OpenWrt:~#
- root@OpenWrt:~#
- root@OpenWrt:~#
- root@OpenWrt:~# poweroff
- root@OpenWrt:~#
- Remote side unexpectedly closed network connection
复制代码
结果还是黑屏...无法亮机.
|
|