uboot 引导卡制作

[color=red][size=medium]一、格式化SD卡[/size][/color]

[size=small]$ sudo fdisk /dev/sdb

Command (m for help):d

Partition number (1-4):1[/size]


[color=red][size=medium]二、查看信息[/size][/color]

[size=small]Command (m for help):p[/size]


[color=red][size=medium]三、创建两个分区[/size]
[/color]
[size=small]Command (m for help):n

Partition number (1-4):1

第一分区从20开始

First cylinder (1-1590,default 1):20

Last cylinder, +cylinders or +size{K,M,G} (20-1590, default 1590): +200M

查看分区信息:

Command (m for help):p

第二分区从END+1(63)开始,操作步骤一样[/size]


[color=red][size=medium]四、修改第一分区格式:[/size][/color]

[size=small]Command (m for help):n

Partition number (1-4):1

保存退出:

Command (m for help):w[/size]


[color=red][size=medium]五、umount两个分区,重新保存[/size][/color]

[size=small]$sudo umount /dev/sdb1

$sudo umount /dev/sdb2

$sudo fdisk /dev/sdb

Command (m for help):w[/size]


[color=red][size=medium]六、格式化两个分区:[/size][/color]

[size=small]$sudo mkfs.msdos /dev/sdb1

$sudo mkfs.ext3 /dev/sdb2[/size]


[color=red][size=medium]七、 将uboot复制到卡上[/size][/color]

[size=small]sudo dd if=xxx.bin of=/dev/sdx bs=1 count=442

sudo dd if=xxx.bin of=/dev/sdx bs=512 skip=01 seek=1

if 后为 uboot 的路径, of 后为 SD 卡的挂载名 [/size]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值