crotex系列板子 烧写 zImage 出现类似 NFS配置错误 导致内核崩溃时解决方法

错误提示如下:




U-Boot 2010.03 (Sep 16 2015 - 22:10:38) for FS21


CPU:    S5PC110@1000MHz
Board:  FS210
DRAM:   1 GB
NAND:  1024 MiB
In:    serial
ut:   serial
Err:  serial
Net:   dm000
Hit any key o stop autoboot:  0
ERROR: resetting DM9000 -> not responding
dm9000 i/o: 0x8800000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 11:22:33:44:55:66
operating at 100M full duplex mode
Using dm9000 device
TFTP from sever 192.168.20.110; ourIP address is 192.168.20.36
Filename 'zImage'.
Load address: 0x20008000
Loading: T #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####################
done
Bytes transferred = 2095640(1ffa18 hex)
Using theKernel =  0x20008000


Starting kernel ...




machid = 998,bd->bi_boot_params = 20000100
Uncompressing Linux... done, booting the kernel.
Linux version 3.2.0 (fox@ubuntu) (gcc version 4.4.6 (crosstool-NG 1.12.4) ) #25 PREEMPT Tue Oct 11 01:13:52 PDT 2016
CPU: ARMv7 Processor [412fc082] revision 2 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: SMDKV210
Memory policy: ECC disabled, Data cache writeback
CPU S5PV210/S5PC110 (id 0x43110220)
S3C24XX Clocks, Copyright 2004 Simtec Electronics
S5PV210: PLL settings, A=1000000000, M=667000000, E=96000000 V=54000000
S5PV210: ARMCLK=1000000000, HCLKM=200000000, HCLKD=166750000
HCLKP=133400000, PCLKM=100000000, PCLKD=83375000, PCLKP=66700000
sclk_dmc: source is sclk_a2m (0), rate is 20000000
sclk_onenand: source is hclk_dsys (1), rate is 83375000
uclk1: source is mout_mpll (6), rate is 66700000
uclk1: source is mout_mpll (6), rate is 66700000
uclk1: source is mout_mpll (6), rate is 6670000
uclk1: source is mout_mpl (6), rate is 66700000
sclk_fimc: source is ext_xtal (0), rate is 24000000
sclk_fimc: source is ext_xtal (0), rate is 24000000
sclk_fimc: source is ext_xtal (0), rate is 24000000
sclk_cam0: source is ext_xtal (0), rate is 12000000
sclk_cam1: source is ext_xtal (0), rate is 12000000
sclk_fimd: source is ext_xal (0), rate is 2400000
sclk_mmc: source is mout_epll (7), rate is 96000000
sclk_mmc: source is mout_epll (7), rate is 96000000
sclk_mc: source is mout_epll (7), rate is 96000000
sclk_mmc: source is mout_epll (7), rate is 96000000
sclk_mfc: source is sclk_a2m (0), rate is 200000000
sclk_g2d: source is sclk_a2m (0), rate is 200000000
sclk_g3d: source is sclka2m (0), rate is 100000000
sclk_csis: source is ext_xtal (0), rate is 2400000
sclk_spi: source is ext_xtal (0), rate is 24000000
sclk_spi: source is ext_xtal (0), rate is 24000000
sclk_pwi: source is ext_xtal (0), rate is 24000000
sclk_pwm: source is ext_xtal (0), rate is 24000000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
Kernel command line: root=/dev/mtdblock2 init=/linuxrc console=ttySAC0,115200
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1024MB = 1024MB total
Memory: 1035284k/1035284k available, 13292k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xfff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc0800000 - 0xf6000000   ( 856 MB)
    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x8038e91c   (3611 kB)
      .init : 0x8038f000 - 0x803b3000   ( 144 kB)
      .data : 0x803b4000 - 0x803e5300   ( 197 kB)
       .bss : 0x803e5324 - 0x8041ccf4   ( 223 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:208
VIC @f6000000: id 0x0041192, vendor 0x41
VIC @f6010000: id 0x00041192, vendor 041
VIC @f6020000: id 0x00041192, vendor 0x41
VIC @f6030000: id 0x00041192, vendor 0x41
sched_clock: 32 bits at 33MHz, resolution 29ns, wraps every 128784ms
onsole: colour dummy device 80x30
Calibrating delay loop... 997.78 BogoMIPS (lpj=2494464)
pid_max: default: 32768 mnimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S5PV210: Initializing architecture
bio: create slab at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registerednew interface driver hub
usbcore: registered new device driver ub
Switching to clocksource 5p_clocksource_timer
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 8, 1310720 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
UDP hash table entries: 512 (order: 2, 24576 bytes)
UDP-Lite hash table entries: 512 (order: 2, 24576 bytes)
NET: Registred protocol family 1
RPC: egistered named UNIX ocket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transpor module.
ROMFS MTD (C) 2007 Red Hat, Inc.
io scheduler noop registere
io scheduler deadline registered
io scheduler cfq registered (default)
start plist test
end plist test
Console: switching to colour frame buffer device 100x30
s3c-fb s5pv210-fb: window 0: fb
dma-pl330 dma-pl330.0: Loaded driver for PL330 DMAC-267056
dma-pl330 dma-pl330.0:  DBUFF-8x4bytes Num_hans-8 Num_Peri-32 Num_Events-32
dma-pl330 dma-pl330.1: Loaded driver for PL330 DMAC-267056
dma-pl330 dma-pl330.1:  DBUFF-8x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
s5pv210-uart.0: ttySAC0 at MMIO 0xe2900000 (irq = 74) is a S3C6400/10
console [ttySAC0] enabled
s5pv210-uart.1: ttySAC1 at MMIO 0xe2900400 (irq = 75) is a S3C6400/10
s5pv210-uart.2: ttySAC2 at MMIO 0xe2900800 (irq = 76) is a S3C6400/10
s5pv210-uart.3: ttySAC3 at MMIO 0xe2900c00 (irq = 77) is a S3C6400/10
brd: module loaded
loop: module loaded
S3C NAND Driver, (c) 2008 Samsung Electronics
dm9000 Ethernet Driver, V1.31
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: read wrong id 0x2b2a2928
dm9000 dm9000: wrong id: 0x2b2a2928
dm9000 dm9000: not found (-19).
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
exynos_ohci_probe: 216------------------------------------
s5p_usb_phy_init:84---------------------------------------------------
s5p_usb_phy_init:126---------------------------------------------------
exynos_ohci_probe: 22-----------------------------------
s5p-ohci s5p-ohci: EXYNOS OHCI Host Controller
s5p-ohci s5p-ohci: ne USB bus registered, assiged bus number 1
s5p-ohci s5p-ohci: irq 87, io mem 0xec300000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
exynos_ohci_probe: 230------------------------------------
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registere.
mousedev: PS/2 mouse device common for all mice
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sc-sdhci s3c-sdhci.0: clock source 0: hsmmc (133400000 Hz)
s3c-sdhci s3c-sdhci.0: clock source 2: sclk_mmc (96000000 Hz)
mmc0: SDHCI controller on samsung-hsmmc [s3c-sdhci.0] using ADMA
s3c-sdhci s3c-sdhci.1: clock source 0: hsmmc (133400000 Hz)
s3c-sdhci s3c-sdhci.1: clock source 2: sclk_mmc (96000000 Hz)
mmc1: SDHCI controller on samsung-hsmmc [s3c-sdhci.1] using ADMA
s3c-sdhci s3c-sdhci.2: clock source 0: hsmmc (133400000 Hz)
s3c-sdhci s3c-dhci.2: clock source 2: sclk_mmc (96000000 Hz)
mmc2: SDHCI controller on samsung-hsmmc [sc-sdhci.2] using ADMA
s3c-sdhci s3c-sdhci.3: clock source 0: hsmmc (133400000 Hz)
s3c-sdhci s3c-sdhci.3: clock source 2: sclk_mmc (96000000 Hz)
mmc3: SDHCI controller on samsung-hsmmc [s3c-sdhci.3] using ADMA
TCP cubic registered
NET: Registered protocol family 17
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 2
Root-NFS: no NFS server address
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "mtdblock2" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
[<80013df4>] (unwind_backtrace+0x0/0xfc) from [<80293118>] (panic+0x74/0x1a8)
[<80293118>] (panic+0x74/0x1a8) from [<8038fd44>] (mount_block_root+0x16c/0x220)
[<8038fd44>] (mount_block_root+0x16c/0x220) from [<8038fea0>] (mount_root+0xa8/0xc4)
[<8038fea0>] (mount_root+0xa8/0xc4) from [<8039001c>] (prepare_namespace+0x160/0x1b8)
[<8039001c>] (prepare_namespace+0x160/0x1b8) from [<8038f28c>] (kernel_init+0xe8/0x11c)
[<8038f28c>] (kernel_init+0xe8/0x11c) from [<8000f4fc>] (kernel_thread_exit+0x0/0x8)




解决方法:
1.通过 addr2line 去定位  arm-cortex_a8-linux-gnueabi-addr2line  <发生错误的寄存器地址> -e vmlinux -f 
2.横向思维 寻找一份好的内核源码 arch中的arm文件  复制进你的内核源码下  编译一次  再换回你原来的 arm文件
3.实在不行只能说明Nand flash 驱动有问题   参考: http://blog.csdn.net/qq_26058749/article/details/52792094








本人通过方法二成功解决,希望对大家有帮助,原理不清楚 ,欢迎指教。

你可能感兴趣的:(嵌入式内核开发,LINUX,系统移植,arm处理器)