cangmu2007

cangmu2007

0个粉丝

1

问答

0

专栏

0

资料

cangmu2007  发布于  2017-06-19 13:33:09
采纳率 0%
1个问答
6289

求助,Hi3519V101更换nandflash后不能在fastboot烧写

 
求助,我之前用的是SPI nor flash,很正常,换成nandflash后就不能在fastboot烧写了。
我用的nandflash是MT29F1G08ABAEA,做的时候将芯片信息分别添加到u-boot的nand_flash_special_table和Excel表格的FLASH type,将U-boot的Debug信息打印后发现send reset不成功,
请问各位我还缺少哪些步骤吗?下面是fastboot烧写时的信息

串口已经连接,请给单板上电,若已经上电,请断电后重新上电。
############################## ---- 10%
############################# ---- 20%
############################# ---- 30%
############################# ---- 40%
############################# ---- 51%
############################# ---- 61%
############################# ---- 71%
############################# ---- 81%
############################# ---- 91%
####################### ---- 100%
Boot download completed!
         

System startup


U-Boot 2010.06 (Jun 19 2017 - 11:27:12)

Check Flash Memory Controller v100 ... Found
hifmc100_host_init(915):          *-Start nand host init
hifmc100_host_init(920):          |-Read FMC CFG[0x0]0x1824
hifmc100_host_init(930):          |-Controller enter normal mode
hifmc100_host_init(934):          |-Set CFG[0x0]0x1825
hifmc100_host_init(940):          |-Read global CFG[0x4]0xc4
hifmc100_host_init(943):          |-Default disable randomizer
hifmc100_host_init(947):          |-Set global CFG[0x4]0xc0
hifmc100_host_init(980):          |-Read SYSTEM STATUS CFG[0x8c]0xf0200014
hifmc100_host_init(983):          |-Auto config pagesize and ecctype
hifmc100_host_init(988):          *-End nand host init
Special NAND id table Version 1.38
hifmc100_send_cmd_reset(332):          *-Start reset nand flash
hifmc100_send_cmd_reset(336):          |-Set CMD[0x24]0xff
hifmc100_send_cmd_reset(340):          |-Set OP_CFG[0x30]0x0
hifmc100_send_cmd_reset(346):          |-Set OP[0x3c]0x89
hifmc100_send_cmd_reset(348): Error: Wait cmd cpu finish timeout!
hifmc100_send_cmd_reset(350):          *-End reset nand flash
hifmc100_send_cmd_readid(292):          *-Start read nand flash ID
hifmc100_ecc_randomizer(260):          |*-Start Enter ECC0 mode
hifmc100_ecc_randomizer(261):          ||-Get CFG[0x0]0x1825
hifmc100_ecc_randomizer(263):          ||-Set CFG[0x0]0x1805
hifmc100_ecc_randomizer(268):          |*-End randomizer and ECC0 mode config
hifmc100_send_cmd_readid(298):          |-Set DATA_NUM[0x38]0x8
hifmc100_send_cmd_readid(302):          |-Set CMD[0x24]0x90
hifmc100_send_cmd_readid(306):          |-Set ADDRL[0x2c]0x0
hifmc100_send_cmd_readid(311):          |-Set OP_CFG[0x30]0x10
hifmc100_send_cmd_readid(318):          |-Set OP[0x3c]0xc5
等待boot启动超时,单板上无fastboot或当前fastboot无法启动。
我来回答
回答2个
时间排序
认可量排序

cangmu2007

0个粉丝

1

问答

0

专栏

0

资料

cangmu2007 2017-06-21 15:47:05
认可0
找到原因了,在U-boot里面重置时钟那里hifmc100_nand_controller_enable居然把复位撤销了regval &= ~FMC_SOFT_RST_REQ
官方难道就没有发现这种明显的错误。
不过现在是能够复位了,但是读取的Nand ID却是错误了,有人知道怎么解决吗(不是SPI Nand)?

System startup


U-Boot 2010.06 (Jun 21 2017 - 14:50:38)

Check Flash Memory Controller v100 ... Found
hifmc100_host_init(916):          *-Start nand host init
hifmc100_host_init(921):          |-Read FMC CFG[0x0]0x1824
hifmc100_host_init(931):          |-Controller enter normal mode
hifmc100_host_init(934):          |-Set CFG[0x0]0x1825
hifmc100_host_init(940):          |-Read global CFG[0x4]0xc4
hifmc100_host_init(943):          |-Default disable randomizer
hifmc100_host_init(947):          |-Set global CFG[0x4]0xc0
hifmc100_host_init(980):          |-Read SYSTEM STATUS CFG[0x8c]0xf0200014
hifmc100_host_init(983):          |-Auto config pagesize and ecctype
hifmc100_host_init(988):          *-End nand host init
Special NAND id table Version 1.38
hifmc100_send_cmd_reset(332):          *-Start reset nand flash
hifmc100_send_cmd_reset(336):          |-Set CMD[0x24]0xff
hifmc100_send_cmd_reset(340):          |-Set OP_CFG[0x30]0x0
hifmc100_send_cmd_reset(346):          |-Set OP[0x3c]0x89
hifmc100_send_cmd_reset(350):          *-End reset nand flash
hifmc100_ecc_randomizer(260):          |*-Start Quit ECC0 mode
hifmc100_ecc_randomizer(261):          ||-Get CFG[0x0]0x0
hifmc100_ecc_randomizer(263):          ||-Set CFG[0x0]0x1825
hifmc100_ecc_randomizer(268):          |*-End randomizer and ECC0 mode config
hifmc100_ecc_randomizer(260):          |*-Start Quit ECC0 mode
hifmc100_ecc_randomizer(261):          ||-Get CFG[0x0]0x0
hifmc100_ecc_randomizer(263):          ||-Set CFG[0x0]0x1825
hifmc100_ecc_randomizer(268):          |*-End randomizer and ECC0 mode config
hifmc100_send_cmd_readid(292):          *-Start read nand flash ID
hifmc100_ecc_randomizer(260):          |*-Start Enter ECC0 mode
hifmc100_ecc_randomizer(261):          ||-Get CFG[0x0]0x0
hifmc100_ecc_randomizer(263):          ||-Set CFG[0x0]0x1805
hifmc100_ecc_randomizer(268):          |*-End randomizer and ECC0 mode config
hifmc100_send_cmd_readid(298):          |-Set DATA_NUM[0x38]0x5
hifmc100_send_cmd_readid(302):          |-Set CMD[0x24]0x90
hifmc100_send_cmd_readid(306):          |-Set ADDRL[0x2c]0x0
hifmc100_send_cmd_readid(311):          |-Set OP_CFG[0x30]0x10
hifmc100_send_cmd_readid(318):          |-Set OP[0x3c]0xc5
hifmc100_send_cmd_readid(324):          *-End read nand flash ID
hifmc100_ecc_randomizer(260):          |*-Start Quit ECC0 mode
hifmc100_ecc_randomizer(261):          ||-Get CFG[0x0]0x0
hifmc100_ecc_randomizer(263):          ||-Set CFG[0x0]0x1825
hifmc100_ecc_randomizer(268):          |*-End randomizer and ECC0 mode config
hifmc100_ecc_randomizer(260):          |*-Start Quit ECC0 mode
hifmc100_ecc_randomizer(261):          ||-Get CFG[0x0]0x0
hifmc100_ecc_randomizer(263):          ||-Set CFG[0x0]0x1825
hifmc100_ecc_randomizer(268):          |*-End randomizer and ECC0 mode config
hifmc100_ecc_randomizer(260):          |*-Start Quit ECC0 mode
hifmc100_ecc_randomizer(261):          ||-Get CFG[0x0]0x0
hifmc100_ecc_randomizer(263):          ||-Set CFG[0x0]0x1825
hifmc100_ecc_randomizer(268):          |*-End randomizer and ECC0 mode config
hifmc100_send_cmd_readid(292):          *-Start read nand flash ID
hifmc100_ecc_randomizer(260):          |*-Start Enter ECC0 mode
hifmc100_ecc_randomizer(261):          ||-Get CFG[0x0]0x0
hifmc100_ecc_randomizer(263):          ||-Set CFG[0x0]0x1805
hifmc100_ecc_randomizer(268):          |*-End randomizer and ECC0 mode config
hifmc100_send_cmd_readid(298):          |-Set DATA_NUM[0x38]0x5
hifmc100_send_cmd_readid(302):          |-Set CMD[0x24]0x90
hifmc100_send_cmd_readid(306):          |-Set ADDRL[0x2c]0x0
hifmc100_send_cmd_readid(311):          |-Set OP_CFG[0x30]0x10
hifmc100_send_cmd_readid(318):          |-Set OP[0x3c]0xc5
hifmc100_send_cmd_readid(324):          *-End read nand flash ID
hifmc100_ecc_randomizer(260):          |*-Start Quit ECC0 mode
hifmc100_ecc_randomizer(261):          ||-Get CFG[0x0]0x0
hifmc100_ecc_randomizer(263):          ||-Set CFG[0x0]0x1825
hifmc100_ecc_randomizer(268):          |*-End randomizer and ECC0 mode config
hifmc100_ecc_randomizer(260):          |*-Start Quit ECC0 mode
hifmc100_ecc_randomizer(261):          ||-Get CFG[0x0]0x0
hifmc100_ecc_randomizer(263):          ||-Set CFG[0x0]0x1825
hifmc100_ecc_randomizer(268):          |*-End randomizer and ECC0 mode config
hifmc100_ecc_randomizer(260):          |*-Start Quit ECC0 mode
hifmc100_ecc_randomizer(261):          ||-Get CFG[0x0]0x0
hifmc100_ecc_randomizer(263):          ||-Set CFG[0x0]0x1825
hifmc100_ecc_randomizer(268):          |*-End randomizer and ECC0 mode config
hifmc_get_spl_flash_type(893):          *-Start find special nand flash
Nand ID: 0x98 0x48 0xAE 0x00 0x98 0x00 0x00 0x00
hifmc100_send_cmd_readid(292):          *-Start read nand flash ID
hifmc100_ecc_randomizer(260):          |*-Start Enter ECC0 mode
hifmc100_ecc_randomizer(261):          ||-Get CFG[0x0]0x0
hifmc100_ecc_randomizer(263):          ||-Set CFG[0x0]0x1805
hifmc100_ecc_randomizer(268):          |*-End randomizer and ECC0 mode config
hifmc100_send_cmd_readid(298):          |-Set DATA_NUM[0x38]0x5
hifmc100_send_cmd_readid(302):          |-Set CMD[0x24]0x90
hifmc100_send_cmd_readid(306):          |-Set ADDRL[0x2c]0x0
hifmc100_send_cmd_readid(311):          |-Set OP_CFG[0x30]0x10
hifmc100_send_cmd_readid(318):          |-Set OP[0x3c]0xc5
hifmc100_send_cmd_readid(324):          *-End read nand flash ID
hifmc100_ecc_randomizer(260):          |*-Start Quit ECC0 mode
hifmc100_ecc_randomizer(261):          ||-Get CFG[0x0]0x0
hifmc100_ecc_randomizer(263):          ||-Set CFG[0x0]0x1825
hifmc100_ecc_randomizer(268):          |*-End randomizer and ECC0 mode config
hifmc100_ecc_randomizer(260):          |*-Start Quit ECC0 mode
hifmc100_ecc_randomizer(261):          ||-Get CFG[0x0]0x0
hifmc100_ecc_randomizer(263):          ||-Set CFG[0x0]0x1825
hifmc100_ecc_randomizer(268):          |*-End randomizer and ECC0 mode config
hifmc100_ecc_randomizer(260):          |*-Start Quit ECC0 mode
hifmc100_ecc_randomizer(261):          ||-Get CFG[0x0]0x0
hifmc100_ecc_randomizer(263):          ||-Set CFG[0x0]0x1825
hifmc100_ecc_randomizer(268):          |*-End randomizer and ECC0 mode config
hifmc_get_spl_flash_type(946):          *-Not found special nand flash
No NAND device found!!!
MMC:   
EMMC/MMC/SD controller initialization.
Card did not respond to voltage select!
No EMMC/MMC/SD device found !
data abort
pc : [<00003fc4>]           lr : [<00001584>]
sp : 04017ff0  ip : 88441278         fp : 88494a00
r10: 883a0140  r9 : 000c0000         r8 : 8839ffe0
r7 : 00000000  r6 : 88494a00         r5 : 00080000  r4 : 00000000
r3 : ffffffff  r2 : 7a696a75         r1 : e59f622c  r0 : 12020000
Flags: Nzcv  IRQs off  FIQs off  Mode SVC_32
Resetting CPU ...

resetting ...

真实的ID是这个:0x2C 0xF1 0x80 0x95 0x04 0x00 0x00 0x00

lzx201705

0个粉丝

1

问答

0

专栏

0

资料

lzx201705 2018-03-08 12:36:44
认可0
楼主,请问这个问题解决了吗?具体是什么原因呢?
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

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

Markdown 语法

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

举报类型

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

详细说明

易百纳技术社区