OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 5123|回复: 8

阿尔法板卡启动NXP官方kernel自动重启

[复制链接]

2

主题

17

帖子

0

精华

初级会员

Rank: 2

积分
118
金钱
118
注册时间
2018-10-5
在线时间
14 小时
发表于 2020-8-14 16:58:54 | 显示全部楼层 |阅读模式
1金钱
大家好!我想问一下有没有人遇到过阿尔法开发板卡启动NXP官方内核,系统挂载完根文件系统后约6秒左右,核心板蓝色电源灯突然闪烁一下,然后系统自动重启?开发板的电源灯是正常的,有人遇到过这个问题吗?
内核使用imx_v7_mfg_defconfig编译,SD卡有两个分区,第一个fat分区存放的是zImage和dtb,第二个是ext4的文件系统。ext4文件系统是正常的,使用阿尔法板上出厂的系统能正常运行。
下面是启动输出:
  1. U-Boot 2017.03 (Aug 13 2020 - 15:28:27 +0800)

  2. CPU:   Freescale i.MX6ULL rev1.1 69 MHz (running at 396 MHz)
  3. CPU:   Industrial temperature grade (-40C to 105C) at 34C
  4. Reset cause: POR
  5. Model: Freescale i.MX6 ULL 14x14 EVK Board
  6. Board: MX6ULL 14x14 EVK
  7. DRAM:  512 MiB
  8. MMC:   FSL_SDHC: 0, FSL_SDHC: 1
  9. *** Warning - bad CRC, using default environment

  10. In:    serial
  11. Out:   serial
  12. Err:   serial
  13. Net:   CPU Net Initialization Failed
  14. No ethernet found.
  15. Hit any key to stop autoboot:  0
  16. switch to partitions #0, OK
  17. mmc0 is current device
  18. reading boot.scr
  19. 436 bytes read in 10 ms (42 KiB/s)
  20. ## Executing script at 81000000
  21. try to load dtb file ...
  22. reading my-i6ull.dtb
  23. 35969 bytes read in 22 ms (1.6 MiB/s)
  24. try to load zImage file ...
  25. reading zImage
  26. 5582872 bytes read in 349 ms (15.3 MiB/s)
  27. try boot kernel ...
  28. Kernel image [url=home.php?mod=space&uid=95564]@[/url] 0x80800000 [ 0x000000 - 0x553018 ]
  29. ## Flattened Device Tree blob at 83000000
  30.    Booting using the fdt blob at 0x83000000
  31.    Using Device Tree in place at 83000000, end 8300bc80

  32. Starting kernel ...

  33. Booting Linux on physical CPU 0x0
  34. Linux version 4.1.15 (root@hope-VirtualBox) (gcc version 4.9.4 (Linaro GCC 4.9-2017.01) ) #2 SMP PREEMPT Fri Aug 14 15:38:43 CST 2020
  35. CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
  36. CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  37. Machine model: Freescale i.MX6 ULL 14x14 EVK Board
  38. Reserved memory: created CMA memory pool at 0x8c000000, size 320 MiB
  39. Reserved memory: initialized node linux,cma, compatible id shared-dma-pool
  40. Memory policy: Data cache writealloc
  41. PERCPU: Embedded 12 pages/cpu @8bb32000 s16768 r8192 d24192 u49152
  42. Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
  43. Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rootfstype=ext4 rw panic=10
  44. PID hash table entries: 2048 (order: 1, 8192 bytes)
  45. Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
  46. Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
  47. Memory: 180852K/524288K available (6883K kernel code, 322K rwdata, 2356K rodata, 400K init, 424K bss, 15756K reserved, 327680K cma-reserved, 0K highmem)
  48. Virtual kernel memory layout:
  49.     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
  50.     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
  51.     vmalloc : 0xa0800000 - 0xff000000   (1512 MB)
  52.     lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)
  53.     pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
  54.     modules : 0x7f000000 - 0x7fe00000   (  14 MB)
  55.       .text : 0x80008000 - 0x8090df3c   (9240 kB)
  56.       .init : 0x8090e000 - 0x80972000   ( 400 kB)
  57.       .data : 0x80972000 - 0x809c29c0   ( 323 kB)
  58.        .bss : 0x809c5000 - 0x80a2f2f0   ( 425 kB)
  59. SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
  60. Preemptible hierarchical RCU implementation.
  61.         Additional per-CPU info printed with stalls.
  62.         RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
  63. RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
  64. NR_IRQS:16 nr_irqs:16 16
  65. mxc_clocksource_init 3000000
  66. Switching to timer-based delay loop, resolution 333ns
  67. sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
  68. clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
  69. Console: colour dummy device 80x30
  70. Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
  71. pid_max: default: 32768 minimum: 301
  72. Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
  73. Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
  74. CPU: Testing write buffer coherency: ok
  75. /cpus/cpu@0 missing clock-frequency property
  76. CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
  77. Setting up static identity map for 0x80008280 - 0x800082f0
  78. Brought up 1 CPUs
  79. SMP: Total of 1 processors activated (6.00 BogoMIPS).
  80. CPU: All CPU(s) started in SVC mode.
  81. devtmpfs: initialized
  82. device-tree: Duplicate name in lcdif@021c8000, renamed to "display#1"
  83. VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
  84. clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
  85. pinctrl core: initialized pinctrl subsystem
  86. NET: Registered protocol family 16
  87. DMA: preallocated 256 KiB pool for atomic coherent allocations
  88. cpuidle: using governor ladder
  89. cpuidle: using governor menu
  90. hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
  91. hw-breakpoint: maximum watchpoint size is 8 bytes.
  92. imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
  93. imx6ul-pinctrl 2290000.iomuxc-snvs: initialized IMX pinctrl driver
  94. mxs-dma 1804000.dma-apbh: initialized
  95. SCSI subsystem initialized
  96. usbcore: registered new interface driver usbfs
  97. usbcore: registered new interface driver hub
  98. usbcore: registered new device driver usb
  99. i2c i2c-0: IMX I2C adapter registered
  100. i2c i2c-0: can't use DMA
  101. i2c i2c-1: IMX I2C adapter registered
  102. i2c i2c-1: can't use DMA
  103. Linux video capture interface: v2.00
  104. pps_core: LinuxPPS API ver. 1 registered
  105. pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
  106. PTP clock support registered
  107. Advanced Linux Sound Architecture Driver Initialized.
  108. Switched to clocksource mxc_timer1
  109. NET: Registered protocol family 2
  110. TCP established hash table entries: 4096 (order: 2, 16384 bytes)
  111. TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
  112. TCP: Hash tables configured (established 4096 bind 4096)
  113. UDP hash table entries: 256 (order: 1, 8192 bytes)
  114. UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
  115. NET: Registered protocol family 1
  116. RPC: Registered named UNIX socket transport module.
  117. RPC: Registered udp transport module.
  118. RPC: Registered tcp transport module.
  119. RPC: Registered tcp NFSv4.1 backchannel transport module.
  120. imx rpmsg driver is registered.
  121. Bus freq driver module loaded
  122. futex hash table entries: 256 (order: 2, 16384 bytes)
  123. VFS: Disk quotas dquot_6.6.0
  124. VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
  125. NFS: Registering the id_resolver key type
  126. Key type id_resolver registered
  127. Key type id_legacy registered
  128. jffs2: version 2.2. (NAND) &#169; 2001-2006 Red Hat, Inc.
  129. fuse init (API version 7.23)
  130. io scheduler noop registered
  131. io scheduler deadline registered
  132. io scheduler cfq registered (default)
  133. imx-weim 21b8000.weim: Driver registered.
  134. backlight supply power not found, using dummy regulator
  135. 21c8000.lcdif supply lcd not found, using dummy regulator
  136. mxsfb 21c8000.lcdif: failed to find mxc display driver
  137. Console: switching to colour frame buffer device 60x34
  138. mxsfb 21c8000.lcdif: initialized
  139. imx-sdma 20ec000.sdma: no event needs to be remapped
  140. imx-sdma 20ec000.sdma: loaded firmware 3.3
  141. imx-sdma 20ec000.sdma: initialized
  142. 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 18, base_baud = 5000000) is a IMX
  143. console [ttymxc0] enabled
  144. 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 235, base_baud = 5000000) is a IMX
  145. imx sema4 driver is registered.
  146. [drm] Initialized drm 1.1.0 20060810
  147. [drm] Initialized vivante 1.0.0 20120216 on minor 0
  148. brd: module loaded
  149. loop: module loaded
  150. fsl-quadspi 21e0000.qspi: unrecognized JEDEC id bytes: ff, ff, ff
  151. fsl-quadspi 21e0000.qspi: Freescale QuadSPI probe failed
  152. 20b4000.ethernet supply phy not found, using dummy regulator
  153. pps pps0: new PPS source ptp0
  154. fec 20b4000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
  155. fec 20b4000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 92:81:8d:72:13:b5
  156. libphy: fec_enet_mii_bus: probed
  157. fec 20b4000.ethernet eth0: registered PHC device 0
  158. 2188000.ethernet supply phy not found, using dummy regulator
  159. pps pps1: new PPS source ptp1
  160. fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00
  161. fec 2188000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: a2:54:53:06:0a:c8
  162. fec 2188000.ethernet eth1: registered PHC device 1
  163. ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
  164. ehci-mxc: Freescale On-Chip EHCI Host driver
  165. usbcore: registered new interface driver usb-storage
  166. 2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
  167. 2184000.usb supply vbus not found, using dummy regulator
  168. 2184200.usb supply vbus not found, using dummy regulator
  169. ci_hdrc ci_hdrc.1: EHCI Host Controller
  170. ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
  171. ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
  172. hub 1-0:1.0: USB hub found
  173. hub 1-0:1.0: 1 port detected
  174. Mass Storage Function, version: 2009/09/11
  175. LUN: removable file: (no medium)
  176. no file given for LUN0
  177. g_mass_storage ci_hdrc.0: failed to start g_mass_storage: -22
  178. mousedev: PS/2 mouse device common for all mice
  179. input: 20cc000.snvs:snvs-powerkey as /devices/platform/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0
  180. input: iMX6UL TouchScreen Controller as /devices/platform/soc/2000000.aips-bus/2040000.tsc/input/input1
  181. snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc0
  182. i2c /dev entries driver
  183. IR NEC protocol handler initialized
  184. IR RC5(x/sz) protocol handler initialized
  185. IR RC6 protocol handler initialized
  186. IR JVC protocol handler initialized
  187. IR Sony protocol handler initialized
  188. IR SANYO protocol handler initialized
  189. IR Sharp protocol handler initialized
  190. IR MCE Keyboard/mouse protocol handler initialized
  191. IR XMP protocol handler initialized
  192. pxp-v4l2 pxp_v4l2: initialized
  193. imx2-wdt 20bc000.wdog: use WDOG_B to reboot.
  194. imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
  195. sdhci: Secure Digital Host Controller Interface driver
  196. sdhci: Copyright(c) Pierre Ossman
  197. sdhci-pltfm: SDHCI platform and OF driver helper
  198. /soc/aips-bus@02100000/usdhc@02190000: voltage-ranges unspecified
  199. sdhci-esdhc-imx 2190000.usdhc: Got CD GPIO
  200. sdhci-esdhc-imx 2190000.usdhc: No vqmmc regulator found
  201. mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
  202. /soc/aips-bus@02100000/usdhc@02194000: voltage-ranges unspecified
  203. sdhci-esdhc-imx 2194000.usdhc: could not get ultra high speed state, work on normal mode
  204. sdhci-esdhc-imx 2194000.usdhc: No vmmc regulator found
  205. sdhci-esdhc-imx 2194000.usdhc: No vqmmc regulator found
  206. mmc0: host does not support reading read-only switch, assuming write-enable
  207. mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
  208. usbcore: registered new interface driver usbhid
  209. usbhid: USB HID core driver
  210. mmc0: new high speed SD card at address b368
  211. mmcblk0: mmc0:b368       478 MiB
  212. usb 1-1: new high-speed USB device number 2 using ci_hdrc
  213. mmcblk0: p1 p2
  214. NET: Registered protocol family 10
  215. sit: IPv6 over IPv4 tunneling driver
  216. NET: Registered protocol family 17
  217. Key type dns_resolver registered
  218. Registering SWP/SWPB emulation handler
  219. snvs_rtc 20cc000.snvs:snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0)
  220. can-3v3: disabling
  221. ALSA device list:
  222.   No soundcards found.
  223. hub 1-1:1.0: USB hub found
  224. hub 1-1:1.0: 4 ports detected
  225. EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
  226. VFS: Mounted root (ext4 filesystem) on device 179:2.
  227. devtmpfs: mounted
  228. Freeing unused kernel memory: 400K (8090e000 - 80972000)
  229. first df m ...
  230. Filesystem           1M-blocks      Used Available Use% Mounted on
  231. Try automount ...
  232. after mount df m ...
  233. Filesystem           1M-blocks      Used Available Use% Mounted on
  234. /dev/root                  357       130       205  39% /
  235. devtmpfs                    88         0        88   0% /dev
  236. tmpfs                      249         0       249   0% /tmp
  237. tmpfs                      249         0       249   0% /var/volatile
  238. tmpfs                      249         0       249   0% /run

  239. Please press Enter to activate this console.
  240. root@hope_imx6ull:/#
复制代码
U-boot传入的参数是:console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rootfstype=ext4 rw panic=10
根文件系统fstab中的内容:
QQ截图20200814165423.png
启动后我用df命令查看挂载的信息,发现并没有显示挂载了 proc 和 sysfs,但使用 ls /proc却可以看到里面是由内容的。有人知道导致自动重启的原因吗??求指导

最佳答案

查看完整内容[请看2#楼]

找到原因了。。。被狗咬了 配置内核时在Device Drivers > Watchdog Timer Support中取消勾选IMX2+ Watchdog可以避免自动重启,具体原因在查
正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

2

主题

17

帖子

0

精华

初级会员

Rank: 2

积分
118
金钱
118
注册时间
2018-10-5
在线时间
14 小时
 楼主| 发表于 2020-8-14 16:58:55 | 显示全部楼层
找到原因了。。。被狗咬了
配置内核时在Device Drivers > Watchdog Timer Support中取消勾选IMX2+ Watchdog可以避免自动重启,具体原因在查
回复

使用道具 举报

530

主题

11万

帖子

34

精华

管理员

Rank: 12Rank: 12Rank: 12

积分
165353
金钱
165353
注册时间
2010-12-1
在线时间
2108 小时
发表于 2020-8-15 01:59:44 | 显示全部楼层
帮顶
回复

使用道具 举报

2

主题

712

帖子

0

精华

金牌会员

Rank: 6Rank: 6

积分
2178
金钱
2178
注册时间
2018-8-27
在线时间
258 小时
发表于 2020-8-15 09:16:16 | 显示全部楼层
帮顶!
回复

使用道具 举报

2

主题

17

帖子

0

精华

初级会员

Rank: 2

积分
118
金钱
118
注册时间
2018-10-5
在线时间
14 小时
 楼主| 发表于 2020-8-15 09:33:36 | 显示全部楼层
回复

使用道具 举报

0

主题

134

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
301
金钱
301
注册时间
2020-5-8
在线时间
20 小时
发表于 2020-8-15 12:10:14 | 显示全部楼层
你编译NXP的内核用的的交叉编译器是什么版本的?高版本的?是7.多版本的?
回复

使用道具 举报

2

主题

17

帖子

0

精华

初级会员

Rank: 2

积分
118
金钱
118
注册时间
2018-10-5
在线时间
14 小时
 楼主| 发表于 2020-8-15 12:53:45 | 显示全部楼层
无忧花开 发表于 2020-8-15 12:10
你编译NXP的内核用的的交叉编译器是什么版本的?高版本的?是7.多版本的?

我编译器用的是正点原子提供的gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf.tar.xz
然后我用压缩包里面提供的UBoot和nand里的UBoot都无法将fat分区里的zImage载入内存,于是我把UBoot换成了u-boot-2017.03.tar.bz2版本,配置文件用的是mx6ull_14x14_evk_defconfig,卡启动UBoot是正常的
回复

使用道具 举报

2

主题

17

帖子

0

精华

初级会员

Rank: 2

积分
118
金钱
118
注册时间
2018-10-5
在线时间
14 小时
 楼主| 发表于 2020-8-15 13:05:37 | 显示全部楼层
我查了核心板的原理图,板上蓝色LED接在U8 MP2144上,这个片子的EN接在6ull的PMIC_ON_REQ(SNVS_PMIC_ON_REQ)。后来我将SD卡中的zImage、设备树以及根文件系统都换成正点原子的,只有UBoot使用的是u-boot-2017.03.tar.bz2(因为nand上的fatload和load总是读zImage失败),但是启动后仍然存在自动重启的问题。
我想不出到底是什么原因使得PMIC_ON_REQ出现了变化。。。
回复

使用道具 举报

2

主题

17

帖子

0

精华

初级会员

Rank: 2

积分
118
金钱
118
注册时间
2018-10-5
在线时间
14 小时
 楼主| 发表于 2020-8-15 13:38:30 | 显示全部楼层
本帖最后由 t01051 于 2020-8-15 13:43 编辑

proc和sysfs自动挂载挂不上,手动也挂不上
  1. Please press Enter to activate this console.
  2. root@hope_imx6ull:/# mount -a;df -m;mount -t proc proc /proc
  3. Filesystem           1M-blocks      Used Available Use% Mounted on
  4. /dev/root                  446       130       289  31% /
  5. devtmpfs                   184         0       184   0% /dev
  6. tmpfs                      249         0       249   0% /tmp
  7. tmpfs                      249         0       249   0% /var/volatile
  8. tmpfs                      249         0       249   0% /run
  9. mount: mounting proc on /proc failed: Device or resource busy
  10. root@hope_imx6ull:/#
复制代码


fstab的内容:
  1. # /etc/fstab: static file system information.
  2. #
  3. # <file system> <mount point>   <type>      <options>       <dump>  <pass>
  4. # / was on /dev/mmcblk0p2 during installation
  5. /dev/mmcblk0p2         /          ext4    errors=remount-ro    0       1
  6. proc                   /proc      proc       defaults          0       0
  7. devpts                 /dev/pts   devpts     mode=0620,gid=5   0       0
  8. tmpfs                  /tmp       tmpfs      defaults          0       0
  9. sysfs                  /sys       sysfs      defaults          0       0
  10. tmpfs                  /var/volatile tmpfs   defaults          0       0
  11. tmpfs                  /run       tmpfs      defaults          0       0
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-25 16:32

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

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