内核启动报错,不断重启,如何解决

下面是启动的log
Starting kernel ...

[ 0.000000] Linux version 4.14.90 (aping@ubuntu) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r8915-74af8a8)) #0 Fri Dec 28 11:45:23 2018
[ 0.000000] Board has DDR2
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[ 0.000000] MIPS: machine is Mediatek MT7628AN evaluation board
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 10000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Writing ErrCtl register=00052020
[ 0.000000] Readback ErrCtl register=00052020
[ 0.000000] Memory: 254004K/262144K available (4156K kernel code, 191K rwdata, 996K rodata, 216K init, 226K bss, 8140K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 256
[ 0.000000] intc: using register map from devicetree
[ 0.000000] CPU Clock: 575MHz
[ 0.000000] timer_probe: no matching timers found
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6647862422 ns
[ 0.000011] sched_clock: 32 bits at 287MHz, resolution 3ns, wraps every 7469508094ns
[ 0.007543] Calibrating delay loop... 380.92 BogoMIPS (lpj=1904640)
[ 0.073457] pid_max: default: 32768 minimum: 301
[ 0.078148] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.084501] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.097048] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.106545] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.112497] pinctrl core: initialized pinctrl subsystem
[ 0.118091] NET: Registered protocol family 16
[ 0.160424] usbcore: registered new interface driver usbfs
[ 0.165764] usbcore: registered new interface driver hub
[ 0.170999] usbcore: registered new device driver usb
[ 0.175953] rt2880-pinmux pinctrl: pin io4 already requested by pinctrl; cannot claim for 10000900.i2c
[ 0.184927] rt2880-pinmux pinctrl: pin-4 (10000900.i2c) status -22
[ 0.190853] rt2880-pinmux pinctrl: could not request pin 4 (io4) from group i2c on device rt2880-pinmux
[ 0.200016] i2c-mt7621 10000900.i2c: Error applying setting, reverse things back
[ 0.207161] i2c-mt7621: probe of 10000900.i2c failed with error -22
[ 0.213490] Advanced Linux Sound Architecture Driver Initialized.
[ 0.223722] clocksource: Switched to clocksource MIPS
[ 0.229740] NET: Registered protocol family 2
[ 0.234854] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.241572] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.247761] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.254030] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.259632] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.266005] NET: Registered protocol family 1
[ 0.273881] Crashlog allocated RAM at address 0x3f00000
[ 0.280682] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[ 0.292795] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.298430] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.318912] io scheduler noop registered
[ 0.322645] io scheduler deadline registered (default)
[ 0.328099] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 0.335453] console [ttyS0] disabled
[ 0.338895] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[ 0.347673] console [ttyS0] enabled
[ 0.347673] console [ttyS0] enabled
[ 0.354669] bootconsole [early0] disabled
[ 0.354669] bootconsole [early0] disabled
[ 0.363404] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[ 0.373039] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq = 30, base_baud = 2500000) is a 16550A
[ 0.382506] cacheinfo: Failed to find cpu0 device node
[ 0.387760] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.395004] libphy: Fixed MDIO Bus: probed
[ 0.399350] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.406029] ehci-pci: EHCI PCI platform driver
[ 0.410671] i2c /dev entries driver
[ 0.420632] Enable Ralink GDMA Controller Module
[ 0.425484] GDMA IP Version=3
[ 0.429744] NET: Registered protocol family 10
[ 0.448157] Segment Routing with IPv6
[ 0.451991] NET: Registered protocol family 17
[ 0.456633] 8021q: 802.1Q VLAN Support v1.8
[ 0.462708] ALSA device list:
[ 0.465794] #0: Loopback 1
[ 0.469832]

*VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6*
*[    0.477499] Please append a correct "root=" boot option; here are the available partitions:*
*[    0.485980] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)*
````Preformatted text`
[    0.495270] Rebooting in 1 seconds..
Board: Ralink APSoC DRAM:  256 MB
relocate_code Pointer at: 8ffac000
******************************
Software System Reset Occurred
******************************
flash manufacture id: ef, device id 40 19
find flash: W25Q256FV

*****************************************
*       ZhuoTK Technology Co.,Ltd       *
*            www.zhuotk.com             *
*****************************************
U-Boot 1.1.3 (Jan  6 2017 - 11:39:48)
============================================ 
Ralink UBoot Version: 4.3.0.0
-------------------------------------------- 
ASIC 7628_MP (Port5<->None)
DRAM component: 2048 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 256 MBytes
Flash component: SPI Flash
Date:Jan  6 2017  Time:11:39:48
============================================ 
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768 

 ##### The CPU freq = 575 MHZ #### 
 estimate memory size =256 Mbytes
RESET MT7628 PHY!!!!!!
Press the [1] key when power on to enter web upgrade mode


Continue normal boot...


Please choose the operation: 
   1: Load system code to SDRAM via TFTP. 
   2: Load system code then write to Flash via TFTP. 
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   5: Entr ALL LED test mode.
   6: Entr Web failsafe mode.
   7: Load Boot Loader code then write to Flash via Serial. 
   9: Load Boot Loader code then write to Flash via TFTP.                                        0 
   
3: System Boot system code via Flash.
## Booting image at bc050000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.90
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1790315 Bytes =  1.7 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 256

Starting kernel ...

请问怎么解决

估计是系统刷坏了,或者是SPI flash W25Q256FV 坏了,无法引导系统,按reset按钮试试。

谢谢你的解答!
reset也没用,但是我烧录之前固件是可以启动的,所以应该不是SPI flash W25Q256FV 坏了。我是在进行了wm8960声卡移植后openwrt系统内核报错的(将widora(内核3.18)的声卡驱动移植的openwrt18(内核4.14))。
请问可以提供一些解决思路吗?谢谢!

Judging from your kernel log, there is no SPI flash detected
Did you enable the spi controller in DTS?

When writing in your native language, please always provide an english translation.
This way other users all around the world can take part in the discussion and possibly benefit from the outcome, without having to use a translator.

Thanks!

4 Likes

Thanks for correcting!

I am not sure if (https://github.com/vernesong/OpenClash/issues/289) may help. I met the same situation with Linkit Smart 7688