ltp-ddt nor_mtd_dd_rw_jffs2
nor_mtd_dd_rw_jffs2运行报错
error getting mtd part number: $part
get_mtd_biggest_part for $DEVICE_TYPE: Backtrace :: $PARTITION ::
Error when trying to find mtd part range
一路追踪:
- part=`get_mtd_partition_number.sh "nor"` || die "error getting mtd part number: $part"
- in get_mtd_partition_number.sh PARTITION=`get_mtd_biggest_part $DEVICE_TYPE` || die "get_mtd_biggest_part for $DEVICE_TYPE: Backtrace :: $PARTITION :: "
- in mtd_common.sh PART_RANGE=`find_mtd_part_range "$DEVICE_TYPE"` || die "Error when trying to find mtd part range"
- in mtd_common.sh find_mtd_part_range() {......
TYPE=`find_part_type $PART` - in mtd_common.sh find_part_type() {
PART=$1
MTD_DEV="mtdblock$PART"
if [[ -e /sys/class/mtd/mtd$PART/type ]]; then
TYPE=`cat /sys/class/mtd/mtd$PART/type`
if [[ $TYPE == 'nand' ]]; then
PART_TYPE='nand'
else
if [[ `ls /sys/class/mtd/mtd$PART/device/driver/ | grep 'flash'` ]]; then
PART_TYPE="nor"
elif [[ `ls /sys/class/mtd/mtd$PART/device/driver/ | grep 'qspi'` ]];then
PART_TYPE="qspi"
elif [[ `ls /sys/class/mtd/mtd$PART/device/driver/ | grep 'ospi'` ]];then
PART_TYPE="qspi"
elif [[ `ls /sys/class/mtd/mtd$PART/device/driver/ | grep 'spi'` ]];then
if [[ `cat /proc/mtd |grep -E "mtd$PART |mtd${PART}: "|grep -i qspi ` ]];then
PART_TYPE="qspi"
else
PART_TYPE="spi"
fi
else
die "/sys/class/mtd/mtd$PART/device/driver doesn't exist"
fi
fi
else
die "/sys/class/mtd/mtd$PART/type doesn't exist"
fi
echo $PART_TYPE
}
TYPE=`cat /sys/class/mtd/mtd0/type`
TYPE=nor
ls /sys/class/mtd/mtd0/device/driver/
bind e2000000.nor uevent unbind
mtd_common.sh
所以grep 'flash'要改为 grep 'nor'
if [[ `ls /sys/class/mtd/mtd$PART/device/driver/ | grep 'nor'` ]]; then
因为build-in driver
所以将blk_device_prepare_format.sh
############# Do the work ###########################################
if [[ "$DEV_NODE" =~ "mtd" ]]; then
do_cmd printout_mtdinfo "$DEV_NODE"
do_cmd modprobe mtdblock
do_cmd modprobe ubi
do_cmd modprobe ubifs
fi
改为
############# Do the work ###########################################
if [[ "$DEV_NODE" =~ "mtd" ]]; then
do_cmd printout_mtdinfo "$DEV_NODE"
#do_cmd modprobe mtdblock
#do_cmd modprobe ubi
#do_cmd modprobe ubifs
fi
ltp-ddt nor_mtd_dd_rw_jffs2的更多相关文章
- LTP随笔——本地调用ltp之ltp4j
关于ltp本地调用的相关参考请见LTP的Git项目:https://github.com/HIT-SCIR 以下以/home/lion/Desktop路径为例下面教程中出现的具体路径以你实际配置的为准 ...
- ZH奶酪:自然语言处理工具LTP语言云调用方法
前言 LTP语言云平台 不支持离线调用: 支持分词.词性标注.命名实体识别.依存句法分析.语义角色标注: 不支持自定义词表,但是你可以先用其他支持自定义分词的工具(例如中科院的NLPIR)把文本进行分 ...
- Eclipse DDT
http://www.eclipse.org/downloads/ https://github.com/DDT-IDE/DDT/blob/latest/documentation/UserGuide ...
- ASP.NET中常用的几个李天平开源公共类LTP.Common,Maticsoft.DBUtility,LtpPageControl
ASP.NET中常用的几个开源公共类: LTP.Common.dll: 通用函数类库 源码下载Maticsoft.DBUtility.dll 数据访问类库组件 源码下载LtpPageC ...
- 很好的一篇讲LTP在编解码中的作用的文章
原文链接 LONG-TERM PREDICTION by: Adit Aviv Kfir Grichman introduction: The speech signal has been ...
- ASP.NET中常用的几个李天平开源公共类LTP.Common,Maticsoft.DBUtility,LtpPageControl (转)
ASP.NET中常用的几个开源公共类: LTP.Common.dll: 通用函数类库 源码下载Maticsoft.DBUtility.dll 数据访问类库组件 源码下载LtpPageC ...
- 编译哈工大语言技术平台云LTP(C++)源码及LTP4J(Java)源码
转自:编译哈工大语言技术平台云LTP(C++)源码及LTP4J(Java)源码 JDK:java version “1.8.0_31”Java(TM) SE Runtime Environment ( ...
- LTP学习
下载LTP源码和模型文件: https://github.com/linux-test-project/ltp 官方说明文档 http://ltp.readthedocs.org/zh_CN/late ...
- LTP 分词算法实践
参考链接: https://github.com/HIT-SCIR/ltp/blob/master/doc/install.rst http://www.xfyun.cn/index.php/serv ...
- ltp工具使用配置
ltp是一个比较全的自然语言处理工具,可以用它进行分词.词性标注.语法分析等任务. ---- 准备 下载 下载ltp和ltp4j,在cmake官网下载并安装相应版本的cmake,并且下载ant. 构建 ...
随机推荐
- Hibernate-day03
双向的many2one/one2many 双向many2one/one2many的问题:一定有额外的SQL发出;在数据库里面,外键表示many2one或者one2many的关系,外键是没有方向的;但是 ...
- C#即时释放内存
using System;using System.Diagnostics;using System.Runtime.InteropServices; [DllImport("kernel3 ...
- robotframework RF使用中需要安装的工具和库
确保 Python 3.6.2 安装成功 安装 如下 RF使用中需要的工具和库 1. RF 在两个Python中安装 robotframework执行命令 pip install robotframe ...
- 获取各种编码(Unicode,UTF8等)的识别符
下面是常用编码的识别符, 在 Delphi(2009) 中如何获取呢?Unicode: FF FE; BigEndianUnicode: FE FF; UTF8: EF BB BF var bs: ...
- linux cp 拷贝文件或目录
cp 拷贝文件或目录 默认不能拷贝目录 常用来备份: [root@MongoDB ~]# cp a.txt /tmp/ [root@MongoDB ~]# cp /root/a.txt /tmp/ c ...
- python编写shell脚本
模块 os模块和shutil模块主要用于在python中执行一些Linux相关的操作,其中 os.system(command) 可以直接运行Linux命令,如os.system('ls'). 不过, ...
- 10个用于处理日期和时间的 Python 库
Python本身提供了处理时间日期的功能,也就是datetime标准库.除此之外,还有很多优秀的第三方库可以用来转换日期格式,格式化,时区转化等等.今天就给大家分享10个这样的Python库. 上期入 ...
- Linux命令行基础
常用命令 命令 功能 pwd 打开当前所在的文件目录 ls 查看当前文件夹下的文件(不包括隐藏文件) ls -a 查看当前文件夹下的文件(包括隐藏文件) ls -al 查看当前文件夹下的文件(包括隐藏 ...
- Oracle 11g R2性能优化 tkprof
另一篇博文总结了关于SQL TRACE工具的使用方式,但是产生的trace文件格式阅读起来并不是十分友好,为了更好的分析trace文件,Oracle也自带了一个格式化工具tkprof.tkprof工具 ...
- How to use draggable attribute?怎样使用拖拽属性代码分享
6.7 Drag and dropSupport: dragndropChrome for Android NoneChrome 4+iOS Safari 11.0+UC Browser for An ...