|
Starting kernel...卡住不动的解决方法
从Uboot启动linux内核老是卡在starting kernel...,那该怎么办呢?
从Tera Term抓出来的log如下
- U-Boot 2016.03 (Jun 05 2023 - 22:06:18 +0800)
- CPU: Freescale i.MX6SX rev1.3 at 792MHz
- CPU: Industrial temperature grade (-40C to 105C) at 38C
- Reset cause: POR
- Board: MX6SX GAGUAR
- I2C: ready
- DRAM: 512 MiB
- PMIC: PFUZE100 ID=0x11
- MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
- MMC Device -1 not found
- *** Warning - No MMC card found, using default environment
- Display: Hannstar-XGA (1024x768)
- Video: 1024x768x18
- In: serial
- Out: serial
- Err: serial
- switch to partitions #0, OK
- mmc0 is current device
- Net: Board Net Initialization Failed
- No ethernet found.
- Normal Boot
- Hit any key to stop autoboot: 0
- MMC Device -1 not found
- no mmc device at slot ffffffff
- MMC Device -1 not found
- no mmc device at slot ffffffff
- MMC Device -1802079595 not found
- ** Bad device mmc 4294967295 **
- reading zImage
- 5582720 bytes read in 274 ms (19.4 MiB/s)
- Booting from mmc ...
- reading imx6sx-gaguar.dtb
- 35148 bytes read in 18 ms (1.9 MiB/s)
- Kernel image @ 0x80800000 [ 0x000000 - 0x552f80 ]
- ## Flattened Device Tree blob at 83000000
- Booting using the fdt blob at 0x83000000
- Using Device Tree in place at 83000000, end 8300b94b
- Starting kernel ...
复制代码
一、重新启动,打断进入Uboot, 输入命令查看,好像也很正常,可以看到SD上的东西。
- =>mmc dev 0
- switch to partitions #0, OK
- mmc0 is current device
- => fatls mmc 0
- 5582720 zimage
- .trash-1000/
- 35148 imx6sx-gaguar.dtb
- 2 file(s), 1 dir(s)
- => mmc dev 2
- switch to partitions #0, OK
- mmc2(part 0) is current device
- =>
复制代码 二,查看设备树的兼容属性compatibe,fsl, imx6sx也正常。
- model = "Freescale i.MX6 SoloX GAGUAR Board";
- compatible = "fsl,imx6sx-gaguar", "fsl,imx6sx";
复制代码 三、怕uboot传递的bootargs不对,直接在加上传递参数,还是不正常
- chosen {
- stdout-path = &uart1;
- bootargs ="console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw earlyprintk";
- };
复制代码 四,突然看到我的板一直设为otg启动,那时进行ddr stress test设置的,于是改成回去,终于好了
- U-Boot 2016.03 (Jun 05 2023 - 22:06:18 +0800)
- CPU: Freescale i.MX6SX rev1.3 at 792MHz
- CPU: Industrial temperature grade (-40C to 105C) at 43C
- Reset cause: POR
- Board: MX6SX GAGUAR
- I2C: ready
- DRAM: 512 MiB
- PMIC: PFUZE100 ID=0x11
- MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
- *** Warning - bad CRC, using default environment
- Display: Hannstar-XGA (1024x768)
- Video: 1024x768x18
- In: serial
- Out: serial
- Err: serial
- switch to partitions #0, OK
- mmc0 is current device
- Net: Board Net Initialization Failed
- No ethernet found.
- Normal Boot
- Hit any key to stop autoboot: 0
- switch to partitions #0, OK
- mmc0 is current device
- switch to partitions #0, OK
- mmc0 is current device
- reading boot.scr
- ** Unable to read file boot.scr **
- reading zImage
- 5582720 bytes read in 274 ms (19.4 MiB/s)
- Booting from mmc ...
- reading imx6sx-gaguar.dtb
- 35148 bytes read in 18 ms (1.9 MiB/s)
- Kernel image @ 0x80800000 [ 0x000000 - 0x552f80 ]
- ## Flattened Device Tree blob at 83000000
- Booting using the fdt blob at 0x83000000
- Using Device Tree in place at 83000000, end 8300b94b
- Starting kernel ...
- Booting Linux on physical CPU 0x0
- 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
- CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5387d
- CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
- Machine model: Freescale i.MX6 SoloX GAGUAR Board
复制代码
|
|