Tiny210格式化SD卡,烧写Boot

1.SD-Flasher制作启动盘

SD-Flasher.exe版本Ver:1135

分区格式大小内容
第一分区无格式151MUboot
第二分区FAT32Total Size - 151Mkernel + rootfs

2.Ubuntu命令行制作启动盘

  1. check sd
$ sudo fdisk -l
Disk /dev/mmcblk0: 14.8 GiB, 15854469120 bytes, 30965760 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
  1. delete partition
# sudo dd if=/dev/zero of=/dev/[mmcblk0|sdb|sdc] count=1
$ sudo dd if=/dev/zero of=/dev/mmcblk0 count=1
1+0 records in
1+0 records out
512 bytes copied, 0.00024147 s, 2.1 MB/s
  1. make boot
$ sudo fdisk /dev/mmcblk0
Welcome to fdisk (util-linux 2.31.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 0x04c12208.

Command (m for help): n
Partition type
   p   primary (0 primary, 0 extended, 4 free)
   e   extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1): 1
First sector (2048-30965759, default 2048): 309248
Last sector, +sectors or +size{K,M,G,T,P} (268288-30965759, default 30965759): 

Created a new partition 1 of type 'Linux' and of size 14.7 GiB.
Partition #1 contains a vfat signature.

Do you want to remove the signature? [Y]es/[N]o: y

The signature will be removed by a write command.

Command (m for help): t
Selected partition 1
Hex code (type L to list all codes): b
Changed type of partition 'Linux' to 'W95 FAT32'.

Command (m for help): w
The partition table has been altered.
Failed to add partition 1 to system: Device or resource busy

The kernel still uses the old partitions. The new table will be used at the next reboot. 
Syncing disks.
  1. check partition
$ sudo fdisk -l
Disk /dev/mmcblk0: 14.8 GiB, 15854469120 bytes, 30965760 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x04c12208

Device         Boot  Start      End  Sectors  Size Id Type
/dev/mmcblk0p1      309248 30965759 30697472 14.7G  b W95 FAT32
  1. format partition
$ sudo mkfs.vfat /dev/mmcblk0p1
  1. write bin
$ sudo dd iflag=dsync oflag=dsync if=u-boot.bin of=/dev/mmcblk0 seek=1
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值