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

一路追踪:

  1. part=`get_mtd_partition_number.sh "nor"` || die "error getting mtd part number: $part"
  2. in get_mtd_partition_number.sh  PARTITION=`get_mtd_biggest_part $DEVICE_TYPE` || die "get_mtd_biggest_part for $DEVICE_TYPE: Backtrace :: $PARTITION :: "
  3. in mtd_common.sh  PART_RANGE=`find_mtd_part_range "$DEVICE_TYPE"` || die "Error when trying to find mtd part range"
  4. in mtd_common.sh  find_mtd_part_range() {......
            TYPE=`find_part_type $PART`
  5. 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的更多相关文章

  1. LTP随笔——本地调用ltp之ltp4j

    关于ltp本地调用的相关参考请见LTP的Git项目:https://github.com/HIT-SCIR 以下以/home/lion/Desktop路径为例下面教程中出现的具体路径以你实际配置的为准 ...

  2. ZH奶酪:自然语言处理工具LTP语言云调用方法

    前言 LTP语言云平台 不支持离线调用: 支持分词.词性标注.命名实体识别.依存句法分析.语义角色标注: 不支持自定义词表,但是你可以先用其他支持自定义分词的工具(例如中科院的NLPIR)把文本进行分 ...

  3. Eclipse DDT

    http://www.eclipse.org/downloads/ https://github.com/DDT-IDE/DDT/blob/latest/documentation/UserGuide ...

  4. ASP.NET中常用的几个李天平开源公共类LTP.Common,Maticsoft.DBUtility,LtpPageControl

    ASP.NET中常用的几个开源公共类: LTP.Common.dll: 通用函数类库     源码下载Maticsoft.DBUtility.dll 数据访问类库组件     源码下载LtpPageC ...

  5. 很好的一篇讲LTP在编解码中的作用的文章

    原文链接 LONG-TERM PREDICTION by: Adit Aviv       Kfir Grichman introduction: The speech signal has been ...

  6. ASP.NET中常用的几个李天平开源公共类LTP.Common,Maticsoft.DBUtility,LtpPageControl (转)

    ASP.NET中常用的几个开源公共类: LTP.Common.dll: 通用函数类库     源码下载Maticsoft.DBUtility.dll 数据访问类库组件     源码下载LtpPageC ...

  7. 编译哈工大语言技术平台云LTP(C++)源码及LTP4J(Java)源码

    转自:编译哈工大语言技术平台云LTP(C++)源码及LTP4J(Java)源码 JDK:java version “1.8.0_31”Java(TM) SE Runtime Environment ( ...

  8. LTP学习

    下载LTP源码和模型文件: https://github.com/linux-test-project/ltp 官方说明文档 http://ltp.readthedocs.org/zh_CN/late ...

  9. LTP 分词算法实践

    参考链接: https://github.com/HIT-SCIR/ltp/blob/master/doc/install.rst http://www.xfyun.cn/index.php/serv ...

  10. ltp工具使用配置

    ltp是一个比较全的自然语言处理工具,可以用它进行分词.词性标注.语法分析等任务. ---- 准备 下载 下载ltp和ltp4j,在cmake官网下载并安装相应版本的cmake,并且下载ant. 构建 ...

随机推荐

  1. 课堂动手动脑String

    一 public class StringPool { public static void main(String args[]) { String s0="Hello"; St ...

  2. ad 线束和网络

    ad 线束和通道复用会遇到网络无法更新的pcb的异常, 就算,我们把网络作用范围调整到页,电源全局仍然会失败,通过查找原因 尽量网络标签不同.稍微更改就可以 比如  sda1,sda1s不要一样

  3. 2018-2019-2 网络对抗技术 20165311 Exp3 免杀原理与实践

    2018-2019-2 网络对抗技术 20165311 Exp3 免杀原理与实践 免杀原理及基础问题回答 实验内容 任务一:正确使用msf编码器,msfvenom生成如jar之类的其他文件,veil- ...

  4. TNS-12560: TNS: 协议适配器错误同时伴有TNS-00584: 有效节点检查配置错误的解决方法

    :修改/home/oracle/app/product/11.2.0/db_1/network/admin/sqlnet.ora(与listener.ora同一目录) 增加白名单: tcp.valid ...

  5. numpy(五)

    排序: x=np.array([2,5,6,2,3,5]) np.sort(x)  不改变原数组 x.sort() 改变原数组 i=np.argsort(x) 返回排序好的索引值 x[i] 使用花哨索 ...

  6. Hibernate处理事务并发问题

    在Hibernate中设置事务的隔离级别.<property name="hibernate.connection.isolation">2</property& ...

  7. DHCP服务器 出现的故障

    系统版本:Windows Server 2008 R2 Standard 故障现象:近段时间,我们核心网络DHCP服务器,总是发现有掉线重起现象,大约每10分钟至30分钟不定时会重起. 故障代码:关键 ...

  8. js篇-数组合并其中属性值相同的项目且属性值相加

    项目背景是:var a = [{id:1,num:"12"},{id:2,num:"13"},{id:3,num:"3"},{id:2,nu ...

  9. 导出IndoorGML

    导出IndoorGML

  10. OAuth2.0配置

    一:授权服务器相关代码 AuthorizationServer.java import org.springframework.beans.factory.annotation.Autowired; ...