一个爱技术的人
5072
- 收藏
- 点赞
- 分享
- 举报
Ant-Board-T30X快速入门一 TF卡镜像制作
本帖最后由 wfjdemmye 于 2019-12-4 11:09 编辑
一,准备硬件与材料
tf卡(1G~16G) 1个
电源适配器(12V) 1个
USB转串口 1个
ant-board 1个
杜邦线 3根
二,软件准备
1,secureCRT
2,ubuntu主机
三,制作tf卡启动过程
1,从附件下载ant-board镜像到本地。
2,将tf卡使用读卡器在电脑上用分区工具软件格式化成一个盘(fat32)
3,将tf插在ubuntu主机上(虚拟机需要重新挂到ubuntu系统上)
[code] ls /media/username/xxxx //可以查看到tf是否有识别到[/code]
4,卸载 sd 卡
[code]umount /media/username/xxxx [/code]
5,对tf分区
确定tf的挂载节点,以免操作导致系统损坏。
[code]sudo fdisk -l[/code]
[code]sudo fdisk /dev/sdb //特别注意节点别输入错了[/code]
[code]root@ubuntu:/home/xxx/workSpace/ISVP-T30-1.0.5-20190725# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): o
Created a new DOS disklabel with disk identifier 0xa0b3110a.
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-3839999, default 2048): 2048
Last sector, +sectors or +size{K,M,G,T,P} (2048-3839999, default 3839999): 3839999
Created a new partition 1 of type 'Linux' and of size 1.9 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
[/code]
以上将2048 号扇区在 1MB 的位置,给 uboot 空出了空间
最后一步,输入 w,向 SD 卡中写入分区表
最后注意分区节点是/dev/sdb 而不是/dev/sdb1
6,将uboot写入分区中
[code]sync [/code]
重新插卡,PC将重新识别新分区
[code]sudo fdisk -l//查看tf卡是否正常挂载[/code]
[code]umount /media/username/xxxx //卸载后再操作tf卡[/code]
[code]sudo mkfs.vfat /dev/sdb1 //格式化 sd 卡为通用的 VFat 文件系统[/code]
将附件中的uboot写入到分区中。
#####################################################
将下载的 u-boot-with-spl.bin 文件烧录进 sd 卡的 17KB 偏移处:
[code]
root@ubuntu:/home/xxx/workSpace/ISVP-T30-1.0.5-20190725# dd if=/home/xxx/workSpace/tftpboot/u-boot-with-spl.bin of=/dev/sdb bs=1024 seek=17
230+1 records in
230+1 records out
236304 bytes (236 kB, 231 KiB) copied, 0.314663 s, 751 kB/s
root@ubuntu:/home/xxx/workSpace/ISVP-T30-1.0.5-20190725#
[/code]
7,将所有镜像文件拷贝tf卡中。
rootfs_64k.jffs2
rootfs.squashfs
u-boot-with-spl.bin
uImage
8,将tf卡插入ant-board
四,镜像编译
An-Board-T30X的tf卡启动盘制作
一,准备硬件与材料
tf卡(1G~16G) 1个
电源适配器(12V) 1个
USB转串口 1个
ant-board 1个
杜邦线 3根
二,软件准备
1,secureCRT
2,ubuntu主机
三,制作tf卡启动过程
1,从附件下载ant-board镜像到本地。
2,将tf卡使用读卡器在电脑上用分区工具软件格式化成一个盘(fat32)
3,将tf插在ubuntu主机上(虚拟机需要重新挂到ubuntu系统上)
[code] ls /media/username/xxxx //可以查看到tf是否有识别到[/code]
4,卸载 sd 卡
[code]umount /media/username/xxxx [/code]
5,对tf分区
确定tf的挂载节点,以免操作导致系统损坏。
[code]sudo fdisk -l[/code]
[code]sudo fdisk /dev/sdb //特别注意节点别输入错了[/code]
[code]root@ubuntu:/home/xxx/workSpace/ISVP-T30-1.0.5-20190725# fdisk /dev/sdb
Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): o
Created a new DOS disklabel with disk identifier 0xa0b3110a.
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-3839999, default 2048): 2048
Last sector, +sectors or +size{K,M,G,T,P} (2048-3839999, default 3839999): 3839999
Created a new partition 1 of type 'Linux' and of size 1.9 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
[/code]
以上将2048 号扇区在 1MB 的位置,给 uboot 空出了空间
最后一步,输入 w,向 SD 卡中写入分区表
最后注意分区节点是/dev/sdb 而不是/dev/sdb1
6,将uboot写入分区中
[code]sync [/code]
重新插卡,PC将重新识别新分区
[code]sudo fdisk -l//查看tf卡是否正常挂载[/code]
[code]umount /media/username/xxxx //卸载后再操作tf卡[/code]
[code]sudo mkfs.vfat /dev/sdb1 //格式化 sd 卡为通用的 VFat 文件系统[/code]
将附件中的uboot写入到分区中。
#####################################################
将下载的 u-boot-with-spl.bin 文件烧录进 sd 卡的 17KB 偏移处:
[code]
root@ubuntu:/home/xxx/workSpace/ISVP-T30-1.0.5-20190725# dd if=/home/xxx/workSpace/tftpboot/u-boot-with-spl.bin of=/dev/sdb bs=1024 seek=17
230+1 records in
230+1 records out
236304 bytes (236 kB, 231 KiB) copied, 0.314663 s, 751 kB/s
root@ubuntu:/home/xxx/workSpace/ISVP-T30-1.0.5-20190725#
[/code]
7,将所有镜像文件拷贝tf卡中。
rootfs_64k.jffs2
rootfs.squashfs
u-boot-with-spl.bin
uImage
8,将tf卡插入ant-board
四,镜像编译

下载
我来回答
回答9个
时间排序
认可量排序
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
相关问答
-
2019-12-03 18:46:49
-
2019-09-05 10:28:31
-
2019-11-06 16:40:24
-
2019-09-09 16:47:05
-
2018-11-15 21:50:52
-
2021-12-11 15:42:24
-
2020-09-22 11:14:03
-
2020-11-10 14:29:21
-
2020-11-11 10:21:07
-
2018-12-27 20:53:02
-
2018-12-13 13:59:17
-
2020-02-14 20:40:02
-
2018-08-21 14:58:36
-
2020-09-21 17:09:23
-
2020-07-07 16:03:53
-
2016-11-15 22:12:50
-
2008-08-23 16:12:03
-
2019-07-19 09:43:34
-
2025-02-20 11:26:07
无更多相似问答 去提问

点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5SS928/SD3403 录像失败 venc stream time out, exit thread; venc 2 stream buffer is full
-
10Hi3516DV500无法运行PQTool软件
-
10君正T23+1084带TF卡插卡(给该主板适配TF卡驱动,电机驱动,适配GPIO)
-
5Hi3536A从vpss获取1080分辨率的yuv数据异常
-
10谁有RV1126 最新版本SDK卖吗?
-
10opencv算法移植海思3519能否用IVE加速
-
50【话题】DeepSeek爆火背后:人工智能时代,哪些岗位会被“替代”?快来看看吧
-
5ss928与虚拟机和pc端网络ping不通
-
10SS928 DC摄像头驱动移植,不报错不出图,求助!
-
10求hi3516cv610 sdk, 需含middleware
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认