搜索
bottom↓
回复: 4

【求助】N32926启动提示GNAND init failed

[复制链接]
(76331262)

出0入0汤圆

发表于 2019-2-25 11:14:12 | 显示全部楼层 |阅读模式
https://github.com/OpenNuvoton/N32926_Linux_BSP 拉下来的最新代码。
使用的Nand型号为:MX30LF1G18AC

然后按照下面步骤编译下载到板子上:

1. tar zxvf rootfs-2.6.35.tar.gz
2. make w55fa92_defconfig
3. ./build nand
4. AutoWriter烧录到nand

重新断电启动后,打印如下:

  1. Initial RTC
  2. DRAM Init..2p
  3. SD Port 0 Booting Fail - No/Unknown Device
  4. NAND CS0 Booting 2K-Page(4) BCH T4 PPB 64
  5.      Write - 0xB0000204 = 0xFFFFFFFF
  6.      Write - 0xB0000208 = 0xFFFFFFFF
  7.      Write - 0xB0003008 = 0x0000805A
  8.      Write - 0xB0003028 = 0x2AFF3B4A
  9.      Write - 0xB0003004 = 0x00000021
  10.      Delay 256 us
  11.      Write - 0xB0003004 = 0x00000023
  12.      Write - 0xB0003004 = 0x00000027
  13.      Delay 256 us
  14.      Write - 0xB000301C = 0x00002402
  15.      Delay 256 us
  16.      Write - 0xB0003018 = 0x00000532
  17.      Delay 256 us
  18.      Write - 0xB0003004 = 0x00000027
  19.      Delay 256 us
  20.      Write - 0xB0003004 = 0x0000002B
  21.      Delay 256 us
  22.      Write - 0xB0003004 = 0x0000002B
  23.      Delay 256 us
  24.      Write - 0xB0003018 = 0x00000432
  25.      Delay 256 us
  26.      Write - 0xB000301C = 0x00002782
  27.      Delay 256 us
  28.      Write - 0xB000301C = 0x00002402
  29.      Delay 256 us
  30.      Write - 0xB0003004 = 0x00000020
  31.      Delay 256 us
  32.      Write - 0xB0003054 = 0x00000013
  33.      Delay 4096 us
  34.      Write - 0xB0003054 = 0x0000001E
  35.      Delay 20480 us
  36.      DRAM CMD0
  37.      Delay 4096 us
  38.      DRAM CMD2
  39.      DRAM CMD2
  40.      Write - 0xB0003054 = 0x0000001A
  41.      Delay 8192 us
  42.      Write - 0xB0000208 = 0x00008354
  43.      Write - 0xB0000204 = 0x00E5011F
  44. Success
  45. Execute Address 0x00900000
  46. W55FA92 Nand Boot Loader entry (20181017).
  47. 0
  48. H
  49.   11111113.Ap3:
  50. System clock = 240,000,000Hz
  51. DRAM clock = 360,000,000Hz
  52. REG_SDTIME = 0x2ABF394A
  53. Enable RTC power off feature to 6 seconds.
  54. Get image information from block 0x0 ..
  55. Load file length 153,600, execute address 0x500000
  56. Load file length 4,348,128, execute address 0x0
  57. Nand Boot Loader exit. Jump to execute address 0x0 ...
  58. Linux version 2.6.35.4 (root@ubuntu) (gcc version 4.8.4 (GCC) ) #2 PREEMPT Mon Feb 25 09:41:45 CST 2019
  59. CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
  60. CPU: VIVT data cache, VIVT instruction cache
  61. Machine: W55FA92
  62. Memory policy: ECC disabled, Data cache writeback
  63. FB Buffer Size: 0x70800
  64. Decoder Instance-0, width = 1280, height = 720
  65. Decoder Instance-0, offset = 0x0, total buf size = 0x77b000
  66. Encoder Instance-0, width = 1280, height = 720
  67. Encoder Instance-0, offset = 0x0, total buf size = 0x42f000
  68. TOTAL_VDE_BUF_SIZE = 0xbaa000, dec_total=0x77b000, enc_total=0x42f000
  69. AVC Buffer Size: 0xbaa000
  70. VIN_DEV1 Buffer Size: 0x5bc800
  71. CPU type 0x00fad007 is W55FA92
  72. w55fa92_external_clock        = 12.0 MHz
  73. w55fa92_apll_clock        = 432000 KHz
  74. w55fa92_upll_clock        = 240000 KHz
  75. w55fa92_mpll_clock        = 360000 KHz
  76. w55fa92_system_clock        = 240000 KHz
  77. w55fa92_cpu_clock        = 240000 KHz
  78. w55fa92_ahb_clock        = 120000 KHz
  79. w55fa92_apb_clock        = 60000 KHz
  80. Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
  81. Kernel command line: root=/dev/ram0 console=ttyS1,115200n8 rdinit=/sbin/init mem=64M vt.global_cursor_default=0
  82. PID hash table entries: 256 (order: -2, 1024 bytes)
  83. Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
  84. Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
  85. Memory: 64MB = 64MB total
  86. Memory: 42304k/42304k available, 23232k reserved, 0K highmem
  87. Virtual kernel memory layout:
  88.     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
  89.     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
  90.     DMA     : 0xff600000 - 0xffe00000   (   8 MB)
  91.     vmalloc : 0xc4800000 - 0xe0000000   ( 440 MB)
  92.     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
  93.     modules : 0xbf000000 - 0xc0000000   (  16 MB)
  94.       .init : 0xc0008000 - 0xc00cf000   ( 796 kB)
  95.       .text : 0xc00cf000 - 0xc0407000   (3296 kB)
  96.       .data : 0xc0408000 - 0xc0425860   ( 119 kB)
  97. Hierarchical RCU implementation.
  98.         RCU-based detection of stalled CPUs is disabled.
  99.         Verbose stalled-CPUs detection is disabled.
  100. NR_IRQS:48
  101. Console: colour dummy device 80x30
  102. console [ttyS1] enabled
  103. w55fa92_avc_alloc_mem : Kernel allocate phy buf addr =0x4bb000, vir_addr = 0xc04bb000
  104. ENCODER_TOTAL_SIZE = 0x42f000, DECODER_TOTAL_SIZE = 0x77b000
  105. w55fa92_avc_alloc_mem,_ENCODER_BUF_START = 0x4bb000,  _DECODER_BUF_START = 0x8ea000,
  106. Calibrating delay loop... 119.60 BogoMIPS (lpj=598016)
  107. pid_max: default: 32768 minimum: 301
  108. Mount-cache hash table entries: 512
  109. CPU: Testing write buffer coherency: ok
  110. devtmpfs: initialized
  111. NET: Registered protocol family 16
  112. bio: create slab <bio-0> at 0
  113. SCSI subsystem initialized
  114. usbcore: registered new interface driver usbfs
  115. usbcore: registered new interface driver hub
  116. usbcore: registered new device driver usb
  117. Advanced Linux Sound Architecture Driver Version 1.0.23.
  118. cfg80211: Calling CRDA to update world regulatory domain
  119. Switching to clocksource w55fa92-timer1
  120. NET: Registered protocol family 2
  121. IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
  122. TCP established hash table entries: 2048 (order: 2, 16384 bytes)
  123. TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
  124. TCP: Hash tables configured (established 2048 bind 2048)
  125. TCP reno registered
  126. UDP hash table entries: 256 (order: 0, 4096 bytes)
  127. UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
  128. NET: Registered protocol family 1
  129. RPC: Registered udp transport module.
  130. RPC: Registered tcp transport module.
  131. RPC: Registered tcp NFSv4.1 backchannel transport module.
  132. register clock device
  133. w55fa92_edma_init
  134. ROMFS MTD (C) 2007 Red Hat, Inc.
  135. msgmni has been set to 82
  136. io scheduler noop registered (default)
  137. ---w55fa92fb_init ----w55fa92 frame buffer init
  138. ###########w55fa92 frame buffer probe############
  139. 1*** fbi->fb->fix.smem_len = 0x70800
  140. check_var(var=c3c96020, info=c3c96000)
  141. w55fa92fb_set_par !!! =================
  142. var->width = 0x140 !!!
  143. var->bits_per_pixel = 0x10 !!!
  144. w55fa92fb_set_par !!! =================
  145. var->width = 0x140 !!!
  146. var->bits_per_pixel = 0x10 !!!
  147. *** fbcon_prepare_logo: update_screen
  148. Console: switching to colour frame buffer device 40x30
  149. ### bind_con_driver: update_screen
  150. w55fa92 LCD driver has been installed successfully
  151. w55fa92 SysMgr driver has been initialized successfully!
  152. w55fa92 ROT driver has been initialized successfully! Phy addr = 0x3f00000
  153. fa92 vpe register char device Successful!
  154. w55fa92 VPE driver has been initialized successfully!
  155. W55FA92 uart driver has been initialized successfully!
  156. w55fa92-uart0: ttyS0 at MMIO 0xb8008000 (irq = 14) is a W55FA92
  157. w55fa92-uart1: ttyS1 at MMIO 0xb8008100 (irq = 30) is a W55FA92
  158. brd: module loaded
  159. loop: module loaded
  160. w55fa92_avc_init
  161. fa92 AVC Decoder Supported
  162. FAVC Decoder IRQ mode(33)v1.0
  163. fa92 AVC Encoder Supported
  164. FAVC Encoder IRQ mode(34)v1.0
  165. H264 Driver Version v1.0
  166. ### W55FA92 ether driver v2.1 has been initialized successfully!
  167. rtl8150: v0.6.2 (2004/08/27):rtl8150 based usb-ethernet driver
  168. usbcore: registered new interface driver rtl8150
  169. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  170. USBH2.0 Clock source is UPLL, divider is 5
  171. Over-current is Disabled - REG_OpModEn = 0x00000000
  172. w55fa92-ehci w55fa92-ehci: Nuvoton w55fa92 EHCI Host Controller
  173. w55fa92-ehci w55fa92-ehci: new USB bus registered, assigned bus number 1
  174. w55fa92-ehci w55fa92-ehci: irq 21, io mem 0xb100b000
  175. w55fa92-ehci w55fa92-ehci: USB 2.0 started, EHCI 0.95
  176. hub 1-0:1.0: USB hub found
  177. hub 1-0:1.0: 1 port detected
  178. USB device plug in
  179. ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
  180. ohci_hcd_w55fa92_drv_probe
  181. usb_hcd_w55fa92_probe
  182. w55fa92-ohci w55fa92-ohci: Nuvoton W55FA92 OHCI Host Controller
  183. w55fa92-ohci w55fa92-ohci: new USB bus registered, assigned bus number 2
  184. w55fa92-ohci w55fa92-ohci: irq 22, io mem 0xb1005000
  185. ohci_w55fa92_start
  186. hub 2-0:1.0: USB hub found
  187. hub 2-0:1.0: 2 ports detected
  188. USB device plug in
  189. Initializing USB Mass Storage driver...
  190. usbcore: registered new interface driver usb-storage
  191. USB Mass Storage support registered.
  192. w55fa92_udc_probe 20180820
  193. <USBD - USBD plug>
  194. Register platform device for low battery detection
  195. input: W55FA92 TouchScreen as /class/input/input0
  196. ADC opening  REG_TP_CTL1 = 0xc00
  197. ADC Close
  198. input: W55FA92 Keypad as /class/input/input1
  199. ADC opening  REG_TP_CTL1 = 0xc00
  200. W55FA92 keypad driver has been initialized successfully!
  201. w55fa92-rtc w55fa92-rtc: rtc core: registered w55fa92-rtc as rtc0
  202. Check RTC Level Shift Status
  203. -> Level Shift is enabled!
  204. RTC Access Enable Check
  205. Not Change RTC H/W Power Off Function setting - 0x60005
  206. Init Nuvoton RTC!
  207. <RTC Clock Source is from External Crystal>
  208. i2c_adap_w55fa92_init
  209. w55fa92_i2c_probe()
  210. w55fa92-i2c w55fa92-i2c: bus frequency set to 100 KHz
  211. w55fa92-i2c w55fa92-i2c: Add W55FA92 I2C port adapter
  212. Linux video capture interface: v2.00
  213. Sensor power down
  214. Sensor power down
  215. Video capture device 1 initialize successful
  216. jpegcodec_init
  217. Last boot is caused by Power-On-Reset.
  218. W55FA92 MMC/SD driver (20161207) has been initialized successfully!
  219. SDHC card will run under 24MHz clock on SD port.
  220. W55FA92 MMC/SDIO driver (20161207) has been initialized successfully!
  221. SDHC card will run under 24MHz clock on SDIO port.
  222. After snd_soc_register_dai
  223. w55fa92-dac-i2c ret = 0x0
  224. w55fa92-dac-i2c ret = 0x0
  225. ADC clock get OK !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  226. w55fa92evb_asoc_dev = 0xc3eb6dc0 !!!
  227. asoc: W55FA92_DAC HiFi <-> w55fa92-spu mapping ok
  228. ret = 0x0 !!!, platform device added
  229. ******* global g_pw55fa92_adc_data address = 0xc3ebb4e0
  230. 0 = platform_driver_register

  231. asoc: w55fa92ADC HiFi <-> w55fa92adc_cpu_dai mapping ok
  232. ALSA device list:
  233.   #0: W55FA92_SPU (W55FA92_DAC)
  234.   #1: mach-w55fa92_ADC (W55FA92_ADC)
  235. TCP cubic registered
  236. NET: Registered protocol family 17
  237. w55fa92-rtc w55fa92-rtc: setting system clock to 2005-01-01 00:49:59 UTC (1104540599)
  238. Freeing init memory: 796K
  239. gnand: module license 'Proprietary' taints kernel.
  240. Disabling lock debugging due to kernel taint
  241. NAND: nand_init !!!!!
  242. W55FA92 NAND driver (20181029) has been initialized successfully!
  243. scsi0 : Nuvoton W55FA92 On Board NAND DRIVER!
  244. [GNAND] GNAND Library Version: V1.02.5
  245. NAND: Found SLC NAND, ID C2-F1-80-95, page size 2048, BCH T8
  246. NAND: fmiSMCheckBootHeader 1
  247. Nand0: uLibStartBlock=17
  248. SPU DAC ON !!!
  249. [GNAND] NAND flash chip detected, chip ID is 0xff-0xf1 !
  250. GNAND init failed !!!!!!!!
  251. scsi 0:0:1:0: Direct-Access     NUVOTON  GNAND DRIVER     2.00 PQ: 0 ANSI: 0
  252. sd 0:0:1:0: [sda] Unit Not Ready
  253. sd 0:0:1:0: [sda] Sense Key : 0x3 [current]
  254. sd 0:0:1:0: [sda] ASC=0x30 ASCQ=0x0
  255. sd 0:0:1:0: [sda] READ CAPACITY failed
  256. sd 0:0:1:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
  257. sd 0:0:1:0: [sda] Sense Key : 0x3 [current]
  258. sd 0:0:1:0: [sda] ASC=0x30 ASCQ=0x0
  259. sd 0:0:1:0: [sda] Test WP failed, assume Write Enabled
  260. sd 0:0:1:0: [sda] Asking for cache data failed
  261. sd 0:0:1:0: [sda] Assuming drive cache: write through
  262. sd 0:0:1:0: [sda] Unit Not Ready
  263. sd 0:0:1:0: [sda] Sense Key : 0x3 [current]
  264. sd 0:0:1:0: [sda] ASC=0x30 ASCQ=0x0
  265. sd 0:0:1:0: [sda] READ CAPACITY failed
  266. sd 0:0:1:0: [sda] Result: hostbyte=0x00 driverbyte=0x08
  267. sd 0:0:1:0: [sda] Sense Key : 0x3 [current]
  268. sd 0:0:1:0: [sda] ASC=0x30 ASCQ=0x0
  269. sd 0:0:1:0: [sda] Test WP failed, assume Write Enabled
  270. sd 0:0:1:0: [sda] Asking for cache data failed
  271. sd 0:0:1:0: [sda] Assuming drive cache: write through
  272. sd 0:0:1:0: [sda] Attached SCSI removable disk
复制代码

到这里就卡住了,看串口打印信息提示:GNAND init failed !!!!!!!!

看了下 drivers/scsi/nuvoton_nand/w55fa92_NandDrv.c 应该已经对这个nand做过支持的,驱动里面有这个nand的ID


有遇到过类似问题的朋友吗?帮忙指点下。谢谢!~

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
(76322364)

出0入0汤圆

发表于 2019-2-25 13:42:30 | 显示全部楼层
看到你在群里的信息了,没有遇到过,纯属帮顶。
(75726970)

出0入0汤圆

发表于 2019-3-4 11:05:44 | 显示全部楼层
可以换其他flash试试
(9691063)

出0入0汤圆

发表于 2021-4-6 18:24:11 | 显示全部楼层
楼主的问题搞定了么?同样遇到。
(9035242)

出0入0汤圆

发表于 2021-4-14 08:34:32 | 显示全部楼层
昨晚再看了一下新塘的文档,这个真是怪异。应该是我的烧录有问题。正常的顺序是。

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,
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子论坛 ( 公安交互式论坛备案:44190002001997 粤ICP备09047143号 )

GMT+8, 2021-7-27 22:21

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表