一个爱技术的人
5374
- 收藏
- 点赞
- 分享
- 举报
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
四,镜像编译
文件: Ant-Board-T30x.rar
下载
我来回答
回答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-11-10 14:29:21
-
2020-11-11 10:21:07
-
2020-09-22 11:14:03
-
2018-12-27 20:53:02
-
2020-02-14 20:40:02
-
2018-12-13 13:59:17
-
2020-09-21 17:09:23
-
2018-08-21 14:58:36
-
2020-07-07 16:03:53
-
2025-02-20 11:26:07
-
72018-04-20 10:37:01
-
2019-07-19 09:43:34
-
2016-11-15 22:12:50
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5hisi3516cv610 + gc4336p 夜晚很模糊
-
5AIISP(功能演示,SC4336P为BGGR,强制转RGGB,会导致颜色异常)
-
5rv1106使用luckfox的SDK,设备树和驱动都写好了,结果设备文件没有生成
-
5海思3516cv610中如何进行SD卡升级,根据官方文档操作,烧录进板子时,走的默认uboot,没有执行uboot升级。
-
5G610Q-IPC-38E 夜晚很暗 有什么办法解决吗 已经补光了
-
10转换模型时,SoC版本里没显示hi3516cv610芯片
-
5hisi3516cv610 使用 yolov8n 模型训练 要如何提高 这里识别的是人
-
10有人在海思平台接过SC035HGS吗
-
5关于hi3519dv500,以SD卡虚拟 U 盘操作
-
5ss928 sample_venc代码移植到openEuler24.03上执行报错 [sample_comm_vi_start_dev]-1068: vi set dev attr failed wi
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认

微信扫码分享
QQ好友