您尚未登录。

#1 2021-04-06 18:39:16

gmyu
会员
注册时间: 2020-05-17
已发帖子: 49
积分: 37.5

GNAND init failed !!!!!!!! 硬件肯定没问题,我哪里配置错了。

linux在N32926遇到个问题GNAND init failed !!!!!!!! 硬件肯定没问题,我哪里配置错了。
希望论坛的高手指点。谢谢!

NAND: nand_init!!!!!
W55FA93 NAND driver (20131023) has been initialized successfully!
scsi0 : Nuvoton W55FA93 On Board NAND DRIVER!
W55FA93 DEVMEM driver has been initialized successfully!
[GNAND] GNAND Library Version: V1.02.3
fmiSMCheckBootHeader 1
Nand0: uLibStartBlock=34
[GNAND] NAND flash chip detected, chip ID is 0xad-0xda !
GNAND init failed !!!!!!!!
scsi 0:0:1:0: Direct-Access NUVOTON GNAND DRIVER 2.00 PQ: 0 ANSI: 0
sd 0:0:1:0: [sda] Unit Not Ready
sd 0:0:1:0: [sda] Sense Key : 0x3 [current]
sd 0:0:1:0: [sda] ASC=0x30 ASCQ=0x0
sd 0:0:1:0: [sda] READ CAPACITY failed
sd 0:0:1:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:1:0: [sda] Sense Key : 0x3 [current]
sd 0:0:1:0: [sda] ASC=0x30 ASCQ=0x0
sd 0:0:1:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:1:0: [sda] Asking for cache data failed
sd 0:0:1:0: [sda] Assuming drive cache: write through
sd 0:0:1:0: [sda] Unit Not Ready
sd 0:0:1:0: [sda] Sense Key : 0x3 [current]
sd 0:0:1:0: [sda] ASC=0x30 ASCQ=0x0
sd 0:0:1:0: [sda] READ CAPACITY failed
sd 0:0:1:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
sd 0:0:1:0: [sda] Sense Key : 0x3 [current]
sd 0:0:1:0: [sda] ASC=0x30 ASCQ=0x0
sd 0:0:1:0: [sda] Test WP failed, assume Write Enabled
sd 0:0:1:0: [sda] Asking for cache data failed
sd 0:0:1:0: [sda] Assuming drive cache: write through
sd 0:0:1:0: [sda] Attached SCSI removable disk

系统启动时,在这里就死了,请问大神们怎么回事呢?

离线

#2 2021-04-06 18:57:45

哇酷小二
管理员
注册时间: 2020-04-22
已发帖子: 1,982
积分: 1907

Re: GNAND init failed !!!!!!!! 硬件肯定没问题,我哪里配置错了。

[GNAND] NAND flash chip detected, chip ID is 0xad-0xda !
GNAND init failed !!!!!!!!


跟踪一下这个代码

在线

#3 2021-04-06 20:06:30

哇酷小二
管理员
注册时间: 2020-04-22
已发帖子: 1,982
积分: 1907

Re: GNAND init failed !!!!!!!! 硬件肯定没问题,我哪里配置错了。

在线

#4 2021-04-06 20:15:09

gmyu
会员
注册时间: 2020-05-17
已发帖子: 49
积分: 37.5

Re: GNAND init failed !!!!!!!! 硬件肯定没问题,我哪里配置错了。

感谢二哥!

离线

#5 2021-04-06 20:35:12

gmyu
会员
注册时间: 2020-05-17
已发帖子: 49
积分: 37.5

Re: GNAND init failed !!!!!!!! 硬件肯定没问题,我哪里配置错了。

刚刚关了调试电脑,才想到到本站问一下大神, 上面的错误信息是从32905的,我的n32926遇到一模一样的错误,这几天比较忙,等fix了这个问题再来回帖,特别感谢小二哥的指点。

离线

#6 2021-04-06 20:38:30

gmyu
会员
注册时间: 2020-05-17
已发帖子: 49
积分: 37.5

Re: GNAND init failed !!!!!!!! 硬件肯定没问题,我哪里配置错了。

新塘这个系列的RTC设计很怪异,本站也有讨论过,我的板子裸奔没用上,现在我在menuconfig里面disable了RTC,不知到跑linux有没有影响。

离线

#7 2021-04-07 09:26:11

gmyu
会员
注册时间: 2020-05-17
已发帖子: 49
积分: 37.5

Re: GNAND init failed !!!!!!!! 硬件肯定没问题,我哪里配置错了。

昨晚再看了一下新塘的文档,这个真是怪异。应该是我的烧录有问题。正常的顺序是。

1. system:N9H26_NANDLoader_240MHz_Fast_Logo210406.bin
2. logo:地址  0x500000
3. NVLoader: 0x800000  NVT_NAND_Fast_GIANTPLUS_QVGA.bin 这个昨天我没有烧录,但是一样Linux引导了
4. conprog.bin, 这个文件说在0x900000,我不知道怎么烧录。网上说插上U盘就有两个盘了,直接copy到NAND1-1,可是如果我 只烧录了123,并没有U盘出现在PC。

希望大神指点。

离线

#8 2021-04-07 09:28:28

gmyu
会员
注册时间: 2020-05-17
已发帖子: 49
积分: 37.5

Re: GNAND init failed !!!!!!!! 硬件肯定没问题,我哪里配置错了。

\0\0
Initial RTC .Fail - Timeout
DRAM Init..1f2p
SD Port 0 Booting Fail - No/Unknown Device
NAND CS0 Booting 2K-Page(4) BCH T4 PPB 64 
     Write - 0xB0003010 = 0x00000006
     Write - 0xB0000204 = 0xFFFFFFFF
     Write - 0xB0000208 = 0xFFFFFFFF
     Write - 0xB0003008 = 0x0000805A
     Write - 0xB0003028 = 0x2AFF3B4A
     Write - 0xB0003004 = 0x00000021
     Delay 256 us
     Write - 0xB0003004 = 0x00000023
     Write - 0xB0003004 = 0x00000027
     Delay 256 us
     Write - 0xB000301C = 0x00002402
     Delay 256 us
     Write - 0xB0003018 = 0x00000532
     Delay 256 us
     Write - 0xB0003004 = 0x00000027
     Delay 256 us
     Write - 0xB0003004 = 0x0000002B
     Delay 256 us
     Write - 0xB0003004 = 0x0000002B
     Delay 256 us
     Write - 0xB0003018 = 0x00000432
     Delay 256 us
     Write - 0xB000301C = 0x00002782
     Delay 256 us
     Write - 0xB000301C = 0x00002402
     Delay 256 us
     Write - 0xB0003004 = 0x00000020
     Delay 256 us
     Write - 0xB0003054 = 0x00000013
     Delay 4096 us
     Write - 0xB0003054 = 0x0000001E
     Delay 20480 us
     DRAM CMD0
     Delay 4096 us
     DRAM CMD2
     DRAM CMD2
     Write - 0xB0003054 = 0x0000001A
     Delay 8192 us
     Write - 0xB0000208 = 0x00008354
     Write - 0xB0000204 = 0x00E5011F
Success
Execute Address 0x00900000
N9H26 Nand Boot Loader entry (20191218_Logo).
MCLK = 180,000,000
System clock = 240,000,000Hz
DRAM clock = 360,000,000Hz
REG_SDTIME = 0x2ABF394A
Enable RTC power off feature to 0 seconds.
Get image information from block 0x0 ..
Load file length 261,120, execute address 0x500000
Load file length 290,324, execute address 0x800000
Nand Boot Loader exit. Jump to execute address 0x800000 ...
NVT Loader Start
PWRON =  0x10
NVT Loader: g_ibr_boot_sd_port = 0
N3292 UDC Library (20200327)
[GNAND] GNAND Library Version: V1.02.5
Initial NAND NonOS Driver (20181029) for NAND port 0
NAND: Found SLC NAND, ID [EF][F1][00][95][00], page size 2,048, BCH T8
uIBRAreaSize = 4 blocks
[GNAND] NAND flash chip detected, chip ID is 0xEF-0xF1 !
Total Disk Size 122,112 KB
KPI  Key Code = 0x0
Cannot find conprog.bin in NAND device.(err=0xFFFF8220)
systen exit

现在执行完上面的123,找不到conprog.bin, 我把他烧录到data,exc,romfs都试过,不行。

离线

#9 2021-04-07 09:36:59

raspberryman
会员
注册时间: 2019-12-27
已发帖子: 456
积分: 441.5

Re: GNAND init failed !!!!!!!! 硬件肯定没问题,我哪里配置错了。

新唐太j 8缺人才了,连一个uboot都不会移植,然后每个芯片一个不同的烧录软件,用户体验辣鸡级别。

离线

#10 2021-04-07 09:50:35

奔跑的孩子
会员
注册时间: 2021-01-28
已发帖子: 13
积分: 11

Re: GNAND init failed !!!!!!!! 硬件肯定没问题,我哪里配置错了。

是有一个nand烧录文档,照那个做就可以了,插入usb线会出现u盘,具体怎么做忘记了,很久以前的事情了。

离线

#11 2021-04-07 12:07:01

gmyu
会员
注册时间: 2020-05-17
已发帖子: 49
积分: 37.5

Re: GNAND init failed !!!!!!!! 硬件肯定没问题,我哪里配置错了。

[GNAND] NAND flash chip detected, chip ID is 0xEF-0xF1 !
Total Disk Size 120,448 KB
KPI  Key Code = 0x10
Enter USB
Detect USB plug in
<MSC>
N3292 MSC Library (20170606)  一直在这等着

改了一下NVT_NAND_Fast_GIANTPLUS_QVGA.bin,加了按键,本以为可以在PC上面出现nand1-1的,结果还是没有。

	if(u32KpiReport==(MASS_STORAGE)){//Demo board = "B"+"LEFT" Key  MASS_STORAGE
		sysprintf("Enter USB\n");
		sysDelay(5);			/* Delay 50ms for USB VBUS stable */
		if(udcIsAttached()){
			//for mass's issue. sicSdClose();
			sysprintf("Detect USB plug in\n");	
			mass(&g_sNDisk0, NULL, NULL, (INT)NULL, (INT)NULL, (INT)NULL, 0);
			sysprintf("USB plug out\n");
			outp32(REG_MISCR, inp32(REG_MISCR) | CPURST);
		}
	}
	outp32(PHY_CTL, inp32(PHY_CTL) & (~Phy_suspend));

离线

#12 2021-04-07 14:19:05

gmyu
会员
注册时间: 2020-05-17
已发帖子: 49
积分: 37.5

Re: GNAND init failed !!!!!!!! 硬件肯定没问题,我哪里配置错了。

改了一下NVT_NAND_Fast_GIANTPLUS_QVGA.bin ,使用adc读GPIOG8,如果大于2V运行linux,否则作U盘用,可以copy linux内核到nand1-1.
非官方的板子,折腾。谢谢楼上各位了。

	/* Detect USB */
	//u32KpiReport = kpi_reada(KEY_ADC_CHANNEL) & MASS_STORAGE;
	u32KpiReport = read_voltage(KEY_ADC_CHANNEL);
	//u32KpiReport = kpi_reada(KPI_NONBLOCK) & MASS_STORAGE;
	if(inp32(0xFF001804) == 0x6D617373){	//AutoWriter
		outp32(0xFF001804, 0);
		u32KpiReport = MASS_STORAGE;
	}
	sysprintf("KPI ADC Code = 0x%x\n", u32KpiReport);
	//u32KpiReport=(0x10);
	if(u32KpiReport < (0x99a)){//Demo board = "B"+"LEFT" Key  0x10 = 04e4,2=0x99a   MASS_STORAGE
		sysprintf("Enter USB\n");
		sysDelay(5);			/* Delay 50ms for USB VBUS stable */
		if(udcIsAttached()){
			//for mass's issue. sicSdClose();
			sysprintf("Detect USB plug in\n");	
			mass(&g_sNDisk0, NULL, NULL, (INT)NULL, (INT)NULL, (INT)NULL, 0);
			sysprintf("USB plug out\n");
			outp32(REG_MISCR, inp32(REG_MISCR) | CPURST);
		}
	}
	outp32(PHY_CTL, inp32(PHY_CTL) & (~Phy_suspend));

离线

#13 2021-04-07 14:23:41

工控小白
会员
注册时间: 2020-05-20
已发帖子: 39
积分: 38

Re: GNAND init failed !!!!!!!! 硬件肯定没问题,我哪里配置错了。

为楼主的深入研究精神点赞

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn