导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    T113板子 spi1加了块nand flash 怎么识别出来

    T Series
    1
    1
    51
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • T
      taiwu001 LV 2 最后由 编辑

      spi0有一块 128M的 GD5F1GQ5UEYIGR nand flash,能正常下载固件运行,因为空间不够用现在在 spi1处也加了块 128M GD5F1GQ5UEYIGR作为存储数据用,请问各位老师 怎么把这个识别出来526c0a07-3eba-4da9-8460-8f8e252243c3-image.png
      改了设备树 &spi1 {
      clock-frequency = <100000000>;
      pinctrl-0 = <&spi1_pins_a &spi1_pins_b>;
      pinctrl-1 = <&spi1_pins_c>;
      pinctrl-names = "default", "sleep";
      spi_slave_mode = <0>;

          spi1_cs_number = <1>;
          spi1_cs_bitmap = <1>;
      
          status = "okay";
      
          spi-nand@0 {
              compatible = "spi-nand";
              #address-cells = <1>;
              #size-cells = <1>;
              spi-max-frequency = <100000000>;
              reg = <0x0>;
              nand-on-flash-bbt;
      
              partitions {
                  compatible = "fixed-partitions";
                  #address-cells = <1>;
                  #size-cells = <1>;
      
                  partition@0 {
                      label = "spi1-data";
                      reg = <0x0 0x8000000>;
                  };
              };
          };
      };   还是没出来 localhost:~# df -h
      
      Filesystem          Size  Used Avail Use% Mounted on
      
      /dev/root            26M   26M     0 100% /rom
      
      none                 55M     0   55M   0% /dev
      
      tmpfs                55M     0   55M   0% /tmp
      
      /dev/ubi0_7          66M  3.7M   59M   6% /overlay
      
      overlayfs:/overlay   66M  3.7M   59M   6% /
      
      tmpfs                11M  120K   11M   2% /run
      
      shm                  55M     0   55M   0% /dev/shm
      
      localhost:~# cat /proc/mtd
      
      dev:    size   erasesize  name
      
      mtd0: 00100000 00040000 "boot0"
      
      mtd1: 00300000 00040000 "uboot"
      
      mtd2: 00100000 00040000 "secure_storage"
      
      mtd3: 1fb00000 00040000 "sys"
      
      localhost:~# dmesg | grep -i "spi-nand"
      
      [    1.086831] sunxi-spinand-phy: get spi-nand Model from fdt fail
      
      [    1.995607] spi-nand: probe of spi1.0 failed with error -16
      
      1 条回复 最后回复 回复 引用 分享 1
      • 1 / 1
      • First post
        Last post

      Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策