1.SD-Flasher制作启动盘
SD-Flasher.exe版本Ver:1135
分区 | 格式 | 大小 | 内容 |
---|---|---|---|
第一分区 | 无格式 | 151M | Uboot |
第二分区 | FAT32 | Total Size - 151M | kernel + rootfs |
2.Ubuntu命令行制作启动盘
- 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
- 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
- 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.
- 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
- format partition
$ sudo mkfs.vfat /dev/mmcblk0p1
- write bin
$ sudo dd iflag=dsync oflag=dsync if=u-boot.bin of=/dev/mmcblk0 seek=1