交叉编译飞思卡尔imx6烧写工具MFGtools脚本中的sfdisk小软件
原文链接:(5条消息) 交叉编译飞思卡尔imx6烧写工具MFGtools脚本中的sfdisk小软件_bxf0817的专栏-CSDN博客
MFGtools中的脚本中有如此一段
sfdisk --force -uM ${node} << EOF
${BOOT_ROM_SIZE},500,0c
600,,83
EOF
里面用到了sfdisk工具来进行文件系统的分区工作。在实际的开发中,主板上没有预留USB OTG,所以MFGtools工具无法使用。出现问题后重新烧写uboot和image以及文件系统时只能用串口。
实际搭建环境为:
VMware虚拟机
Ubuntu12.04
已搭建TFTP和NFS
将uboot.bin 和 uImage 及文件系统解压至Ubuntu系统的NFS文件夹中。将自己做好的烧写sh脚本放在NFS文件系统。首先要保证板子至少uboot好用,可以正常从NFS启动。
然后编译的是https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.23/util-linux-2.23.1.tar.bz2
交叉编译链为arm-linux-gcc-4.6.3版本
配置命令为./configure --host=arm-linux CC=arm-linux-gcc --prefix=/home/xxx/util-linux-2.23.1/_install --without-ncurses
然后make 最后make install。
可能最后make install的时候会有错误,但sfdisk工具已经生成,复制到NFS中文件系统的sbin目录中,arm使用没有任何问题。
~ # sfdisk
Usage:
sfdisk [options] <device> [...]
Options:
-s, --show-size list size of a partition
-c, --id change or print partition Id
--change-id change Id
--print-id print Id
-l, --list list partitions of each device
-d, --dump idem, but in a format suitable for later input
-i, --increment number cylinders etc. from 1 instead of from 0
-u, --unit <letter> units to be used; <letter> can be one of
S (sectors), C (cylinders), B (blocks), or M (MB)
-1, --one-only reserved option that does nothing currently
-T, --list-types list the known partition types
-D, --DOS for DOS-compatibility: waste a little space
-E, --DOS-extended DOS extended partition compatibility
-R, --re-read make the kernel reread the partition table
-N <number> change only the partition with this <number>
-n do not actually write to disk
-O <file> save the sectors that will be overwritten to <file>
-I <file> restore sectors from <file>
-V, --verify check that the listed partitions are reasonable
-v, --version display version information and exit
-h, --help display this help text and exit
Dangerous options:
-f, --force disable all consistency checking
--no-reread do not check whether the partition is in use
-q, --quiet suppress warning messages
-L, --Linux do not complain about things irrelevant for Linux
-g, --show-geometry print the kernel's idea of the geometry
-G, --show-pt-geometry print geometry guessed from the partition table
-A, --activate[=<device>] activate bootable flag
-U, --unhide[=<dev>] set partition unhidden
-x, --show-extended also list extended partitions in the output,
or expect descriptors for them in the input
--leave-last do not allocate the last cylinder
--IBM same as --leave-last
--in-order partitions are in order
--not-in-order partitions are not in order
--inside-outer all logicals inside outermost extended
--not-inside-outer not all logicals inside outermost extended
--nested every partition is disjoint from all others
--chained like nested, but extended partitions may lie outside
--onesector partitions are mutually disjoint
Override the detected geometry using:
-C, --cylinders <number> set the number of cylinders to use
-H, --heads <number> set the number of heads to use
-S, --sectors <number> set the number of sectors to use
————————————————
版权声明:本文为CSDN博主「就不用昵称」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/bxf0817/article/details/81214213
交叉编译飞思卡尔imx6烧写工具MFGtools脚本中的sfdisk小软件相关推荐
- 飞思卡尔烧写工具mfgtools的使用
注意:当时遇到烧录之后各种重启问题,还有system.img 文件同步不过去的原因,都是因为没有加flash刷新 <CMD state="Updater" type=&quo ...
- lpc2000 filash utility 程序烧写工具_重点必看 | 取证小程序开发之第四届美亚杯硬盘信息快速解题...
告别金秋十月,迎来仲冬十一月,同时迎来的是首届电子数据取证小程序大赛.随着投稿截止时间的一天天到来,越来越多的用户参与到本次小程序大赛,用自己的力量参与取证知识创新,为营造良好的取证技术生态赋能. 上 ...
- 【开源共享】全网最简单易用的imx6ull烧写工具设计初衷工作原理设计前的思考
在线课堂:https://www.100ask.net/index(课程观看) 论 坛:http://bbs.100ask.net/(学术答疑) 开 发 板:https://100ask.taoba ...
- 系统烧写方法(MfgTool烧写工具)
目录 MfgTool 工具简介 MfgTool 工作原理简介 USB接线 系统烧写原理 烧写NXP 官方系统 烧写自制的系统 系统烧写 网络开机自启动设置 改造我们自己的烧写工具 改造MfgTool ...
- opencv4.4.0函数手册_【文档更新】发布100ask_imx6ull用户手册V2.0和全新烧写工具
疫情期间,韦东山团队在家办公丝毫没有松懈,一直在写文档,答疑等. 下面给读者们公布阶段性成果: 一.发布<100ask_imx6ull用户手册 入门篇_V2.0 >: 添加更多烧写方法.更 ...
- 将MfgTool工具改造为自己的烧写工具
以前通过MfgTool工具烧写,都是讲自己的文件名改成和官方要求的烧写文件名.这样虽然能烧写,但是终于不是真正意义上自己的烧写. 那么能不能将MfgTool工具改造为烧写自己的文件名呢?当然是可以的, ...
- 【迅为iMX6Q】开发板 烧写工具 MfgTool2.exe 打不开问题的解决
现象 最近整理电脑,重新搭建了 [迅为iMX6Q]开发板的开发环境,从网盘重新下载的烧写烧写工具:android_m6.0.1_2.0.0_ga_tool_20190725,直接双击MfgTool2. ...
- st 串口烧写工具 芯片_STM32芯片的几种烧写方式简介
我们做STM32产品开发,最终是要将编写的程序代码写进芯片存储器,通常指Flash存储器[含可以映射到芯片存储空间的片外存储器],让程序正常运行起来以实现相应的功能. 一般来讲,将我们准备好的机器代码 ...
- linux/windows上STM32固件烧写工具的开发demo
1.主要实现功能:完成对HEX和DFU文件的烧写,显示烧写的进度等功能 2.开发工具:Qt creator4.9.0 3.开发系统平台:windows系统和linux系统两套平台 4.具体开发步骤: ...
最新文章
- siblings获取不平级_siblings()是获取平级元素,哪不是平级应该怎么获取元素呢?...
- Linux的一些基本命令与MySQL索引
- linux串口传文件除了rz,使用sz/rz基于串口传输文件
- oppo手机html文件,OPPO手机怎么传输数据包括文档和图片,有哪些传输方式
- Opengl编程指南第二章:状态管理、几何绘图
- sql 字段很多怎么汇总_利用集算器实现分库汇总
- 子网掩码掩码计算器_Javascript加载掩码
- linux安装酷q机器人,【折腾】在Docker中运行酷Q机器人
- AddType requires at least two arguments, a mime type followed by one or more file extensions
- Win10 触摸屏 快捷键操作
- java输入数字星期,输出英文
- 计算机网络hdlc,2019计算机考研|计算机网络知识点:HDLC协议
- centos7连接WiFi,并设置开机自动连接WiFi
- Thunder9(迅雷9)去掉右侧浏览器广告的方法
- 微信小程序 图片旋转后上传
- 5736. Single-Threaded CPU
- CSM5213SG替代BD00GA3WEFJ-E2 测试参数对比
- 如何生成android的BKS证书
- java中文处理学习:Hello Unicode
- 燃气热水器打不着火水压低的解决方法(zt)
热门文章
- 大一计算机应用数据库电子书,高等院校计算机专业系列规划教材-数据库应用技术.pdf...
- 14.4 exportfs命令 14.5 NFS客户端问题 15.1 FTP介绍 15.2/15.3 使用vsftpd搭建ftp
- 安装kali点击graphical install没反应
- vim graphical cheat sheet
- Windows网络编程之Winsock 编程接口实验
- 2.6 数学公式增补
- 【交通建模】基于模型的自主交通仿真框架附matlab代码
- Java解密 java.security.InvalidKeyException: Illegal key size
- 蓝牙耳机哪个牌子好?数码博主盘点口碑蓝牙耳机品牌
- 我用Python写的一个操控玩具车的程序