忘记密码   免费注册 查看新帖 | 论坛精华区

ChinaUnix.net

  平台 论坛 博客 认证专区 大话IT HPC论坛 徽章 文库 沙龙 自测 下载 频道自动化运维 虚拟化 储存备份 C/C++ PHP MySQL 嵌入式 Linux系统
最近访问板块 发新帖
查看: 466 | 回复: 1

[硬件及驱动] 换了Nandflash之后内核启动不成功 [复制链接]

论坛徽章:
0
发表于 2017-06-22 10:25 |显示全部楼层
请教各位,
      最近开发板上尝试使用了一个其他的Nandflash,将u-boot和kernel烧录进去后,u-boot可以启动,但是进入linux内核时,却卡住了,信息如下:
  1. Starting kernel ...

  2. Uncompressing Linux... done, booting the kernel.
  3. Booting Linux on physical CPU 0x0
  4. Linux version 3.18.35 (W19291@Debian7) (gcc version 4.7.3 (Sourcery CodeBench Lite 2013.05-24) ) #1 Wed Jun 21 15:58:37 CST 2017
  5. CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
  6. CPU: VIVT data cache, VIVT instruction cache
  7. Machine: Wasion WFET9G25
  8. Memory policy: Data cache writeback
  9. AT91: Detected soc type: at91sam9x5
  10. AT91: Detected soc subtype: at91sam9g25
  11. AT91: sram at 0x300000 of 0x8000 mapped at 0xfef70000
  12. Clocks: CPU 400 MHz, master 133 MHz, main 12.000 MHz
  13. Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
  14. Kernel command line: console=ttyS2 init=/linuxrc ubi.mtd=5 ro root=ubi0:rootfs rootfstype=ubifs mtdparts=atmel_nand:128k(bootstrap),512k(u-boot),896k(u-bootenv),512k(dtb),2M(kernel),20M(rootfs),20M(home),66M(data0),-(data1)
  15. PID hash table entries: 128 (order: -3, 512 bytes)
  16. Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
  17. Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
  18. Memory: 28516K/32768K available (2713K kernel code, 162K rwdata, 820K rodata, 112K init, 83K bss, 4252K reserved)
  19. Virtual kernel memory layout:
  20.     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
  21.     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
  22.     vmalloc : 0xc2800000 - 0xff000000   ( 968 MB)
  23.     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
  24.     modules : 0xbf000000 - 0xc0000000   (  16 MB)
  25.       .text : 0xc0008000 - 0xc037ba90   (3535 kB)
  26.       .init : 0xc037c000 - 0xc0398000   ( 112 kB)
  27.       .data : 0xc0398000 - 0xc03c0880   ( 163 kB)
  28.        .bss : 0xc03c0880 - 0xc03d57a0   (  84 kB)
  29. NR_IRQS:16 nr_irqs:16 16
  30. AT91: 128 gpio irqs in 4 banks
  31. sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836480000000ns
  32. Console: colour dummy device 80x30
  33. Calibrating delay loop... 199.06 BogoMIPS (lpj=995328)
  34. pid_max: default: 32768 minimum: 301
  35. Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
  36. Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
  37. CPU: Testing write buffer coherency: ok
  38. Setting up static identity map for 0x202924c8 - 0x20292520
  39. devtmpfs: initialized
  40. pinctrl core: initialized pinctrl subsystem
  41. NET: Registered protocol family 16
  42. DMA: preallocated 256 KiB pool for atomic coherent allocations
  43. AT91: Power Management (with slow clock mode)
  44. at_hdmac at91sam9g45_dma.0: Atmel AHB DMA Controller ( cpy slave ), 8 channels
  45. at_hdmac at91sam9g45_dma.1: Atmel AHB DMA Controller ( cpy slave ), 8 channels
  46. SCSI subsystem initialized
  47. usbcore: registered new interface driver usbfs
  48. usbcore: registered new interface driver hub
  49. usbcore: registered new device driver usb
  50. i2c-gpio i2c-gpio.0: using pins 30 (SDA) and 31 (SCL)
  51. Switched to clocksource pit
  52. NET: Registered protocol family 2
  53. TCP established hash table entries: 1024 (order: 0, 4096 bytes)
  54. TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
  55. TCP: Hash tables configured (established 1024 bind 1024)
  56. TCP: reno registered
  57. UDP hash table entries: 256 (order: 0, 4096 bytes)
  58. UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
  59. NET: Registered protocol family 1
  60. futex hash table entries: 256 (order: -1, 3072 bytes)
  61. msgmni has been set to 55
  62. io scheduler noop registered (default)
  63. atmel_usart.1: ttyS0 at MMIO 0xf801c000 (irq = 21, base_baud = 8333333) is a ATMEL_SERIAL
  64. atmel_usart.2: ttyS1 at MMIO 0xf8020000 (irq = 22, base_baud = 8333333) is a ATMEL_SERIAL
  65. atmel_usart.0: ttyS2 at MMIO 0xfffff200 (irq = 17, base_baud = 8333333) is a ATMEL_SERIAL
  66. console [ttyS2] enabled
  67. atmel_usart.3: ttyS3 at MMIO 0xf8024000 (irq = 23, base_baud = 8333333) is a ATMEL_SERIAL
  68. atmel_usart.6: ttyS4 at MMIO 0xf8044000 (irq = 32, base_baud = 8333333) is a ATMEL_SERIAL
  69. atmel_usart.5: ttyS5 at MMIO 0xf8040000 (irq = 31, base_baud = 8333333) is a ATMEL_SERIAL
  70. atmel_usart.4: ttyS6 at MMIO 0xf8028000 (irq = 24, base_baud = 8333333) is a ATMEL_SERIAL
  71. [WFOS] WDT init, device name hwdt, devno 0x0fb00000.
  72. atmel_nand atmel_nand: has pmecc, cap 2, sector size 512, table offset 0x00000000
  73. atmel_nand atmel_nand: Use On Flash BBT
  74. atmel_nand atmel_nand: Using dma0chan0 for DMA transfers.
  75. nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xd1
  76. nand: Esmt NAND 128MiB 3,3V 8-bit
  77. nand: 128MiB, SLC, page size: 2048, OOB size: 64
  78. atmel_nand atmel_nand: minimum ECC: 2 bits in 512 bytes
  79. atmel_nand atmel_nand: Initialize PMECC params, cap: 2, sector: 512
  80. Bad block table found at page 65472, version 0x01
  81. Bad block table found at page 65408, version 0x01
复制代码
有哪位牛人能够帮忙解释下提供一下思路,谢谢。

论坛徽章:
0
发表于 2017-07-26 10:20 |显示全部楼层
最后发现是内核操作NandFlash的时序有问题,调整了一下时序之后,可以正常启动和使用。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

10张SACC2017门票等你来拿~

在数字化转型时代,云已成为万物智能的数字化大脑。而随着大数据应用、人工智能、移动互联网等技术的飞速发展,“智慧 +” 的概念正在深入到各行各业,提升企业效率,释放商业潜能,创造全新机遇。作为国内顶级技术盛会之一,2017 中国系统架构师大会(SACC2017)将于 10 月 19-21 日在北京新云南皇冠假日酒店震撼来袭。今年,大会以 “云智未来” 为主题,云集国内外顶级专家,围绕云计算、人工智能、大数据、移动互联网、产业应用等热点领域展开技术探讨与交流。本届大会共设置 2 大主会场,18 个技术专场;邀请来自互联网、金融、制造业、电商等多个领域,100 余位技术专家及行业领袖来分享他们的经验;并将吸引 4000 + 人次的系统运维、架构师及 IT 决策人士参会,为他们提供最具价值的交流平台。
----------------------------------------
优惠时间:2017年10月19日前

活动链接>>
  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号 北京市公安局海淀分局网监中心备案编号:11010802020122
广播电视节目制作经营许可证(京) 字第1234号 中国互联网协会会员  联系我们:
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP