U盘刷IMG,没问题;U盘启动OPENWRT,没问题。
SSH写EMMC,死活不成功。
做了一个Coreelec9.22的U盘,也是同样情况:U盘插在N1上可以启动并使用,死活刷不进EMMC(SSH显示是成功的)
先后换了三个U盘都是U盘可以启动使用,刷EMMC不行。
状态如下:
- root@OpenWrt:~# cd ~
- root@OpenWrt:~# ./inst-to-emmc.sh
- The following steps will overwrite the original data, please be sure to confirm!
- Remind again, remember to back up your important data!
- Select y to install openwrt to emmc disk, are you sure? y/n [y]
- umount -f /mnt/mmcblk1p1
- umount -f /mnt/mmcblk1p2
- umount -f /mnt/mmcblk1p3
- total 3 partions will be deleted
- 1+0 records in
- 1+0 records out
- 1+0 records in
- 1+0 records out
- 1+0 records in
- 1+0 records out
- Welcome to fdisk (util-linux 2.33).
- Changes will remain in memory only, until you decide to write them.
- Be careful before using the write command.
- Command (m for help): Partition number (1-3, default 3):
- Partition 3 has been deleted.
- Command (m for help): Partition number (1,2, default 2):
- Partition 2 has been deleted.
- Command (m for help): Selected partition 1
- Partition 1 has been deleted.
- 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-15269887, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (1433600-15269887, default 15269887):
- Created a new partition 1 of type 'Linux' and of size 128 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-15269887, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (1695744-15269887, default 15269887):
- Created a new partition 2 of type 'Linux' and of size 512 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-15269887, default 2048): Last sector, +/-sectors or +/-size{K,M,G,T,P} (2744320-15269887, default 15269887):
- Created a new partition 3 of type 'Linux' and of size 6 GiB.
- Command (m for help): Partition number (1-3, default 3): Hex code (type L to list all codes):
- Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.
- Command (m for help): Partition number (1-3, default 3): Hex code (type L to list all codes):
- Changed type of partition 'Linux' to 'Linux'.
- Command (m for help): Partition number (1-3, default 3): 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.
- fdisk done
- 442+0 records in
- 442+0 records out
- 8191+0 records in
- 8191+0 records out
- begin to create filesystems ...
- create boot filesystem ...
- mkfs.fat 4.1 (2017-01-24)
- create rootfs filesystems ...
- btrfs-progs v5.4.1
- See http://btrfs.wiki.kernel.org for more information.
- Detected a SSD, turning off metadata duplication. Mkfs with -m dup if you want to force metadata duplication.
- Label: EMMC_ROOTFS
- UUID: ad739cfd-4ab8-429a-be02-5292becb1ab8
- Node size: 16384
- Sector size: 4096
- Filesystem size: 512.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 512.00MiB /dev/mmcblk1p2
- filesystem succeed created!
- wait for boot partition mounted ...
- mount ok
- copy boot ...done
- Write uEnv.txt ... done.
- done
- wait for root partition mounted ...
- mount ok
- make dirs ... done
- copy data ...
- copy root ... done
- copy etc ... done
- copy bin ... done
- copy sbin ... done
- copy lib ... done
- copy opt ... done
- copy usr ... done
- copy www ... done
- copy done
- Edit other config files ... done
- create shared filesystem ...
- btrfs-progs v5.4.1
- See http://btrfs.wiki.kernel.org for more information.
- Detected a SSD, turning off metadata duplication. Mkfs with -m dup if you want to force metadata duplication.
- Label: EMMC_SHARED
- UUID: 4a43bc9a-300d-4fb0-8721-7cba8b2b93c7
- Node size: 16384
- Sector size: 4096
- Filesystem size: 5.97GiB
- 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 5.97GiB /dev/mmcblk1p3
- done
- All done, please reboot!
- root@OpenWrt:~#
复制代码求教,是不是机器变砖了?
或者是不是需要先刷
armbian
拜谢!