找回密码
 立即注册
搜索
热搜: acorn c/c++
查看: 71|回复: 0

Starting kernel...卡住不动的解决方法

[复制链接]

28

主题

1

回帖

106

积分

注册会员

积分
106
发表于 2024-4-20 11:56:45 | 显示全部楼层 |阅读模式
Starting kernel...卡住不动的解决方法

从Uboot启动linux内核老是卡在starting kernel...,那该怎么办呢?


从Tera Term抓出来的log如下

  1. U-Boot 2016.03 (Jun 05 2023 - 22:06:18 +0800)

  2. CPU:   Freescale i.MX6SX rev1.3 at 792MHz
  3. CPU:   Industrial temperature grade (-40C to 105C) at 38C
  4. Reset cause: POR
  5. Board: MX6SX GAGUAR
  6. I2C:   ready
  7. DRAM:  512 MiB
  8. PMIC:  PFUZE100 ID=0x11
  9. MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
  10. MMC Device -1 not found
  11. *** Warning - No MMC card found, using default environment

  12. Display: Hannstar-XGA (1024x768)
  13. Video: 1024x768x18
  14. In:    serial
  15. Out:   serial
  16. Err:   serial
  17. switch to partitions #0, OK
  18. mmc0 is current device
  19. Net:   Board Net Initialization Failed
  20. No ethernet found.
  21. Normal Boot
  22. Hit any key to stop autoboot:  0
  23. MMC Device -1 not found
  24. no mmc device at slot ffffffff
  25. MMC Device -1 not found
  26. no mmc device at slot ffffffff
  27. MMC Device -1802079595 not found
  28. ** Bad device mmc 4294967295 **
  29. reading zImage
  30. 5582720 bytes read in 274 ms (19.4 MiB/s)
  31. Booting from mmc ...
  32. reading imx6sx-gaguar.dtb
  33. 35148 bytes read in 18 ms (1.9 MiB/s)
  34. Kernel image @ 0x80800000 [ 0x000000 - 0x552f80 ]
  35. ## Flattened Device Tree blob at 83000000
  36.    Booting using the fdt blob at 0x83000000
  37.    Using Device Tree in place at 83000000, end 8300b94b

  38. Starting kernel ...
复制代码


一、重新启动,打断进入Uboot, 输入命令查看,好像也很正常,可以看到SD上的东西。

  1. =>mmc dev 0
  2. switch to partitions #0, OK
  3. mmc0 is current device
  4. => fatls mmc 0
  5.   5582720   zimage
  6.             .trash-1000/
  7.     35148   imx6sx-gaguar.dtb

  8. 2 file(s), 1 dir(s)

  9. => mmc dev 2
  10. switch to partitions #0, OK
  11. mmc2(part 0) is current device
  12. =>
复制代码
二,查看设备树的兼容属性compatibe,fsl, imx6sx也正常。

  1. model = "Freescale i.MX6 SoloX GAGUAR Board";
  2.   compatible = "fsl,imx6sx-gaguar", "fsl,imx6sx";
复制代码
三、怕uboot传递的bootargs不对,直接在加上传递参数,还是不正常


  1.   chosen {
  2.     stdout-path = &uart1;
  3.     bootargs ="console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw earlyprintk";
  4.   };
复制代码
四,突然看到我的板一直设为otg启动,那时进行ddr stress test设置的,于是改成回去,终于好了

  1. U-Boot 2016.03 (Jun 05 2023 - 22:06:18 +0800)

  2. CPU:   Freescale i.MX6SX rev1.3 at 792MHz
  3. CPU:   Industrial temperature grade (-40C to 105C) at 43C
  4. Reset cause: POR
  5. Board: MX6SX GAGUAR
  6. I2C:   ready
  7. DRAM:  512 MiB
  8. PMIC:  PFUZE100 ID=0x11
  9. MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
  10. *** Warning - bad CRC, using default environment

  11. Display: Hannstar-XGA (1024x768)
  12. Video: 1024x768x18
  13. In:    serial
  14. Out:   serial
  15. Err:   serial
  16. switch to partitions #0, OK
  17. mmc0 is current device
  18. Net:   Board Net Initialization Failed
  19. No ethernet found.
  20. Normal Boot
  21. Hit any key to stop autoboot:  0
  22. switch to partitions #0, OK
  23. mmc0 is current device
  24. switch to partitions #0, OK
  25. mmc0 is current device
  26. reading boot.scr
  27. ** Unable to read file boot.scr **
  28. reading zImage
  29. 5582720 bytes read in 274 ms (19.4 MiB/s)
  30. Booting from mmc ...
  31. reading imx6sx-gaguar.dtb
  32. 35148 bytes read in 18 ms (1.9 MiB/s)
  33. Kernel image @ 0x80800000 [ 0x000000 - 0x552f80 ]
  34. ## Flattened Device Tree blob at 83000000
  35.    Booting using the fdt blob at 0x83000000
  36.    Using Device Tree in place at 83000000, end 8300b94b

  37. Starting kernel ...

  38. Booting Linux on physical CPU 0x0
  39. Linux version 4.1.15 (ficus@ficuswork) (gcc version 4.9.4 (Linaro GCC 4.9-2017.01) ) #1 SMP PREEMPT Sun Jun 4 19:30:34 CST 2023
  40. CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
  41. CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
  42. Machine model: Freescale i.MX6 SoloX GAGUAR Board
复制代码


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

本版积分规则

橡果ACORN ( 粤ICP备2021058146号 )

GMT+8, 2024-5-15 12:57 , Processed in 0.087967 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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