万能的csdn 给我点帮助吧,我被这个搞得快不行了,SOS

821586284 2016-09-14 04:01:52
移植系统后串口打印的消息:
问题来了:
uboot 的启动参数:
U-Boot_nand# printenv
baudrate=115200
bootargs=root=/dev/mtdblock2 console=ttyS0,115200n8 rdinit=/sbin/init rootfstype=yaffs2 mem=64M mtdparts=nand0:0x200000@0x0(u-boot),0x1300000@0x200000(kernel),-(user)
bootcmd=nboot 0x7fc0 0 0x200000; bootm 0x7fc0
bootdelay=3
ethact=emac
ethaddr=00:00:00:11:66:88
ipaddr=192.168.100.20
serverip=192.168.100.2
stderr=serial
stdin=serial
stdout=serial

问题就是Kernel panic - not syncing: No init found. Try passing init= option to kernel
查了不少资料还是没有解决问题,我用了同样的内核和文件系统通过网络文件系统的方式启动是OK的,所以文件系统是没问题的。问题应该是出现在分区上,我用驱动里面分区的方法(uboot里面没有设置)这种方法也是ok。那么问题来了,为什么通过uboot 传入分区会出现这样的问题呢?求教!!!!!!

U-Boot 2013.04-rc2 (Sep 14 2016 - 11:56:42)

CPU: NUC972
DRAM: 64 MiB
NAND: 128 MiB
MMC: mmc: 0
In: serial
Out: serial
Err: serial
Net: emac
Hit any key to stop autoboot: 0

Loading from nand0, offset 0x200000
Image Name:
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4972512 Bytes = 4.7 MiB
Load Address: 00007fc0
Entry Point: 00008000
## Booting kernel from Legacy Image at 00007fc0 ...
Image Name:
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4972512 Bytes = 4.7 MiB
Load Address: 00007fc0
Entry Point: 00008000
Verifying Checksum ... OK
XIP Kernel Image ... OK
OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 3.10.32 (gcp@gcp-virtual-machine) (gcc version 4.8.4 (GCC) ) #77 PREEMPT Wed Sep 14 12:12:52 CST 2016
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: NUC970
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: root=/dev/mtdblock2 console=ttyS0,115200n8 rdinit=/sbin/init rootfstype=yaffs2 mem=64M mtdparts=nand0:0x200000@0x0(u-boot),0x1300000@0x200000(kernel),-(user)
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 59808k/59808k available, 5728k reserved, 0K highmem
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
modules : 0xbf000000 - 0xc0000000 ( 16 MB)
.text : 0xc0008000 - 0xc0468f2c (4484 kB)
.init : 0xc0469000 - 0xc048aa24 ( 135 kB)
.data : 0xc048c000 - 0xc04c5fe0 ( 232 kB)
.bss : 0xc04c5fe0 - 0xc04fdfc8 ( 224 kB)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
NR_IRQS:561
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys devices
Initializing cgroup subsys freezer
Initializing cgroup subsys perf_event
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0xc037ad58 - 0xc037ad94
devtmpfs: initialized
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
platform i2c-gpio.2: Driver i2c-gpio requests probe deferral
Advanced Linux Sound Architecture Driver Initialized.
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource nuc970-timer1
NET: Registered protocol family 2
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 116
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
nuc970-uart.0: ttyS0 at I/O 0x0 (irq = 36) is a NUC970
nuc970-uart.1: ttyS1 at I/O 0x0 (irq = 37) is a NUC970
nuc970-uart.2: ttyS2 at I/O 0x0 (irq = 38) is a NUC970
nuc970-uart.4: ttyS4 at I/O 0x0 (irq = 39) is a NUC970
nuc970-uart.7: ttyS7 at I/O 0x0 (irq = 45) is a NUC970
nuc970-uart.8: ttyS8 at I/O 0x0 (irq = 41) is a NUC970
nuc970-uart.10: ttyS10 at I/O 0x0 (irq = 42) is a NUC970
brd: module loaded
SCSI Media Changer driver v0.25
nuc970 mtd nand driver version: 20140801
ONFI param page 0 valid
ONFI flash detected
NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD/Spansion S34ML01G2), 128MiB, page size: 2048, OOB size: 64
SYSTEM: USE BCH_T4 HWECC algorithm(SMRA size: 64, Parity number:32 bytes)
EXECUTE: USE BCH_T4 HWECC algorithm(SMRA size: 64, Parity number:32 bytes)
USE BCH_T4 HWECC algorithm(Parity number:32 bytes)
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
3 cmdlinepart partitions found on MTD device nand0
Creating 3 MTD partitions on "nand0":
0x000000000000-0x000000200000 : "u-boot"
0x000000200000-0x000001500000 : "kernel"
0x000001500000-0x000008000000 : "user"
fmi-sm: registered successfully! mtdid=nand0
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
CAN device driver interface
nuc970-can0 nuc970-can0: nuc970_can0_platform device registered (regs=f800b000, irq=58)
nuc970-can1 nuc970-can1: nuc970_can1_platform device registered (regs=f800b400, irq=59)
libphy: nuc970_rmii0: probed
PPP generic driver version 2.4.2
PPP BSD Compression module registered
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
nuc970-ehci nuc970-ehci: Nuvoton NUC970 EHCI Host Controller
nuc970-ehci nuc970-ehci: new USB bus registered, assigned bus number 1
nuc970-ehci nuc970-ehci: irq 23, io mem 0xb0005000
nuc970-ehci nuc970-ehci: USB 2.0 started, EHCI 0.95
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
nuc970-ohci nuc970-ohci: Nuvoton NUC970 OHCI Host Controller
nuc970-ohci nuc970-ohci: new USB bus registered, assigned bus number 2
nuc970-ohci nuc970-ohci: irq 24, io mem 0xb0007000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new interface driver cdc_wdm
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver option
usbserial: USB Serial support registered for GSM modem (1-port)
nuc970-rtc nuc970-rtc: rtc core: registered nuc970-rtc as rtc0
nuc970-i2c0 nuc970-i2c0: i2c-0: nuc970 I2C adapter
nuc970-i2c1 nuc970-i2c1: i2c-1: nuc970 I2C adapter
nuc970-nadc: nuc970 Normal ADC adapter
nau8822 0-001a: Failed to issue reset: -6
nuc970-audio nuc970-audio: ASoC: CODEC nau8822.0-001a not registered
nuc970-audio nuc970-audio: snd_soc_register_card() failed: -517
platform nuc970-audio: Driver nuc970-audio requests probe deferral
TCP: cubic registered
NET: Registered protocol family 17
can: controller area network core (rev 20120528 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20120528)
can: broadcast manager protocol (rev 20120528 t)
can: netlink gateway (rev 20130117) max_hops=1
lib80211: common routines for IEEE802.11 drivers
i2c-gpio i2c-gpio.2: using pins 33 (SDA) and 32 (SCL)
nuc970-audio nuc970-audio: ASoC: CODEC nau8822.0-001a not registered
nuc970-audio nuc970-audio: snd_soc_register_card() failed: -517
platform nuc970-audio: Driver nuc970-audio requests probe deferral
nuc970-rtc nuc970-rtc: setting system clock to 2005-01-01 06:47:32 UTC (1104562052)
usb 1-2: new high-speed USB device number 2 using nuc970-ehci
ALSA device list:
No soundcards found.
yaffs: dev is 32505858 name is "mtdblock2" rw
yaffs: passed flags ""
hub 1-2:1.0: USB hub found
hub 1-2:1.0: 4 ports detected
nuc970-audio nuc970-audio: ASoC: CODEC nau8822.0-001a not registered
nuc970-audio nuc970-audio: snd_soc_register_card() failed: -517
platform nuc970-audio: Driver nuc970-audio requests probe deferral
VFS: Mounted root (yaffs2 filesystem) on device 31:2.
devtmpfs: error mounting -2
Freeing unused kernel memory: 132K (c0469000 - c048a000)
Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.32 #77
Backtrace:
[<c0011f14>] (dump_backtrace+0x0/0x10c) from [<c0012128>] (show_stack+0x18/0x1c)
r6:00000000 r5:c0495a48 r4:c040ce2c r3:00000000
[<c0012110>] (show_stack+0x0/0x1c) from [<c0377990>] (dump_stack+0x20/0x28)
[<c0377970>] (dump_stack+0x0/0x28) from [<c037575c>] (panic+0xa4/0x1f8)
[<c03756b8>] (panic+0x0/0x1f8) from [<c03751d8>] (kernel_init+0x130/0x158)
r3:00000000 r2:00000001 r1:000003d7 r0:c040ce2c
r7:00000000
[<c03750a8>] (kernel_init+0x0/0x158) from [<c000ecf0>] (ret_from_fork+0x14/0x24)
r5:c03750a8 r4:00000000
...全文
778 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
chenxiwu0822 2019-05-06
  • 打赏
  • 举报
回复
这个问题我也碰到过。解决方式:新塘NUC972的NAND有两组接口PORTC和PORTI,在linux源码中make menuconfig--->Device Drivers--->Memory Technology Device (MTD) support ---->NAND Device Support----->NUC970 NAND Flash pin selection(PORT I或者PORT C)
yzs_110 2018-08-31
  • 打赏
  • 举报
回复
请问楼主,我现在跑内核一直停在这里是怎么回事,求解决
zhhe_14 2016-09-22
  • 打赏
  • 举报
回复
请问楼主问题解决了吗?我最近在学NUC972的新塘开发板,根据文档来,内核是可以启动了,请教一下如何挂载自己的根文件系统呢?
gstatham 2016-09-21
  • 打赏
  • 举报
回复
对比一下两种方式的启动参数
letter_x 2016-09-20
  • 打赏
  • 举报
回复
这种情况应该是uboot参数中有nand分区描述,kernel内核源码中也有nand分区描述,两个描述需要和实际nand分区情况保持一致,否则会导致启动异常
821586284 2016-09-14
  • 打赏
  • 举报
回复
给自己顶一下

19,612

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧