potato

potato

0个粉丝

1

问答

0

专栏

0

资料

potato  发布于  2024-12-26 15:24:47
采纳率 0%
1个问答
104

flash是DS35Q4GM-IB)烧录不了出厂固件

我买的这个板子(flash是DS35Q4GM-IB)烧录不了出厂固件 后来在社区要的新的固件 那个固件可以 然后我就想着改一下 uboot 我在论坛里看有人发帖改 hifmc_spi_nand_ids.c 里的ID 但是我没成功 这俩图片是打的log
https://www.ebaina.com/articles/140000015963

我来回答
回答3个
时间排序
认可量排序

Stranger

13个粉丝

0

问答

5

专栏

8

资料

Stranger 2024-12-26 15:28:08
认可0
  1. 找客服要最新网盘连接。
  2. 基于适配的SDK打上以下的补丁文件
    ```c
    diff —git a/osdrv/opensource/kernel/linux-4.9.y-smp/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c b/osdrv/opensource/kernel/linux-4.9.y-smp/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c
    index cd89d0e0c..51b81b1d0 100644
    —- a/osdrv/opensource/kernel/linux-4.9.y-smp/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c
    +++ b/osdrv/opensource/kernel/linux-4.9.y-smp/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c
    @@ -36,12 +36,14 @@
    SET_READ_STD(1, INFINITE, 24);

    SET_READ_FAST(1, INFINITE, 80);
    +SET_READ_FAST(1, INFINITE, 83); / 83MHz /
    SET_READ_FAST(1, INFINITE, 100);
    SET_READ_FAST(1, INFINITE, 104);
    SET_READ_FAST(1, INFINITE, 108);
    SET_READ_FAST(1, INFINITE, 120);

    SET_READ_DUAL(1, INFINITE, 80);
    +SET_READ_DUAL(1, INFINITE, 83); / 83MHz /
    SET_READ_DUAL(1, INFINITE, 100);
    SET_READ_DUAL(1, INFINITE, 104);
    SET_READ_DUAL(1, INFINITE, 108);
    @@ -54,6 +56,7 @@ SET_READ_DUAL_ADDR(1, INFINITE, 108);
    SET_READ_DUAL_ADDR(1, INFINITE, 120);

    SET_READ_QUAD(1, INFINITE, 80);
    +SET_READ_QUAD(1, INFINITE, 83); / 83MHz /
    SET_READ_QUAD(1, INFINITE, 100);
    SET_READ_QUAD(1, INFINITE, 104);
    SET_READ_QUAD(1, INFINITE, 108);
    @@ -71,10 +74,12 @@ SET_READ_QUAD_ADDR(1, INFINITE, 120);
    SET_WRITE_STD(0, 256, 24);
    SET_WRITE_STD(0, 256, 75);
    SET_WRITE_STD(0, 256, 80);
    +SET_WRITE_STD(0, 256, 83); / 83MHz /
    SET_WRITE_STD(0, 256, 100);
    SET_WRITE_STD(0, 256, 104);

    SET_WRITE_QUAD(0, 256, 80);
    +SET_WRITE_QUAD(0, 256, 83); / 83MHz /
    SET_WRITE_QUAD(0, 256, 100);
    SET_WRITE_QUAD(0, 256, 104);
    SET_WRITE_QUAD(0, 256, 108);
    @@ -84,6 +89,7 @@ SET_WRITE_QUAD(0, 256, 120);
    SET_ERASE_SECTOR_128K(0, _128K, 24);
    SET_ERASE_SECTOR_128K(0, _128K, 75);
    SET_ERASE_SECTOR_128K(0, _128K, 80);
    +SET_ERASE_SECTOR_128K(0, _128K, 83); / 83MHz /
    SET_ERASE_SECTOR_128K(0, _128K, 104);

    SET_ERASE_SECTOR_256K(0, _256K, 24);
    @@ -1631,7 +1637,36 @@ struct spi_nand_info hifmc_spi_nand_flash_table[] = {

      },
      .driver    = &spi_driver_general,
    

    },

  • / Dosilicon 3.3v DS35Q4GM 4Gbit /
  • {
  • .name = “DS35Q4GM”,
  • .id = {0xE5, 0xF4},
  • .id_len = 2,
  • .chipsize = _512M,
  • .erasesize = _128K,
  • .pagesize = _2K,
  • .oobsize = 128,
  • .badblock_pos = BBP_FIRST_PAGE,
  • .read = {
  • &READ_STD(1, INFINITE, 24), / 24MHz /
  • &READ_FAST(1, INFINITE, 83), / 83MHz /
  • &READ_DUAL(1, INFINITE, 83), / 83MHz /
  • &READ_QUAD(1, INFINITE, 83), / 83MHz /
  • 0
  • },
  • .write = {
  • &WRITE_STD(0, 256, 24), / 83MHz /
  • &WRITE_QUAD(0, 256, 83), / 83MHz /
  • 0
  • },
  • .erase = {
  • &ERASE_SECTOR_128K(0, _128K, 83), / 83MHz /
  • 0
  • },
  • .driver = &spi_driver_general,
  • },
    +
    { .id_len = 0, },
    };

diff —git a/osdrv/opensource/uboot/u-boot-2016.11/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c b/osdrv/opensource/uboot/u-boot-2016.11/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c
index 29e6fd05f..a16625ca9 100644
—- a/osdrv/opensource/uboot/u-boot-2016.11/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c
+++ b/osdrv/opensource/uboot/u-boot-2016.11/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c
@@ -32,6 +32,7 @@ SET_READ_STD(1, INFINITE, 24);

SET_READ_FAST(1, INFINITE, 60);
SET_READ_FAST(1, INFINITE, 80);
+SET_READ_FAST(1, INFINITE, 83); / 83MHz /
SET_READ_FAST(1, INFINITE, 100);
SET_READ_FAST(1, INFINITE, 104);
SET_READ_FAST(1, INFINITE, 108);
@@ -39,6 +40,7 @@ SET_READ_FAST(1, INFINITE, 120);

SET_READ_DUAL(1, INFINITE, 60);
SET_READ_DUAL(1, INFINITE, 80);
+SET_READ_DUAL(1, INFINITE, 83); / 83MHz /
SET_READ_DUAL(1, INFINITE, 100);
SET_READ_DUAL(1, INFINITE, 104);
SET_READ_DUAL(1, INFINITE, 108);
@@ -53,6 +55,7 @@ SET_READ_DUAL_ADDR(1, INFINITE, 120);

SET_READ_QUAD(1, INFINITE, 60);
SET_READ_QUAD(1, INFINITE, 80);
+SET_READ_QUAD(1, INFINITE, 83); / 83MHz /
SET_READ_QUAD(1, INFINITE, 100);
SET_READ_QUAD(1, INFINITE, 104);
SET_READ_QUAD(1, INFINITE, 108);
@@ -71,10 +74,12 @@ SET_READ_QUAD_ADDR(1, INFINITE, 120);
SET_WRITE_STD(0, 256, 24);
SET_WRITE_STD(0, 256, 75);
SET_WRITE_STD(0, 256, 80);
+SET_WRITE_STD(0, 256, 83); / 83MHz /
SET_WRITE_STD(0, 256, 100);
SET_WRITE_STD(0, 256, 104);

SET_WRITE_QUAD(0, 256, 80);
+SET_WRITE_QUAD(0, 256, 83); / 83MHz /
SET_WRITE_QUAD(0, 256, 100);
SET_WRITE_QUAD(0, 256, 104);
SET_WRITE_QUAD(0, 256, 108);
@@ -84,6 +89,7 @@ SET_WRITE_QUAD(0, 256, 120);
SET_ERASE_SECTOR_128K(0, _128K, 24);
SET_ERASE_SECTOR_128K(0, _128K, 75);
SET_ERASE_SECTOR_128K(0, _128K, 80);
+SET_ERASE_SECTOR_128K(0, _128K, 83); / 83MHz /
SET_ERASE_SECTOR_128K(0, _128K, 104);

SET_ERASE_SECTOR_256K(0, _256K, 24);
@@ -1629,7 +1635,36 @@ struct spi_nand_info hifmc_spi_nand_flash_table[] = {
},
.driver = &spi_driver_general,
},

  • / Dosilicon 3.3v DS35Q4GM 4Gbit /
  • {
  • .name = “DS35Q4GM”,
  • .id = {0xE5, 0xF4},
  • .id_len = 2,
  • .chipsize = _512M,
  • .erasesize = _128K,
  • .pagesize = _2K,
  • .oobsize = 128,
  • .badblock_pos = BBP_FIRST_PAGE,
  • .read = {
  • &READ_STD(1, INFINITE, 24), / 24MHz /
  • &READ_FAST(1, INFINITE, 83), / 83MHz /
  • &READ_DUAL(1, INFINITE, 83), / 83MHz /
  • &READ_QUAD(1, INFINITE, 83), / 83MHz /
  • 0
  • },
  • .write = {
  • &WRITE_STD(0, 256, 24), / 83MHz /
  • &WRITE_QUAD(0, 256, 83), / 83MHz /
  • 0
  • },
  • .erase = {
  • &ERASE_SECTOR_128K(0, _128K, 83), / 83MHz /
  • 0
  • },
  • .driver = &spi_driver_general,
  • },
    +
    { .id_len = 0, },
    };

```

Stranger

13个粉丝

0

问答

5

专栏

8

资料

Stranger 2024-12-26 15:28:50
认可0
diff --git a/osdrv/opensource/kernel/linux-4.9.y-smp/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c b/osdrv/opensource/kernel/linux-4.9.y-smp/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c
index cd89d0e0c..51b81b1d0 100644
--- a/osdrv/opensource/kernel/linux-4.9.y-smp/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c
+++ b/osdrv/opensource/kernel/linux-4.9.y-smp/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c
@@ -36,12 +36,14 @@
 SET_READ_STD(1, INFINITE, 24);

 SET_READ_FAST(1, INFINITE, 80);
+SET_READ_FAST(1, INFINITE, 83);  /* 83MHz */
 SET_READ_FAST(1, INFINITE, 100);
 SET_READ_FAST(1, INFINITE, 104);
 SET_READ_FAST(1, INFINITE, 108);
 SET_READ_FAST(1, INFINITE, 120);

 SET_READ_DUAL(1, INFINITE, 80);
+SET_READ_DUAL(1, INFINITE, 83);  /* 83MHz */
 SET_READ_DUAL(1, INFINITE, 100);
 SET_READ_DUAL(1, INFINITE, 104);
 SET_READ_DUAL(1, INFINITE, 108);
@@ -54,6 +56,7 @@ SET_READ_DUAL_ADDR(1, INFINITE, 108);
 SET_READ_DUAL_ADDR(1, INFINITE, 120);

 SET_READ_QUAD(1, INFINITE, 80);
+SET_READ_QUAD(1, INFINITE, 83);  /* 83MHz */
 SET_READ_QUAD(1, INFINITE, 100);
 SET_READ_QUAD(1, INFINITE, 104);
 SET_READ_QUAD(1, INFINITE, 108);
@@ -71,10 +74,12 @@ SET_READ_QUAD_ADDR(1, INFINITE, 120);
 SET_WRITE_STD(0, 256, 24);
 SET_WRITE_STD(0, 256, 75);
 SET_WRITE_STD(0, 256, 80);
+SET_WRITE_STD(0, 256, 83);  /* 83MHz */
 SET_WRITE_STD(0, 256, 100);
 SET_WRITE_STD(0, 256, 104);

 SET_WRITE_QUAD(0, 256, 80);
+SET_WRITE_QUAD(0, 256, 83);  /* 83MHz */
 SET_WRITE_QUAD(0, 256, 100);
 SET_WRITE_QUAD(0, 256, 104);
 SET_WRITE_QUAD(0, 256, 108);
@@ -84,6 +89,7 @@ SET_WRITE_QUAD(0, 256, 120);
 SET_ERASE_SECTOR_128K(0, _128K, 24);
 SET_ERASE_SECTOR_128K(0, _128K, 75);
 SET_ERASE_SECTOR_128K(0, _128K, 80);
+SET_ERASE_SECTOR_128K(0, _128K, 83);  /* 83MHz */
 SET_ERASE_SECTOR_128K(0, _128K, 104);

 SET_ERASE_SECTOR_256K(0, _256K, 24);
@@ -1631,7 +1637,36 @@ struct spi_nand_info hifmc_spi_nand_flash_table[] = {
         },
         .driver    = &spi_driver_general,
     },
-    
+    
+    /* Dosilicon 3.3v DS35Q4GM 4Gbit */
+    {
+        .name      = "DS35Q4GM",
+        .id        = {0xE5, 0xF4},
+        .id_len    = 2,
+        .chipsize  = _512M,
+        .erasesize = _128K,
+        .pagesize  = _2K,
+        .oobsize   = 128,
+        .badblock_pos = BBP_FIRST_PAGE,
+        .read      = {
+            &READ_STD(1, INFINITE, 24), /* 24MHz */
+            &READ_FAST(1, INFINITE, 83),  /* 83MHz */
+            &READ_DUAL(1, INFINITE, 83),  /* 83MHz */
+            &READ_QUAD(1, INFINITE, 83),  /* 83MHz */
+            0
+        },
+        .write     = {
+            &WRITE_STD(0, 256, 24),  /* 83MHz */
+            &WRITE_QUAD(0, 256, 83),  /* 83MHz */
+            0
+        },
+        .erase     = {
+            &ERASE_SECTOR_128K(0, _128K, 83),  /* 83MHz */
+            0
+        },
+        .driver    = &spi_driver_general,
+    },
+
     {   .id_len    = 0, },
 };

diff --git a/osdrv/opensource/uboot/u-boot-2016.11/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c b/osdrv/opensource/uboot/u-boot-2016.11/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c
index 29e6fd05f..a16625ca9 100644
--- a/osdrv/opensource/uboot/u-boot-2016.11/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c
+++ b/osdrv/opensource/uboot/u-boot-2016.11/drivers/mtd/nand/hifmc100/hifmc_spi_nand_ids.c
@@ -32,6 +32,7 @@ SET_READ_STD(1, INFINITE, 24);

 SET_READ_FAST(1, INFINITE, 60);
 SET_READ_FAST(1, INFINITE, 80);
+SET_READ_FAST(1, INFINITE, 83);  /* 83MHz */
 SET_READ_FAST(1, INFINITE, 100);
 SET_READ_FAST(1, INFINITE, 104);
 SET_READ_FAST(1, INFINITE, 108);
@@ -39,6 +40,7 @@ SET_READ_FAST(1, INFINITE, 120);

 SET_READ_DUAL(1, INFINITE, 60);
 SET_READ_DUAL(1, INFINITE, 80);
+SET_READ_DUAL(1, INFINITE, 83);  /* 83MHz */
 SET_READ_DUAL(1, INFINITE, 100);
 SET_READ_DUAL(1, INFINITE, 104);
 SET_READ_DUAL(1, INFINITE, 108);
@@ -53,6 +55,7 @@ SET_READ_DUAL_ADDR(1, INFINITE, 120);

 SET_READ_QUAD(1, INFINITE, 60);
 SET_READ_QUAD(1, INFINITE, 80);
+SET_READ_QUAD(1, INFINITE, 83);  /* 83MHz */
 SET_READ_QUAD(1, INFINITE, 100);
 SET_READ_QUAD(1, INFINITE, 104);
 SET_READ_QUAD(1, INFINITE, 108);
@@ -71,10 +74,12 @@ SET_READ_QUAD_ADDR(1, INFINITE, 120);
 SET_WRITE_STD(0, 256, 24);
 SET_WRITE_STD(0, 256, 75);
 SET_WRITE_STD(0, 256, 80);
+SET_WRITE_STD(0, 256, 83);  /* 83MHz */
 SET_WRITE_STD(0, 256, 100);
 SET_WRITE_STD(0, 256, 104);

 SET_WRITE_QUAD(0, 256, 80);
+SET_WRITE_QUAD(0, 256, 83);  /* 83MHz */
 SET_WRITE_QUAD(0, 256, 100);
 SET_WRITE_QUAD(0, 256, 104);
 SET_WRITE_QUAD(0, 256, 108);
@@ -84,6 +89,7 @@ SET_WRITE_QUAD(0, 256, 120);
 SET_ERASE_SECTOR_128K(0, _128K, 24);
 SET_ERASE_SECTOR_128K(0, _128K, 75);
 SET_ERASE_SECTOR_128K(0, _128K, 80);
+SET_ERASE_SECTOR_128K(0, _128K, 83);  /* 83MHz */
 SET_ERASE_SECTOR_128K(0, _128K, 104);

 SET_ERASE_SECTOR_256K(0, _256K, 24);
@@ -1629,7 +1635,36 @@ struct spi_nand_info hifmc_spi_nand_flash_table[] = {
         },
         .driver    = &spi_driver_general,
     },
-    
+    
+    /* Dosilicon 3.3v DS35Q4GM 4Gbit */
+    {
+        .name      = "DS35Q4GM",
+        .id        = {0xE5, 0xF4},
+        .id_len    = 2,
+        .chipsize  = _512M,
+        .erasesize = _128K,
+        .pagesize  = _2K,
+        .oobsize   = 128,
+        .badblock_pos = BBP_FIRST_PAGE,
+        .read      = {
+            &READ_STD(1, INFINITE, 24), /* 24MHz */
+            &READ_FAST(1, INFINITE, 83),  /* 83MHz */
+            &READ_DUAL(1, INFINITE, 83),  /* 83MHz */
+            &READ_QUAD(1, INFINITE, 83),  /* 83MHz */
+            0
+        },
+        .write     = {
+            &WRITE_STD(0, 256, 24),  /* 83MHz */
+            &WRITE_QUAD(0, 256, 83),  /* 83MHz */
+            0
+        },
+        .erase     = {
+            &ERASE_SECTOR_128K(0, _128K, 83),  /* 83MHz */
+            0
+        },
+        .driver    = &spi_driver_general,
+    },
+
     {   .id_len    = 0, },
 };

Stranger

13个粉丝

0

问答

5

专栏

8

资料

Stranger 2024-12-26 15:33:23
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区